|
@@ -44,12 +44,6 @@ let LOGIN_AUTH_TYPE_CD;
|
44
|
44
|
/*화면 Grid ColModel*/
|
45
|
45
|
const gridColModel = {
|
46
|
46
|
list: [
|
47
|
|
- {
|
48
|
|
- index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
|
49
|
|
- label: "정산관리고유번호",
|
50
|
|
- width: '0', fixed: false, align: 'center',
|
51
|
|
- sortable: false, hidden: true
|
52
|
|
- },
|
53
|
47
|
{
|
54
|
48
|
index: 'BRAND_ID', name: 'brandId',
|
55
|
49
|
label: "브랜드ID",
|
|
@@ -80,6 +74,12 @@ const gridColModel = {
|
80
|
74
|
width: '10', fixed: false, align: 'center',
|
81
|
75
|
sortable: false, hidden: false
|
82
|
76
|
},
|
|
77
|
+ {
|
|
78
|
+ index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
|
|
79
|
+ label: "정산번호",
|
|
80
|
+ width: '10', fixed: false, align: 'center',
|
|
81
|
+ sortable: false, hidden: false
|
|
82
|
+ },
|
83
|
83
|
{
|
84
|
84
|
index: 'STTL_ST_NM', name: 'sttlStNm',
|
85
|
85
|
label: "상태",
|
|
@@ -101,20 +101,13 @@ const gridColModel = {
|
101
|
101
|
},
|
102
|
102
|
{
|
103
|
103
|
index: 'STTL_DT', name: 'sttlDt',
|
104
|
|
- label: "정산일",
|
|
104
|
+ label: "정산확인일",
|
105
|
105
|
width: '10', fixed: false, align: 'center',
|
106
|
106
|
sortable: false, hidden: false
|
107
|
107
|
},
|
108
|
108
|
{
|
109
|
|
- index: 'STTL_AMT', name: 'sttlAmt',
|
110
|
|
- label: '정산금액',
|
111
|
|
- width: '10', fixed: false, align: 'center',
|
112
|
|
- sortable: false, hidden: false,
|
113
|
|
- formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
114
|
|
- },
|
115
|
|
- {
|
116
|
|
- index: 'ACCT_BAL', name: 'acctBal',
|
117
|
|
- label: '잔액',
|
|
109
|
+ index: 'USE_AMT_TOTAL', name: 'useAmtTotal',
|
|
110
|
+ label: '사용가능한도',
|
118
|
111
|
width: '10', fixed: false, align: 'center',
|
119
|
112
|
sortable: false, hidden: false,
|
120
|
113
|
formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
@@ -426,7 +419,7 @@ let listObj = {
|
426
|
419
|
onCellSelect: function(rowId, cellIdx, cellValue) {
|
427
|
420
|
var cm = $(this).jqGrid('getGridParam', 'colModel');
|
428
|
421
|
var colNm = cm[cellIdx].name;
|
429
|
|
- if (colNm == 'sttlReqDt') {
|
|
422
|
+ if (colNm == 'sttlMgntUnqNo') {
|
430
|
423
|
const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
|
431
|
424
|
|
432
|
425
|
const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
|
|
@@ -439,7 +432,7 @@ let listObj = {
|
439
|
432
|
itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
|
440
|
433
|
var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
|
441
|
434
|
$.each(ids, function(idx, rowId) {
|
442
|
|
- $(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlReqDt', '', ITP_GRID_COL_STYLE.link);
|
|
435
|
+ $(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
|
443
|
436
|
});
|
444
|
437
|
},
|
445
|
438
|
onPaging: function(action) {
|
|
@@ -487,15 +480,23 @@ let viewObj = {
|
487
|
480
|
$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val(result.brandId);
|
488
|
481
|
$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STORE_ID').val(result.storeId);
|
489
|
482
|
$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
|
|
483
|
+ $('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_RCPT_YN').val(result.rcptYn);
|
490
|
484
|
|
491
|
485
|
$('#ITP_FORM_LOANMNG03010_VIEW .fnBrandNm').text(result.brandNm);
|
492
|
486
|
$('#ITP_FORM_LOANMNG03010_VIEW .fnStoreNm').text(result.storeNm);
|
493
|
487
|
$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqDt').text(result.sttlReqDt);
|
|
488
|
+ $('#ITP_FORM_LOANMNG03010_VIEW .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);
|
494
|
489
|
$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlStNm').text(result.sttlStNm);
|
495
|
|
- $('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegDttm').text(result.sysRegDttm);
|
496
|
|
- $('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegNm').text(result.sysRegNm);
|
|
490
|
+ // $('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegDttm').text(result.sysRegDttm);
|
|
491
|
+ $('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegNm').text(result.sysRegNm + ' (' + result.sysRegDttm + ')');
|
497
|
492
|
$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));
|
498
|
|
- $('#ITP_FORM_LOANMNG03010_VIEW .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
|
|
493
|
+ $('#ITP_FORM_LOANMNG03010_VIEW .fnUseAmtTotal').text(itp_fn_number_comma(result.useAmtTotal));
|
|
494
|
+
|
|
495
|
+ if(result.rcptYn == 'Y') { // 수납여부
|
|
496
|
+ $('#ITP_BTN_LOANMNG03010_PAYMENT').hide();
|
|
497
|
+ } else {
|
|
498
|
+ $('#ITP_BTN_LOANMNG03010_PAYMENT').show();
|
|
499
|
+ }
|
499
|
500
|
|
500
|
501
|
// 리스트 조회
|
501
|
502
|
viewObj.grid.init();
|