Browse Source

입금, 미입금, 매출 합계정보 및 구매요청 합계금액 수정

dwkim 2 years ago
parent
commit
28846a05f8

+ 4 - 0
src/main/webapp/app/loanmng/LOANMNG02010.html

@@ -60,6 +60,10 @@
60 60
 						<div id="ITP_LOANMNG02010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
61 61
 							<div id="ITP_LOANMNG02010_jqGridView" class="itp_views fix"></div>
62 62
 							<button type="button" id="ITP_BTN_LOANMNG02010_EXCEL" class="btn btn-success btn-sm Excel" style="float:right;"><i class="glyphicon "></i>Excel</button>
63
+								<div id="ITP_BTN_LOANMNG02010_CALCULATE_FORM" style="display:initial; float:right; position:relative; top:0px; margin-right:70px;">
64
+                                    <label>입금금액 합계 :</label>
65
+                                    <input id="ITP_LOANMNG02010_DPST_TOT_SUM" style="width:100px; text-align: right;" readonly="readonly">
66
+                                </div>
63 67
 							<table id="ITP_LOANMNG02010_jqGrid"></table>
64 68
 							<div id="ITP_LOANMNG02010_jqGridPager"></div>
65 69
 							<div id="ITP_LOANMNG02010_jqGridEmpty" class="itp_no_data"></div>

+ 4 - 0
src/main/webapp/app/loanmng/LOANMNG03010.html

@@ -52,6 +52,10 @@
52 52
 						<div id="ITP_LOANMNG03010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
53 53
 							<div id="ITP_LOANMNG03010_jqGridView" class="itp_views fix"></div>
54 54
 							<button type="button" id="ITP_BTN_LOANMNG03010_EXCEL" class="btn btn-success btn-sm Excel" style="float:right;"><i class="glyphicon "></i>Excel</button>
55
+							<div id="ITP_BTN_LOANMNG03010_CALCULATE_FORM" style="display:initial; float:right; position:relative; top:0px; margin-right:70px;">
56
+                                    <label>미납금액 합계 :</label>
57
+                                    <input id="ITP_LOANMNG03010_UNPAId_TOT_SUM" style="width:100px; text-align: right;" readonly="readonly">
58
+                                </div>
55 59
 							<table id="ITP_LOANMNG03010_jqGrid"></table>
56 60
 							<div id="ITP_LOANMNG03010_jqGridPager"></div>
57 61
 							<div id="ITP_LOANMNG03010_jqGridEmpty" class="itp_no_data"></div>

+ 4 - 0
src/main/webapp/app/salesmng/SALESMNG01010.html

@@ -45,6 +45,10 @@
45 45
 						<div id="ITP_SALESMNG01010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
46 46
 							<div id="ITP_SALESMNG01010_jqGridView" class="itp_views fix"></div>
47 47
 							<button type="button" id="ITP_BTN_SALESMNG01010_EXCEL" class="btn btn-success btn-sm Excel" style="float:right;"><i class="glyphicon "></i>Excel</button>
48
+							<div id="ITP_BTN_SALESMNG01010_CALCULATE_FORM" style="display:initial; float:right; position:relative; top:0px; margin-right:70px;">
49
+                                    <label>총매출금액 합계 :</label>
50
+                                    <input id="ITP_SALESMNG01010_INCOME_TOT_SUM" style="width:100px; text-align: right;" readonly="readonly">
51
+                            </div>
48 52
 							<table id="ITP_SALESMNG01010_jqGrid"></table>
49 53
 							<div id="ITP_SALESMNG01010_jqGridPager"></div>
50 54
 							<div id="ITP_SALESMNG01010_jqGridEmpty" class="itp_no_data"></div>

+ 4 - 0
src/main/webapp/app/salesmng/SALESMNG02010.html

@@ -49,6 +49,10 @@
49 49
 						<div id="ITP_SALESMNG02010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
50 50
 							<div id="ITP_SALESMNG02010_jqGridView" class="itp_views fix"></div>
51 51
 							<button type="button" id="ITP_BTN_SALESMNG02010_EXCEL" class="btn btn-success btn-sm Excel" style="float:right;"><i class="glyphicon "></i>Excel</button>
52
+							<div id="ITP_BTN_SALESMNG02010_CALCULATE_FORM" style="display:initial; float:right; position:relative; top:0px; margin-right:70px;">
53
+                                    <label>총매출금액 합계 :</label>
54
+                                    <input id="ITP_SALESMNG02010_INCOME_TOT_SUM" style="width:100px; text-align: right;" readonly="readonly">
55
+                            </div>
52 56
 							<table id="ITP_SALESMNG02010_jqGrid"></table>
