Selaa lähdekoodia

발주관리-구매발주생성 그리드 열 색상강조 테스트

yhl88 2 vuotta sitten
vanhempi
commit
89bcf02d3f

+ 1 - 3
src/main/webapp/app/pomng/POMNG02010.html

@@ -22,9 +22,7 @@
22 22
 									<input type="hidden" id="ITP_FORM_POMNG02010_DETAIL_SSTORE_ID" name="sstoreId" value="">
23 23
 									<div class="form-group">
24 24
 										<div class="col-xs-2 itp_ip itp_noMar">
25
-											<select id="ITP_FORM_POMNG04010_SERVICE_PCH_REQ_DT" class="form-control itp_input" name="servicePchReqDt">
26
-												<option value="A">생성일</option>											
27
-											</select>
25
+											<label>생성일 *</label>
28 26
 										</div>										
29 27
 										<div class="col-xs-3 itp_ip itp_noMar">
30 28
 											<div class="input-daterange input-group date">

+ 1 - 3
src/main/webapp/app/pomng/POMNG03010.html

@@ -22,9 +22,7 @@
22 22
 									<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_SSTORE_ID" name="sstoreId" value="">
23 23
 									<div class="form-group">
24 24
 										<div class="col-xs-2 itp_ip itp_noMar">
25
-											<select id="ITP_FORM_POMNG03010_SERVICE_DLV_REQ_DT" class="form-control itp_input" name="serviceDlvReqDt">
26
-												<option value="A">납기요청일*</option>											
27
-											</select>
25
+											<label>납기요청일 *</label>
28 26
 										</div>											
29 27
 										<div class="col-xs-3 itp_ip itp_noMar">
30 28
 											<div class="input-daterange input-group date">

+ 3 - 1
src/main/webapp/js/app/loanmng/ITP_LOANMNG04010.js

@@ -202,8 +202,10 @@ let viewObj = {
202 202
 		var limitAmt;
203 203
 		if(result.loanDvsn == 'LD01') { // 선불(충전)
204 204
 			limitAmt = result.chrgeLimitAmt;
205
+			$('#ITP_FORM_LOANMNG04010_VIEW .fnPosbLimitAmt').text(itp_fn_number_comma(result.acctBal - result.useAmtTotal)); // TODO 가용한도금액
205 206
 		} else if(result.loanDvsn == 'LD02') { // 후불(신용)
206
-			limitAmt = result.credtLimitAmt;				
207
+			limitAmt = result.credtLimitAmt;
208
+			$('#ITP_FORM_LOANMNG04010_VIEW .fnPosbLimitAmt').text(itp_fn_number_comma(limitAmt - result.useAmtTotal)); // TODO 가용한도금액
207 209
 		}
208 210
 		$('#ITP_FORM_LOANMNG04010_VIEW .fnCredtLimitAmt').text(itp_fn_number_comma(limitAmt));
209 211
 		$('#ITP_FORM_LOANMNG04010_VIEW .fnContDt').text(''); // TODO 계약기간

+ 6 - 0
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -834,6 +834,8 @@ let listObj = {
834 834
 			let param = $('#ITP_FORM_POMNG03010_SEARCH').serializeObject();
835 835
 			param.gridSize = $.jgrid.defaults.rowNum;
836 836
 			param.gridPage = $.jgrid.defaults.page;
837
+			console.log(111);
838
+			console.log(JSON.stringify(param));
837 839
 			$(POMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
838 840
 		},
839 841
 		pocreate: function(param) {
@@ -936,9 +938,13 @@ let listObj = {
936 938
 				loadComplete: function(data) {
937 939
 					itp_fn_grid_load_complete(data, POMNG03010_GRID_ID, true, 'number', 'POMNG03010', listObj.itp_POMNG03010_search, listObj.empty, true, data.gridRecords, true);
938 940
 					var ids = $(POMNG03010_GRID_ID).getDataIDs();
941
+					var css = {'background-color':'#FFCCCC'};
939 942
 					$.each(ids, function(idx, rowId) {
940 943
 						$(POMNG03010_GRID_ID).jqGrid('setCell', rowId, 'storeId', '', ITP_GRID_COL_STYLE.link);
944
+						$(POMNG03010_GRID_ID).jqGrid('setCell', rowId, 'dlvReqDt', '', css);
945
+						$(POMNG03010_GRID_ID).jqGrid('setCell', rowId, 'whsNm', '', css);
941 946
 					});
947
+					$(POMNG03010_GRID_ID).setSelection(1, true);
942 948
 				},
943 949
 				onPaging: function(action) {
944 950
 					itp_fn_grid_paging(POMNG03010_GRID_ID, action, param);