whakdo963 лет назад: 2
Родитель
Сommit
bd1f05ca68

+ 8 - 4
bin/src/main/webapp/app/oper/OPER06010.html

@@ -50,8 +50,9 @@
50 50
 						<div class="col-xs-12">
51 51
 							<form id="ITP_FORM_OPER06010_DETAIL" class="form-horizontal">
52 52
 								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_VIEW_CD" name="viewCd" value="C">
53
-								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID" name="afflShopId" value="C">
54
-								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_BRAND_ID" name="brandId" value="C">
53
+								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID" name="afflShopId" value="">
54
+								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_BRAND_ID" name="brandId" value="">
55
+								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_FILE_NO" name="fileNo" value="">
55 56
 					
56 57
 								<section class="itp_form_sec">
57 58
 									<h4 class="itp_form_tit">브랜드 정보-신규</h4>
@@ -141,7 +142,10 @@
141 142
 													<label class="col-xs-12"></label>
142 143
 												</div>
143 144
 												<div class="col-xs-5 itp_in">
144
-													<button type="button" id="ITP_BTN_OPER06010_DETAIL_FILE_SEARCH" class="btn btn-primary btn-sm FFB" style="display: inline-block;"><i class="glyphicon"></i>파일선택</button>
145
+													<div class="fileupload-wrapper">
146
+														<!-- data-show-yn: 파일업로드를 할 수 있는 권한이 있는지 없는지.. -->
147
+														<div id="ITP_OPER06010_DETAIL_UPLOAD" data-show-yn="Y"></div>
148
+													</div>
145 149
 												</div>
146 150
 											</div>
147 151
 										</div>
@@ -171,7 +175,7 @@
171 175
 														<input type="text" id="ITP_FORM_OPER06010_DETAIL_ZIPNO" class="form-control itp_input" name="zipNo" value="" maxlength="6" readonly placeholder="우편번호">													
172 176
 													</div>
173 177
 													<div class="col-xs-2 itp_in" style="width:10%;">
174
-														<button type="button" id="ITP_FORM_OPER06010_DETAIL_FILE_SEARCH" class="btn btn-primary btn-sm FILE_SEARCH" style="margin:0 3px;">&nbsp;&nbsp;주소찾기&nbsp;&nbsp;</button>
178
+														<button type="button" id="ITP_FORM_OPER06010_DETAIL_ADRES_SCH" class="btn btn-primary btn-sm SHOW" style="margin: -1px 0px 0px 3px;">&nbsp;&nbsp;주소검색&nbsp;&nbsp;</button>
175 179
 													</div>
176 180
 													<div class="col-xs-4 itp_in" style="margin:0 5px;">
177 181
 														<input type="text" id="ITP_FORM_OPER06010_DETAIL_LOAD_ADDR" class="form-control itp_input" name="loadAddr" value="" placeholder="기본주소">													

+ 2 - 4
bin/src/main/webapp/js/app/oper/ITP_OPER01010.js

