Procházet zdrojové kódy

모바일 디자인 적용

juney před 2 roky
rodič
revize
84579c15fd

+ 4 - 4
src/main/webapp/mobile/js/app/mloanmng/ITP_MLOANMNG02010.js

@@ -180,12 +180,12 @@ let mobContentObj = {
180 180
 					$li.find('.fnReqDt').text(item.reqDt);
181 181
 					$li.find('.fnDpstDt').text(item.dpstDt);
182 182
 					$li.find('.fnDpstAmt').text(CommonObj.currency.add(item.dpstAmt));
183
-					$li.find('.fnDpstNm').text(item.dpstNm);
183
+					$li.find('.fnDpstNm').text(CommonObj.nullToString(item.dpstNm));
184 184
 					$li.find('.fnDpstAuthDt').text(CommonObj.nullToString(item.dpstAuthDt));
185 185
 					$li.find('.fnDpstRjctDt').text(CommonObj.nullToString(item.dsptRjctDt));
186
-					$li.find('.fnRcvAcctNo').text(item.rcvAcctNo);
187
-					$li.find('.fnDpstBnkNm').text(item.dpstBnkNm);
188
-					$li.find('.fnDpstStNm').text(item.dpstStNm);
186
+					$li.find('.fnRcvAcctNo').text(CommonObj.nullToString(item.rcvAcctNo));
187
+					$li.find('.fnDpstBnkNm').text(CommonObj.nullToString(item.dpstBnkNm));
188
+					$li.find('.fnDpstStNm').text(CommonObj.nullToString(item.dpstStNm));
189 189
 					(fn_make_user_info.get('authTpCd') === '50') ? $li.find('.btn-dpst').hide() : (item.dpstStCd === 'DP01') ? $li.find('.btn-dpst').show() : $li.find('.btn-dpst').hide();
190 190
 					_this.rows.push(item);
191 191
 				});

+ 6 - 7
src/main/webapp/mobile/js/app/mpomng/ITP_MPOMNG06010.js

@@ -106,11 +106,11 @@ let mobContentObj = {
106 106
 		},
107 107
 		load: function() {
108 108
 			var _this = this;
109
-			this.isSearch = true;
110 109
 			var callbackFn = function(result) {
111 110
 				console.log(result);
112
-				_this.isSearch = false;
113
-				_this.totPage = result.gridTotal;
111
+				if(mobContentObj.list.listPage >= result.gridTotal) {
112
+					CommonObj.moreView('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA', false);
113
+				}
114 114
 				$.each(result.gridRows, function (i, item) {
115 115
 					$('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MPOMNG06010_LIST_ITEM_ROWCOPY').html());
116 116
 					var $li = $('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA .panel-group > .history_list2:last');
@@ -126,11 +126,10 @@ let mobContentObj = {
126 126
 					_this.rows.push(item);
127 127
 				});
128 128
 			};
129
-			var errFn = function() { _this.isSearch = false;};
130 129
 			const param = $('#ITP_FORM_MPOMNG06010_LIST_SEARCH').serializeObject();
131
-			param.gridPage = ++this.listPage;
132
-			param.gridSize = this.listSize;
133
-			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
130
+			param.gridPage = ++mobContentObj.list.listPage;
131
+			param.gridSize = mobile_list_size;
132
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
134 133
 		},
135 134
 		save: function() {
136 135
 			var _this = this;

+ 6 - 7
src/main/webapp/mobile/js/app/mpomng/ITP_MPOMNG07010.js

@@ -106,11 +106,11 @@ let mobContentObj = {
106 106
 		},
107 107
 		load: function() {
108 108
 			var _this = this;
109
-			this.isSearch = true;
110 109
 			var callbackFn = function(result) {
111 110
 				console.log(result);
112
-				_this.isSearch = false;
113
-				_this.totPage = result.gridTotal;
111
+				if(mobContentObj.list.listPage >= result.gridTotal) {
112
+					CommonObj.moreView('#ITP_LIST_MPOMNG07010_LIST_ITEM_AREA', false);
113
+				}
114 114
 				$.each(result.gridRows, function (i, item) {
115 115
 					$('#ITP_LIST_MPOMNG07010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MPOMNG07010_LIST_ITEM_ROWCOPY').html());
116 116
 					var $li = $('#ITP_LIST_MPOMNG07010_LIST_ITEM_AREA .panel-group > .item-row:last');
@@ -127,11 +127,10 @@ let mobContentObj = {
127 127
 					_this.rows.push(item);
128 128
 				});
129 129
 			};
130
-			var errFn = function() { _this.isSearch = false;};
131 130
 			const param = $('#ITP_FORM_MPOMNG07010_LIST_SEARCH').serializeObject();
132
-			param.gridPage = ++this.listPage;
133
-			param.gridSize = this.listSize;
134
-			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
131
+			param.gridPage = ++mobContentObj.list.listPage;
132
+			param.gridSize = mobile_list_size;
133
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
135 134
 		}
136 135
 	}
137 136
 };