53 57
 							<div id="ITP_SALESMNG02010_jqGridPager"></div>
54 58
 							<div id="ITP_SALESMNG02010_jqGridEmpty" class="itp_no_data"></div>

+ 19 - 0
src/main/webapp/js/app/loanmng/ITP_LOANMNG02010.js

@@ -147,6 +147,13 @@ const gridColModel = {
147 147
 			label: "반려사유", 
148 148
 			width: '12', fixed: false, align: 'center',
149 149
 			sortable: false, hidden: false, classes: 'ui-ellipsis'
150
+		},
151
+		{
152
+			index: 'SEARCH_SUM', name: 'searchSum',
153
+			label: ITP_MSG_LOCALE.label.brandNm, //합계
154
+			width: '13', fixed: false, align: 'left',
155
+			minwidth: 200,
156
+			sortable: false, hidden: true, classes: 'ui-ellipsis'
150 157
 		}
151 158
 	]
152 159
 };
@@ -538,9 +545,21 @@ let listObj = {
538 545
 				loadComplete: function(data) {
539 546
 					itp_fn_grid_load_complete(data, LOANMNG02010_GRID_ID, true, 'number', 'LOANMNG02010', listObj.itp_LOANMNG02010_search, listObj.empty, true, data.gridRecords, true);
540 547
 					var ids = $(LOANMNG02010_GRID_ID).getDataIDs();
548
+					
549
+					let searchAmtSum = 0;
550
+					
551
+					if (ids.length > 0) {
552
+						var rowData = $(LOANMNG02010_GRID_ID).jqGrid('getRowData', ids[0]);
553
+						searchAmtSum = rowData.searchSum;
554
+					} 
555
+					$('#ITP_LOANMNG02010_DPST_TOT_SUM').val(itp_fn_number_comma(searchAmtSum));
556
+					
541 557
 					$.each(ids, function(idx, rowId) {
542 558
 						$(LOANMNG02010_GRID_ID).jqGrid('setCell', rowId, 'dpstDt', '', ITP_GRID_COL_STYLE.link);
543 559
 					});
560
+					
561
+					
562
+					
544 563
 				},
545 564
 				onPaging: function(action) {
546 565
 					itp_fn_grid_paging(LOANMNG02010_GRID_ID, action, param);

+ 14 - 0
src/main/webapp/js/app/loanmng/ITP_LOANMNG03010.js

@@ -118,6 +118,13 @@ const gridColModel = {
118 118
 			width: '10', fixed: false, align: 'right',
119 119
 			sortable: false, hidden: false, 
120 120
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
121
+		},
122
+		{
123
+			index: 'SEARCH_SUM', name: 'searchSum',
124
+			label: ITP_MSG_LOCALE.label.brandNm, //합계
125
+			width: '13', fixed: false, align: 'left',
126
+			minwidth: 200,
127
+			sortable: false, hidden: true, classes: 'ui-ellipsis'
121 128
 		}		
122 129
 	],
123 130
 	view: [
@@ -448,6 +455,13 @@ let listObj = {
448 455
 				loadComplete: function(data) {
449 456
 					itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
450 457
 					var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
458
+					let searchAmtSum = 0;
459
+					if (ids.length > 0) {
460
+						var rowData = $(LOANMNG03010_GRID_ID).jqGrid('getRowData', ids[0]);
461
+						searchAmtSum = rowData.searchSum;
462
+					} 
463
+					$('#ITP_LOANMNG03010_UNPAId_TOT_SUM').val(itp_fn_number_comma(searchAmtSum));
464
+					
451 465
 					$.each(ids, function(idx, rowId) {
452 466
 						$(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
453 467
 					});

+ 15 - 0
src/main/webapp/js/app/pomng/ITP_POMNG02010.js

@@ -158,6 +158,13 @@ const gridColModel = {
158 158
 			width: '13', fixed: false, align: 'left',
159 159
 			minwidth: 200,
160 160
 			sortable: false, hidden: false, classes: 'ui-ellipsis'
161
+		},
162
+		{
163
+			index: 'SEARCH_SUM', name: 'searchSum',
164
+			label: ITP_MSG_LOCALE.label.brandNm, //합계
165
+			width: '13', fixed: false, align: 'left',
166
+			minwidth: 200,
167
+			sortable: false, hidden: true, classes: 'ui-ellipsis'
161 168
 		}
162 169
 	],
163 170
 	detail: [
@@ -636,11 +643,19 @@ let listObj = {
636 643
 					itp_fn_grid_load_complete(data, POMNG02010_GRID_ID, true, 'number', 'POMNG02010', listObj.itp_POMNG02010_search, listObj.empty, true, data.gridRecords, true);
637 644
 					var ids = $(POMNG02010_GRID_ID).getDataIDs();
638 645
 					let pchReqTotalAmtSum = 0;
646
+					
647
+					if (ids.length > 0) {
648
+						var rowData = $(POMNG02010_GRID_ID).jqGrid('getRowData', ids[0]);
649
+						pchReqTotalAmtSum = rowData.searchSum;
650
+					} 
651
+					$('#ITP_POMNG02010_REQ_TOTAL_AMT_SUM').val(itp_fn_number_comma(pchReqTotalAmtSum));
652
+					/*
639 653
 					for (var i = 0; i < ids.length; i++) {
640 654
 						var rowData = $(POMNG02010_GRID_ID).jqGrid('getRowData', ids[i]);
641 655
 						pchReqTotalAmtSum = pchReqTotalAmtSum + Number(rowData.pchReqTotalAmt);
642 656
 					}
643 657
 					$('#ITP_POMNG02010_REQ_TOTAL_AMT_SUM').val(itp_fn_number_comma(pchReqTotalAmtSum));
658
+					*/
644 659
 					$.each(ids, function(idx, rowId) {
645 660
 						$(POMNG02010_GRID_ID).jqGrid('setCell', rowId, 'pchReqUnqNo', '', ITP_GRID_COL_STYLE.link);
646 661
 					});

+ 15 - 0
src/main/webapp/js/app/salesmng/ITP_SALESMNG01010.js

@@ -106,6 +106,13 @@ const gridColModel = {
106 106
 			width: '10', fixed: false, align: 'right',
107 107
 			sortable: false, editable: false, edittype: 'text', 
108 108
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
109
+		},		
110
+		{
111
+			index: 'SEARCH_SUM', name: 'searchSum',
112
+			label: ITP_MSG_LOCALE.label.brandNm, //합계
113
+			width: '13', fixed: false, align: 'left',
114
+			minwidth: 200,
115
+			sortable: false, hidden: true, classes: 'ui-ellipsis'
109 116
 		}
110 117
 	]
111 118
 };
@@ -319,6 +326,14 @@ let listObj = {
319 326
 				loadComplete: function(data) {
320 327
 					itp_fn_grid_load_complete(data, SALESMNG01010_GRID_ID, true, 'number', 'SALESMNG01010', listObj.itp_SALESMNG01010_search, listObj.empty, true, data.gridRecords, true);
321 328
 					var ids = $(SALESMNG01010_GRID_ID).getDataIDs();
329
+					
330
+					let searchAmtSum = 0;
331
+					if (ids.length > 0) {
332
+						var rowData = $(SALESMNG01010_GRID_ID).jqGrid('getRowData', ids[0]);
333
+						searchAmtSum = rowData.searchSum;
334
+					} 
335
+					$('#ITP_SALESMNG01010_INCOME_TOT_SUM').val(itp_fn_number_comma(searchAmtSum));
336
+					
322 337
 					$.each(ids, function(idx, rowId) {
323 338
 						$(SALESMNG01010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
324 339
 					});

+ 15 - 0
src/main/webapp/js/app/salesmng/ITP_SALESMNG02010.js

@@ -112,6 +112,13 @@ const gridColModel = {
112 112
 			width: '10', fixed: false, align: 'right',
113 113
 			sortable: false, editable: false, edittype: 'text', 
114 114
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
115
+		},		
116
+		{
117
+			index: 'SEARCH_SUM', name: 'searchSum',
118
+			label: ITP_MSG_LOCALE.label.brandNm, //합계
119
+			width: '13', fixed: false, align: 'left',
120
+			minwidth: 200,
121
+			sortable: false, hidden: true, classes: 'ui-ellipsis'
115 122
 		}
116 123
 	]
117 124
 };
@@ -325,6 +332,14 @@ let listObj = {
325 332
 				loadComplete: function(data) {
326 333
 					itp_fn_grid_load_complete(data, SALESMNG02010_GRID_ID, true, 'number', 'SALESMNG02010', listObj.itp_SALESMNG02010_search, listObj.empty, true, data.gridRecords, true);
327 334
 					var ids = $(SALESMNG02010_GRID_ID).getDataIDs();
335
+					
336
+					let searchAmtSum = 0;
337
+					if (ids.length > 0) {
338
+						var rowData = $(SALESMNG02010_GRID_ID).jqGrid('getRowData', ids[0]);
339
+						searchAmtSum = rowData.searchSum;
340
+					} 
341
+					$('#ITP_SALESMNG02010_INCOME_TOT_SUM').val(itp_fn_number_comma(searchAmtSum));
342
+					
328 343
 					$.each(ids, function(idx, rowId) {
329 344
 						$(SALESMNG02010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
330 345
 					});