@@ -218,10 +218,8 @@ let pageObj = {
218 218
 		$('.itp_det_head').find('button[id^="ITP_BTN_OPER01010_"]').each(function(i) {
219 219
 			$(this).hide();
220 220
 		});
221
-		$('div[id$="_CONTAINER"]').each(function(i) {
222
-			if($(this).attr('id').startsWith('ITP_AJAX_OPER01010')) {
223
-				$(this).hide();
224
-			}
221
+		$('#ITP_TAB_OPER01010').find('div[id$="_CONTAINER"]').each(function(i) {
222
+			$(this).hide();
225 223
 		});
226 224
 		if(mode === 'LIST') { // 목록
227 225
 			$('#ITP_AJAX_OPER01010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -215,10 +215,8 @@ let pageObj = {
215 215
 		$('.itp_det_head').find('button[id^="ITP_BTN_OPER02010_"]').each(function(i) {
216 216
 			$(this).hide();
217 217
 		});
218
-		$('div[id$="_CONTAINER"]').each(function(i) {
219
-			if($(this).attr('id').startsWith('ITP_AJAX_OPER02010')) {
220
-				$(this).hide();
221
-			}
218
+		$('#ITP_TAB_OPER02010').find('div[id$="_CONTAINER"]').each(function(i) {
219
+			$(this).hide();
222 220
 		});
223 221
 		if(mode === 'LIST') { // 목록
224 222
 			$('#ITP_AJAX_OPER02010_LIST_CONTAINER').show();

+ 3 - 5
bin/src/main/webapp/js/app/oper/ITP_OPER03010.js

@@ -232,10 +232,8 @@ let pageObj = {
232 232
 		$('.itp_det_head').find('button[id^="ITP_BTN_OPER03010_"]').each(function(i) {
233 233
 			$(this).hide();
234 234
 		});
235
-		$('div[id$="_CONTAINER"]').each(function(i) {
236
-			if($(this).attr('id').startsWith('ITP_AJAX_OPER03010')) {
237
-				$(this).hide();
238
-			}
235
+		$('#ITP_TAB_OPER03010').find('div[id$="_CONTAINER"]').each(function(i) {
236
+			$(this).hide();
239 237
 		});
240 238
 		if(mode === 'LIST') { // 목록
241 239
 			$('#ITP_AJAX_OPER03010_LIST_CONTAINER').show();
@@ -280,7 +278,7 @@ let pageObj = {
280 278
 			addRow: function () {
281 279
 				// 팝업
282 280
 				var popFn = function(rowDataPop) {
283
-					// console.log(rowDataPop);
281
+					console.log(rowDataPop);
284 282
 					// 기존등록 데이터
285 283
 					var exists = '';
286 284
 					const rowData = $(OPER03010_DETAIL_GRID_ID).getRowData();

+ 6 - 8
bin/src/main/webapp/js/app/oper/ITP_OPER04010.js

@@ -134,10 +134,8 @@ let pageObj = {
134 134
         $('.itp_det_head').find('button[id^="ITP_BTN_OPER04010_"]').each(function(i) {
135 135
             $(this).hide();
136 136
         });
137
-        $('div[id$="_CONTAINER"]').each(function(i) {
138
-            if($(this).attr('id').startsWith('ITP_AJAX_OPER04010')) {
139
-                $(this).hide();
140
-            }
137
+        $('#ITP_TAB_OPER04010').find('div[id$="_CONTAINER"]').each(function(i) {
138
+            $(this).hide();
141 139
         });
142 140
         if(mode == 'LIST') { // 목록
143 141
             fn_show_btn_auth_array(['#ITP_BTN_OPER04010_SRH', '#ITP_BTN_OPER04010_NEWREG']);
@@ -145,9 +143,9 @@ let pageObj = {
145 143
         } else if(mode == 'ADD') { // 등록
146 144
             ITP_FORM_OPER04010_DETAIL_IS_DUPLICATE = true;
147 145
             $('#ITP_AJAX_OPER04010_DETAIL_CONTAINER').show();
148
-            fn_show_btn_auth_array(['#ITP_BTN_OPER04010_CANCELLIST', '#ITP_BTN_OPER03010_SAVE']);
146
+            fn_show_btn_auth_array(['#ITP_BTN_OPER04010_CANCELLIST', '#ITP_BTN_OPER04010_SAVE']);
149 147
 
150
-            $('#ITP_FORM_OPER04010_DETAIL_SALES_USER_ID').removeAttr('readonly');
148
+            $('#ITP_FORM_OPER04010_DETAIL_SALE_MGR_ID').removeAttr('readonly');
151 149
             $('#ITP_FORM_OPER04010_DETAIL_DUP').removeAttr('disabled');
152 150
 
153 151
             $('.itp_modify_dt').hide();
@@ -164,7 +162,7 @@ let pageObj = {
164 162
 
165 163
             $('.itp_modify_dt').show();
166 164
 
167
-            $('#ITP_FORM_OPER04010_DETAIL_SALES_USER_ID').attr('readonly', true);
165
+            $('#ITP_FORM_OPER04010_DETAIL_SALE_MGR_ID').attr('readonly', true);
168 166
             $('#ITP_FORM_OPER04010_DETAIL_DUP').attr('disabled', true);
169 167
         } else if(mode == 'VIEW') { // 보기
170 168
             $('#ITP_AJAX_OPER04010_VIEW_CONTAINER').show();
@@ -191,7 +189,7 @@ let listObj = {
191 189
         create: function() {
192 190
             pageObj.switchScreen('ADD');
193 191
             itp_fn_form_clear_validate(null, '#ITP_FORM_OPER04010_DETAIL');
194
-            kakaoMap.init('ITP_FORM_OPER04010_DETAIL_MAP', $('#ITP_FORM_OPER04010_DETAIL_STREET_ADDRESS').val());
192
+            kakaoMap.init('ITP_FORM_OPER04010_DETAIL', '');
195 193
         }
196 194
     },
197 195
     search: function() {

+ 11 - 12
bin/src/main/webapp/js/app/oper/ITP_OPER06010.js

@@ -103,9 +103,7 @@ let pageObj = {
103 103
     init: function () {
104 104
         this.ui.init();
105 105
         this.event.init();
106
-    },
107
-    brandInfo: function() {
108
-        return JSON.parse(sessionStorage.getItem('itp_manage_brand_info'));
106
+        this.fileUpload();
109 107
     },
110 108
     ui: {
111 109
         init: function () {
@@ -151,6 +149,7 @@ let pageObj = {
151 149
                         case 'ITP_BTN_OPER06010_SAVE'				: createObj.button.save(); 		break;	// 저장 버튼
152 150
                         case 'ITP_FORM_OPER06010_DETAIL_DUP'		: createObj.button.duplicate();	break;	// 중복체크
153 151
                         case 'ITP_BTN_OPER06010_RESET_PW'			: createObj.button.resetPass();	break;	// 상세:비밀번호 초기화
152
+                        case 'ITP_FORM_OPER06010_DETAIL_ADRES_SCH'	: createObj.button.address();	break;	// 신규등록 주소 찾기
154 153
                         case 'ITP_BTN_OPER06010_DETAIL_ADDROW'		: afflShopObj.button.addRow();	break;	// 상세:추가버튼
155 154
                         case 'ITP_BTN_OPER06010_DETAIL_DELROW'		: afflShopObj.button.delRow();	break;	// 상세:삭제버튼
156 155
                     }
@@ -174,10 +173,8 @@ let pageObj = {
174 173
         $('.itp_det_head').find('button[id^="ITP_BTN_OPER06010_"]').each(function(i) {
175 174
             $(this).hide();
176 175
         });
177
-        $('div[id$="_CONTAINER"]').each(function(i) {
178
-            if($(this).attr('id').startsWith('ITP_AJAX_OPER06010')) {
179
-                $(this).hide();
180
-            }
176
+        $('#ITP_TAB_OPER06010').find('div[id$="_CONTAINER"]').each(function(i) {
177
+            $(this).hide();
181 178
         });
182 179
         if(mode == 'LIST') { // 목록
183 180
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_SRH', '#ITP_BTN_OPER06010_NEWREG']);
@@ -185,6 +182,7 @@ let pageObj = {
185 182
         } else if(mode == 'ADD') { // 등록
186 183
             ITP_FORM_OPER06010_DETAIL_IS_DUPLICATE = true;
187 184
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
185
+            fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE']);
188 186
 
189 187
             $('#ITP_FORM_OPER06010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
190 188
                 $(this).attr('id') === 'ITP_FORM_OPER06010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
@@ -193,9 +191,10 @@ let pageObj = {
193 191
                 }
194 192
             });
195 193
 
194
+            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_FILE_NO').val('');
196 195
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_CD').removeAttr('readonly');
197 196
             $('#ITP_FORM_OPER06010_DETAIL_DUP').removeAttr('disabled');
198
-
197
+            $('.fnBrandId').text('(자동부여)');
199 198
         } else if(mode == 'MODIFY') { // 수정
200 199
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
201 200
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE', '#ITP_BTN_OPER06010_RESET_PW']);
@@ -383,7 +382,7 @@ let modifyObj = {
383 382
         $('#ITP_FORM_OPER06010_DETAIL .fnChgDt').text(result.sysChgDttm);
384 383
 
385 384
         let locate = result.addr1 + ' ' + result.addr2;
386
-        kakaoMap.init('ITP_FORM_OPER06010_DETAIL_MAP', locate);
385
+        kakaoMap.init('ITP_FORM_OPER06010_DETAIL', locate);
387 386
 
388 387
     }
389 388
 };
@@ -392,8 +391,8 @@ let modifyObj = {
392 391
 let createObj = {
393 392
     init: function () {
394 393
         pageObj.fileUpload();
395
-        $('#ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(pageObj.brandInfo().brandId);
396
-        kakaoMap.init('ITP_FORM_OPER06010_DETAIL_MAP', '');
394
+        $('#ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(LOGIN_USER_INFO.brandId);
395
+        kakaoMap.init('ITP_FORM_OPER06010_DETAIL', '');
397 396
     },
398 397
     button: {
399 398
         address: function() {
@@ -407,7 +406,7 @@ let createObj = {
407 406
                     document.getElementById('ITP_FORM_OPER06010_DETAIL_HJ_DONG').value = !!data.hname ? data.hname : data.bname;
408 407
                     document.getElementById('ITP_FORM_OPER06010_DETAIL_BJ_DONG').value = data.bname;
409 408
 
410
-                    kakaoMap.init('ITP_FORM_OPER06010_DETAIL_MAP', data.roadAddress);
409
+                    kakaoMap.init('ITP_FORM_OPER06010_DETAIL', data.roadAddress);
411 410
                     document.getElementById('ITP_FORM_OPER06010_DETAIL_ADRES_DTL').focus();
412 411
                 }
413 412
             }).open();

+ 2 - 2
bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_APPL_SALES_USER_SCH.js

@@ -106,13 +106,13 @@ function itp_fn_BIZPOP_APPL_SALES_USER_SCH(parentPopFn, schParam, returnType) {
106 106
 				index: 'ST_CD', name: 'stCd',
107 107
 				label: '상태', //
108 108
 				width: '12', fixed: false, align: 'center',
109
-				sortable: false, hidden: false
109
+				sortable: false, hidden: true
110 110
 			},
111 111
 			{
112 112
 				index: 'ST_NM', name: 'stNm',
113 113
 				label: '상태', //
114 114
 				width: '12', fixed: false, align: 'center',
115
-				sortable: false, hidden: true
115
+				sortable: false, hidden: false
116 116
 			}
117 117
 		],
118 118
 		loadBeforeSend: function(jqXHR) {

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO01010.js

@@ -174,10 +174,8 @@ let pageObj = {
174 174
         $('.itp_det_head').find('button[id^="ITP_BTN_STINFO01010_"]').each(function(i) {
175 175
             $(this).hide();
176 176
         });
177
-        $('div[id$="_CONTAINER"]').each(function(i) {
178
-            if($(this).attr('id').startsWith('ITP_AJAX_STINFO01010')) {
179
-                $(this).hide();
180
-            }
177
+        $('#ITP_TABSTINFO01010').find('div[id$="_CONTAINER"]').each(function(i) {
178
+            $(this).hide();
181 179
         });
182 180
         if(mode == 'LIST') { // 목록
183 181
             $('#ITP_AJAX_STINFO01010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO02010.js

@@ -207,10 +207,8 @@ let pageObj = {
207 207
 		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO02010_"]').each(function(i) {
208 208
 			$(this).hide();
209 209
 		});
210
-		$('div[id$="_CONTAINER"]').each(function(i) {
211
-			if($(this).attr('id').startsWith('ITP_AJAX_STINFO02010')) {
212
-				$(this).hide();
213
-			}
210
+		$('#ITP_TABSTINFO02010').find('div[id$="_CONTAINER"]').each(function(i) {
211
+			$(this).hide();
214 212
 		});
215 213
 		if(mode == 'LIST') { // 목록
216 214
 			$('#ITP_AJAX_STINFO02010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO03010.js

@@ -224,10 +224,8 @@ let pageObj = {
224 224
 		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO03010_"]').each(function(i) {
225 225
 			$(this).hide();
226 226
 		});
227
-		$('div[id$="_CONTAINER"]').each(function(i) {
228
-			if($(this).attr('id').startsWith('ITP_AJAX_STINFO03010')) {
229
-				$(this).hide();
230
-			}
227
+		$('#ITP_TABSTINFO03010').find('div[id$="_CONTAINER"]').each(function(i) {
228
+			$(this).hide();
231 229
 		});
232 230
 		if(mode == 'LIST') { // 목록
233 231
 			fn_show_btn_auth_array(['#ITP_BTN_STINFO03010_SRH', '#ITP_BTN_STINFO03010_NEWREG']);

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO04010.js

@@ -225,10 +225,8 @@ let pageObj = {
225 225
         $('.itp_det_head').find('button[id^="ITP_BTN_STINFO04010_"]').each(function(i) {
226 226
             $(this).hide();
227 227
         });
228
-        $('div[id$="_CONTAINER"]').each(function(i) {
229
-            if($(this).attr('id').startsWith('ITP_AJAX_STINFO04010')) {
230
-                $(this).hide();
231
-            }
228
+        $('#ITP_TABSTINFO04010').find('div[id$="_CONTAINER"]').each(function(i) {
229
+            $(this).hide();
232 230
         });
233 231
         if(mode == 'LIST') { // 목록
234 232
             $('#ITP_AJAX_STINFO04010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO05010.js

@@ -202,10 +202,8 @@ let pageObj = {
202 202
 		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO05010_"]').each(function(i) {
203 203
 			$(this).hide();
204 204
 		});
205
-		$('div[id$="_CONTAINER"]').each(function(i) {
206
-			if($(this).attr('id').startsWith('ITP_AJAX_STINFO05010')) {
207
-				$(this).hide();
208
-			}
205
+		$('#ITP_TABSTINFO05010').find('div[id$="_CONTAINER"]').each(function(i) {
206
+			$(this).hide();
209 207
 		});
210 208
 		if(mode == 'LIST') { // 목록
211 209
 			$('#ITP_AJAX_STINFO05010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO06010.js

@@ -96,10 +96,8 @@ let pageObj = {
96 96
 		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO06010_"]').each(function(i) {
97 97
 			$(this).hide();
98 98
 		});
99
-		$('div[id$="_CONTAINER"]').each(function(i) {
100
-			if($(this).attr('id').startsWith('ITP_AJAX_STINFO06010')) {
101
-				$(this).hide();
102
-			}
99
+		$('#ITP_TABSTINFO06010').find('div[id$="_CONTAINER"]').each(function(i) {
100
+			$(this).hide();
103 101
 		});
104 102
 		if(mode == 'LIST') { // 목록
105 103
 			$('#ITP_AJAX_STINFO06010_LIST_CONTAINER').show();

+ 2 - 4
bin/src/main/webapp/js/app/stinfo/ITP_STINFO07010.js

@@ -146,10 +146,8 @@ let pageObj = {
146 146
 		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO07010_"]').each(function(i) {
147 147
 			$(this).hide();
148 148
 		});
149
-		$('div[id$="_CONTAINER"]').each(function(i) {
150
-			if($(this).attr('id').startsWith('ITP_AJAX_STINFO07010')) {
151
-				$(this).hide();
152
-			}
149
+		$('#ITP_TABSTINFO07010').find('div[id$="_CONTAINER"]').each(function(i) {
150
+			$(this).hide();
153 151
 		});
154 152
 		if(mode == 'LIST') { // 목록
155 153
 			$('#ITP_AJAX_STINFO07010_LIST_CONTAINER').show();