Browse Source

21221110 오류사항 수정

juney 2 years ago
parent
commit
66fcdce67d
43 changed files with 1305 additions and 820 deletions
  1. 9 9
      bin/src/main/webapp/app/oper/OPER02010.html
  2. 27 54
      bin/src/main/webapp/app/oper/OPER06010.html
  3. 5 0
      bin/src/main/webapp/app/ordmng/ORDMNG03010.html
  4. 22 22
      bin/src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html
  5. 0 32
      bin/src/main/webapp/app/popup/biz/BIZPOP_STTL_REJECT_REASON.html
  6. 1 1
      bin/src/main/webapp/css/style.css
  7. 65 54
      bin/src/main/webapp/js/app/oper/ITP_OPER02010.js
  8. 21 123
      bin/src/main/webapp/js/app/oper/ITP_OPER06010.js
  9. 0 47
      bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js
  10. 0 53
      bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_STTL_REJECT_REASON.js
  11. 2 2
      src/main/webapp/app/oper/OPER02010.html
  12. 14 17
      src/main/webapp/app/oper/OPER06010.html
  13. 18 20
      src/main/webapp/app/ordmng/ORDMNG01010.html
  14. 5 0
      src/main/webapp/app/ordmng/ORDMNG03010.html
  15. 7 8
      src/main/webapp/app/pomng/POMNG01010.html
  16. 31 34
      src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html
  17. 18 22
      src/main/webapp/app/settmng/SETTMNG03010.html
  18. 2 2
      src/main/webapp/app/stinfo/STINFO03010.html
  19. 2 0
      src/main/webapp/app/vendinfo/VENDINFO01010.html
  20. 3 3
      src/main/webapp/css/style.css
  21. 1 7
      src/main/webapp/js/app/loanmng/ITP_LOANMNG01010.js
  22. 3 9
      src/main/webapp/js/app/loanmng/ITP_LOANMNG02010.js
  23. 0 15
      src/main/webapp/js/app/loanmng/ITP_LOANMNG03010.js
  24. 16 1
      src/main/webapp/js/app/locales/locale-ko.js
  25. 2 2
      src/main/webapp/js/app/oper/ITP_OPER02010.js
  26. 471 0
      src/main/webapp/js/app/ordmng/ITP_ORDMNG01010.js
  27. 6 5
      src/main/webapp/js/app/ordmng/ITP_ORDMNG03010.js
  28. 56 85
      src/main/webapp/js/app/pomng/ITP_POMNG01010.js
  29. 1 0
      src/main/webapp/js/app/popup/biz/ITP_BIZPOP_AFFL_SHOP.js
  30. 1 52
      src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js
  31. 18 6
      src/main/webapp/js/app/popup/biz/ITP_BIZPOP_WHS_LOCATION.js
  32. 0 15
      src/main/webapp/js/app/settmng/ITP_SETTMNG01010.js
  33. 1 1
      src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js
  34. 4 21
      src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js
  35. 156 22
      src/main/webapp/js/app/stinfo/ITP_STINFO01011.js
  36. 2 1
      src/main/webapp/js/app/stinfo/ITP_STINFO03010.js
  37. 1 1
      src/main/webapp/js/app/vendinfo/ITP_VENDINFO01010.js
  38. 4 4
      src/main/webapp/mobile/app/login.html
  39. 1 2
      src/main/webapp/mobile/app/mpomng/MPOMNG01010.html
  40. 31 20
      src/main/webapp/mobile/app/mpomng/MPOMNG02010.html
  41. 91 46
      src/main/webapp/mobile/css/style.css
  42. 1 0
      src/main/webapp/mobile/js/app/login.js
  43. 186 2
      src/main/webapp/mobile/js/app/main.js

+ 9 - 9
bin/src/main/webapp/app/oper/OPER02010.html

@@ -40,8 +40,8 @@
40 40
 										<div class="col-xs-3 itp_ip">
41 41
 											<div class="input-daterange input-group date">
42 42
 												<input type="text" id="ITP_FORM_OPER02010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="" readonly>
43
-												<!-- <span class="input-group-addon itp_date_to">~</span>
44
-												<input type="text" id="ITP_FORM_OPER02010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly> -->
43
+												<span class="input-group-addon itp_date_to">~</span>
44
+												<input type="text" id="ITP_FORM_OPER02010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly>
45 45
 											</div>
46 46
 										</div>
47 47
 										<div class="col-xs-5 itp_ip">
@@ -145,13 +145,13 @@
145 145
 												</div>
146 146
 											</div>
147 147
 										</div>
148
-										<div class="form-group colspan border">
148
+										<div class="form-group colspan">
149 149
 											<label class="col-xs-2 itp_lb">공지대상 *</label>
150 150
 											<div class="col-xs-4 itp_ip">
151 151
 												<div class="col-xs-2 itp_in">
152 152
 													<select id="ITP_FORM_OPER02010_DETAIL_TARGET_CD" data-select-code="TARGET_CD" data-check-required="empty" class="form-control itp_input" name="targetCd"></select>
153 153
 												</div>
154
-												<!--<div class="col-xs-7 itp_in" id="ITP_FORM_OPER02010_TARGET">
154
+												<div class="col-xs-7 itp_in" id="ITP_FORM_OPER02010_TARGET">
155 155
 													<label style="margin-left:5px;">포함 대상</label>
156 156
 													<input id="ITP_FORM_OPER02010_DETAIL_BRAND" type="checkbox" class="itp_check"> 브랜드 대상
157 157
 													<input type="hidden" id="ITP_FORM_OPER02010_DETAIL_BRAND_CHK" name="brandChk" value="">
@@ -159,7 +159,7 @@
159 159
 													<input type="hidden" id="ITP_FORM_OPER02010_DETAIL_STORE_CHK" name="storeChk" value="">
160 160
 													<input id="ITP_FORM_OPER02010_DETAIL_SPPLY" type="checkbox" class="itp_check"> 공급사 대상
161 161
 													<input type="hidden" id="ITP_FORM_OPER02010_DETAIL_SPPLY_CHK" name="spplyChk" value="">
162
-												</div>-->
162
+												</div>
163 163
 											</div>
164 164
 										</div>
165 165
 									</div>
@@ -167,7 +167,7 @@
167 167
 							</form>
168 168
 						</div>
169 169
 					</div>
170
-					<!--<div class="itp_table fix">
170
+					<div class="itp_table fix">
171 171
 						<div class="itp_table_head fix" style="background:#f5f5f5;">
172 172
 							<h4 class="itp_table_tit">권한 정보 (* 공지대상이 특정 대상일 경우 추가 버튼 을 통해 사용자 등록 함)</h4>
173 173
 							<div class="pull-right itp_cicon">
@@ -181,7 +181,7 @@
181 181
 							<div id="ITP_OPER02010_DETAIL_jqGridPager"></div>
182 182
 							<div id="ITP_OPER02010_DETAIL_jqGridEmpty" class="itp_no_data"></div>
183 183
 						</div>
184
-					</div>-->
184
+					</div>
185 185
 				</div>
186 186
 				<div id="ITP_AJAX_OPER02010_VIEW_CONTAINER">
187 187
 					<div class="itp_form itp_type1 fix">
@@ -233,7 +233,7 @@
233 233
 						</div>
234 234
 					</div>
235 235
 
236
-					<!--<div class="itp_table fix">
236
+					<div class="itp_table fix">
237 237
 						<div class="itp_table_head fix">
238 238
 							<h4 class="itp_table_tit">* 공지대상이 특정 대상일 경구 추가 버큰을 통해 사용자  등록 함</h4>
239 239
 						</div>
@@ -244,7 +244,7 @@
244 244
 							<div id="ITP_OPER02010_VIEW_jqGridPager"></div>
245 245
 							<div id="ITP_OPER02010_VIEW_jqGridEmpty" class="itp_no_data"></div>
246 246
 						</div>
247
-					</div>-->
247
+					</div>
248 248
 				</div>
249 249
 			</div>
250 250
 		</article>

+ 27 - 54
bin/src/main/webapp/app/oper/OPER06010.html

@@ -17,19 +17,6 @@
17 17
 						<div class="itp_srh_border fix">
18 18
 							<div class="col-xs-12">
19 19
 								<form id="ITP_FORM_OPER06010_SEARCH" class="form-horizontal">
20
-									<input type="hidden" id="ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID" name="safflShopId" />
21
-									<div class="form-group">
22
-										<div class="col-xs-2 itp_ip itp_noMar">
23
-											<input type="text" id="ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM" class="form-control itp_input" name="safflShopNm" placeholder="가맹점" />
24
-										</div>
25
-										<div class="col-xs-1 itp_in" style="width:8%; padding:0px;">
26
-											<button type="button" id="ITP_BTN_OPER06010_SEARCH_AFFL_SHOP" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
27
-											<button type="button" id="ITP_BTN_OPER06010_DELETE_AFFL_SHOP" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
28
-										</div>
29
-										<div class="col-xs-2 itp_ip itp_noMar">
30
-											<select id="ITP_FORM_OPER06010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId"></select>
31
-										</div>
32
-									</div>
33 20
 									<div class="form-group">
34 21
 										<div class="col-xs-2 itp_ip itp_noMar">
35 22
 											<select id="ITP_FORM_OPER06010_SERVICE_BRAND_TYPE" data-select-code="BRAND_TYPE" class="form-control itp_input" name="sbrandType">
@@ -65,7 +52,7 @@
65 52
 								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_VIEW_CD" name="viewCd" value="C">
66 53
 								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID" name="afflShopId" value="">
67 54
 								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_BRAND_ID" name="brandId" value="">
68
-								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_FILE_NO" name="brandLogoFileNo" value="">
55
+								<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_FILE_NO" name="fileNo" value="">
69 56
 					
70 57
 								<section class="itp_form_sec">
71 58
 									<h4 class="itp_form_tit">브랜드 정보-신규</h4>
@@ -112,21 +99,8 @@
112 99
 												</div>
113 100
 											</div>
114 101
 										</div>
115
-									</div>
116
-									<!-- <div class="itp_form_in">
117
-											<div class="form-group">
118
-												<label class="col-xs-2 itp_lb">대표자명</label>
119
-												<div class="col-xs-10 itp_ip">
120
-													<div class="col-xs-2 itp_in" style="margin-left:5px;">
121
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_OWNER_NM" data-check-required="empty" class="form-control itp_input" name="ownerNm">
122
-													</div>
123
-													<div class="col-xs-5 itp_in" style="margin-top:5px;">
124
-													</div>
125
-												</div>
126
-											</div>
127
-										</div>
128
-									</div> -->
129
-									<!--<div class="itp_form_info">
102
+									</div>	
103
+									<div class="itp_form_info">	
130 104
 										<div class="itp_form_in">
131 105
 											<div class="form-group">
132 106
 												<label class="col-xs-2 itp_lb">비밀번호</label>
@@ -140,7 +114,7 @@
140 114
 												</div>
141 115
 											</div>
142 116
 										</div>
143
-									</div>-->
117
+									</div>
144 118
 									<div class="itp_form_in">
145 119
 										<div class="form-group">
146 120
 											<label class="col-xs-2 itp_lb">전화번호 *</label>
@@ -151,7 +125,8 @@
151 125
 												<!-- <button type="button" id="ITP_BTN_OPER06010_RESET_PW" class="btn btn-danger btn-xs PWC" style="margin: 3px 0px 0px 3px;">비밀번호 초기화</button> -->
152 126
 											</div>
153 127
 											<label class="col-xs-2 itp_lb"></label>
154
-											<div id="ITP_OPER06010_DETAIL_LOGO_FILE" class="col-xs-1 itp_in">
128
+											<div class="col-xs-1 itp_in">
129
+												<img src="/oqpo-view/images/naver.png" alt="로고 샘플" id="ITP_FORM_OPER06010_DETAIL_BRAND_LOGO "style="border:none; top:12px; left:12px; height:70px; width:85px; position:absolute;" class="form-control itp_input" name="brandLogo" >
155 130
 											</div>
156 131
 										</div>
157 132
 										<div class="form-group">
@@ -202,42 +177,38 @@
202 177
 											<label class="col-xs-2 itp_lb">PG사</label>
203 178
 											<div class="col-xs-4 itp_ip">
204 179
 												<div class="col-xs-8 itp_in">
205
-													<select id="ITP_FORM_OPER06010_DETAIL_PG_ID" data-select-code="PG_ID" class="form-control itp_input" name="pgId">
180
+													<select id="ITP_FORM_OPER06010_DETAIL_DPST_BNK_CD" data-select-code="BNK_CD" data-check-required="empty" class="form-control itp_input" name="bnkCd">
206 181
 													</select>
207 182
 												</div>
208 183
 											</div>
209 184
 										</div>
210
-									</div>
211
-									<div class="itp_form_pg">
212
-										<div class="itp_form_in">
213
-											<div class="form-group">
214
-												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
215
-												<div class="col-xs-4 itp_ip">
216
-													<div class="col-xs-7 itp_in">
217
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
218
-													</div>
185
+										<div class="form-group">
186
+											<label class="col-xs-2 itp_lb">가맹점 아이디 </label>
187
+											<div class="col-xs-4 itp_ip">
188
+												<div class="col-xs-7 itp_in">
189
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_OWAC_NM" data-check-required="empty" class="form-control itp_input" name="owacNm" value="" placeholder="가맹점 id">
219 190
 												</div>
220
-												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
221
-												<div class="col-xs-4 itp_ip">
222
-													<div class="col-xs-8 itp_in">
223
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_KEY" class="form-control itp_input" name="pgKey" value="" placeholder="PG 가맹점 key">
224
-													</div>
191
+											</div>
192
+											<label class="col-xs-2 itp_lb">가맹점 Key</label>
193
+											<div class="col-xs-4 itp_ip">
194
+												<div class="col-xs-8 itp_in">
195
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_OWAC_NM" data-check-required="empty" class="form-control itp_input" name="owacNm" value="" placeholder="가맹점 key">
225 196
 												</div>
226 197
 											</div>
227
-										</div>		
198
+										</div>
228 199
 									</div>
229 200
 									<div class="itp_form_in">
230 201
 										<div class="form-group border">
231 202
 											<label class="col-xs-2 itp_lb">주소</label>
232 203
 											<div class="col-xs-10 itp_ip">
233 204
 												<div class="col-xs-1 itp_in">
234
-													<input type="text" id="ITP_FORM_OPER06010_DETAIL_ZIPNO" data-check-required="empty" data-alert-required="ONLYCHK" data-alert-msg="address" class="form-control itp_input" name="zipNo" value="" maxlength="6" readonly placeholder="우편번호">
205
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_ZIPNO" class="form-control itp_input" name="zipNo" value="" maxlength="6" readonly placeholder="우편번호">
235 206
 												</div>
236 207
 												<div class="col-xs-1 itp_in">
237 208
 													<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>
238 209
 												</div>
239 210
 												<div class="col-xs-4 itp_in" style="margin-right: 5px; margin-left:20px;">
240
-													<input type="text" id="ITP_FORM_OPER06010_DETAIL_ADRES" data-check-required="empty" data-alert-required="ONLYCHK" data-alert-msg="address" class="form-control itp_input" name="addr1" value="" readonly placeholder="기본주소">
211
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_ADRES" class="form-control itp_input" name="addr1" value="" readonly placeholder="기본주소">
241 212
 												</div>
242 213
 												<div class="col-xs-4 itp_in">
243 214
 													<input type="text" id="ITP_FORM_OPER06010_DETAIL_ADRES_DTL" class="form-control itp_input" name="addr2" value="" placeholder="상세주소">
@@ -247,7 +218,7 @@
247 218
 												<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_LOTS_ADDRESS" value="" />
248 219
 												<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_STREET_ADDRESS" value="" />
249 220
 												<input type="hidden" name="latX" id="ITP_FORM_OPER06010_DETAIL_LAT" value="" />
250
-												<input type="hidden" name="longY" id="ITP_FORM_OPER06010_DETAIL_LNG" value="" />
221
+												<input type="hidden" name="latY" id="ITP_FORM_OPER06010_DETAIL_LNG" value="" />
251 222
 												<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_HJ_DONG" value="" />
252 223
 												<input type="hidden" id="ITP_FORM_OPER06010_DETAIL_BJ_DONG" value="" />
253 224
 												<div id="ITP_FORM_OPER06010_DETAIL_MAP" style="margin-top:30px; width:700px; height:400px;"></div>
@@ -322,7 +293,9 @@
322 293
 												<div class="col-xs-5 itp_in fnTelNo"></div>
323 294
 											</div>
324 295
 											<label class="col-xs-2 itp_lb"></label>
325
-											<div id="ITP_OPER06010_VIEW_LOGO_FILE" class="col-xs-1 itp_ip">
296
+											<div class="col-xs-1 itp_ip">
297
+												<img src="/oqpo-view/images/naver.png" alt="로고 샘플" style="border:none; top:12px; left:12px; height:100px; width:125px; position:absolute;" class="form-control itp_input" name="fnBrandLogo" >
298
+												<img src="/oqpo-view/images/naver.png" alt="로고 샘플" style="border:none; top:12px; left:12px; height:100px; width:125px; position:absolute;" class="form-control itp_input" name="fnBrandLogo2" >
326 299
 											</div>
327 300
 										</div>
328 301
 										<div class="form-group">
@@ -354,17 +327,17 @@
354 327
 											</div>
355 328
 											<label class="col-xs-2 itp_lb">PG사</label>
356 329
 											<div class="col-xs-4 itp_ip">
357
-												<div class="col-xs-12 itp_in fn fnPgId"></div>
330
+												<div class="col-xs-12 itp_in fn"></div>
358 331
 											</div>
359 332
 										</div>	
360 333
 										<div class="form-group">
361 334
 											<label class="col-xs-2 itp_lb">가맹점 아이디 </label>
362 335
 											<div class="col-xs-4 itp_ip">
363
-												<div class="col-xs-12 itp_in fn fnPgAfflId"></div>
336
+												<div class="col-xs-12 itp_in fn"></div>
364 337
 											</div>
365 338
 											<label class="col-xs-2 itp_lb">가맹점 Key</label>
366 339
 											<div class="col-xs-4 itp_ip">
367
-												<div class="col-xs-12 itp_in fn fnPgKey"></div>
340
+												<div class="col-xs-12 itp_in fn"></div>
368 341
 											</div>
369 342
 										</div>
370 343
 									</div>

+ 5 - 0
bin/src/main/webapp/app/ordmng/ORDMNG03010.html

@@ -7,6 +7,11 @@
7 7
 					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_ORDMNG03010_POPUP" class="btn btn-primary btn-sm IVP" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;납품서출력&nbsp;&nbsp;</button>
9 9
 				</div>
10
+				<div style="top:0px; text-align:center; font-size:20px;">
11
+					<span style="text-decoration:underline; font-weight:600;">테스트공급업체</span>
12
+					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
13
+					<button type="button" id="ITP_BTN_ORDMNG03010_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
14
+				</div>
10 15
 			</div>
11 16
 			<div class="itp_det_in">
12 17
 				<div id="ITP_AJAX_ORDMNG03010_LIST_CONTAINER">

+ 22 - 22
bin/src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html

@@ -12,7 +12,7 @@
12 12
 							<div class="col-xs-12 itp_form_inline">
13 13
 								<div class="form-horizontal fix">
14 14
 									<div class="col-xs-4 itp_in itp_pr">
15
-										<img src="" alt="로고 샘플" id="ITP_BIZPOP_DLV_STTMT_PRN_BRAND_LOGO "style="border:none; border-radius: 0; height:85px; width:85px; position:absolute; padding:0;" class="form-control itp_input fnItemImage" name="" >
15
+										<img src="/oqpo-view/images/naver.png" alt="로고 샘플" id="ITP_BIZPOP_DLV_STTMT_PRN_BRAND_LOGO "style="border:none; border-radius: 0; height:85px; width:85px; position:absolute; padding:0;" class="form-control itp_input" name="" >
16 16
 									</div>
17 17
 									<div class="pull-right itp_cicon">
18 18
 										<button type="button" class="btn btn-success btn-sm" id="ITP_BIZPOP_DLV_STTMT_PRN_BTN_SEARCH" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;출력&nbsp;&nbsp;</button>
@@ -23,7 +23,7 @@
23 23
 							<div class="col-xs-12 itp_form_inline">
24 24
 								<div class="col-xs-5"></div>
25 25
 								<div class="itp_title">
26
-									<label>납품 확인서</label>
26
+									<label>납품확인서</label>
27 27
 								</div>
28 28
 							</div>	
29 29
 							<div class="col-xs-12 itp_form_inline">
@@ -31,24 +31,23 @@
31 31
 									<div>
32 32
 										<label style="width:100px;">발행일</label>
33 33
 										<label>:</label>
34
-										<span class="fnDlvRegDt"></span>
34
+										<span class="fnDlvRegDt">2022.01.01</span>
35 35
 									</div>
36 36
 									<div>
37 37
 										<label style="width:100px;">납품확인번호</label>
38 38
 										<label>:</label>
39
-										<span class="fnDlvSttmtUnqNo"></span>
39
+										<span class="fnDlvSttmtUnqNo">2211020000002001</span>
40 40
 									</div>
41 41
 									<div>
42 42
 										<label style="width:100px;">납품일</label>
43 43
 										<label>:</label>
44
-										<span class="fnDlvRegDt"></span>
44
+										<span class="fnDlvRegDt">2022.12.31</span>
45 45
 									</div>
46 46
 									<div>
47 47
 										<label style="width:100px;">납품담당</label>
48 48
 										<label>:</label>
49
-										<span class="fnDlvMgrNm"></span>
50
-										<!-- js로 ()감싸기 -->
51
-										<span class="fnDlvMgrTelNo"></span> 
49
+										<span class="fnDlvMgrNm">홍길동</span>
50
+										(<span class="fnDlvMgrTelNo">010-2525-2525</span>)
52 51
 									</div>
53 52
 								</div>
54 53
 								<div class="col-xs-6">
@@ -62,7 +61,9 @@
62 61
 										<div class="itp_sign_header">
63 62
 											<label>납품확인일</label>
64 63
 										</div>
65
-										<div class="itp_sign_area fnDlvCnfmDt"></div>
64
+										<div class="itp_sign_area fnDlvCnfmDt">
65
+											2022.01.01
66
+										</div>
66 67
 									</div>
67 68
 								</div>
68 69
 							</div>	
@@ -71,15 +72,14 @@
71 72
 									<div>
72 73
 										<label style="width:100px;">납품 장소</label>
73 74
 										<label>:</label>
74
-										<!-- js로 ()감싸기 -->
75
-										<span style="margin:0px; " class="fnZipNo"></span>
76
-										<span class="fnLoadAddr"></span>
77
-										<span class="fnDtlAddr"></span>
75
+										(<span style="margin:0px; " class="fnZipNo">12345</span>)
76
+										<span class="fnLoadAddr">서울 송파구 문정동 100 ㅁㄴㄹㅇㅁㄴ</span>
77
+										<span class="fnDtlAddr">디 매장</span>
78 78
 									</div>
79 79
 									<div>
80 80
 										<label style="width:100px;">전화번호</label>
81 81
 										<label>:</label>
82
-										<span class="fnVndrTelNo"></span>
82
+										<span class="fnVndrTelNo">02-1234-1547</span>
83 83
 									</div>
84 84
 								</div>
85 85
 							</div>	
@@ -91,25 +91,25 @@
91 91
 									<div class="col-xs-11" style="padding:0; width:90%;">
92 92
 										<label class="col-xs-4">등록번호</label>
93 93
 										<div class="col-xs-8 itp_form_it">
94
-											<div class="col-xs-12 itp_in fnBsnsRegNo"></div>
94
+											<div class="col-xs-12 itp_in fnBsnsRegNo">215-58-584887</div>
95 95
 										</div>
96 96
 									</div>	
97 97
 									<div class="col-xs-11" style="padding:0; width:90%;">
98 98
 										<label class="col-xs-2">상호</label>
99 99
 										<div class="col-xs-8 itp_form_it">
100
-											<div class="col-xs-12 itp_in fnSpplyNm"></div>
100
+											<div class="col-xs-12 itp_in fnSpplyNm">등록업체명</div>
101 101
 										</div>
102 102
 									</div>
103 103
 									<div class="col-xs-11" style="padding:0; width:90%;">
104 104
 										<label class="col-xs-2">성명</label>
105 105
 										<div class="col-xs-8 itp_form_it">
106
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
106
+											<div class="col-xs-12 itp_in fnBrandNm">공길동</div>
107 107
 										</div>
108 108
 									</div>
109 109
 									<div class="col-xs-11" style="padding:0; width:90%;">
110 110
 										<label class="col-xs-2">주소</label>
111 111
 										<div class="col-xs-8 itp_form_it">
112
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
112
+											<div class="col-xs-12 itp_in fnBrandNm">서울 시송파구 ㄴㄻㄴㄹ</div>
113 113
 										</div>
114 114
 									</div>
115 115
 								</div>	
@@ -122,25 +122,25 @@
122 122
 									<div class="col-xs-11" style="padding:0; width:90%;">
123 123
 										<label class="col-xs-4">등록번호</label>
124 124
 										<div class="col-xs-8 itp_form_it">
125
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
125
+											<div class="col-xs-12 itp_in fnBrandNm">215-58-584887</div>
126 126
 										</div>
127 127
 									</div>	
128 128
 									<div class="col-xs-11" style="padding:0; width:90%;">
129 129
 										<label class="col-xs-2">상호</label>
130 130
 										<div class="col-xs-8 itp_form_it">
131
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
131
+											<div class="col-xs-12 itp_in fnBrandNm">등록업체명</div>
132 132
 										</div>
133 133
 									</div>
134 134
 									<div class="col-xs-11" style="padding:0; width:90%;">
135 135
 										<label class="col-xs-2">성명</label>
136 136
 										<div class="col-xs-8 itp_form_it">
137
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
137
+											<div class="col-xs-12 itp_in fnBrandNm">공길동</div>
138 138
 										</div>
139 139
 									</div>
140 140
 									<div class="col-xs-11" style="padding:0; width:90%;">
141 141
 										<label class="col-xs-2">주소</label>
142 142
 										<div class="col-xs-8 itp_form_it">
143
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
143
+											<div class="col-xs-12 itp_in fnBrandNm">서울 시송파구 ㄴㄻㄴㄹ</div>
144 144
 										</div>
145 145
 									</div>
146 146
 								</div>	

+ 0 - 32
bin/src/main/webapp/app/popup/biz/BIZPOP_STTL_REJECT_REASON.html

@@ -1,32 +0,0 @@
1
-<div id="ITP_BIZPOP_STTL_REJECT_REASON" class="modal itp_modal">
2
-	<div class="modal-dialog">
3
-		<div class="modal-content">
4
-			<div class="modal-header">
5
-				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
6
-				<h5 class="modal-title">정산반려</h5>
7
-			</div>
8
-			<div class="modal-body">
9
-				<div class="itp_form itp_type1 fix">
10
-					<div class="col-xs-12">
11
-						<div class="form-horizontal">
12
-							<form id="ITP_FORM_STTL_REJECT_REASON_POPUP">
13
-								<div class="form-group">
14
-									<label class="col-xs-2 itp_lb">반려사유</label>
15
-									<div class="col-xs-10 itp_ip">
16
-									<input type="text" id="ITP_FORM_STTL_REJECT_REASON_POPUP_STTL_RJCT_RSN" class="form-control itp_input" name="sttlRjctRsn" />
17
-									</div>									
18
-								</div>								
19
-							</form>
20
-						</div>
21
-					</div>
22
-				</div>
23
-			</div>
24
-			<div class="modal-footer">
25
-				<button type="button" id="ITP_BTN_STTL_REJECT_REASON_CLOSE_POP" class="btn btn-danger btn-sm CLB">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
26
-				<button type="button" id="ITP_BTN_STTL_REJECT_REASON_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;확인&nbsp;&nbsp;</button>
27
-			</div>
28
-		</div>
29
-	</div>
30
-
31
-	<div id="ITP_POPUP_JS"></div>
32
-</div>

+ 1 - 1
bin/src/main/webapp/css/style.css

@@ -698,7 +698,7 @@ _:-ms-fullscreen, :root .itp_logs {max-width: 1287px}
698 698
 #ITP_POPUP_CONTAINER .itp_form_info .itp_company_type label {width:35px; border:none; padding:10px;}
699 699
 #ITP_POPUP_CONTAINER .modal-body span{margin-right:7px;}
700 700
 #ITP_POPUP_CONTAINER .itp_form_info label {border:1px solid #000; background:#eee; margin:0; width:120px; height:42px; padding:10px 5px 10px 10px;}
701
-#ITP_POPUP_CONTAINER .itp_form_it {border:1px solid #000; height:42px; padding:12px 0 0 0;}
701
+#ITP_POPUP_CONTAINER .itp_form_it {border:1px solid #000; height:42px; padding-top:12px;}
702 702
 
703 703
 
704 704
 

+ 65 - 54
bin/src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -11,15 +11,15 @@ const OPER02010_GRID_LIST = '#ITP_OPER02010_jqGrid_list';
11 11
 const OPER02010_GRID_PAGER = '#ITP_OPER02010_jqGridPager';
12 12
 const OPER02010_GRID_EMPTY = '#ITP_OPER02010_jqGridEmpty';
13 13
 
14
-// const OPER02010_VIEW_GRID_ID = '#ITP_OPER02010_VIEW_jqGrid';
15
-// const OPER02010_VIEW_GRID_LIST = '#ITP_OPER02010_VIEW_jqGrid_list';
16
-// const OPER02010_VIEW_GRID_PAGER = '#ITP_OPER02010_VIEW_jqGridPager';
17
-// const OPER02010_VIEW_GRID_EMPTY = '#ITP_OPER02010_VIEW_jqGridEmpty';
18
-//
19
-// const OPER02010_DETAIL_GRID_ID = '#ITP_OPER02010_DETAIL_jqGrid';
20
-// const OPER02010_DETAIL_GRID_LIST = '#ITP_OPER02010_DETAIL_jqGrid_list';
21
-// const OPER02010_DETAIL_GRID_PAGER = '#ITP_OPER02010_DETAIL_jqGridPager';
22
-// const OPER02010_DETAIL_GRID_EMPTY = '#ITP_OPER02010_DETAIL_jqGridEmpty';
14
+const OPER02010_VIEW_GRID_ID = '#ITP_OPER02010_VIEW_jqGrid';
15
+const OPER02010_VIEW_GRID_LIST = '#ITP_OPER02010_VIEW_jqGrid_list';
16
+const OPER02010_VIEW_GRID_PAGER = '#ITP_OPER02010_VIEW_jqGridPager';
17
+const OPER02010_VIEW_GRID_EMPTY = '#ITP_OPER02010_VIEW_jqGridEmpty';
18
+
19
+const OPER02010_DETAIL_GRID_ID = '#ITP_OPER02010_DETAIL_jqGrid';
20
+const OPER02010_DETAIL_GRID_LIST = '#ITP_OPER02010_DETAIL_jqGrid_list';
21
+const OPER02010_DETAIL_GRID_PAGER = '#ITP_OPER02010_DETAIL_jqGridPager';
22
+const OPER02010_DETAIL_GRID_EMPTY = '#ITP_OPER02010_DETAIL_jqGridEmpty';
23 23
 
24 24
 let ITP_FORM_OPER02010_DETAIL_IS_WRITING = false;
25 25
 
@@ -81,7 +81,7 @@ const gridColModel = {
81 81
 			width: '10', fixed: false, align: 'center',
82 82
 			sortable: false, hidden: false
83 83
 		}
84
-	]/*,
84
+	],
85 85
 	detail: [
86 86
 		{
87 87
 			index: 'VIEW_CD', name: 'viewCd',
@@ -127,7 +127,7 @@ const gridColModel = {
127 127
 			width: '30', fixed: false, align: 'center',
128 128
 			sortable: false, editable: false, edittype: 'text'
129 129
 		}
130
-	]*/
130
+	]
131 131
 };
132 132
 
133 133
 /********************************************************
@@ -146,6 +146,7 @@ let pageObj = {
146 146
 	init: function () {
147 147
 		this.ui.init();
148 148
 		this.event.init();
149
+		this.fileUpload();
149 150
 	},
150 151
 	pageMode: '',
151 152
 	ui: {
@@ -167,8 +168,8 @@ let pageObj = {
167 168
 			// 조회일자 지정
168 169
 			var now = new Date();
169 170
 			$('#ITP_TAB_OPER02010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
170
-			$('#ITP_FORM_OPER02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now));
171
-			//$('#ITP_FORM_OPER02010_SEARCH_TO_DT').datepicker('setDate', new Date());
171
+			$('#ITP_FORM_OPER02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
172
+			$('#ITP_FORM_OPER02010_SEARCH_TO_DT').datepicker('setDate', new Date());
172 173
 		},
173 174
 		afflInfo: {
174 175
 			init: function() {
@@ -238,8 +239,8 @@ let pageObj = {
238 239
 						case 'ITP_BTN_OPER02010_CANCELLIST'			: createObj.button.cancel(); 	break;	// 취소/목록 버튼
239 240
 						case 'ITP_BTN_OPER00210_DELETE'				: 								break;	// 삭제 버튼
240 241
 						case 'ITP_BTN_OPER02010_SAVE'				: createObj.button.save(); 		break;	// 저장 버튼
241
-						// case 'ITP_BTN_OPER02010_DETAIL_ADDROW'		: pageObj.grid.button.addRow();	break;	// 상세:추가버튼
242
-						// case 'ITP_BTN_OPER02010_DETAIL_DELROW'		: pageObj.grid.button.delRow();	break;	// 상세:삭제버튼
242
+						case 'ITP_BTN_OPER02010_DETAIL_ADDROW'		: pageObj.grid.button.addRow();	break;	// 상세:추가버튼
243
+						case 'ITP_BTN_OPER02010_DETAIL_DELROW'		: pageObj.grid.button.delRow();	break;	// 상세:삭제버튼
243 244
 					}
244 245
 				});
245 246
 			});
@@ -250,17 +251,13 @@ let pageObj = {
250 251
 		//파일업로드(등록/수정화면)
251 252
 		var id = 'OPER02010';
252 253
 		$('#ITP_' + id + '_DETAIL_UPLOAD').empty();
253
-		$('#ITP_' + id + '_DETAIL_LOGO_FILE').empty();
254
-		var removeFn = (param) => {
255
-			$('#ITP_' + id + '_DETAIL_LOGO_FILE').empty();
256
-		};
257 254
 		const fileArgs = {
258 255
 			'fileNo': $('#ITP_FORM_' + id + '_DETAIL_FILE_NO').val(),
259 256
 			'viewCd': $('#ITP_FORM_' + id + '_DETAIL_VIEW_CD').val(),
260 257
 			'showYn': $('#ITP_' + id + '_DETAIL_UPLOAD').attr('data-show-yn'),
261 258
 			'fileId': '#ITP_FORM_' + id + '_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
262 259
 		};
263
-		itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'notice', true, false, id, fileArgs, removeFn);
260
+		itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'notice', true, false, id, fileArgs);
264 261
 	},
265 262
 	switchScreen: function(mode) {
266 263
 		pageObj.pageMode = mode;
@@ -302,7 +299,7 @@ let pageObj = {
302 299
 			$('#ITP_AJAX_OPER02010_VIEW_CONTAINER').show();
303 300
 			fn_show_btn_auth_array(['#ITP_BTN_OPER02010_MODIFY', '#ITP_BTN_OPER02010_CANCELLIST']);
304 301
 		}
305
-	}/*,
302
+	},
306 303
 	grid: {
307 304
 		init: function(mode) {
308 305
 			this.mode = mode;
@@ -375,7 +372,7 @@ let pageObj = {
375 372
 		unload : function() {
376 373
 			$.jgrid.gridUnload(this.gridId);
377 374
 		}
378
-	}*/
375
+	}
379 376
 };
380 377
 
381 378
 /*목록화면 Object*/
@@ -509,11 +506,16 @@ let viewObj = {
509 506
 		$('#ITP_FORM_OPER02010_VIEW .fnTargetNm').text(result.targetNm);
510 507
 		$('#ITP_FORM_OPER02010_VIEW_FILE_NO').val(result.fileNo); //파일번호 셋팅
511 508
 
512
-		itp_fn_attach_file.view('ITP_OPER02010_VIEW_UPLOAD', result.fileNoList
513
-			, 'form-control itp_input', 'border:none; top:0px; left:12px; height:100px; width:125px; position:absolute;');
509
+		//파일업로드(뷰화면)
510
+		$('#ITP_OPER02010_VIEW_UPLOAD').empty();
511
+		const fileArgs = {
512
+			'fileNo': $('#ITP_FORM_OPER02010_VIEW_FILE_NO').val(),
513
+			'viewCd': $('#ITP_FORM_OPER02010_VIEW_VIEW_CD').val()
514
+		};
515
+		itp_fn_set_file_upload('ITP_OPER02010_VIEW_UPLOAD', 'notice', true, false, 'OPER02010', fileArgs);
514 516
 
515 517
 		// 권한정보 리스트 조회
516
-		// pageObj.grid.init('VIEW');
518
+		pageObj.grid.init('VIEW');
517 519
 	}
518 520
 };
519 521
 
@@ -570,21 +572,27 @@ let modifyObj = {
570 572
 		}
571 573
 
572 574
 		//파일업로드(수정화면)
573
-		pageObj.fileUpload();
575
+		$('#ITP_OPER02010_DETAIL_UPLOAD').empty();
576
+		const fileArgs = {
577
+			'fileNo': $('#ITP_FORM_OPER02010_DETAIL_FILE_NO').val(),
578
+			'viewCd': $('#ITP_FORM_OPER02010_DETAIL_VIEW_CD').val(),
579
+			'showYn': $('#ITP_OPER02010_DETAIL_UPLOAD').attr('data-show-yn'),
580
+			'fileId': '#ITP_FORM_OPER02010_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
581
+		};
582
+		itp_fn_set_file_upload('ITP_OPER02010_DETAIL_UPLOAD', 'notice', true, false, 'OPERATION02010', fileArgs);
574 583
 
575 584
 		// 리스트 조회
576
-		// createObj.form.init();
577
-		// pageObj.grid.init('DETAIL');
585
+		createObj.form.init();
586
+		pageObj.grid.init('DETAIL');
578 587
 	}
579 588
 };
580 589
 
581 590
 /*신규화면 Object*/
582 591
 let createObj = {
583 592
 	init: function () {
584
-		pageObj.fileUpload();
585
-		// this.form.init();
593
+		this.form.init();
586 594
 	},
587
-	/*form: {
595
+	form: {
588 596
 		init: function () {
589 597
 			this.selectbox();
590 598
 			this.checkbox();
@@ -617,35 +625,38 @@ let createObj = {
617 625
 				$(this).next().val($(this).is(':checked') ? 'Y' : '');
618 626
 			});
619 627
 		}
620
-	},*/
628
+	},
621 629
 	button: {
622 630
 		save: function() {
623 631
 			const formId = '#ITP_FORM_OPER02010_DETAIL';
624 632
 			itp_fn_form_clear_validate(null, formId);
633
+			var vali_nticeNo = itp_fn_form_validate(formId, formId + '_NTICE_TITL', ['empty'], undefined);
634
+			var vali_nticeDesc = itp_fn_form_validate(formId, formId + '_NTICE_DESC', ['empty'], undefined);
635
+			var vali_targetCd = itp_fn_form_validate(formId, formId + '_TARGET_CD', ['empty'], undefined);
625 636
 
626
-			if (itp_fn_form_event.isValid(formId)) {
627
-				// let gridInsertData = [];
628
-				// let gridUpdateData = [];
629
-				// let gridDeleteData = [];
630
-				// const rowData = $(OPER02010_DETAIL_GRID_ID).getRowData();
631
-				// const keyValue = $(formId + '_USER_ID').val();
632
-				// $.each(rowData, function(key, value) {
633
-				// 	if (value.viewCd != 'R') {
634
-				// 		value.nticeNo = keyValue;
635
-				// 		if (value.viewCd == 'C') {
636
-				// 			gridInsertData.push(value);
637
-				// 		} else if (value.viewCd == 'U') {
638
-				// 			gridUpdateData.push(value);
639
-				// 		} else if (value.viewCd == 'D') {
640
-				// 			gridDeleteData.push(value);
641
-				// 		}
642
-				// 	}
643
-				// });
637
+			if (vali_nticeNo && vali_nticeDesc && vali_targetCd) {
638
+				let gridInsertData = [];
639
+				let gridUpdateData = [];
640
+				let gridDeleteData = [];
641
+				const rowData = $(OPER02010_DETAIL_GRID_ID).getRowData();
642
+				const keyValue = $(formId + '_USER_ID').val();
643
+				$.each(rowData, function(key, value) {
644
+					if (value.viewCd != 'R') {
645
+						value.nticeNo = keyValue;
646
+						if (value.viewCd == 'C') {
647
+							gridInsertData.push(value);
648
+						} else if (value.viewCd == 'U') {
649
+							gridUpdateData.push(value);
650
+						} else if (value.viewCd == 'D') {
651
+							gridDeleteData.push(value);
652
+						}
653
+					}
654
+				});
644 655
 				$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').attr('disabled', false);
645 656
 				let param = $(formId).serializeObject();
646
-				// param.gridInsertData = gridInsertData;
647
-				// param.gridUpdateData = gridUpdateData;
648
-				// param.gridDeleteData = gridDeleteData;
657
+				param.gridInsertData = gridInsertData;
658
+				param.gridUpdateData = gridUpdateData;
659
+				param.gridDeleteData = gridDeleteData;
649 660
 				// console.log(JSON.stringify(param));
650 661
 
651 662
 				var searhFn = function() {
@@ -689,7 +700,7 @@ let afflShopObj = {
689 700
 			$('#ITP_FORM_OPER02010_DETAIL_AFFL_SHOP_NM').val('');
690 701
 			$('select#ITP_FORM_OPER02010_DETAIL_BRAND_ID option').remove();
691 702
 			$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD option:eq(0)').prop('selected', true);
692
-			// $('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').trigger('change');
703
+			$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').trigger('change');
693 704
 		});
694 705
 	},
695 706
 	make: function() {

+ 21 - 123
bin/src/main/webapp/js/app/oper/ITP_OPER06010.js

@@ -36,10 +36,9 @@ const OPER06010_DETAIL_GRID_PAGER = '#ITP_OPER06010_DETAIL_jqGridPager';
36 36
 const OPER06010_DETAIL_GRID_EMPTY = '#ITP_OPER06010_DETAIL_jqGridEmpty';
37 37
 
38 38
 /*API URL*/
39
-let API_DETAIL_GRID_LIST    = '/api/brand/detail-grid-list';
40
-let API_DETAIL_INFO         = '/api/brand/info-brand';
41
-let API_DETAIL_SAVE         = '/api/brand/save-brand';
42
-let BRAND_POP_GRID_LIST 	= '/api/brand/pop-grid-list';
39
+let API_DETAIL_GRID_LIST = '/api/brand/detail-grid-list';
40
+let API_DETAIL_INFO = '/api/brand/info-brand';
41
+let API_DETAIL_SAVE = '/api/brand/save-brand';
43 42
 
44 43
 let ITP_FORM_OPER06010_DETAIL_IS_WRITING = false;
45 44
 
@@ -103,6 +102,7 @@ let pageObj = {
103 102
     init: function () {
104 103
         this.ui.init();
105 104
         this.event.init();
105
+        this.fileUpload();
106 106
     },
107 107
     ui: {
108 108
         init: function () {
@@ -120,15 +120,6 @@ let pageObj = {
120 120
                     fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
121 121
                 }
122 122
             });
123
-
124
-            itp_fn_form_event.onKeyup('#ITP_FORM_OPER06010_DETAIL');
125
-
126
-            // form alert message 주입
127
-            $('input[data-alert-required="ONLYCHK"]').each(function() {
128
-                if($(this).data('alert-msg') === 'address') {
129
-                    $(this).data('alert-msg', ITP_MSG_LOCALE.message.form.emptyAddr);
130
-                }
131
-            });
132 123
         },
133 124
         grid: function() {
134 125
             itp_fn_jqgrid_resize(OPER06010_GRID_ID, OPER06010_GRID_LIST, 'lg');
@@ -169,17 +160,13 @@ let pageObj = {
169 160
         //파일업로드(수정화면)
170 161
         var id = 'OPER06010';
171 162
         $('#ITP_' + id + '_DETAIL_UPLOAD').empty();
172
-        $('#ITP_' + id + '_DETAIL_LOGO_FILE').empty();
173
-        var removeFn = (param) => {
174
-            $('#ITP_' + id + '_DETAIL_LOGO_FILE').empty();
175
-        };
176 163
         const fileArgs = {
177 164
             'fileNo': $('#ITP_FORM_' + id + '_DETAIL_FILE_NO').val(),
178 165
             'viewCd': $('#ITP_FORM_' + id + '_DETAIL_VIEW_CD').val(),
179 166
             'showYn': $('#ITP_' + id + '_DETAIL_UPLOAD').attr('data-show-yn'),
180 167
             'fileId': '#ITP_FORM_' + id + '_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
181 168
         };
182
-        itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'brand', true, false, id, fileArgs, removeFn);
169
+        itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'notice', true, false, id, fileArgs);
183 170
     },
184 171
     switchScreen: function(mode) {
185 172
         $('.itp_det_head').find('button[id^="ITP_BTN_OPER06010_"]').each(function(i) {
@@ -191,14 +178,10 @@ let pageObj = {
191 178
         if(mode == 'LIST') { // 목록
192 179
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_SRH', '#ITP_BTN_OPER06010_NEWREG']);
193 180
             $('#ITP_AJAX_OPER06010_LIST_CONTAINER').show();
194
-            
195 181
         } else if(mode == 'ADD') { // 등록
196 182
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
197
-            
198
-			
199 183
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE']);
200 184
 
201
-            
202 185
             $('#ITP_FORM_OPER06010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
203 186
                 $(this).attr('id') === 'ITP_FORM_OPER06010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
204 187
                 if(elem.type === 'select') {
@@ -217,23 +200,10 @@ let pageObj = {
217 200
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_info').hide();
218 201
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').show();
219 202
 
220
-            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
221
-            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
222
-
223 203
             $('.fnBrandId').text('(자동부여)');
224
-            
225
-            //pg사아이디 선택시 보이게함
226
-            $('#ITP_FORM_OPER06010_DETAIL_PG_ID').on('change', function() {
227
-            	if($(this).val() === '') {
228
-                	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
229
-            	} else {
230
-                    $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
231
-            	}
232
-            });
233
-			
234 204
         } else if(mode == 'MODIFY') { // 수정
235 205
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
236
-            fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE']);
206
+            fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE', '#ITP_BTN_OPER06010_RESET_PW']);
237 207
 
238 208
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_ID').attr('readonly', true);
239 209
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_NM').attr('readonly', true);
@@ -245,8 +215,10 @@ let pageObj = {
245 215
             $('#ITP_FORM_OPER06010_DETAIL_DELETE_AFFL_SHOP').hide();
246 216
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_info').show();
247 217
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').hide();
218
+			
219
+			$('#ITP_BTN_OPER06010_RESET_PW').show();
220
+
248 221
 
249
-            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
250 222
         } else if(mode == 'VIEW') { // 보기
251 223
             $('#ITP_AJAX_OPER06010_VIEW_CONTAINER').show();
252 224
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_MODIFY', '#ITP_BTN_OPER06010_CANCELLIST']);
@@ -257,7 +229,6 @@ let pageObj = {
257 229
 /*목록화면 Object*/
258 230
 let listObj = {
259 231
     init: function () {
260
-        afflShopObj.init();
261 232
         this.grid.init();
262 233
     },
263 234
     itp_OPER06010_param: {},
@@ -268,14 +239,9 @@ let listObj = {
268 239
             let param = $('#ITP_FORM_OPER06010_SEARCH').serializeObject();
269 240
             param.gridSize = $.jgrid.defaults.rowNum;
270 241
             param.gridPage = $.jgrid.defaults.page;
271
-            console.log(JSON.stringify(param));
272 242
             $(OPER06010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
273 243
         },
274 244
         create: function() {
275
-            if($('#ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val() === '') {
276
-                itp_fn_modal_alert('가맹점 정보가 존재하지 않습니다.');
277
-                return;
278
-            }
279 245
             pageObj.switchScreen('ADD');
280 246
             itp_fn_form_clear_validate(null, '#ITP_FORM_OPER06010_DETAIL');
281 247
             // 권한정보 리스트 조회
@@ -383,8 +349,6 @@ let viewObj = {
383 349
         $('#ITP_FORM_OPER06010_VIEW .fnEmalAddr').text(result.emalAddr);
384 350
         $('#ITP_FORM_OPER06010_VIEW .fnDpstBnkCd').text(result.bnkCdNm);
385 351
         $('#ITP_FORM_OPER06010_VIEW .fnRcvAcctNo').text(result.acctNo);
386
-        $('#ITP_FORM_OPER06010_VIEW .fnBnkCd').text(result.bnkCdNm);
387
-        $('#ITP_FORM_OPER06010_VIEW .fnAcctNo').text(result.acctNo);
388 352
         $('#ITP_FORM_OPER06010_VIEW .fnOwacNm').text(result.owacNm);
389 353
         $('#ITP_FORM_OPER06010_VIEW .fnZipNo').text(result.zipNo);
390 354
         $('#ITP_FORM_OPER06010_VIEW .fnLoadAddr').text(result.addr1);
@@ -395,14 +359,6 @@ let viewObj = {
395 359
         $('#ITP_FORM_OPER06010_VIEW .fnChgDt').text(result.sysChgDttm);
396 360
         // $('#ITP_FORM_OPER06010_VIEW .fnBrandLogo').text(result.lastLoginDt);
397 361
 
398
-        $('#ITP_FORM_OPER06010_VIEW .fnPgId').text(result.pgId);
399
-        $('#ITP_FORM_OPER06010_VIEW .fnPgAfflId').text(result.pgAfflId);
400
-        $('#ITP_FORM_OPER06010_VIEW .fnPgKey').text(result.pgKey);
401
-
402
-        pageObj.fileUpload();
403
-        itp_fn_attach_file.view('ITP_OPER06010_VIEW_LOGO_FILE', result.fileLogNoList
404
-            , 'form-control itp_input', 'border:none; top:12px; left:12px; height:100px; width:125px; position:absolute;');
405
-
406 362
         let locate = result.addr1 + ' ' + result.addr2;
407 363
         kakaoMap.init('ITP_FORM_OPER06010_VIEW', locate);
408 364
 
@@ -447,20 +403,11 @@ let modifyObj = {
447 403
         $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_OWAC_NM').val(result.owacNm);
448 404
         $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_ZIPNO').val(result.zipNo);
449 405
         $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_ADRES').val(result.addr1);
450
-        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_ADRES_DTL').val(result.addr2);
451
-
452
-        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_PG_ID').val(result.pgId);
453
-        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID').val(result.pgAfflId);
454
-        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_PG_KEY').val(result.pgKey);
406
+        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER03010_DETAIL_ADRES_DTL').val(result.addr2);
455 407
 
456 408
         $('#ITP_FORM_OPER06010_DETAIL .fnAddDt').text(result.sysRegDttm);
457 409
         $('#ITP_FORM_OPER06010_DETAIL .fnChgDt').text(result.sysChgDttm);
458 410
 
459
-        $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_FILE_NO').val(result.brandLogoFileNo);
460
-        pageObj.fileUpload();
461
-        itp_fn_attach_file.view('ITP_OPER06010_DETAIL_LOGO_FILE', result.fileLogNoList
462
-            , 'form-control itp_input', 'border:none; top:12px; left:12px; height:100px; width:125px; position:absolute;');
463
-
464 411
         let locate = result.addr1 + ' ' + result.addr2;
465 412
         kakaoMap.init('ITP_FORM_OPER06010_DETAIL', locate);
466 413
 
@@ -491,12 +438,11 @@ let createObj = {
491 438
         },
492 439
         save: function() {
493 440
             const formId = '#ITP_FORM_OPER06010_DETAIL';
494
-            itp_fn_form_event.removeChar('#ITP_FORM_OPER06010_DETAIL');
495 441
             itp_fn_form_clear_validate(null, formId);
496 442
 
497
-            if (itp_fn_form_event.isValid(formId)) {
443
+            if (createObj.isValid(formId)) {
498 444
                 let param = $(formId).serializeObject();
499
-                console.log(JSON.stringify(param));
445
+                // console.log(JSON.stringify(param));
500 446
 
501 447
                 var searhFn = function() {
502 448
                     ITP_FORM_OPER06010_DETAIL_IS_WRITING = false;
@@ -518,64 +464,16 @@ let createObj = {
518 464
             }
519 465
         };
520 466
         fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
521
-    }
522
-};
523
-
524
-/*가맹점 Object*/
525
-let afflShopObj = {
526
-    init: function () {
527
-        this.action();
528
-        if(fn_make_user_info.get('authTpCd') === '30') {
529
-            this.afflInfo.setAfflShop();
530
-        }
531
-    },
532
-    action: function () {
533
-        var _this = this;
534
-        // 가맹점 조회 버튼 클릭
535
-        $('#ITP_BTN_OPER06010_SEARCH_AFFL_SHOP').one('click', function() {
536
-            _this.popup('L');
537
-        });
538
-        // 가맹점 텍스트 삭제 버튼 클릭
539
-        $('#ITP_BTN_OPER06010_DELETE_AFFL_SHOP').one('click', function() {
540
-            $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID').val('');
541
-            $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM').val('');
542
-            $('select#ITP_FORM_OPER06010_SEARCH_BRAND_ID option').remove();
543
-        });
544
-    },
545
-    afflInfo: {
546
-        setAfflShop: function() {
547
-            var _this = this;
548
-            this.afflShopId 	= fn_make_user_info.get('afflShopId');
549
-            this.afflShopNm 	= fn_make_user_info.get('afflShopNm');
550
-            $('#ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val(_this.afflShopId);
551
-            $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID').val(_this.afflShopId);
552
-            $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM').val(_this.afflShopNm);
553
-            $('#ITP_BTN_OPER06010_SEARCH_AFFL_SHOP').attr('disabled', true);
554
-            $('#ITP_BTN_OPER06010_DELETE_AFFL_SHOP').attr('disabled', true);
555
-
556
-            var callbackFn = (result) => {
557
-                var brandList = [];
558
-                $.each(result.gridRows, function(i, item) {
559
-                    brandList.push({'brandId': item.brandId, 'brandNm': item.brandNm});
560
-                });
561
-                fn_make_select_brand(brandList, 'ITP_FORM_OPER06010_SEARCH_BRAND_ID', true, '선택');
562
-            };
563
-            var param = {'afflShopId': _this.afflShopId};
564
-            fn_ajax_call(BRAND_POP_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
565
-        }
566 467
     },
567
-    popup: function (view) {
568
-        // 팝업
569
-        var popFn = function(rowDataPop) {
570
-            // console.log(rowDataPop);
571
-            if(rowDataPop.AFFL_SHOP) {
572
-                $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
573
-                $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
574
-            }
575
-            if(rowDataPop.AFFL_BRAND) {
576
-                fn_make_select_brand(rowDataPop.AFFL_BRAND, 'ITP_FORM_OPER06010_SEARCH_BRAND_ID', true, '선택');
468
+    isValid: function(formId) {
469
+        var isValid = false;
470
+        $(formId).find('input, select, checkbox, textarea').each(function(k) {
471
+            if($(this).data('check-required')) {
472
+                var arry = $(this).data('check-required').split(',');
473
+                isValid = itp_fn_form_validate(formId, '#' + $(this).attr('id'), arry, undefined);
474
+                if(!isValid) return false;
577 475
             }
578
-        };
579
-        fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
476
+        });
477
+        return isValid;
580 478
     }
581 479
 };

+ 0 - 47
bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js

@@ -138,50 +138,3 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, returnType) {
138 138
 	    }
139 139
 	}).navGrid(THIS_GIRD_PAGER, ITP_GRID_NAV_DEFAULTS.navGrid);
140 140
 };
141
-let viewObj = {
142
-		init: function (param) {
143
-				this.load(param);
144
-		},
145
-		load: function(param) {
146
-				fn_ajax_call(API_INFO_INV, param, this.callback, 'GET');
147
-		},
148
-		callback: function (result) {
149
-				console.log(result);
150
-				$('#ITP_POPUP_CONTAINER #ITP_POPUP_CONTAINER_ITEM_ID').val(result.itemId);
151
-				$('#ITP_POPUP_CONTAINER .fnPchPodrUnqNo').text(result.pchPodrUnqNo);
152
-				$('#ITP_POPUP_CONTAINER .fnItemClassMgntNo').text(result.itemClassMgntNo);
153
-				$('#ITP_POPUP_CONTAINER .fnItemId').text(result.itemId);
154
-				$('#ITP_POPUP_CONTAINER .fnItemTypeNm').text(result.itemTypeNm);
155
-				$('#ITP_POPUP_CONTAINER .fnItemNm').text(result.itemClassNm);
156
-				$('#ITP_POPUP_CONTAINER .fnImpDvsnNm').text(result.impDvsnNm);
157
-				$('#ITP_POPUP_CONTAINER .fnPodrPssblDvsn').text(result.podrPssblDvsnNm);
158
-				$('#ITP_POPUP_CONTAINER .fnUnit').text(result.unit);
159
-				$('#ITP_POPUP_CONTAINER .fnWeightUnit').text(result.weightUnit);
160
-				$('#ITP_POPUP_CONTAINER .fnVolumeUnit').text(result.volumeUnit);
161
-				$('#ITP_POPUP_CONTAINER .fnWidthUnit').text(result.widthUnit);
162
-				$('#ITP_POPUP_CONTAINER .fnHeightUnit').text(result.heightUnit);
163
-				$('#ITP_POPUP_CONTAINER .fnHighUnit').text(result.highUnit);
164
-				
165
-				$('#ITP_POPUP_CONTAINER .fnPchItemYn').text(result.pchItemYn);
166
-				$('#ITP_POPUP_CONTAINER .fnViewPchUnit').text(result.pchUnit);
167
-				$('#ITP_POPUP_CONTAINER .fnSaleItemYn').text(result.saleItemYn);
168
-				$('#ITP_POPUP_CONTAINER .fnSaleUnit').text(result.saleUnit);
169
-				$('#ITP_POPUP_CONTAINER .fnAssetInfo').text(result.assetInfo);
170
-				$('#ITP_POPUP_CONTAINER .fnStckUnit').text(result.stckUnit);
171
-				$('#ITP_POPUP_CONTAINER .fnWeight').text(result.weight);
172
-				$('#ITP_POPUP_CONTAINER .fnVolume').text(result.volume);
173
-				$('#ITP_POPUP_CONTAINER .fnWidth').text(result.width);
174
-				$('#ITP_POPUP_CONTAINER .fnHeight').text(result.height);
175
-				$('#ITP_POPUP_CONTAINER .fnHigh').text(result.high);
176
-				
177
-				$('#ITP_POPUP_CONTAINER .fnOneBoxQty').text(result.oneBoxQty);
178
-				$('#ITP_POPUP_CONTAINER .fnExpryYn').text(result.expryYn);
179
-				$('#ITP_POPUP_CONTAINER .fnExpryPeriod').text(result.expryPeriod);
180
-				$('#ITP_POPUP_CONTAINER .fnRtnPssblYn').text(result.rtnPssblYn);
181
-				$('#ITP_POPUP_CONTAINER .fnRtnDvsn').text(result.rtnDvsnNm);
182
-				// $('#ITP_POPUP_CONTAINER .fnItemImage').text(result.imageFileNoList);
183
-				$.each(result.imageFileNoList, function(index, item) {
184
-						$('#ITP_POPUP_CONTAINER .fnItemImage').append('<img src=" + item.filePath +" />');
185
-				});
186
-		}
187
-	};

+ 0 - 53
bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_STTL_REJECT_REASON.js

@@ -1,53 +0,0 @@
1
-require(['config'], function() {
2
-	require([
3
-		'jquery'
4
-	], function($) {
5
-
6
-	});
7
-});
8
-
9
-var popPageObj = {
10
-	init: function () {
11
-		this.button();
12
-		this.change();
13
-	},
14
-	parentPopFn: null,
15
-	args: null,
16
-	returnType: null,
17
-	button: function() {
18
-		$('#ITP_BTN_STTL_REJECT_REASON_CLOSE_POP').on('click', function () {
19
-			$('#ITP_BIZPOP_STTL_REJECT_REASON').modal('hide'); // 팝업닫기
20
-		});
21
-		$('#ITP_BTN_STTL_REJECT_REASON_CONFIRM_POP').on('click', function () {
22
-			popPageObj.fnRjctRsnConfirm();
23
-		});
24
-	}, 
25
-	change: function() {
26
-	}, 	
27
-	fnRjctRsnConfirm: function() {
28
-		const formId = '#ITP_FORM_STTL_REJECT_REASON_POPUP';
29
-		itp_fn_form_clear_validate(null, formId);
30
-		
31
-		var vali_sttlRjctRsn = itp_fn_form_validate(formId, formId + '_STTL_RJCT_RSN', ['empty'], undefined);
32
-		
33
-		if (vali_sttlRjctRsn) {		
34
-			var sttlRjctRsn = $('#ITP_FORM_STTL_REJECT_REASON_POPUP_STTL_RJCT_RSN').val();	
35
-			
36
-			popPageObj.parentPopFn(sttlRjctRsn);
37
-			$('#ITP_BIZPOP_STTL_REJECT_REASON').modal('hide'); // 팝업닫기
38
-		}
39
-	} 
40
-};
41
-
42
-function itp_fn_BIZPOP_STTL_REJECT_REASON(parentPopFn, args, returnType) {
43
-	$('#ITP_BIZPOP_STTL_REJECT_REASON').one('shown.bs.modal', function(e) {
44
-		itp_fn_fire_window_resize();
45
-	}).one('hidden.bs.modal', function(e) {
46
-		$('#ITP_BIZPOP_STTL_REJECT_REASON').remove();
47
-	}).modal('show');
48
-
49
-	popPageObj.parentPopFn = parentPopFn;
50
-	popPageObj.args = args;
51
-	popPageObj.returnType = returnType;
52
-	popPageObj.init();
53
-}

+ 2 - 2
src/main/webapp/app/oper/OPER02010.html

@@ -40,8 +40,8 @@
40 40
 										<div class="col-xs-3 itp_ip">
41 41
 											<div class="input-daterange input-group date">
42 42
 												<input type="text" id="ITP_FORM_OPER02010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="" readonly>
43
-												<!-- <span class="input-group-addon itp_date_to">~</span>
44
-												<input type="text" id="ITP_FORM_OPER02010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly> -->
43
+												<span class="input-group-addon itp_date_to">~</span>
44
+												<input type="text" id="ITP_FORM_OPER02010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly>
45 45
 											</div>
46 46
 										</div>
47 47
 										<div class="col-xs-5 itp_ip">

+ 14 - 17
src/main/webapp/app/oper/OPER06010.html

@@ -113,7 +113,8 @@
113 113
 											</div>
114 114
 										</div>
115 115
 									</div>
116
-									<!-- <div class="itp_form_in">
116
+									<div>
117
+										<div class="itp_form_in">
117 118
 											<div class="form-group">
118 119
 												<label class="col-xs-2 itp_lb">대표자명</label>
119 120
 												<div class="col-xs-10 itp_ip">
@@ -125,7 +126,7 @@
125 126
 												</div>
126 127
 											</div>
127 128
 										</div>
128
-									</div> -->
129
+									</div>
129 130
 									<!--<div class="itp_form_info">
130 131
 										<div class="itp_form_in">
131 132
 											<div class="form-group">
@@ -207,24 +208,20 @@
207 208
 												</div>
208 209
 											</div>
209 210
 										</div>
210
-									</div>
211
-									<div class="itp_form_pg">
212
-										<div class="itp_form_in">
213
-											<div class="form-group">
214
-												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
215
-												<div class="col-xs-4 itp_ip">
216
-													<div class="col-xs-7 itp_in">
217
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
218
-													</div>
211
+										<div class="form-group">
212
+											<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
213
+											<div class="col-xs-4 itp_ip">
214
+												<div class="col-xs-7 itp_in">
215
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
219 216
 												</div>
220
-												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
221
-												<div class="col-xs-4 itp_ip">
222
-													<div class="col-xs-8 itp_in">
223
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_KEY" class="form-control itp_input" name="pgKey" value="" placeholder="PG 가맹점 key">
224
-													</div>
217
+											</div>
218
+											<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
219
+											<div class="col-xs-4 itp_ip">
220
+												<div class="col-xs-8 itp_in">
221
+													<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_KEY" class="form-control itp_input" name="pgKey" value="" placeholder="PG 가맹점 key">
225 222
 												</div>
226 223
 											</div>
227
-										</div>		
224
+										</div>
228 225
 									</div>
229 226
 									<div class="itp_form_in">
230 227
 										<div class="form-group border">

+ 18 - 20
src/main/webapp/app/ordmng/ORDMNG01010.html

@@ -2,13 +2,12 @@
2 2
 	<div class="itp_cont">
3 3
 		<article class="itp_detail">
4 4
 			<div class="itp_det_head fix">
5
-				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong>반품요청 현황</strong></h2>
5
+				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong>수주 현황</strong></h2>
6 6
 				<div class="pull-right itp_cicon">
7 7
 					<button type="button" id="ITP_BTN_ORDMNG01010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_ORDMNG01010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon "></i> &nbsp;&nbsp;취소/목록&nbsp;&nbsp;</button>
9 9
 				</div>
10 10
 				<div style="top:0px; text-align:center; font-size:20px;">
11
-					<span style="text-decoration:underline; font-weight:600;">테스트공급업체</span>
12 11
 					<button type="button" id="ITP_BTN_ORDMNG01010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
13 12
 					<button type="button" id="ITP_BTN_ORDMNG01010_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
14 13
 				</div>
@@ -19,23 +18,22 @@
19 18
 						<div class="itp_srh_border fix">
20 19
 							<div class="col-xs-12">
21 20
 								<form id="ITP_FORM_ORDMNG01010_SEARCH" class="form-horizontal">
21
+								<input type="hidden" id="ITP_FORM_ORDMNG01010_SEARCH_BRAND_ID" name="sbrandId" value="">
22 22
 									<div class="form-group">
23 23
 										<div class="col-xs-2 itp_ip itp_noMar">
24
-											<select id="ITP_FORM_ORDMNG01010_SEARCH_" class="form-control itp_input" name="">
25
-												<option value="A">수주일자*</option>											
26
-											</select>
24
+											<label>수주일지</label>
27 25
 										</div>											
28 26
 										<div class="col-xs-3 itp_ip itp_noMar">
29 27
 											<div class="input-daterange input-group date">
30
-												<input type="text" id="ITP_FORM_ORDMNG01010_SEARCH_RTN_REQ_DT" class="form-control itp_input" name="rtnReqDt" value="">
28
+												<input type="text" id="ITP_FORM_ORDMNG01010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="">
31 29
 												<span class="input-group-addon itp_date_to">~</span>
32
-												<input type="text" id="ITP_FORM_ORDMNG01010_SEARCH_COL_REQ_DT" class="form-control itp_input" name="colReqDt" value="">
30
+												<input type="text" id="ITP_FORM_ORDMNG01010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="">
33 31
 											</div>
34 32
 										</div>
35 33
 									</div>
36 34
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
37 35
 										<div class="col-xs-2 itp_ip itp_noMar">
38
-											<select id="ITP_FORM_ORDMNG01010_SEARCH_ST_CD" class="form-control itp_input" name="sStCd">
36
+											<select id="ITP_FORM_ORDMNG01010_SEARCH_PCH_ODR_ST_CD" data-select-code="PCH_ODR_ST_CD" class="form-control itp_input" name="spchOdrStCd">
39 37
 												<option value="A">수주상태</option>											
40 38
 											</select>
41 39
 										</div>
@@ -63,11 +61,11 @@
63 61
 						</div>
64 62
 					</div>
65 63
 				</div>
66
-				<div id="ITP_AJAX_ORDMNG01010_DETAIL_CONTAINER">
64
+				<div id="ITP_AJAX_ORDMNG01010_VIEW_CONTAINER">
67 65
 					<div class="itp_form itp_type1 fix">
68 66
 						<div class="col-xs-12">
69
-							<form id="ITP_FORM_ORDMNG01010_DETAIL" class="form-horizontal">
70
-								<input type="hidden" id="ITP_FORM_ORDMNG01010_DETAIL_VIEW_CD" name="viewCd" value="C">
67
+							<form id="ITP_FORM_ORDMNG01010_VIEW" class="form-horizontal">
68
+								<input type="hidden" id="ITP_FORM_ORDMNG01010_VIEW_VIEW_CD" name="viewCd" value="C">
71 69
 					
72 70
 								<section class="itp_form_sec">
73 71
 									<h4 class="itp_form_tit">구매 발주 상세</h4>
@@ -82,7 +80,7 @@
82 80
 									<div class="itp_form_in">
83 81
 										<div class="form-group">
84 82
 											<label class="col-xs-2 itp_lb">발주일자</label>
85
-											<div class="col-xs-4 itp_ip "></div>
83
+											<div class="col-xs-4 itp_ip fnPodrDt"></div>
86 84
 											<label class="col-xs-2 itp_lb">발주상태</label>
87 85
 											<div class="col-xs-4 itp_ip fnPchOdrStCd"></div>
88 86
 										</div>
@@ -100,20 +98,20 @@
100 98
 									<div class="itp_form_in">	
101 99
 										<div class="form-group">
102 100
 											<label class="col-xs-2 itp_lb">발주담당자</label>
103
-											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
104
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
105
-											<div class="col-xs-4 itp_ip fnPodrMgrTelNo"></div>
101
+											<div class="col-xs-4 itp_ip fnPodrMgrNm fnPodrMgrTelNo"></div>
102
+											<label class="col-xs-2 itp_lb">납품요청일</label>
103
+											<div class="col-xs-4 itp_ip fnDlvReqDt"></div>
106 104
 										</div>
107 105
 									</div>
108 106
 									<div class="itp_form_in">
109 107
 										<div class="itp_table_head fix" style="background:#f5f5f5;">
110 108
 											<h4 class="itp_table_tit">발주 품목</h4>
111 109
 										</div>
112
-										<div id="ITP_ORDMNG01010_DETAIL_jqGrid_list" class="itp_tb_list">
113
-										  <div id="ITP_ORDMNG01010_DETAIL_jqGridView" class="itp_views fix"></div>
114
-										  <table id="ITP_ORDMNG01010_DETAIL_jqGrid"></table>
115
-										  <div id="ITP_ORDMNG01010_DETAIL_jqGridPager"></div>
116
-										  <div id="ITP_ORDMNG01010_DETAIL_jqGridEmpty" class="itp_no_data"></div>
110
+										<div id="ITP_ORDMNG01010_VIEW_jqGrid_list" class="itp_tb_list">
111
+										  <div id="ITP_ORDMNG01010_VIEW_jqGridView" class="itp_views fix"></div>
112
+										  <table id="ITP_ORDMNG01010_VIEW_jqGrid"></table>
113
+										  <div id="ITP_ORDMNG01010_VIEW_jqGridPager"></div>
114
+										  <div id="ITP_ORDMNG01010_VIEW_jqGridEmpty" class="itp_no_data"></div>
117 115
 										</div>
118 116
 									</div>
119 117
 								</section>												

+ 5 - 0
src/main/webapp/app/ordmng/ORDMNG03010.html

@@ -7,6 +7,11 @@
7 7
 					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_ORDMNG03010_POPUP" class="btn btn-primary btn-sm IVP" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;납품서출력&nbsp;&nbsp;</button>
9 9
 				</div>
10
+				<div style="top:0px; text-align:center; font-size:20px;">
11
+					<span style="text-decoration:underline; font-weight:600;">테스트공급업체</span>
12
+					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
13
+					<button type="button" id="ITP_BTN_ORDMNG03010_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
14
+				</div>
10 15
 			</div>
11 16
 			<div class="itp_det_in">
12 17
 				<div id="ITP_AJAX_ORDMNG03010_LIST_CONTAINER">

+ 7 - 8
src/main/webapp/app/pomng/POMNG01010.html

@@ -18,8 +18,7 @@
18 18
 								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_STORE_ID" name="storeId" value="">
19 19
 								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_LOAN_DVSN" name="loanDvsn" value="">
20 20
 								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_LOAN_MGNT_UNQ_NO" name="loanMgntUnqNo" value="">
21
-								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_PCH_REQ_DVSN" name="pchReqDvsn" value="">
22
-								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_PCH_REQ_ST_CD" name="pchReqStCd" value="">
21
+								<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_pchReqDvsn" name="pchReqDvsn" value="">
23 22
 					
24 23
 								<section class="itp_form_sec">
25 24
 									<h4 class="itp_form_tit">구매요청정보</h4>
@@ -57,22 +56,22 @@
57 56
 									</div>
58 57
 									<div class="itp_form_in">	
59 58
 										<div class="form-group">
60
-											<label class="col-xs-2 itp_lb">납기요청일 *</label>
59
+											<label class="col-xs-2 itp_lb">납기요청일</label>
61 60
 												<div class="col-xs-4 itp_ip">
62 61
 													<div class="col-xs-4 itp_in">
63 62
 														<div class="input-daterange input-group date">
64
-															<input type="text" id="ITP_FORM_POMNG01010_DETAIL_DLV_REQ_DT" data-check-required="empty" class="form-control itp_input" name="dlvReqDt" value="">
63
+															<input type="text" id="ITP_FORM_POMNG01010_DETAIL_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
65 64
 														</div>
66 65
 													</div>
67 66
 												</div>
68
-											<label class="col-xs-2 itp_lb">납품장소 *</label>
67
+											<label class="col-xs-2 itp_lb">납품장소</label>
69 68
 											<div class="col-xs-4 itp_ip">
70 69
 												<div class="col-xs-4 itp_in">
71
-													<input type="text" id="ITP_FORM_POMNG01010_DETAIL_WHS_NM" data-check-required="empty" class="form-control itp_input" name="whsNm" value="" />
70
+													<input type="text" id="ITP_FORM_POMNG01010_DETAIL_WHS_NM" class="form-control itp_input" name="whsNm" value="" />
72 71
 													<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_WHS_ID" class="form-control itp_input" name="whsId" value="" />
73 72
 												</div>
74 73
 												<div class="col-xs-4 itp_in">
75
-													<input type="text" id="ITP_FORM_POMNG01010_DETAIL_LOCATION_NM" data-check-required="empty" class="form-control itp_input" name="locationNm" value="" />
74
+													<input type="text" id="ITP_FORM_POMNG01010_DETAIL_LOCATION_NM" class="form-control itp_input" name="locationNm" value="" />
76 75
 													<input type="hidden" id="ITP_FORM_POMNG01010_DETAIL_LOCATION" class="form-control itp_input" name="location" value="" />
77 76
 												</div>
78 77
 												<div class="col-xs-1 itp_in" style="width:23%; padding:0px;">
@@ -98,7 +97,7 @@
98 97
 										<div class="form-group">
99 98
 											<label class="col-xs-2 itp_lb">비고</label>
100 99
 											<div class="col-xs-10 itp_ip">
101
-												<input type="text" id="ITP_FORM_POMNG01010_DETAIL_NOTE" class="form-control itp_input" name="note" value="" />
100
+												<input type="text" id="ITP_FORM_POMNG01010_DETAIL_NOTE" class="form-control itp_input" name="fnNote" value="" />
102 101
 											</div>
103 102
 										</div>
104 103
 									</div>

+ 31 - 34
src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html

@@ -2,10 +2,6 @@
2 2
 	<div class="modal-dialog" style="width:1200px;">
3 3
 		<div class="modal-content">
4 4
 			<form id="ITP_FORM_BIZPOP_DLV_STTMT_PRN">
5
-				<input type="hidden" id="ITP_FORM_ORDMNG03010_SEARCH_SPPLY_ID" name="sspplyId" value="1">
6
-				<input type="hidden" id="ITP_FORM_ORDMNG03010_SEARCH_BRAND_ID" name="sBrnadId" value="1">
7
-				<input type="hidden" id="ITP_FORM_ORDMNG03010_FROM_DT" name="fromDt" value="1">
8
-				<input type="hidden" id="ITP_FORM_ORDMNG03010_TO_DT" name="toDt" value="1">
9 5
 				<div id="ITP_POPUP_CONTAINER">
10 6
 					<div class="modal-header">
11 7
 						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
@@ -16,7 +12,7 @@
16 12
 							<div class="col-xs-12 itp_form_inline">
17 13
 								<div class="form-horizontal fix">
18 14
 									<div class="col-xs-4 itp_in itp_pr">
19
-										<img src="" alt="로고 샘플" id="ITP_BIZPOP_DLV_STTMT_PRN_BRAND_LOGO "style="border:none; border-radius: 0; height:85px; width:85px; position:absolute; padding:0;" class="form-control itp_input fnItemImage" name="" >
15
+										<img src="/oqpo-view/images/naver.png" alt="로고 샘플" id="ITP_BIZPOP_DLV_STTMT_PRN_BRAND_LOGO "style="border:none; border-radius: 0; height:85px; width:85px; position:absolute; padding:0;" class="form-control itp_input" name="" >
20 16
 									</div>
21 17
 									<div class="pull-right itp_cicon">
22 18
 										<button type="button" class="btn btn-success btn-sm" id="ITP_BIZPOP_DLV_STTMT_PRN_BTN_SEARCH" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;출력&nbsp;&nbsp;</button>
@@ -27,7 +23,7 @@
27 23
 							<div class="col-xs-12 itp_form_inline">
28 24
 								<div class="col-xs-5"></div>
29 25
 								<div class="itp_title">
30
-									<label>납품 확인서</label>
26
+									<label>납품확인서</label>
31 27
 								</div>
32 28
 							</div>	
33 29
 							<div class="col-xs-12 itp_form_inline">
@@ -35,24 +31,23 @@
35 31
 									<div>
36 32
 										<label style="width:100px;">발행일</label>
37 33
 										<label>:</label>
38
-										<span class="fnDlvRegDt"></span>
34
+										<span class="fnDlvRegDt">2022.01.01</span>
39 35
 									</div>
40 36
 									<div>
41 37
 										<label style="width:100px;">납품확인번호</label>
42 38
 										<label>:</label>
43
-										<span class="fnDlvSttmtUnqNo"></span>
39
+										<span class="fnDlvSttmtUnqNo">2211020000002001</span>
44 40
 									</div>
45 41
 									<div>
46 42
 										<label style="width:100px;">납품일</label>
47 43
 										<label>:</label>
48
-										<span class="fnDlvRegDt"></span>
44
+										<span class="fnDlvRegDt">2022.12.31</span>
49 45
 									</div>
50 46
 									<div>
51 47
 										<label style="width:100px;">납품담당</label>
52 48
 										<label>:</label>
53
-										<span class="fnDlvMgrNm"></span>
54
-										<!-- js로 ()감싸기 -->
55
-										<span class="fnDlvMgrTelNo"></span> 
49
+										<span class="fnDlvMgrNm">홍길동</span>
50
+										(<span class="fnDlvMgrTelNo">010-2525-2525</span>)
56 51
 									</div>
57 52
 								</div>
58 53
 								<div class="col-xs-6">
@@ -66,28 +61,29 @@
66 61
 										<div class="itp_sign_header">
67 62
 											<label>납품확인일</label>
68 63
 										</div>
69
-										<div class="itp_sign_area fnDlvCnfmDt"></div>
64
+										<div class="itp_sign_area fnDlvCnfmDt">
65
+											2022.01.01
66
+										</div>
70 67
 									</div>
71 68
 								</div>
72 69
 							</div>	
73 70
 							<div class="col-xs-12 itp_form_inline">
74
-								<div class="col-xs-6" style="margin-bottom:30px;">
71
+								<div class="col-xs-6">
75 72
 									<div>
76 73
 										<label style="width:100px;">납품 장소</label>
77 74
 										<label>:</label>
78
-										<!-- js로 ()감싸기 -->
79
-										<span style="margin:0px; " class="fnZipNo"></span>
80
-										<span class="fnLoadAddr"></span>
81
-										<span class="fnDtlAddr"></span>
75
+										(<span style="margin:0px; " class="fnZipNo">12345</span>)
76
+										<span class="fnLoadAddr">서울 송파구 문정동 100 ㅁㄴㄹㅇㅁㄴ</span>
77
+										<span class="fnDtlAddr">디 매장</span>
82 78
 									</div>
83 79
 									<div>
84 80
 										<label style="width:100px;">전화번호</label>
85 81
 										<label>:</label>
86
-										<span class="fnVndrTelNo"></span>
82
+										<span class="fnVndrTelNo">02-1234-1547</span>
87 83
 									</div>
88 84
 								</div>
89 85
 							</div>	
90
-							<div class="col-xs-6 itp_form_inline" style="padding-left:15px;">
86
+							<div class="col-xs-6 itp_form_inline">
91 87
 								<div class="itp_form_info">
92 88
 										<div class="itp_company_type">
93 89
 											<label>공급처</label>
@@ -95,25 +91,25 @@
95 91
 									<div class="col-xs-11" style="padding:0; width:90%;">
96 92
 										<label class="col-xs-4">등록번호</label>
97 93
 										<div class="col-xs-8 itp_form_it">
98
-											<div class="col-xs-12 itp_in fnBsnsRegNo"></div>
94
+											<div class="col-xs-12 itp_in fnBsnsRegNo">215-58-584887</div>
99 95
 										</div>
100 96
 									</div>	
101 97
 									<div class="col-xs-11" style="padding:0; width:90%;">
102 98
 										<label class="col-xs-2">상호</label>
103 99
 										<div class="col-xs-8 itp_form_it">
104
-											<div class="col-xs-12 itp_in fnSpplyNm"></div>
100
+											<div class="col-xs-12 itp_in fnSpplyNm">등록업체명</div>
105 101
 										</div>
106 102
 									</div>
107 103
 									<div class="col-xs-11" style="padding:0; width:90%;">
108 104
 										<label class="col-xs-2">성명</label>
109 105
 										<div class="col-xs-8 itp_form_it">
110
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
106
+											<div class="col-xs-12 itp_in fnBrandNm">공길동</div>
111 107
 										</div>
112 108
 									</div>
113 109
 									<div class="col-xs-11" style="padding:0; width:90%;">
114
-										<label class="col-xs-2 border">주소</label>
115
-										<div class="col-xs-8 itp_form_it border">
116
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
110
+										<label class="col-xs-2">주소</label>
111
+										<div class="col-xs-8 itp_form_it">
112
+											<div class="col-xs-12 itp_in fnBrandNm">서울 시송파구 ㄴㄻㄴㄹ</div>
117 113
 										</div>
118 114
 									</div>
119 115
 								</div>	
@@ -126,33 +122,34 @@
126 122
 									<div class="col-xs-11" style="padding:0; width:90%;">
127 123
 										<label class="col-xs-4">등록번호</label>
128 124
 										<div class="col-xs-8 itp_form_it">
129
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
125
+											<div class="col-xs-12 itp_in fnBrandNm">215-58-584887</div>
130 126
 										</div>
131 127
 									</div>	
132 128
 									<div class="col-xs-11" style="padding:0; width:90%;">
133 129
 										<label class="col-xs-2">상호</label>
134 130
 										<div class="col-xs-8 itp_form_it">
135
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
131
+											<div class="col-xs-12 itp_in fnBrandNm">등록업체명</div>
136 132
 										</div>
137 133
 									</div>
138 134
 									<div class="col-xs-11" style="padding:0; width:90%;">
139 135
 										<label class="col-xs-2">성명</label>
140 136
 										<div class="col-xs-8 itp_form_it">
141
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
137
+											<div class="col-xs-12 itp_in fnBrandNm">공길동</div>
142 138
 										</div>
143 139
 									</div>
144 140
 									<div class="col-xs-11" style="padding:0; width:90%;">
145
-										<label class="col-xs-2 border">주소</label>
146
-										<div class="col-xs-8 itp_form_it border">
147
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
141
+										<label class="col-xs-2">주소</label>
142
+										<div class="col-xs-8 itp_form_it">
143
+											<div class="col-xs-12 itp_in fnBrandNm">서울 시송파구 ㄴㄻㄴㄹ</div>
148 144
 										</div>
149 145
 									</div>
150 146
 								</div>	
151 147
 							</div>
152 148
 						</div>
153
-
154 149
 						
155
-						<div id="ITP_BIZPOP_DLV_STTMT_PRN_jqGrid_list" class="itp_tb_list" data-total-cnt="" style="margin-top:30px;">
150
+						
151
+						
152
+						<div id="ITP_BIZPOP_DLV_STTMT_PRN_jqGrid_list" class="itp_tb_list" data-total-cnt="">
156 153
 							<div id="ITP_BIZPOP_DLV_STTMT_PRN_jqGridView" class="itp_views fix"></div>
157 154
 							<table id="ITP_BIZPOP_DLV_STTMT_PRN_jqGrid"></table>
158 155
 							<div id="ITP_BIZPOP_DLV_STTMT_PRN_jqGridPager"></div>

+ 18 - 22
src/main/webapp/app/settmng/SETTMNG03010.html

@@ -98,28 +98,6 @@
98 98
 												</div>
99 99
 											</div>
100 100
 										</div>
101
-										<div class="form-group">
102
-											<label class="col-xs-2 itp_lb">정산상태</label>
103
-											<div class="col-xs-4 itp_ip">
104
-												<div class="col-xs-8 itp_in fnSttlStNm"></div>
105
-											</div>
106
-											<label class="col-xs-2 itp_lb">반려사유</label>
107
-											<div class="col-xs-4 itp_ip">
108
-												<div class="col-xs-8 itp_in fnSttlRjctRsn"></div>
109
-											</div>											
110
-										</div>
111
-										<div class="form-group">
112
-											<label class="col-xs-2 itp_lb">정산요청일자</label>
113
-											<div class="col-xs-4 itp_ip">
114
-												<div class="col-xs-8 itp_in fnSttlReqDt"></div>
115
-											</div>
116
-											<label class="col-xs-2 itp_lb">정산요청금액</label>
117
-											<div class="col-xs-4 itp_ip">
118
-												<div class="col-xs-10 itp_in fnSttlReqAmt"></div>
119
-											</div>											
120
-										</div>
121
-										
122
-										
123 101
 										<div class="form-group">
124 102
 											<label class="col-xs-2 itp_lb">정산일자</label>
125 103
 											<div class="col-xs-4 itp_ip">
@@ -132,10 +110,20 @@
132 110
 													</div>
133 111
 												</div>
134 112
 											</div>
113
+											<label class="col-xs-2 itp_lb">정산상태</label>
114
+											<div class="col-xs-4 itp_ip">
115
+												<div class="col-xs-8 itp_in fnSttlStNm"></div>
116
+											</div>
117
+										</div>
118
+										<div class="form-group">
135 119
 											<label class="col-xs-2 itp_lb">정산금액</label>
136 120
 											<div class="col-xs-4 itp_ip">
137 121
 												<div class="col-xs-10 itp_in fnSttlAmt"></div>
138 122
 											</div>
123
+											<label class="col-xs-2 itp_lb">잔금</label>
124
+											<div class="col-xs-4 itp_ip">
125
+												<div class="col-xs-8 itp_in fnAcctBal"></div>
126
+											</div>
139 127
 										</div>
140 128
 										<div class="form-group">
141 129
 											<label class="col-xs-2 itp_lb">등록일</label>
@@ -148,6 +136,14 @@
148 136
 											</div>
149 137
 										</div>
150 138
 									</div>
139
+									<div class="itp_form_in">
140
+										<div class="form-group border">
141
+											<label class="col-xs-2 itp_lb">반려사유</label>
142
+											<div class="col-xs-10 itp_ip">
143
+												<div class="col-xs-10 itp_in"></div>
144
+											</div>
145
+										</div>
146
+									</div>
151 147
 								</section>								
152 148
 							</form>
153 149
 						</div>

+ 2 - 2
src/main/webapp/app/stinfo/STINFO03010.html

@@ -174,10 +174,10 @@
174 174
 													<input type="text" id="ITP_FORM_STINFO03010_DETAIL_MBL_NO" class="form-control itp_input" name="mgrMblNo" value="">
175 175
 												</div>
176 176
 											</div>
177
-											<label class="col-xs-2 itp_lb">이메일 *</label>
177
+											<label class="col-xs-2 itp_lb">이메일</label>
178 178
 											<div class="col-xs-4 itp_ip">
179 179
 												<div class="col-xs-8 itp_in">
180
-								                	<input type="text" id="ITP_FORM_STINFO03010_DETAIL_EMAL_ADDR" data-check-required="empty" class="form-control itp_input" name="mgrEmal" value="">
180
+								                	<input type="text" id="ITP_FORM_STINFO03010_DETAIL_EMAL_ADDR" class="form-control itp_input" name="mgrEmal" value="">
181 181
 												</div>
182 182
 											</div>
183 183
 										</div>

+ 2 - 0
src/main/webapp/app/vendinfo/VENDINFO01010.html

@@ -20,6 +20,8 @@
20 20
 								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_POP_NO" name="popNo" value="">
21 21
 								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_MENU_NO" name="menuNo" value="">
22 22
 								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_FILE_NO" name="popFileNo" value="">
23
+								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_CORP_DVSN" name="corpDvsn" value="">
24
+								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_MGR_NM" name="mgrNm" value="">								
23 25
 								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_ACCT_FILE_NO" name="bbookCopyFileNo" value="">
24 26
 								<input type="hidden" id="ITP_FORM_VENDINFO01010_DETAIL_CORP_FILE_NO" name="bsnsRegFileNo" value="">
25 27
 					

+ 3 - 3
src/main/webapp/css/style.css

@@ -697,9 +697,9 @@ _:-ms-fullscreen, :root .itp_logs {max-width: 1287px}
697 697
 #ITP_POPUP_CONTAINER .itp_company_type {float:left; background:#eee; text-align:center; width:55px; height:168px; padding-top:40px; border:1px solid #000;}  
698 698
 #ITP_POPUP_CONTAINER .itp_form_info .itp_company_type label {width:35px; border:none; padding:10px;}
699 699
 #ITP_POPUP_CONTAINER .modal-body span{margin-right:7px;}
700
-#ITP_POPUP_CONTAINER .itp_form_info label {border-top:1px solid #000; background:#eee; margin:0; width:120px; height:42px; padding:10px 5px 10px 10px;}
701
-#ITP_POPUP_CONTAINER .itp_form_it {border:1px solid #000; border-bottom:none; height:42px; padding:12px 0 0 0;}
702
-#ITP_POPUP_CONTAINER .border {border-bottom:1px solid #000 !important;}
700
+#ITP_POPUP_CONTAINER .itp_form_info label {border:1px solid #000; background:#eee; margin:0; width:120px; height:42px; padding:10px 5px 10px 10px;}
701
+#ITP_POPUP_CONTAINER .itp_form_it {border:1px solid #000; height:42px; padding-top:12px;}
702
+
703 703
 
704 704
 
705 705
 

+ 1 - 7
src/main/webapp/js/app/loanmng/ITP_LOANMNG01010.js

@@ -301,17 +301,11 @@ let listObj = {
301 301
 			$(LOANMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
302 302
 		},
303 303
 		popupStore: function() { // 매장선택 팝업
304
-			fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', function(result) {
305
-				// alert(JSON.stringify(result));
306
-				$('#ITP_FORM_LOANMNG01010_SEARCH_STORE_ID').val(result[0].storeId);
307
-				$('#ITP_FORM_LOANMNG01010_SEARCH_STORE_NM').val(result[0].storeNm);				
308
-				listObj.button.search();
309
-			}, null, 'S');
304
+			
310 305
 		}, 
311 306
 		eraseStore: function() { // 매장선택 삭제
312 307
 			$('#ITP_FORM_LOANMNG01010_SEARCH_STORE_ID').val('');
313 308
 			$('#ITP_FORM_LOANMNG01010_SEARCH_STORE_NM').val('');
314
-			listObj.button.search();
315 309
 		}
316 310
 	},
317 311
 	empty: {

+ 3 - 9
src/main/webapp/js/app/loanmng/ITP_LOANMNG02010.js

@@ -604,17 +604,11 @@ let createObj = {
604 604
 			}
605 605
 		}, 
606 606
 		popupStore: function() { // 매장선택 팝업
607
-			fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', function(result) {
608
-				// alert(JSON.stringify(result));
609
-				$('#ITP_FORM_LOANMNG02010_SEARCH_STORE_ID').val(result[0].storeId);
610
-				$('#ITP_FORM_LOANMNG02010_SEARCH_STORE_NM').val(result[0].storeNm);				
611
-				listObj.button.search();
612
-			}, null, 'S');
607
+			
613 608
 		}, 
614 609
 		eraseStore: function() { // 매장선택 삭제
615
-			$('#ITP_FORM_LOANMNG02010_SEARCH_STORE_ID').val('');
616
-			$('#ITP_FORM_LOANMNG02010_SEARCH_STORE_NM').val('');
617
-			listObj.button.search();
610
+			$('#ITP_FORM_LOANMNG02010_DETAIL_STORE_ID').val('');
611
+			$('#ITP_FORM_LOANMNG02010_DETAIL_STORE_NM').val('');
618 612
 		}
619 613
 	}
620 614
 };

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

@@ -293,8 +293,6 @@ let pageObj = {
293 293
 						case 'ITP_BTN_LOANMNG03010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
294 294
 						case 'ITP_BTN_LOANMNG03010_CANCELLIST'		: viewObj.button.cancel(); 	break;	// 취소/목록 버튼
295 295
 						case 'ITP_BTN_LOANMNG03010_PAYMENT'			: viewObj.button.payment();	break;	// 결제 버튼
296
-						case 'ITP_BTN_LOANMNG03010_STORE_SEARCH'	: listObj.button.storePop();	break;	// 매장검색 팝업
297
-						case 'ITP_BTN_LOANMNG03010_STORE_ERASE'		: listObj.button.storeErase();	break;	// 매장 지움
298 296
 					}
299 297
 				});
300 298
 			});
@@ -364,19 +362,6 @@ let listObj = {
364 362
 			itp_fn_form_clear_validate(null, '#ITP_FORM_LOANMNG03010_DETAIL');						
365 363
 			// 로케이션 리스트 조회
366 364
 			createObj.init();
367
-		}, 
368
-		storePop: function() {
369
-			fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', function(result) {
370
-				// alert(JSON.stringify(result));
371
-				$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_ID').val(result[0].storeId);
372
-				$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_NM').val(result[0].storeNm);				
373
-				listObj.button.search();
374
-			}, null, 'S');
375
-		}, 
376
-		storeErase: function() {
377
-			$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_ID').val('');
378
-			$('#ITP_FORM_LOANMNG03010_SEARCH_STORE_NM').val('');
379
-			listObj.button.search();
380 365
 		}
381 366
 	},
382 367
 	empty: {

+ 16 - 1
src/main/webapp/js/app/locales/locale-ko.js

@@ -169,7 +169,22 @@ const ITP_MSG_LOCALE = (function() {
169 169
 			"prnSeq": "출력순번",
170 170
 			"writeYn": "쓰기여부",
171 171
 			"pchReqQty":"요청수량",
172
-			"pchReqAmt":"요청금액"
172
+			"pchReqAmt":"요청금액",
173
+			"pchReqQty": "요청수량",
174
+			"pchReqAmt": "요청금액",
175
+			"unitGubun": "단가구분",
176
+			"pchPodrUnqNo": "발주번호",
177
+			"pchOdrStCd": "발주상태코드",
178
+			"pchOdrStNm": "발주상태명",
179
+			"podrDt": "발주일자",
180
+			"dlvReqDt": "납품요철일",
181
+			"whsNm": "납품장소",
182
+			"podrTotalAmt": "총 발주금액",
183
+			"podrItemQty": "발주품목수",
184
+			"podrMgrNm": "발주담당자",
185
+			"pchPodrDtlNo": "항번",
186
+			"podrQty": "발주수량",
187
+			"podrAmt": "발주금액"
173 188
 		},
174 189
 		"table": {
175 190
 			"brandId": "브랜드ID",

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

@@ -168,8 +168,8 @@ let pageObj = {
168 168
 			// 조회일자 지정
169 169
 			var now = new Date();
170 170
 			$('#ITP_TAB_OPER02010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
171
-			$('#ITP_FORM_OPER02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now));
172
-			//$('#ITP_FORM_OPER02010_SEARCH_TO_DT').datepicker('setDate', new Date());
171
+			$('#ITP_FORM_OPER02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
172
+			$('#ITP_FORM_OPER02010_SEARCH_TO_DT').datepicker('setDate', new Date());
173 173
 		},
174 174
 		afflInfo: {
175 175
 			init: function() {

+ 471 - 0
src/main/webapp/js/app/ordmng/ITP_ORDMNG01010.js

@@ -0,0 +1,471 @@
1
+require(['config'], function() {
2
+    require([
3
+    ], function($) {
4
+        pageObj.init();
5
+    });
6
+});
7
+
8
+
9
+// 화면변수
10
+const ORDMNG01010_GRID_ID = '#ITP_ORDMNG01010_jqGrid';
11
+const ORDMNG01010_GRID_LIST = '#ITP_ORDMNG01010_jqGrid_list';
12
+const ORDMNG01010_GRID_PAGER = '#ITP_ORDMNG01010_jqGridPager';
13
+const ORDMNG01010_GRID_EMPTY = '#ITP_ORDMNG01010_jqGridEmpty';
14
+
15
+const ORDMNG01010_VIEW_GRID_ID = '#ITP_ORDMNG01010_VIEW_jqGrid';
16
+const ORDMNG01010_VIEW_GRID_LIST = '#ITP_ORDMNG01010_VIEW_jqGrid_list';
17
+const ORDMNG01010_VIEW_GRID_PAGER = '#ITP_ORDMNG01010_VIEW_jqGridPager';
18
+const ORDMNG01010_VIEW_GRID_EMPTY = '#ITP_ORDMNG01010_VIEW_jqGridEmpty';
19
+
20
+let ITP_COMMON_PCH_ODR_ST_CD = fn_make_common_cd_list(CODE_LIST, 'PCH_ODR_ST_CD', true, '발주상태코드');
21
+
22
+//API URL
23
+let API_POMNG_PO_SPPLY_PO_GRID_LIST = '/api/pomng/po/spply-po-grid-list';
24
+let API_POMNG_PO_INFO_SPPLY_PCHORD = '/api/pomng/po/info-spply-pchOdr';
25
+
26
+
27
+//화면 grid ColModel
28
+const gridColModel = {
29
+	list:[
30
+		{
31
+			index: 'VIEW_CD', name: 'viewCd',
32
+			label: ITP_MSG_LOCALE.label.viewCd,
33
+			width: '10', fixed: false, align: 'center',
34
+			sortable: false, hidden: true
35
+		},
36
+		{
37
+			index: 'BRAND_ID', name: 'brandId',
38
+			label: ITP_MSG_LOCALE.label.brandId,
39
+			width: '10', fixed: false, align: 'center',
40
+			sortable: false, hidden: true
41
+		},
42
+		{
43
+			index: 'PODR_MGR_NM', name: 'podrMgrNm',
44
+			label: ITP_MSG_LOCALE.label.podrMgrNm,
45
+			width: '10', fixed: false, align: 'center',
46
+			sortable: false, hidden: true
47
+		},
48
+		{
49
+			index: 'BRAND_NM', name: 'brandNm',
50
+			label: ITP_MSG_LOCALE.label.brandNm, 		// 브랜드명
51
+			width: '7', fixed: false, align: 'center',
52
+			sortable: false, hidden: false
53
+		},
54
+		{
55
+			index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
56
+			label: ITP_MSG_LOCALE.label.pchPodrUnqNo, 	// 발주번호
57
+			width: '7', fixed: false, align: 'center',
58
+			sortable: false, hidden: false
59
+		},
60
+		{
61
+			index: 'PCH_ORD_ST_CD', name: 'pchOdrStCd',
62
+			label: ITP_MSG_LOCALE.label.pchOdrStNm, 	// 발주상태
63
+			width: '7', fixed: false, align: 'center',
64
+			sortable: false, formatter: 'select',
65
+			editoptions: {value: ITP_COMMON_PCH_ODR_ST_CD}
66
+		},
67
+		{
68
+			index: 'PODR_DT', name: 'podrDt',
69
+			label: ITP_MSG_LOCALE.label.podrDt, 		// 발주일자
70
+			width: '8', fixed: false, align: 'center',
71
+			sortable: false, hidden: false
72
+		},
73
+		{
74
+			index: 'DIV_REQ_DT', name: 'dlvReqDt',
75
+			label: ITP_MSG_LOCALE.label.dlvReqDt, 		// 납품요청일
76
+			width: '8', fixed: false, align: 'center',
77
+			sortable: false, hidden: false
78
+		},
79
+		{
80
+			index: 'WHS_NM', name: 'whsNm',
81
+			label: ITP_MSG_LOCALE.label.whsNm, 			// 납품장소
82
+			width: '7', fixed: false, align: 'center',
83
+			sortable: false, hidden: false
84
+		},
85
+		{
86
+			index: 'PODR_TOTAL_AMT', name: 'podrTotalAmt',
87
+			label: ITP_MSG_LOCALE.label.podrTotalAmt, 	// 총 발주금액
88
+			width: '7', fixed: false, align: 'center',
89
+			sortable: false, hidden: false,
90
+			formatter: 'integer', formatoptions: {thousandsSeparator: ','}
91
+		},
92
+		{
93
+			index: 'SPPLY_ITME_ID', name: 'podrItemQty',
94
+			label: ITP_MSG_LOCALE.label.podrItemQty, 	// 발주품목수
95
+			width: '8', fixed: false, align: 'center',
96
+			sortable: false, hidden: false
97
+		},
98
+		{
99
+			index: 'PODR_MGR_NM', name: 'podrMgrNm',
100
+			label: ITP_MSG_LOCALE.label.podrMgrNm, 		// 발주 담당자
101
+			width: '8', fixed: false, align: 'center',
102
+			sortable: false, hidden: false
103
+		}
104
+	],
105
+	view: [
106
+		{
107
+			index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
108
+			label: ITP_MSG_LOCALE.label.pchPodrDtlNo, 	// 항번
109
+			width: '10', fixed: false, align: 'center',
110
+			sortable: false, hidden: false
111
+		},
112
+		{
113
+			index: 'ITEM_ID', name: 'itemId',
114
+			label: ITP_MSG_LOCALE.label.itemId, 		// 품목번호
115
+			width: '10', fixed: false, align: 'center',
116
+			sortable: false, hidden: false
117
+		},
118
+		{
119
+			index: 'ITEM_NM', name: 'itemNm',
120
+			label: ITP_MSG_LOCALE.label.itemNm, 		// 품목명
121
+			width: '8', fixed: false, align: 'center',
122
+			sortable: false, hidden: false
123
+		},
124
+		{
125
+			index: 'UNIT_AMT', name: 'unitAmt',
126
+			label: ITP_MSG_LOCALE.label.unitAmt, 		// 단가
127
+			width: '8', fixed: false, align: 'center',
128
+			sortable: false, hidden: false,
129
+			formatter: 'integer', formatoptions: {thousandsSeparator: ','}
130
+		},
131
+		{
132
+			index: 'UNIT', name: 'unit',
133
+			label: ITP_MSG_LOCALE.label.unit, 			// 기본단위
134
+			width: '8', fixed: false, align: 'center',
135
+			sortable: false, hidden: false
136
+		},
137
+		{
138
+			index: 'PODR_QTY', name: 'podrQty',
139
+			label: ITP_MSG_LOCALE.label.podrQty, 		// 발주수량
140
+			width: '8', fixed: false, align: 'center',
141
+			sortable: false, hidden: false
142
+		},
143
+		{
144
+			index: 'PODR_AMT', name: 'podrAmt',
145
+			label: ITP_MSG_LOCALE.label.podrAmt, 		// 발주금액
146
+			width: '8', fixed: false, align: 'center',
147
+			sortable: false, hidden: false,
148
+			formatter: 'integer', formatoptions: {thousandsSeparator: ','}
149
+		}
150
+	],
151
+	detail: []
152
+};
153
+
154
+
155
+/*화면공통 Object*/
156
+let pageObj = {
157
+	init: function() {
158
+		this.ui.init();
159
+		this.event.init();
160
+	},
161
+	ui: {
162
+		init: function() {
163
+			this.view();
164
+			this.grid();
165
+			this.ready();
166
+		},
167
+		view: function() {
168
+			// 버튼 권한설정
169
+			fn_proc_btn_auth('ORDMNG01010');
170
+			// 공통코드 표시
171
+			$('select').each(function() {
172
+				if($(this).data('select-code')) {
173
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
174
+				}
175
+			});
176
+			// 조회일자 지정	
177
+			var now = new Date();
178
+			$('#ITP_TAB_ORDMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
179
+		
180
+			$('#ITP_FORM_ORDMNG01010_SEARCH_FROM_DT').datepicker('setDate', '2022.10.01');
181
+			$('#ITP_FORM_ORDMNG01010_SEARCH_TO_DT').datepicker('setDate', '2024.10.01');
182
+		},
183
+		grid: function() {
184
+			itp_fn_jqgrid_resize(ORDMNG01010_GRID_ID, ORDMNG01010_GRID_LIST, 'lg');
185
+			listObj.empty.init();
186
+			itp_fn_fire_window_resize();
187
+		},
188
+		ready: function() {
189
+			listObj.init();
190
+		}
191
+	},
192
+	event: {
193
+		init: function() {
194
+			this.button();
195
+		},
196
+		button: function() {
197
+			// 버튼 클릭 이벤트
198
+			$('button').each(function() {
199
+				var id = $(this).attr('id');
200
+				$(this).on('click', function() {
201
+					switch (id) {
202
+						case 'ITP_BTN_ORDMNG01010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
203
+						case 'ITP_BTN_ORDMNG01010_NEWREG'			: listObj.button.create(); 		break;	// 신규등록 버튼
204
+						case 'ITP_BTN_ORDMNG01010_MODIFY'			: modifyObj.button.modify();	break;	// 수정 버튼
205
+						case 'ITP_BTN_ORDMNG01010_CANCELLIST'		: viewObj.button.cancel(); 		break;	// 취소/목록 버튼
206
+						case 'ITP_BTN_ORDMNG01010_DELETE'			: 								break;	// 삭제 버튼
207
+						case 'ITP_BTN_ORDMNG01010_SAVE'				: createObj.button.save(); 		break;	// 저장 버튼
208
+						case 'ITP_FORM_ORDMNG01010_VIEW_DUP'		: createObj.button.duplicate();	break;	// 중복체크
209
+						case 'ITP_BTN_ORDMNG01010_RESET_PW'			: createObj.button.resetPass();	break;	// 상세:비밀번호 초기화
210
+						case 'ITP_BTN_ORDMNG01010_VIEW_ADDROW'		: pageObj.grid.button.addRow();	break;	// 상세:추가버튼
211
+						case 'ITP_BTN_ORDMNG01010_VIEW_DELROW'		: pageObj.grid.button.delRow();	break;	// 상세:삭제버튼
212
+					}
213
+				});
214
+			});
215
+		}
216
+	},
217
+	switchScreen: function(mode) {
218
+        $('.itp_det_head').find('button[id^="ITP_BTN_ORDMNG01010_"]').each(function(i) {
219
+            $(this).hide();
220
+        });
221
+        $('#ITP_TAB_ORDMNG01010').find('div[id$="_CONTAINER"]').each(function(i) {
222
+            $(this).hide();
223
+        });
224
+        if(mode == 'LIST') { // 목록
225
+            fn_show_btn_auth_array(['#ITP_BTN_ORDMNG01010_SRH', '#ITP_BTN_ORDMNG01010_NEWREG']);
226
+            $('#ITP_AJAX_ORDMNG01010_LIST_CONTAINER').show();
227
+            $('#ITP_FORM_ORDMNG01010_SEARCH #ITP_FORM_ORDMNG01010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
228
+        } else if(mode == 'ADD') { // 등록
229
+            $('#ITP_AJAX_ORDMNG01010_DETAIL_CONTAINER').show();
230
+            fn_show_btn_auth_array(['#ITP_BTN_ORDMNG01010_CANCELLIST', '#ITP_BTN_ORDMNG01010_SAVE']);
231
+
232
+            $('#ITP_FORM_ORDMNG01010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
233
+                $(this).attr('id') === 'ITP_FORM_ORDMNG01010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
234
+                if(elem.type === 'select') {
235
+                    $(this).val('').prop('selected', true);
236
+                }
237
+            });
238
+            $('#ITP_FORM_ORDMNG01010_DETAIL #ITP_FORM_ORDMNG01010_DETAIL_FILE_NO').val('');
239
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BRAND_ID').removeAttr('readonly');
240
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BRAND_NM').removeAttr('readonly');
241
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BSNS_REG_NO').removeAttr('readonly');
242
+            $('#ITP_FORM_ORDMNG01010_DETAIL_CORP_REG_NO').removeAttr('readonly');
243
+            // $('#ITP_FORM_ORDMNG01010_DETAIL_SEARCH_AFFL_SHOP').removeAttr('disabled');
244
+            // $('#ITP_FORM_ORDMNG01010_DETAIL_DELETE_AFFL_SHOP').removeAttr('disabled');
245
+            $('#ITP_FORM_ORDMNG01010_DETAIL_SEARCH_AFFL_SHOP').show();
246
+            $('#ITP_FORM_ORDMNG01010_DETAIL_DELETE_AFFL_SHOP').show();
247
+			$('#ITP_FORM_ORDMNG01010_DETAIL .itp_form_info').hide();
248
+			$('#ITP_FORM_ORDMNG01010_DETAIL .itp_form_change').show();
249
+
250
+            $('#ITP_FORM_ORDMNG01010_DETAIL #ITP_FORM_ORDMNG01010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
251
+            $('#ITP_FORM_ORDMNG01010_DETAIL #ITP_FORM_ORDMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
252
+
253
+            $('.fnBrandId').text('(자동부여)');
254
+        } else if(mode == 'MODIFY') { // 수정
255
+            $('#ITP_AJAX_ORDMNG01010_DETAIL_CONTAINER').show();
256
+            fn_show_btn_auth_array(['#ITP_BTN_ORDMNG01010_CANCELLIST', '#ITP_BTN_ORDMNG01010_SAVE']);
257
+
258
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BRAND_ID').attr('readonly', true);
259
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BRAND_NM').attr('readonly', true);
260
+            $('#ITP_FORM_ORDMNG01010_DETAIL_BSNS_REG_NO').attr('readonly', true);
261
+            $('#ITP_FORM_ORDMNG01010_DETAIL_CORP_REG_NO').attr('readonly', true);
262
+            // $('#ITP_FORM_ORDMNG01010_DETAIL_SEARCH_AFFL_SHOP').attr('disabled', true);
263
+            // $('#ITP_FORM_ORDMNG01010_DETAIL_DELETE_AFFL_SHOP').attr('disabled', true);
264
+            $('#ITP_FORM_ORDMNG01010_DETAIL_SEARCH_AFFL_SHOP').hide();
265
+            $('#ITP_FORM_ORDMNG01010_DETAIL_DELETE_AFFL_SHOP').hide();
266
+			$('#ITP_FORM_ORDMNG01010_DETAIL .itp_form_info').show();
267
+			$('#ITP_FORM_ORDMNG01010_DETAIL .itp_form_change').hide();
268
+
269
+            $('#ITP_FORM_ORDMNG01010_DETAIL #ITP_FORM_ORDMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
270
+        } else if(mode == 'VIEW') { // 보기
271
+            $('#ITP_AJAX_ORDMNG01010_VIEW_CONTAINER').show();
272
+            fn_show_btn_auth_array(['#ITP_BTN_ORDMNG01010_MODIFY', '#ITP_BTN_ORDMNG01010_CANCELLIST']);
273
+        }
274
+    }
275
+};
276
+
277
+
278
+/*목록화면 Object*/
279
+let listObj = {
280
+	init: function() {
281
+		this.grid.init();
282
+	},
283
+	itp_ORDMNG01010_param: {},
284
+	itp_ORDMNG01010_search: false,
285
+	button: {
286
+		search: function() {
287
+			listObj.itp_ORDMNG01010_search = true;
288
+			let param = $('#ITP_FORM_ORDMNG01010_SEARCH').serializeObject();
289
+			param.gridSize = $.jgrid.defaults.rowNum;
290
+            param.gridPage = $.jgrid.defaults.page;
291
+            param.sspplyId = LOGIN_USER_INFO.spplyId;
292
+            param.sidx = '0';
293
+            console.log(JSON.stringify(param));
294
+            $(ORDMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
295
+        }
296
+	},
297
+	empty: {
298
+		init: function() {
299
+            var _this = this;
300
+            this.push();
301
+            $(ORDMNG01010_GRID_EMPTY).on('click', function() {
302
+                _this.back();
303
+                listObj.itp_ORDMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
304
+                $(ORDMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_ORDMNG01010_param)}).trigger('reloadGrid');
305
+            });
306
+        },
307
+        push: function() {
308
+            let param = $('#ITP_FORM_ORDMNG01010_SEARCH').serializeObject();
309
+            listObj.itp_ORDMNG01010_param = param;
310
+        },
311
+        back: function() {
312
+            $('#ITP_FORM_ORDMNG01010_SERVICE_BRAND_TYPE').val(listObj.itp_ORDMNG01010_param.brandType);
313
+            $('#ITP_FORM_ORDMNG01010_SERVICE_ST_CD').val(listObj.itp_ORDMNG01010_param.stCd);
314
+            $('#ITP_FORM_ORDMNG01010_SEARCH_BRAND_NM').val(listObj.itp_ORDMNG01010_param.brandNm);
315
+        	console.log('here');
316
+        	console.log(listObj.itp_ORDMNG01010_param);            
317
+        }
318
+	},
319
+	grid: {
320
+		init: function() {
321
+			// 데이터 없을때
322
+            listObj.empty.push();
323
+            this.search();
324
+		},
325
+		colModel: gridColModel.list,
326
+		search: function() {
327
+			pageObj.switchScreen('LIST');
328
+			this.unload();
329
+			this.load();
330
+		},
331
+		load: function() {
332
+            let param = $('#ITP_FORM_ORDMNG01010_SEARCH').serializeObject();
333
+            param.gridSize = $.jgrid.defaults.rowNum;
334
+            //param.sbrandId = LOGIN_USER_INFO.brandId;
335
+            param.sspplyId = LOGIN_USER_INFO.spplyId;
336
+            param.sidx = '0';
337
+            console.log(JSON.stringify(param));
338
+            var option = {
339
+            	gridId: ORDMNG01010_GRID_ID,
340
+            	colModel: gridColModel.list,
341
+            	param: param,
342
+            	url: DOMAIN + API_POMNG_PO_SPPLY_PO_GRID_LIST,
343
+            	pager: ORDMNG01010_GRID_PAGER,
344
+            	onCellSelect: function(rowId, cellIdx, cellValue) {
345
+                    var cm = $(this).jqGrid('getGridParam', 'colModel');
346
+                    var colNm = cm[cellIdx].name;
347
+                    if (colNm === 'pchPodrUnqNo') {
348
+                        const pchPodrUnqNoVal = $(this).jqGrid('getCell', rowId, 'pchPodrUnqNo');
349
+                        const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
350
+                        const spplyIdVal = LOGIN_USER_INFO.spplyId;
351
+                        const key = {pchPodrUnqNo: pchPodrUnqNoVal, brandId: brandIdVal, spplyId: spplyIdVal};
352
+                        var param = $.param(key);
353
+                        viewObj.init(param);
354
+                    }
355
+				},
356
+				loadComplete: function(data) {
357
+					console.log(data);
358
+                    itp_fn_grid_load_complete(data, ORDMNG01010_GRID_ID, true, 'number', 'ORDMNG01010', listObj.itp_ORDMNG01010_search, listObj.empty, true, data.gridRecords, true);
359
+                    var ids = $(ORDMNG01010_GRID_ID).getDataIDs();
360
+                    $.each(ids, function(idx, rowId) {
361
+                        $(ORDMNG01010_GRID_ID).jqGrid('setCell', rowId, 'pchPodrUnqNo', '', ITP_GRID_COL_STYLE.link);
362
+                    });
363
+				},
364
+				onPaging: function(action) {
365
+                    itp_fn_grid_paging(ORDMNG01010_GRID_ID, action, param);
366
+                }
367
+            };
368
+            itp_fn_grid_make_remote(option);
369
+		},
370
+		clearData: function() {
371
+			$(ORDMNG01010_GRID_ID).jqGrid('clearGridData', true);
372
+            $(ORDMNG01010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
373
+            $(ORDMNG01010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
374
+            $(ORDMNG01010_GRID_EMPTY).show();
375
+		},
376
+		unload: function() {
377
+			$.jgrid.gridUnload(ORDMNG01010_GRID_ID);
378
+		}
379
+	}
380
+};
381
+
382
+/*상세화면 Object*/
383
+let viewObj = {
384
+	init: function(param) {
385
+		console.log(param);
386
+		this.load(param);
387
+	},
388
+	itp_ORDMNG01010_param: {},
389
+	itp_ORDMNG01010_search: false,
390
+	button: {
391
+		cancel: function() {
392
+			listObj.grid.search();
393
+		}
394
+	},
395
+	empty: {
396
+		init: function() {
397
+            var _this = this;
398
+            this.push();
399
+            $(ORDMNG01010_VIEW_GRID_EMPTY).on('click', function() {
400
+                _this.back();
401
+                viewObj.itp_ORDMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
402
+                $(ORDMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(viewObj.itp_ORDMNG01010_param)}).trigger('reloadGrid');
403
+            });
404
+        },
405
+        push: function() {
406
+            let param = $('#ITP_FORM_ORDMNG01010_VIEW').serializeObject();
407
+            viewObj.itp_ORDMNG01010_param = param;
408
+        },
409
+        back: function() {
410
+            $('#ITP_FORM_ORDMNG01010_SERVICE_BRAND_TYPE').val(viewObj.itp_ORDMNG01010_param.brandType);
411
+            $('#ITP_FORM_ORDMNG01010_SERVICE_ST_CD').val(viewObj.itp_ORDMNG01010_param.stCd);
412
+            $('#ITP_FORM_ORDMNG01010_SEARCH_BRAND_NM').val(viewObj.itp_ORDMNG01010_param.brandNm);
413
+        }
414
+	},
415
+	load: function(param) {
416
+		fn_ajax_call(API_POMNG_PO_INFO_SPPLY_PCHORD, param, this.callback, 'GET');
417
+	},
418
+	callback: function(result) {
419
+		console.log(result);
420
+		
421
+		function convertTel(value){
422
+			answer = (value.startsWith('0')) ? value.replace(/[^0-9]/g, "")
423
+					.replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/,"$1-$2-$3")
424
+					.replace("--", "-") : '';
425
+			return answer;
426
+		}
427
+		let telNo = convertTel(result.podrMgrTelNo);
428
+		
429
+		pageObj.switchScreen('VIEW');
430
+		$('#ITP_FORM_ORDMNG01010_VIEW #ITP_FORM_ORDMNG01010_VIEW_AFFL_SHOP_ID').val(result.afflShopId);
431
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnBrandNm').text(result.brandNm);				// 브랜드명
432
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnPchPodrUnqNo').text(result.pchPodrUnqNo);
433
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnPodrDt').text(result.podrDt);
434
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnPchOdrStCd').text(result.pchOdrStNm);
435
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnPodrTotalAmt').text(result.podrTotalAmt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','));
436
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnPodrMgrNm').text(result.podrMgrNm + ' (' + telNo + ')');
437
+		$('#ITP_FORM_ORDMNG01010_VIEW .fnDlvReqDt').text(result.dlvReqDt);
438
+		
439
+		viewObj.grid.init('VIEW', result.pchOdrDtlList)
440
+	},
441
+	grid: {
442
+		init: function(mode, gridData) {
443
+			this.mode = mode;
444
+			this.gridId = (mode === 'VIEW') ? ORDMNG01010_VIEW_GRID_ID : ORDMNG01010_DETAIL_GRID_ID;
445
+			this.gridList = (mode === 'VIEW') ? ORDMNG01010_VIEW_GRID_LIST : ORDMNG01010_DETAIL_GRID_LIST;
446
+			this.gridEmpty = (mode === 'VIEW') ? ORDMNG01010_VIEW_GRID_EMPTY : ORDMNG01010_DETAIL_GRID_EMPTY;
447
+			this.unload();
448
+			this.load(mode, gridData);
449
+		},
450
+		mode: '',
451
+		colModel: gridColModel.view,
452
+		load: function(mode, gridData) {
453
+			var _this = this;
454
+			var option = {
455
+				gridId: _this.gridId,
456
+				colModel: gridColModel.view,
457
+				data: gridData,
458
+				multiselect: true,
459
+				loadComplete: function(data) {
460
+					console.log(data);
461
+					itp_fn_grid_load_complete(data, ORDMNG01010_VIEW_GRID_ID, true, 'number', 'ORDMNG01010', viewObj.itp_ORDMNG01010_search, viewObj.empty, true, data.gridRecords, true);
462
+				}
463
+			};
464
+			itp_fn_grid_make_local(option);
465
+		},
466
+		unload: function() {
467
+			$.jgrid.gridUnload(this.gridId);
468
+		}
469
+	}
470
+	
471
+};

+ 6 - 5
src/main/webapp/js/app/ordmng/ITP_ORDMNG03010.js

@@ -29,23 +29,24 @@ let ITP_FORM_ORDMNG03010_DETAIL_IS_WRITING = false;
29 29
 
30 30
 /*API URL*/
31 31
 let API_DELI_GRID_LIST 	= '/api/pomng/inoutmng/spply-deli-grid-list';// 목록
32
-let API_INFO_INV 		= '/api/pomng/inoutmng/init-spply-inv';	// 상세
32
+let API_INFO_INV 		= '/api/pomng/inoutmng/info-inv';	// 상세
33 33
 let API_SAVE_SPPLY_INV 	= '/api/pomng/inoutmng/save-spply-inv';// 저장
34 34
 let API_ITEM_CLASS_LEVEL= '/api/item/class-level-list';		//품목분류 level 검색
35 35
 
36 36
 /*화면 Grid ColModel*/
37 37
 const gridColModel = {
38 38
 	list: [
39
+	
39 40
 			{
40 41
 				index: 'Brand_Nm', name: 'brandNm',
41 42
 				label: ITP_MSG_LOCALE.label.brandNm, //브랜드
42
-				width: '14', fixed: false, align: 'center',
43
+				width: '10', fixed: false, align: 'center',
43 44
 				sortable: false, hidden: false
44 45
 			},
45 46
 			{
46 47
 				index: 'DLV_STTMT_NO', name: 'dlvSttmtUnqNo',
47 48
 				label: ITP_MSG_LOCALE.label.dlvSttmtUnqNo, //납품서번호
48
-				width: '18', fixed: false, align: 'center',
49
+				width: '10', fixed: false, align: 'center',
49 50
 				sortable: false, hidden: false
50 51
 			},
51 52
 			{
@@ -109,8 +110,8 @@ const gridColModel = {
109 110
 				sortable: false, hidden: false
110 111
 			},
111 112
 			{
112
-				index: 'PCH_ITEM_YN', name: 'pchPodrUnqNo',
113
-				label: ITP_MSG_LOCALE.label.pchPodrUnqNo, //납품담당연락처
113
+				index: 'PCH_ITEM_YN', name: 'dlvMgrTelNo',
114
+				label: ITP_MSG_LOCALE.label.dlvMgrTelNo, //납품담당연락처
114 115
 				width: '10', fixed: false, align: 'center',
115 116
 				sortable: false, hidden: false
116 117
 			},

+ 56 - 85
src/main/webapp/js/app/pomng/ITP_POMNG01010.js

@@ -178,17 +178,20 @@ let pageObj = {
178 178
 			});
179 179
 
180 180
 			// 조회일자 지정
181
-			//var now = new Date(date.getDate() + 5);
182 181
 			var now = new Date();
183
-			$('#ITP_TAB_POMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
184
-			$('#ITP_FORM_POMNG01010_DETAIL_DLV_REQ_DT').datepicker('setDate', new Date(now.setDate(now.getDate() + 5)));
185
-			
186
-			
182
+			$('#ITP_FORM_POMNG01010_DETAIL_DLV_REQ_DT').datepicker('dlvReqDt', new Date(now.setDate(now.getDate() + 5)));
187 183
 			
188 184
 			//납품장소 필드 readonly
189 185
 			$('#ITP_FORM_POMNG01010_DETAIL_WHS_NM').attr('readonly', true);
190 186
 			$('#ITP_FORM_POMNG01010_DETAIL_LOCATION_NM').attr('readonly', true);
191
-			
187
+			// form alert message 주입
188
+			/*
189
+			$('input[data-alert-required="ONLYCHK"]').each(function() {
190
+				if($(this).data('alert-msg') === 'address') {
191
+					$(this).data('alert-msg', ITP_MSG_LOCALE.message.form.emptyAddr);
192
+				}
193
+			});
194
+			*/
192 195
 		},
193 196
 		grid: function() {
194 197
 			itp_fn_jqgrid_resize(POMNG01010_DETAIL_GRID_ID, POMNG01010_DETAIL_GRID_LIST, 'lg');
@@ -209,8 +212,8 @@ let pageObj = {
209 212
 				var id = $(this).attr('id');
210 213
 				$(this).on('click', function() {
211 214
 					switch (id) {
212
-						case 'ITP_BTN_POMNG01010_SRH': createObj.button.save("PR20"); break;	// 구매요청
213
-						case 'ITP_BTN_POMNG01010_NEWREG': createObj.button.save("PR00"); break;	// 임시저장
215
+						case 'ITP_BTN_POMNG01010_SRH': modifyObj.button.save(); break;	// 구매요청
216
+						case 'ITP_BTN_POMNG01010_NEWREG': modifyObj.button.newReg(); break;	// 임시저장
214 217
 						case 'ITP_BTN_POMNG01010_DETAIL_ADDROW': pageObj.grid.button.addRow(); break;	// 품목추가
215 218
 						case 'ITP_BTN_POMNG01010_DETAIL_DELROW': pageObj.grid.button.delRow(); break;	// 품목삭제
216 219
 					}
@@ -241,13 +244,15 @@ let pageObj = {
241 244
 					var exists = '';
242 245
 					const rowData = $(POMNG01010_DETAIL_GRID_ID).getRowData();
243 246
 					$.each(rowData, function(key, value) {
244
-						exists = exists + value.itemId + ';';
247
+						//exists = exists + value.itemId + ';';
248
+						exists = exists + value.brandUnitUnqNo + ';';
245 249
 					});
246 250
 
247 251
 					$.each(rowDataPop, function(key, value) {
248
-						if (exists.indexOf(value.itemId) < 0 && value.podrPssblDvsn == 'PO01') {
252
+						// if (exists.indexOf(value.itemId) < 0 && value.podrPssblDvsn == 'PO01') {
253
+						if (exists.indexOf(value.brandUnitUnqNo) < 0 && value.podrPssblDvsn == 'PO01') {
249 254
 							value['viewCd'] = "C";
250
-							$(POMNG01010_DETAIL_GRID_ID).jqGrid('addRowData', value.itemId, value, 'last');
255
+							$(POMNG01010_DETAIL_GRID_ID).jqGrid('addRowData', value.brandUnitUnqNo, value, 'last');
251 256
 						}
252 257
 					});
253 258
 					$(POMNG01010_DETAIL_GRID_EMPTY).hide();
@@ -258,7 +263,7 @@ let pageObj = {
258 263
 			delRow: function() {
259 264
 				itp_fn_grid_del_row(POMNG01010_DETAIL_GRID_ID);
260 265
 				// 그리드 포문으로 금액 재계산후 구매요청금액에 넣어줌
261
-				pageObj.grid.recal();  //==>dwkim 왜 호출이 안될까요
266
+				this.load.recal();  //==>dwkim 왜 호출이 안될까요
262 267
 			}
263 268
 		},
264 269
 		load: function(gridData) {  // ==>dwkim  오픈시 데이타 가져오는 부분 넣으면 되는건지 여부 gird가 아님
@@ -316,85 +321,56 @@ let createObj = {
316 321
 		//let param = 'brandId=' + LOGIN_USER_INFO.brandId + "&spplyId=" + LOGIN_USER_INFO.spplyId;
317 322
 		this.load();
318 323
 	},
319
-	newinit: function() {
320
-		$('#ITP_FORM_POMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
321
-		$('#ITP_FORM_POMNG01010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
322
-		$('#ITP_FORM_POMNG01010_DETAIL_PCH_REQ_NM').val('');
323
-		$('#ITP_FORM_POMNG01010_DETAIL_NOTE').val('');
324
-		var now = new Date();
325
-		$('#ITP_TAB_POMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
326
-		$('#ITP_FORM_POMNG01010_DETAIL_DLV_REQ_DT').datepicker('setDate', new Date(now.setDate(now.getDate() + 5)));
327
-		
328
-		
329
-		this.load();  //==>dwkim 초기화 하여 다시 초기 데이타 가져와 뿌려줌
330
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
331
-		fn_ajax_call(API_DETAIL_INIT_INFO, key, this.callback, 'GET');
332
-	},
333 324
 	button: {
334
-		save: function(arg) {
325
+		save: function() {
335 326
 			const formId = '#ITP_FORM_POMNG01010_DETAIL';
336 327
 			itp_fn_form_clear_validate(null, formId);
337
-			$('#ITP_FORM_POMNG01010_DETAIL_PCH_REQ_ST_CD').val(arg);
338
-			
339
-			//정산 타입이 무정산이면 스킵
340
-			var loanDvsn = $('#ITP_FORM_POMNG01010_DETAIL_LOAN_DVSN').val();
341
-			
342
-			if (loanDvsn != 'LD03' && arg == 'PR20' ) {
343
-				var pchActAtm = $('#ITP_FORM_POMNG01010_DETAIL .fnPchActAmt').text();
344
-				var pchReqAtm = $('#ITP_FORM_POMNG01010_DETAIL .fnPchReqAmt').text();
345
-				
346
-				if (parseInt(pchActAtm) < parseInt(pchReqAtm)) {
347
-					alert(ITP_MSG_LOCALE.message.ajax.lackReqAmt);
348
-					return;
349
-				}
350
-			}            
351 328
 
329
+			// if (vali_cmpyCd && vali_cmpyStatCd && vali_cmpyTypeCd && vali_cmpyNm && vali_bossNm && vali_mainTel && vali_mainEmail) {
352 330
 			if (itp_fn_form_event.isValid(formId)) {
353
-				var saveReq = {
354
-				callBack: function(args) {
355
-						$(formId).val(arg);
356
-						let gridInsertData = [];
357
-						let gridUpdateData = [];
358
-						let gridDeleteData = [];
359
-						const rowData = $(POMNG01010_DETAIL_GRID_ID).getRowData();
360
-						const keyValue = $(formId + '_AFFL_SHOP_ID').val();
361
-						$.each(rowData, function(key, value) {
362
-							if (value.viewCd !== 'R') {
363
-								if (value.viewCd === 'C') {
364
-									gridInsertData.push(value);
365
-								} else if (value.viewCd === 'U') {
366
-									gridUpdateData.push(value);
367
-								} else if (value.viewCd === 'D') {
368
-									gridDeleteData.push(value);
369
-								}
370
-							}
371
-						});
372
-		
373
-						let param = $(formId).serializeObject();
374
-						param.gridInsertData = gridInsertData;
375
-						param.gridUpdateData = gridUpdateData;
376
-						param.gridDeleteData = gridDeleteData;
377
-						console.log(JSON.stringify(param));
378
-						var searhFn = function() {
379
-							createObj.newinit();
380
-						};
381
-						fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');				
382
-					}
383
-				};
384
-				if (arg == 'PR20') {
385
-					itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.reqSave, saveReq, null);
331
+
332
+				// if($('#ITP_FORM_POMNG01010_DETAIL_CMPY_ZIPNO').val() === '' || $('#ITP_FORM_POMNG01010_DETAIL_CMPY_ADRES').val() === '') {
333
+				// 	itp_fn_modal_alert('주소 검색을 통해 회사 주소를 입력하세요.');
334
+				// 	return;
335
+				// }
336
+
337
+				if (ITP_FORM_POMNG01010_DETAIL_IS_DUPLICATE) {
338
+					itp_fn_modal_duplicate('회사코드 중복체크를 해주세요.', formId + '_AFFL_SHOP_ID');
386 339
 				} else {
387
-					itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.tmpSave, saveReq, null);
340
+					let gridInsertData = [];
341
+					let gridUpdateData = [];
342
+					let gridDeleteData = [];
343
+					const rowData = $(POMNG01010_DETAIL_GRID_ID).getRowData();
344
+					const keyValue = $(formId + '_AFFL_SHOP_ID').val();
345
+					$.each(rowData, function(key, value) {
346
+						if (value.viewCd !== 'R') {
347
+							value.afflShopId = keyValue;
348
+							if (value.viewCd === 'C') {
349
+								gridInsertData.push(value);
350
+							} else if (value.viewCd === 'U') {
351
+								gridUpdateData.push(value);
352
+							} else if (value.viewCd === 'D') {
353
+								gridDeleteData.push(value);
354
+							}
355
+						}
356
+					});
357
+
358
+					let param = $(formId).serializeObject();
359
+					param.gridInsertData = gridInsertData;
360
+					param.gridUpdateData = gridUpdateData;
361
+					param.gridDeleteData = gridDeleteData;
362
+					console.log(JSON.stringify(param));
363
+					var searhFn = function() {
364
+						ITP_FORM_POMNG01010_DETAIL_IS_WRITING = false;
365
+						viewObj.init();
366
+					};
367
+					fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
388 368
 				}
389
-				
390
-				
391
-				
392 369
 			}
393 370
 		}
394 371
 	},
395 372
 	load: function() {
396
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
397
-		fn_ajax_call(API_DETAIL_INIT_INFO, key, this.callback, 'GET');
373
+		fn_ajax_call(API_DETAIL_INIT_INFO, '', this.callback, 'GET');
398 374
 	},
399 375
 	callback: function(result) {
400 376
 		console.log(result);
@@ -406,17 +382,12 @@ let createObj = {
406 382
 		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_LOAN_DVSN').val(result.loanDvsn);
407 383
 		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_LOAN_MGNT_UNQ_NO').val(result.loanMgntUnqNo);
408 384
 		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_PCH_REQ_DVSN').val(result.pchReqDvsn);
409
-		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_WHS_ID').val(result.whsId);
410
-		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_WHS_NM').val(result.whsNm);
411
-		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_LOCATION').val(result.location);
412
-		$('#ITP_FORM_POMNG01010_DETAIL #ITP_FORM_POMNG01010_DETAIL_LOCATION_NM').val(result.locationNm);
413 385
 		$('#ITP_FORM_POMNG01010_DETAIL .fnBrandNm').text(result.brandNm);
414 386
 		$('#ITP_FORM_POMNG01010_DETAIL .fnPchReqDept').text(result.reqDept);
415 387
 		$('#ITP_FORM_POMNG01010_DETAIL .fnPchReqMgrNm').text(result.userNm);
416 388
 		$('#ITP_FORM_POMNG01010_DETAIL .fnPchReqAmt').text("0");
417 389
 		$('#ITP_FORM_POMNG01010_DETAIL .fnLoanDvsnNm').text(result.loanDvsnNm);
418 390
 		$('#ITP_FORM_POMNG01010_DETAIL .fnPchActAmt').text(result.ordUseAmt);
419
-		
420 391
 
421 392
 		pageObj.grid.init();
422 393
 	}

+ 1 - 0
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_AFFL_SHOP.js

@@ -39,6 +39,7 @@ function itp_fn_BIZPOP_AFFL_SHOP(parentPopFn, args, returnType) {
39 39
 	    	return;
40 40
 	    }
41 41
 	    const selRow = $(THIS_GIRD_ID).getRowData(rowKey);
42
+	    console.log(selRow);
42 43
 
43 44
 		var afflData = {};
44 45
 		var callbackFn = function(result) {

+ 1 - 52
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js

@@ -7,7 +7,7 @@ require(['config'], function() {
7 7
 });
8 8
 
9 9
 let FRCOMP_POP_GRID_LIST = '/api/pomng/inoutmng/spply-deli-grid-list';
10
-let API_INFO_INV 		= '/api/pomng/inoutmng/save-spply-inv';	// 상세
10
+
11 11
 function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, returnType) {
12 12
 	// 공통코드
13 13
 	// fn_make_select(CODE_LIST, 'CMPY_TYPE_CD', 'ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_TYPE_CD', true, '가맹점타입 선택');
@@ -16,12 +16,8 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, returnType) {
16 16
 	let itp_BIZPOP_DLV_STTMT_PRN_search = false;
17 17
 
18 18
 	const THIS_FORM_ID = '#ITP_FORM_BIZPOP_DLV_STTMT_PRN';
19
-	
20 19
 	const THIS_GIRD_ID = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGrid';
21
-	const THIS_GRID_LIST = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGrid_list';
22 20
 	const THIS_GIRD_PAGER = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGridPager';
23
-	const THIS_GRID_EMPTY = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGridEmpty';
24
-
25 21
 
26 22
 	if(args) {
27 23
 		$('#ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_NM').val(args.brandNm);
@@ -142,50 +138,3 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, returnType) {
142 138
 	    }
143 139
 	}).navGrid(THIS_GIRD_PAGER, ITP_GRID_NAV_DEFAULTS.navGrid);
144 140
 };
145
-let viewObj = {
146
-		init: function (param) {
147
-				this.load(param);
148
-		},
149
-		load: function(param) {
150
-				fn_ajax_call(API_INFO_INV, param, this.callback, 'GET');
151
-		},
152
-		callback: function (result) {
153
-				console.log(result);
154
-				$('#ITP_POPUP_CONTAINER #ITP_POPUP_CONTAINER_ITEM_ID').val(result.itemId);
155
-				$('#ITP_POPUP_CONTAINER .fnPchPodrUnqNo').text(result.pchPodrUnqNo);
156
-				$('#ITP_POPUP_CONTAINER .fnItemClassMgntNo').text(result.itemClassMgntNo);
157
-				$('#ITP_POPUP_CONTAINER .fnItemId').text(result.itemId);
158
-				$('#ITP_POPUP_CONTAINER .fnItemTypeNm').text(result.itemTypeNm);
159
-				$('#ITP_POPUP_CONTAINER .fnItemNm').text(result.itemClassNm);
160
-				$('#ITP_POPUP_CONTAINER .fnImpDvsnNm').text(result.impDvsnNm);
161
-				$('#ITP_POPUP_CONTAINER .fnPodrPssblDvsn').text(result.podrPssblDvsnNm);
162
-				$('#ITP_POPUP_CONTAINER .fnUnit').text(result.unit);
163
-				$('#ITP_POPUP_CONTAINER .fnWeightUnit').text(result.weightUnit);
164
-				$('#ITP_POPUP_CONTAINER .fnVolumeUnit').text(result.volumeUnit);
165
-				$('#ITP_POPUP_CONTAINER .fnWidthUnit').text(result.widthUnit);
166
-				$('#ITP_POPUP_CONTAINER .fnHeightUnit').text(result.heightUnit);
167
-				$('#ITP_POPUP_CONTAINER .fnHighUnit').text(result.highUnit);
168
-				
169
-				$('#ITP_POPUP_CONTAINER .fnPchItemYn').text(result.pchItemYn);
170
-				$('#ITP_POPUP_CONTAINER .fnViewPchUnit').text(result.pchUnit);
171
-				$('#ITP_POPUP_CONTAINER .fnSaleItemYn').text(result.saleItemYn);
172
-				$('#ITP_POPUP_CONTAINER .fnSaleUnit').text(result.saleUnit);
173
-				$('#ITP_POPUP_CONTAINER .fnAssetInfo').text(result.assetInfo);
174
-				$('#ITP_POPUP_CONTAINER .fnStckUnit').text(result.stckUnit);
175
-				$('#ITP_POPUP_CONTAINER .fnWeight').text(result.weight);
176
-				$('#ITP_POPUP_CONTAINER .fnVolume').text(result.volume);
177
-				$('#ITP_POPUP_CONTAINER .fnWidth').text(result.width);
178
-				$('#ITP_POPUP_CONTAINER .fnHeight').text(result.height);
179
-				$('#ITP_POPUP_CONTAINER .fnHigh').text(result.high);
180
-				
181
-				$('#ITP_POPUP_CONTAINER .fnOneBoxQty').text(result.oneBoxQty);
182
-				$('#ITP_POPUP_CONTAINER .fnExpryYn').text(result.expryYn);
183
-				$('#ITP_POPUP_CONTAINER .fnExpryPeriod').text(result.expryPeriod);
184
-				$('#ITP_POPUP_CONTAINER .fnRtnPssblYn').text(result.rtnPssblYn);
185
-				$('#ITP_POPUP_CONTAINER .fnRtnDvsn').text(result.rtnDvsnNm);
186
-				// $('#ITP_POPUP_CONTAINER .fnItemImage').text(result.imageFileNoList);
187
-				$.each(result.imageFileNoList, function(index, item) {
188
-						$('#ITP_POPUP_CONTAINER .fnItemImage').append('<img src=" + item.filePath +" />');
189
-				});
190
-		}
191
-	};

+ 18 - 6
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_WHS_LOCATION.js

@@ -37,16 +37,27 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
37 37
 	});
38 38
 	
39 39
 	$('#ITP_BIZPOP_WHS_LOCATION_BTN_SELECT').on('click', function() {		
40
+		
40 41
 		const rowKey = $(THIS_GIRD_ID).getGridParam('selrow');
41
-		if (!rowKey) {
42
-			return;
42
+	    if (!rowKey) {
43
+	    	return;
43 44
 	    }
44
-		const selRow = $(THIS_GIRD_ID).getRowData(rowKey);
45
-		console.log(selRow);
45
+
46
+		var list = [];
47
+	    var selectedIds = $(THIS_GIRD_ID).getGridParam('selarrrow');
46 48
 		
47
-		parentPopFn(selRow);
48
-		$('#ITP_BIZPOP_WHS_LOCATION').modal('hide'); // 팝업닫기
49
+		/*
50
+		if(selectedIds.length != 1) { // 1개만 선택
51
+			 itp_fn_modal_alert('하나의 창고만 선택해주세요!');
52
+			 return;
53
+		}
54
+		*/
49 55
 		
56
+	    for (var i=selectedIds.length-1; i>=0; i--) {
57
+			list.push($(THIS_GIRD_ID).jqGrid('getRowData', selectedIds[i]));	
58
+		}
59
+		parentPopFn(list);
60
+		$('#ITP_BIZPOP_WHS_LOCATION').modal('hide'); // 팝업닫기
50 61
 	});
51 62
 
52 63
 	$('#ITP_BIZPOP_WHS_LOCATION_jqGridEmpty').on('click', function() {
@@ -129,6 +140,7 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
129 140
 		url: DOMAIN + API_POP_GRID_LIST,
130 141
 		pager: THIS_GIRD_PAGER,
131 142
 		multiselect: false,
143
+		rownumbers: false,
132 144
 		loadComplete: function(data) {
133 145
 			console.log(data);
134 146
 			itp_fn_grid_load_complete(data, THIS_GIRD_ID, true, undefined, 'BIZPOP_WHS_LOCATION', itp_BIZPOP_WHS_LOCATION_search, itp_fn_BIZPOP_WHS_LOCATION_empty, true, data.gridRecords, false);

+ 0 - 15
src/main/webapp/js/app/settmng/ITP_SETTMNG01010.js

@@ -353,8 +353,6 @@ let pageObj = {
353 353
 						case 'ITP_BTN_SETTMNG01010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
354 354
 						case 'ITP_BTN_SETTMNG01010_NEWREG'			: listObj.button.reqSttl();	break;	// 정산요청 버튼
355 355
 						case 'ITP_BTN_SETTMNG01010_REQUEST'			: modifyObj.button.request();	break;	// 요청 버튼
356
-						case 'ITP_BTN_SETTMNG01010_STORE_SEARCH'	: listObj.button.storePop();	break;	// 매장검색 팝업
357
-						case 'ITP_BTN_SETTMNG01010_STORE_ERASE'		: listObj.button.storeErase();	break;	// 매장 지움
358 356
 					}
359 357
 				});
360 358
 			});
@@ -478,19 +476,6 @@ let listObj = {
478 476
 			// itp_fn_form_clear_validate(null, '#ITP_FORM_SETTMNG01010_DETAIL');						
479 477
 			// 로케이션 리스트 조회
480 478
 			// createObj.init();
481
-		}, 
482
-		storePop: function() {
483
-			fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', function(result) {
484
-				// alert(JSON.stringify(result));
485
-				$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val(result[0].storeId);
486
-				$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_NM').val(result[0].storeNm);				
487
-				listObj.button.search();
488
-			}, null, 'S');
489
-		}, 
490
-		storeErase: function() {
491
-			$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val('');
492
-			$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_NM').val('');
493
-			listObj.button.search();
494 479
 		}
495 480
 	},
496 481
 	empty: {

+ 1 - 1
src/main/webapp/js/app/settmng/ITP_SETTMNG02010.js

@@ -518,7 +518,7 @@ let modifyObj = {
518 518
 		$('#ITP_FORM_SETTMNG02010_DETAIL .fnBrandNm').text(result.brandNm);
519 519
 		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSupplyNm').text(result.spplyNm);
520 520
 		
521
-		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlRjctRsn').text(result.sttlRjctRsn == null ? '' : result.sttlRjctRsn);
521
+		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlRjctRsn').text(result.sttlRjctRsn);
522 522
 		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlStNm').text(result.sttlStNm);
523 523
 		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlReqDt').text(result.sttlReqDt);  // 정산일자
524 524
 		$('#ITP_FORM_SETTMNG02010_DETAIL .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));

+ 4 - 21
src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js

@@ -291,8 +291,8 @@ let pageObj = {
291 291
 					switch (id) {
292 292
 						case 'ITP_BTN_SETTMNG03010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
293 293
 						case 'ITP_BTN_SETTMNG03010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
294
-						case 'ITP_BTN_SETTMNG03010_SEARCH_STORE_POP'	: listObj.button.storePop();	break;	// 매장검색 팝업
295
-						case 'ITP_BTN_SETTMNG03010_SEARCH_ERASE'		: listObj.button.storeErase();	break;	// 매장 지움
294
+						// case 'ITP_BTN_SETTMNG03010_NEWREG'			: listObj.button.reqSttl();	break;	// 정산요청 버튼
295
+						// case 'ITP_BTN_SETTMNG03010_REQUEST'			: modifyObj.button.request();	break;	// 요청 버튼
296 296
 					}
297 297
 				});
298 298
 			});
@@ -377,19 +377,6 @@ let listObj = {
377 377
 			param.gridSize = $.jgrid.defaults.rowNum;
378 378
 			param.gridPage = $.jgrid.defaults.page;
379 379
 			$(SETTMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
380
-		}, 
381
-		storePop: function() {
382
-			fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', function(result) {
383
-				// alert(JSON.stringify(result));
384
-				$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_ID').val(result[0].storeId);
385
-				$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_NM').val(result[0].storeNm);				
386
-				listObj.button.search();
387
-			}, null, 'S');
388
-		}, 
389
-		storeErase: function() {
390
-			$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_ID').val('');
391
-			$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_NM').val('');
392
-			listObj.button.search();
393 380
 		}
394 381
 	},
395 382
 	empty: {
@@ -496,14 +483,10 @@ let modifyObj = {
496 483
 		
497 484
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnBrandNm').text(result.brandNm);
498 485
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnStoreNm').text(result.storeNm);
499
-		
500
-		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlRjctRsn').text(result.sttlRjctRsn == null ? '' : result.sttlRjctRsn);
501
-		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlStNm').text(result.sttlStNm);
502
-		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlReqDt').text(result.sttlReqDt);  // 정산일자
503
-		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));
504 486
 		$('#ITP_FORM_SETTMNG03010_DETAIL_STTL_DT').val(result.sttlDt);  // 정산일자
487
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlStNm').text(result.sttlStNm);
505 488
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlAmt').text(itp_fn_number_comma(result.sttlAmt));
506
-		
489
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
507 490
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
508 491
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegNm').text(result.sysRegNm);
509 492
 

+ 156 - 22
src/main/webapp/js/app/stinfo/ITP_STINFO01011.js

@@ -154,6 +154,108 @@ let pageObj = {
154 154
     }
155 155
 };
156 156
 
157
+/*목록화면 Object*/
158
+let listObj = {
159
+    init: function () {
160
+        afflShopObj.init();
161
+        this.grid.init();
162
+    },
163
+    itp_STINFO01011_param: {},
164
+    itp_STINFO01011_search: false,
165
+    button: {
166
+        search: function() {
167
+            listObj.itp_STINFO01011_search = true;
168
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
169
+            param.gridSize = $.jgrid.defaults.rowNum;
170
+            param.gridPage = $.jgrid.defaults.page;
171
+            console.log(JSON.stringify(param));
172
+            $(STINFO01011_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
173
+        },
174
+        create: function() {
175
+            pageObj.switchScreen('ADD');
176
+            itp_fn_form_clear_validate(null, '#ITP_FORM_STINFO01011_DETAIL');
177
+            // 권한정보 리스트 조회
178
+            createObj.init();
179
+        }
180
+    },
181
+    empty: {
182
+        init: function() {
183
+            var _this = this;
184
+            this.push();
185
+            $(STINFO01011_GRID_EMPTY).on('click', function() {
186
+                _this.back();
187
+                listObj.itp_STINFO01011_param.gridSize = $.jgrid.defaults.rowNum;
188
+                $(STINFO01011_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_STINFO01011_param)}).trigger('reloadGrid');
189
+            });
190
+        },
191
+        push: function() {
192
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
193
+            listObj.itp_STINFO01011_param = param;
194
+        },
195
+        back: function() {
196
+            $('#ITP_FORM_STINFO01011_SERVICE_BRAND_TYPE').val(listObj.itp_STINFO01011_param.brandType);
197
+            $('#ITP_FORM_STINFO01011_SERVICE_ST_CD').val(listObj.itp_STINFO01011_param.stCd);
198
+            $('#ITP_FORM_STINFO01011_SEARCH_BRAND_NM').val(listObj.itp_STINFO01011_param.brandNm);
199
+        }
200
+    },
201
+    grid: {
202
+        init: function () {
203
+            // 데이터 없을때
204
+            listObj.empty.push();
205
+            this.search();
206
+        },
207
+        colModel: gridColModel.list,
208
+        search: function() {
209
+            pageObj.switchScreen('LIST');
210
+            this.unload();
211
+            this.load();
212
+        },
213
+        load: function() {
214
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
215
+            param.gridSize = $.jgrid.defaults.rowNum;
216
+
217
+            var option = {
218
+                gridId: STINFO01011_GRID_ID,
219
+                colModel: gridColModel.list,
220
+                param: param,
221
+                url: DOMAIN + API_DETAIL_GRID_LIST,
222
+                pager: STINFO01011_GRID_PAGER,
223
+                onCellSelect: function(rowId, cellIdx, cellValue) {
224
+                    var cm = $(this).jqGrid('getGridParam', 'colModel');
225
+                    var colNm = cm[cellIdx].name;
226
+                    if (colNm === 'brandId') {
227
+                        const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
228
+                        const key = {brandId: brandIdVal, viewCd: 'R'};
229
+                        var param = $.param(key);
230
+                        viewObj.init(param);
231
+                    }
232
+                },
233
+                loadComplete: function(data) {
234
+                    console.log(data);
235
+                    itp_fn_grid_load_complete(data, STINFO01011_GRID_ID, true, 'number', 'STINFO01011', listObj.itp_STINFO01011_search, listObj.empty, true, data.gridRecords, true);
236
+                    var ids = $(STINFO01011_GRID_ID).getDataIDs();
237
+                    $.each(ids, function(idx, rowId) {
238
+                        $(STINFO01011_GRID_ID).jqGrid('setCell', rowId, 'brandId', '', ITP_GRID_COL_STYLE.link);
239
+                    });
240
+                },
241
+                onPaging: function(action) {
242
+                    itp_fn_grid_paging(STINFO01011_GRID_ID, action, param);
243
+                }
244
+            };
245
+            itp_fn_grid_make_remote(option);
246
+        },
247
+        clearData : function() {
248
+            $(STINFO01011_GRID_ID).jqGrid('clearGridData', true);
249
+            $(STINFO01011_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
250
+            $(STINFO01011_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
251
+            $(STINFO01011_GRID_EMPTY).show();
252
+        },
253
+        unload : function() {
254
+            $.jgrid.gridUnload(STINFO01011_GRID_ID);
255
+        }
256
+    }
257
+};
258
+
157 259
 /*상세화면 Object*/
158 260
 let viewObj = {
159 261
     init: function (param) {
@@ -213,28 +315,6 @@ let modifyObj = {
213 315
             const key = {brandId: brandIdVal, viewCd: 'R'};
214 316
             var param = $.param(key);
215 317
             modifyObj.load(param);
216
-        },
217
-        address: function() {
218
-            kakaoMap.address('ITP_FORM_STINFO01011_DETAIL');
219
-        },
220
-        save: function() {
221
-            const formId = '#ITP_FORM_STINFO01011_DETAIL';
222
-            itp_fn_form_event.removeChar('#ITP_FORM_STINFO01011_DETAIL');
223
-            itp_fn_form_clear_validate(null, formId);
224
-
225
-            if (itp_fn_form_event.isValid(formId)) {
226
-                let param = $(formId).serializeObject();
227
-                console.log(JSON.stringify(param));
228
-
229
-                var searhFn = function() {
230
-                    ITP_FORM_STINFO01011_DETAIL_IS_WRITING = false;
231
-                    viewObj.init();
232
-                };
233
-                fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
234
-            }
235
-        },
236
-        cancel: function () {
237
-            viewObj.init();
238 318
         }
239 319
     },
240 320
     load: function(param) {
@@ -285,6 +365,60 @@ let modifyObj = {
285 365
     }
286 366
 };
287 367
 
368
+/*신규화면 Object*/
369
+let createObj = {
370
+    init: function () {
371
+        this.button.init();
372
+        pageObj.fileUpload();
373
+        kakaoMap.init('ITP_FORM_STINFO01011_DETAIL', '');
374
+    },
375
+    button: {
376
+        init: function() {
377
+            // 가맹점 조회 버튼 클릭
378
+            $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').one('click', function() {
379
+                createObj.popup();
380
+            });
381
+            // 가맹점 텍스트 삭제 버튼 클릭
382
+            $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').one('click', function() {
383
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID').val('');
384
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM').val('');
385
+            });
386
+        },
387
+        address: function() {
388
+            kakaoMap.address('ITP_FORM_STINFO01011_DETAIL');
389
+        },
390
+        save: function() {
391
+            const formId = '#ITP_FORM_STINFO01011_DETAIL';
392
+            itp_fn_form_event.removeChar('#ITP_FORM_STINFO01011_DETAIL');
393
+            itp_fn_form_clear_validate(null, formId);
394
+
395
+            if (itp_fn_form_event.isValid(formId)) {
396
+                let param = $(formId).serializeObject();
397
+                console.log(JSON.stringify(param));
398
+
399
+                var searhFn = function() {
400
+                    ITP_FORM_STINFO01011_DETAIL_IS_WRITING = false;
401
+                    listObj.grid.search();
402
+                };
403
+                fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
404
+            }
405
+        },
406
+        cancel: function () {
407
+            listObj.grid.search();
408
+        }
409
+    },
410
+    popup: function() {
411
+        var popFn = function(rowDataPop) {
412
+            // console.log(rowDataPop);
413
+            if(rowDataPop.AFFL_SHOP) {
414
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
415
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
416
+            }
417
+        };
418
+        fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
419
+    }
420
+};
421
+
288 422
 /*가맹점 Object*/
289 423
 let afflShopObj = {
290 424
     init: function () {

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

@@ -627,6 +627,7 @@ let createObj = {
627 627
 					$(STINFO03010_DETAIL_GRID_ID).jqGrid('saveCell', i+1, 2)
628 628
 				}
629 629
 				const rowData = $(STINFO03010_DETAIL_GRID_ID).getRowData();
630
+				console.log(rowData);
630 631
 				var gridUpdateData = pageObj.grid.changeRows(rowData);
631 632
 				$.each(rowData, function(key, value) {
632 633
 					if (value.viewCd !== 'R') {
@@ -650,7 +651,7 @@ let createObj = {
650 651
 					ITP_FORM_STINFO03010_DETAIL_IS_WRITING = false;
651 652
 					listObj.grid.search();
652 653
 				};
653
-				fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
654
+				// fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
654 655
 			}
655 656
 		}
656 657
 	}

+ 1 - 1
src/main/webapp/js/app/vendinfo/ITP_VENDINFO01010.js

@@ -242,7 +242,7 @@ let pageObj = {
242 242
 			this.load(mode, gridData);
243 243
 		},
244 244
 		mode: 'DETAIL',
245
-		ridId: '',
245
+		gridId: '',
246 246
 		gridList: '',
247 247
 		gridEmpty: '',
248 248
 		load: function(mode, gridData) {

+ 4 - 4
src/main/webapp/mobile/app/login.html

@@ -26,23 +26,23 @@
26 26
         </div>
27 27
         <div class="num_area">
28 28
           <div class="input_area">
29
-            <input type="text" name="bsnsRegNo" id="ITP_FORM_LOGIN_BSNS_REG_NO">
29
+            <input type="text" name="bsnsRegNo" id="ITP_FORM_LOGIN_BSNS_REG_NO" required>
30 30
             <label for="ITP_FORM_LOGIN_BSNS_REG_NO">사업자번호</label>
31 31
             <button type="button" id="ITP_BTN_LOGIN_BSNS_REG_NO">연결</button>
32 32
           </div>
33 33
           <div class="brand_list">
34
-            <select name="brandId" id="ITP_FORM_LOGIN_BRAND_ID" required>
34
+            <select name="brandId" id="ITP_FORM_LOGIN_BRAND_ID">
35 35
               <option value="">선택</option>
36 36
             </select>
37 37
           </div>
38 38
         </div>
39 39
         <div class="login_page">
40 40
           <div class="input_area">
41
-            <input type="text" id="ITP_FORM_LOGIN_USER_ID" required>
41
+            <input type="text" id="ITP_FORM_LOGIN_USER_ID"  required>
42 42
             <label for="ITP_FORM_LOGIN_USER_ID">아이디</label>
43 43
           </div>
44 44
           <div class="input_area">
45
-            <input type="password" id="ITP_FORM_LOGIN_USER_PW" required>
45
+            <input type="password" id="ITP_FORM_LOGIN_USER_PW"  required>
46 46
             <label for="ITP_FORM_LOGIN_USER_PW">비밀번호</label>
47 47
           </div>
48 48
         </div>

+ 1 - 2
src/main/webapp/mobile/app/mpomng/MPOMNG01010.html

@@ -135,5 +135,4 @@
135 135
       <button id="ITP_BTN_MPOMNG01010" class="col_3 btn-gray CLB">취소</button>
136 136
     </div>
137 137
   </div>
138
-</section>
139
-
138
+</section>

+ 31 - 20
src/main/webapp/mobile/app/mpomng/MPOMNG02010.html

@@ -1,6 +1,6 @@
1 1
 <link rel="stylesheet" href="/style.css">
2 2
 <section>
3
-  <div id="ITP_AJAX_MPOMNG02010_VIEW_CONTAINER" style="display: none;">
3
+  <div id="ITP_AJAX_MPOMNG02010_VIEW_CONTAINER" style="display: block;">
4 4
     <div class="content">
5 5
         <div class="line">
6 6
           <label>구매요청일</label>
@@ -12,7 +12,7 @@
12 12
       </div>
13 13
       <div class="line">
14 14
         <label>구매요청상태</label>
15
-        <div class="float_left">
15
+        <div class="line_right">
16 16
           <select id="ITP_FORM_MPOMNG02010_VIEW" class="stcd" name="">
17 17
             <option value="">상태</option>
18 18
           </select>
@@ -20,12 +20,14 @@
20 20
       </div>
21 21
       <div class="line">
22 22
         <label>납품장소</label>
23
-        <div class="float_left">
24
-          <input id="ITP_FORM_MPOMNG02010_VIEW" class="" type="text" placeholder="A매장명">
25
-        </div>
26
-        <div class="float_left_btn">
27
-          <button id="ITP_BTN_MPOMNG02010"><img src="/img/search.png" alt=""></button>
28
-          <button id="ITP_BTN_MPOMNG02010"><img src="/img/delete.png" alt=""></button>
23
+        <div class="search_wrap">
24
+	        <div class="float_left">
25
+	          <input id="ITP_FORM_MPOMNG02010_VIEW" class="" type="text" placeholder="A매장명">
26
+	        </div>
27
+	        <div class="float_left_btn">
28
+	          <button id="ITP_BTN_MPOMNG02010"><img src="../img/search.png" alt=""></button>
29
+	          <button id="ITP_BTN_MPOMNG02010"><img src="../img/delete.png" alt=""></button>
30
+	        </div>
29 31
         </div>
30 32
       </div>
31 33
       <div class="line">
@@ -41,28 +43,36 @@
41 43
       <li class="history_list">
42 44
         <div class="left">
43 45
           <div class="nomal">
44
-            <label>구매요청일 :</label>
46
+            <label>구매요청일 </label>
47
+            <span>:</span>
45 48
             <div class="history">
46
-              <div class="fn">2022.10.01</div> 
47
-              (<div class="fn">홍길동 점주</div>)
49
+              <div class="fndate">2022.10.01</div> 
50
+              (<div class="fnOwnerNm">홍길동 점주</div>)
48 51
             </div>
49 52
           </div>
50 53
         </div>
51 54
         <div class="left">
52 55
           <div class="nomal">
53
-            <label>구매상태 :</label>
54
-            <div class="history">
55
-              <div class="fn">대기</div>
56
+          	<div class="half">
57
+	            <label>구매상태</label>
58
+     		            <span>:</span>
59
+	            <div class="history">
60
+	              <div class="fn">대기</div>
61
+	            </div>
56 62
             </div>
57
-            <label>납품장소명 :</label>
58
-            <div class="history">
59
-              <div class="fn">A매장내</div>
63
+          	<div class="half">
64
+	            <label>납품장소명 </label>
65
+	            <span>:</span>
66
+	            <div class="history">
67
+	              <div class="fn">A매장내</div>
68
+	            </div>
60 69
             </div>
61 70
           </div>
62 71
         </div>
63 72
         <div class="left">
64 73
           <div class="nomal">
65
-            <label style="width: 300px;">구매요청 정보 :</label>
74
+            <label style="width: 127px;">구매요청 정보</label>
75
+            <span>:</span>
66 76
             <div class="history">
67 77
               <div class="fn">품목수(3)</div> 
68 78
               <i>- </i>
@@ -72,7 +82,8 @@
72 82
         </div>
73 83
         <div class="left">
74 84
           <div class="nomal">
75
-            <label>결재정보 :</label>
85
+            <label>결재정보 </label>
86
+            <span>:</span>
76 87
             <div class="history">
77 88
               <div class="fn">미납</div> 
78 89
             </div>
@@ -81,7 +92,7 @@
81 92
       </li>
82 93
     </div>
83 94
   </div>
84
-  <div id="ITP_AJAX_MPOMNG02010_DETAIL_CONTAINER" style="display: block;">
95
+  <div id="ITP_AJAX_MPOMNG02010_DETAIL_CONTAINER" style="display: none;">
85 96
     <div class="content">
86 97
       <div class="line">
87 98
         <label>납기요청일</label>

+ 91 - 46
src/main/webapp/mobile/css/style.css

@@ -1,14 +1,14 @@
1 1
 @font-face { font-family: 'NanumBarunGothic';src: url('../fonts/NanumBarunGothic.eot');src: url('../fonts/NanumBarunGothic.eot') format('embedded-opentype'),url('../fonts/NanumBarunGothic.woff') format('woff');}
2 2
 * {margin: 0; padding: 0; box-sizing: border-box; text-align: center; font-family: 'NanumBarunGothic', 'serif'; list-style: none;}
3 3
 section {}
4
-body{background: #fff; position: relative; width: 100%; height: auto;}
4
+body{background: #fff; position: relative; width: 100%; height: 500px;}
5 5
 /* 팝업 */
6 6
 section .popup { position: fixed; width: 100%; height: 100%; background: transparent; z-index: 11;}
7
-section .popup .pop { position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%); width: 70%; height: 400px; padding-top: 50px; background: #fff; border: 2px solid #000; border-top-left-radius: 20px; border-top-right-radius: 20px;}
8
-section .popup .pop label.pop_label {margin-top: 50px;font-size: 1.2rem;}
7
+section .popup .pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 70%; height: 550px; padding-top: 80px; background: #fff; border: 2px solid #000; border-top-left-radius: 20px; border-top-right-radius: 20px;}
8
+section .popup .pop label.pop_label {margin-top: 50px;font-size: 2.2rem;}
9 9
 section .popup .pop .pop_line { width: 100%; height: 75px;}
10
-section .popup .pop .pop_line label { font-size: 1.2rem; margin-left: 70px; float: left; width: 272px; text-align: left; margin-top: -15px;}
11
-section .popup .pop .pop_line div { margin-top: -15px; text-align: right; float: right; font-size: 1.2rem; margin-right: 80px; width: 250px;}
10
+section .popup .pop .pop_line label { font-size: 2.6rem; margin-left: 70px; float: left; width: 272px; text-align: left; margin-top: -15px;}
11
+section .popup .pop .pop_line div { margin-top: -15px; text-align: right; float: right; font-size: 2.6rem; margin-right: 80px; width: 250px;}
12 12
 section .popup .pop .popup_btn { position: absolute; background-color: #ccc; bottom: 0; width: 100%; height: 100px; border-top: 2px solid #000;}
13 13
 section .popup .pop .popup_btn button { position: relative; float: left; width: 100%; height: 100px; font-size: 2rem; font-weight: 700; border-radius: 0px; border: none;}
14 14
 section .popup .pop .popup_btn button.ok { width: 64%; border-left: 2px solid #000;}
@@ -22,22 +22,21 @@ section .popup2 .barcode_area {width: 70%; height: 35%; margin: auto; background
22 22
 section .popup2 .barcode h1{text-align: left; width: 85%; font-size: 2.6rem; margin:auto; margin-top: 30%;}
23 23
 section .popup2 .btn_barcode {margin-top: 20%;}
24 24
 section .popup2 .btn_barcode button {width: 35%; height: 100px; font-size: 2.2rem;}
25
-section .popup2 .pop { position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%); width: 90%; height: 85%; background: #fff; border: 2px solid #000;}
26
-section .popup2 .pop .header {position: relative; height: 50px; background: rgb(204, 225, 240); border-bottom: 1px solid #000;}
27
-section .popup2 .pop .header .header_left {float: left; padding-top: 5px; padding-left: 15px;}
28
-section .popup2 .pop .header .header_left label {font-size: 1.4rem;} 
25
+section .popup2 .pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 90%; height: 85%; background: #fff; border: 2px solid #000;}
26
+section .popup2 .pop .header {position: relative; height: 100px; background: rgb(204, 225, 240); border-bottom: 1px solid #000;}
27
+section .popup2 .pop .header .header_left {float: left; padding-top: 20px; padding-left: 20px;}
28
+section .popup2 .pop .header .header_left label {font-size: 2.4rem;} 
29 29
 section .popup2 .pop .header .header_right {float: right; padding-right: 10px;}
30 30
 section .popup2 .pop .header .header_right button {border: none; background: transparent;}
31
-section .popup2 .pop .header .header_right button img {width:30px; height:30px;}
32
-section .popup2 .pop .search_bar {width: 100%; height: 60px; padding: 10px;}
33
-section .popup2 .pop .search_bar input {width: 80%; height: 40px; float: left;}
34
-section .popup2 .pop .search_bar button {float: right; border: none; padding-top:3px;}
35
-section .popup2 .pop .search_bar button img {width: 30px; height: 30px;}
31
+section .popup2 .pop .search_bar {width: 100%; height: 90px; padding: 10px;}
32
+section .popup2 .pop .search_bar input {width: 88%; height: 80px; float: left;}
33
+section .popup2 .pop .search_bar button {width: 80px; height: 80px; float: right; border: none; padding-right: 30px;}
34
+section .popup2 .pop .search_bar button img {width: 50px; height: 50px;}
36 35
 section .popup2 .pop .search_bar button.search {float: none; width: 50%; height: 70px; background:rgb(46, 46, 248); color: #fff; font-size: 2rem; padding: 0; border: 1px solid #000; margin: 0 auto;}
37
-section .popup2 .pop .search_bar button.btn_blue {float: right; width: 100px; height: 35px; background:rgb(46, 46, 248); color: #fff; font-size: 1rem; padding: 0; border: 1px solid #000;}
36
+section .popup2 .pop .search_bar button.btn_blue {float: right; width: 200px; height: 70px; background:rgb(46, 46, 248); color: #fff; font-size: 2rem; padding: 0; border: 1px solid #000;}
38 37
 
39 38
 section .popup2 .pop .popup_scroll {position: relative; width: 100%;height: 720px; overflow: auto;}
40
-section .popup2 .pop .popup_scroll li {list-style: none; width: 99%; height: 50px; border: 1px solid #000; margin: 0 auto;}
39
+section .popup2 .pop .popup_scroll li {list-style: none; width: 99%; height: 80px; border: 1px solid #000; margin: 0 auto;}
41 40
 section .popup2 .pop .popup_scroll li.row_2 {height: 140px;}
42 41
 section .popup2 .pop .popup_scroll li .left {position: relative; float: left;}
43 42
 section .popup2 .pop .popup_scroll li .left div {display: inline-block;}
@@ -47,9 +46,9 @@ section .popup2 .pop .popup_scroll li .left .nomal {float: left; margin: 10px 20
47 46
 section .popup2 .pop .popup_scroll li .left .history {font-weight: 700; font-size: 2.4rem; margin-left: 20px;}
48 47
 section .popup2 .pop .popup_scroll li .left .history input{width: 150px;}
49 48
 section .popup2 .pop .popup_scroll li .scroll_left {float: left;}
50
-section .popup2 .pop .popup_scroll li .scroll_left div {float: left; font-size: 0.8rem; font-weight: 700; width: auto; margin: 15px 10px;}
49
+section .popup2 .pop .popup_scroll li .scroll_left div {float: left; font-size: 2rem; font-weight: 700; width: auto; margin: 15px 10px;}
51 50
 section .popup2 .pop .popup_scroll li .scroll_right {float: right;}
52
-section .popup2 .pop .popup_scroll li .scroll_right button {width: 60px; height: 40px; padding: 0; background: rgb(198, 170, 250); border-radius: 10px; font-size: 0.8rem; margin:4px 10px;}
51
+section .popup2 .pop .popup_scroll li .scroll_right button {width: 100px; height: 60px; padding: 0; background: rgb(198, 170, 250); border-radius: 15px; font-size: 1.5rem; margin:10px 10px;}
53 52
 section .popup2 .pop .popup_scroll li .right {margin: 40px 0; position: relative; display: flex; font-size: 2rem; font-weight: 700; float: left;}
54 53
 section .popup2 .pop .popup_scroll li .right .num {margin: 0 40px; width: auto;}
55 54
 section .popup2 .pop .popup_scroll li .right button {margin: -12px; padding: 20px; font-size: 1.5rem; border-radius: 0px;}
@@ -64,9 +63,8 @@ section .popup3 .pop .header .header_left {float: left; padding-top: 20px; paddi
64 63
 section .popup3 .pop .header .header_left label {font-size: 2.4rem;} 
65 64
 section .popup3 .pop .header .header_right {float: right; padding-right: 10px;}
66 65
 section .popup3 .pop .header .header_right button {border: none; background: transparent;}
67
-
68 66
 /* 버튼 */
69
-button {background-color: #fff; padding: 10px;}
67
+button {background-color: #fff; padding: 15px;}
70 68
 button.btn-primary  {color: #fff; background-color: #337ab7; border: 1px solid #000;font-weight: 700;}
71 69
 button.btn-yellow   {color: #fff; background-color: rgb(255, 183, 0); border: 1px solid #000;font-weight: 700;}
72 70
 button.btn-gray     {color: #fff; background-color: gray; border: 1px solid #000;font-weight: 700;}
@@ -142,14 +140,14 @@ body.eee {height: 700px; background: #eee;}
142 140
 .main .wicon .icon_left {float: left;}
143 141
 
144 142
 
145
-input {margin-top: 3px; border: 1px solid #000; margin-top: -2px; height: 36px; font-size: 0.8rem; text-align: left; padding:0 15px;}
146
-select {margin-top: 3px; border: 1px solid #000; margin-top: -2px; height: 60px; font-size: 1rem; text-align: left; padding:0 15px;}
143
+input {margin-top: 3px; border: 1px solid #000; margin-top: -2px; height: 60px; font-size: 2rem; text-align: left; padding:0 15px;}
144
+select {margin-top: 3px; border: 1px solid #000; margin-top: -2px; height: 60px; font-size: 2rem; text-align: left; padding:0 15px;}
147 145
 input .day {margin: 18%; width: 45%; height: 80px; float: right;}
148 146
 
149 147
 /* 공통화면 */
150 148
 
151
-#ITP_WRAPPER header {position: fixed;top: 0;width: 100%;height: 55px;background-color:#92c7f6;align-items: center;border-bottom: 1px solid #000;z-index: 11;}
152
-#ITP_WRAPPER header .header_wrap {width: 100%; height: 55px; margin: 0 auto;}
149
+#ITP_WRAPPER header {position: fixed;top: 0;width: 100%;height: 55px;background-color:#92c7f6;align-items: center;margin-bottom: 50px;border-bottom: 1px solid #000;z-index: 10;}
150
+#ITP_WRAPPER header .header_wrap {width: 100%; height: 45px; margin: 0 auto;}
153 151
 #ITP_WRAPPER header .header_wrap .menu_logo button {width: 40px; height: 40px; float: left; padding: 0; background: transparent; border: none; margin-top: 7px; margin-left: 7px;}
154 152
 #ITP_WRAPPER header .header_wrap .menu_logo button img {width: 35px; height: 35px; margin: 0; border-radius: 0; border: none;}
155 153
 #ITP_WRAPPER header .header_wrap img.brand {float: right; height: 45px; margin: 5px; border-radius: 50%; border: 1px solid #666;}
@@ -191,39 +189,49 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
191 189
   padding-top: 50px;
192 190
   font-size: 2rem;
193 191
 }
194
-.content {top: 55px; position: fixed; z-index: 10; width:100%; background: #fff;}
195
-.content .line {position: relative; display: inline-block; width: 100%; height: 50px; margin-bottom: 0px;}
192
+.content {padding-top: 5%; top: 0px; position: fixed; z-index: 10; width:100%; background: #fff;}
193
+.content .line {position: relative; display: inline-block; width: 100%; height: 50px; margin-bottom: 50px;}
196 194
 .content .line div {font-weight: 700;}
197
-.content .line label {font-size: 1rem; margin-left: 20px; float: left; text-align: left; margin-top: 15px;}
195
+<<<<<<< HEAD
196
+.content .line label {font-size: 1.2rem; margin-left: 10px; float: left; text-align: left; margin-top: 15px;}
197
+=======
198
+.content .line label {font-size: 3rem; margin-left: 20px; float: left; width: 320px; text-align: left; margin-top: -15px;}
199
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
198 200
 .content .line label.col_6{width: 404px;}
199
-.content .line select.label {border: 1px solid #000; font-size: 1.2rem;margin: 0 10px; float: left; width: 300px; height: 60px; text-align: left; margin-top: 15px;}
201
+.content .line select.label {border: 1px solid #000; font-size: 2.5rem;margin: 0 10px; float: left; width: 300px; height: 60px; text-align: left; margin-top: -8px;}
200 202
 .content .line .search_nm {float: right; margin-right: 2%;}
201 203
 .content .line .float_left {float: left;}
202 204
 .content .line .float_left.note {width: 100%; padding: 10px;}
203 205
 .content .line .float_left.note textarea {width: 100%; height: 300px; border: 1px solid #000; text-align: left;}
204 206
 .content .line .float_left div {font-size: 2.4rem; margin-top: -8px;}
205
-.content .line .float_left_btn {float: left; margin-top: 5px; margin-left: 5px;}
206
-.content .line .float_left_btn button {padding:0; width:36px; height:36px; border-radius:5px;}
207
-.content .line .float_left_btn button img {width:20px; height:20px;}
207
+.content .line .float_left_btn {float: left; margin-top: -1px; margin-left: 5px;}
208 208
 .content .line .float_left select {float: left; width: 440px; height: 60px; margin-top: -3px; border: 1px solid #000; font-size: 2rem;}
209 209
 .content .line .line_right {font-size: 2rem; float: right; margin-right: 0%;}
210
-.content .line .line_right div {float: right; font-size: 1.2rem; margin-top: 10px; margin-right: 30px;}
210
+.content .line .line_right div {float: right; font-size: 2.4rem; margin-top: -10px; margin-right: 30px;}
211 211
 .content .line .line_right input {position: relative; text-align: right; margin-right: 30px;}
212 212
 .content .line .line_right input.left {text-align: left;}
213
-.content .line input.date {width: 40%; margin: 10px; height: 40px; float: right; margin-right: 3%;}
213
+.content .line input.date {width: 40%; margin: -10px; height: 80px; float: right; margin-right: 3%;}
214 214
 .content .line input.date2 {width: 350px; height: 60px;}
215
+<<<<<<< HEAD
216
+.content .line div.date_to {float: right; margin-right:10px;}
217
+.content .line div.date_to input.year {width: 120px; height: 30px;}
218
+.content .line div.date_to div.at {width: 3%;  font-size: 1rem; float: right; display: contents;}
219
+.content .line .search {width: 100%; height: 50px;}
220
+.content .line .search button {width: 50%; height: 35px; font-size: 1rem; padding: 0;}
221
+=======
215 222
 .content .line div.date_to {float: left;}
216 223
 .content .line div.date_to input.year {width: 300px; margin-top: -10px; height: 60px;}
217 224
 .content .line div.date_to div.at {width: 3%;  font-size: 2rem; float: right; display: contents;}
218 225
 .content .line .search {width: 100%; height: 150px;}
219 226
 .content .line .search button {width: 50%; height: 75px; font-size: 2.4rem; padding: 0;}
227
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
220 228
 .content .line .search button.col_3 {width: 35%; margin: 0 20px; float: left;}
221 229
 .content .line .search button.col_5 {width: 55%; margin: 0 20px; float: right;}
222
-.content .table_header {margin: 0 auto; width: 100%; height: 50px; background-color: #92c7f6; position: fixed; z-index: 10; border-bottom: 1px solid #000; border-top: 1px solid #000;}
223
-.content .table_header h1 {margin-top: 12px; margin-left: 10px; font-size: 1.2rem; float: left; color: #fff; font-weight: 100;}
224
-.content .table_header button {float: right; width: 111px; font-size: 1rem; padding: 5px 20px; margin: 8px;}
230
+.content .table_header {margin: 0 auto; width: 100%; height: 100px; background-color: #92c7f6; position: fixed; z-index: 10; border-bottom: 1px solid #000; border-top: 1px solid #000;}
231
+.content .table_header h1 {margin-top: 20px; margin-left: 15px; font-size: 2.2rem; float: left; color: #fff; font-weight: 100;}
232
+.content .table_header button {float: right; width: 200px; font-size: 2rem; padding: 5px 20px; margin: 20px;}
225 233
 
226
-.detail_content {top: 0px; position: fixed; z-index: 10; width:100%; background: #fff;}
234
+.detail_content {padding-top: 5%; top: 0px; position: fixed; z-index: 10; width:100%; background: #fff;}
227 235
 .detail_content .detail_header {width: 100%; height: 80px;}
228 236
 .detail_content .detail_header .detail_logo {float: left;}
229 237
 .detail_content .detail_header .detail_logo img {width: 150px; margin-left: 50px;}
@@ -252,8 +260,8 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
252 260
   font-size: 1.8rem;
253 261
 } */
254 262
 
255
-.button_bar {width: 100%; height: 60px; background: #ccc; position: fixed; bottom: 0px; border-top: 1px solid #000; border-bottom: 1px solid #000; z-index: 10;}
256
-.button_bar button.col_3{float: left; height: 60px; font-size: 1.4rem; margin: 0; width: 33.3%; font-weight: 700; border: 1px solid #000; border-radius: 0;}
263
+.button_bar {width: 100%; height: 120px; background: #ccc; position: fixed; bottom: 0px; border-top: 1px solid #000; border-bottom: 1px solid #000; z-index: 10;}
264
+.button_bar button.col_3{float: left; height: 120; font-size: 3rem; margin: 0; width: 33.3%; font-weight: 700; border: 1px solid #000; border-radius: 0;}
257 265
 .button_bar button.btn-gray {border-radius: 0px; background-color: #666; color: #eee;}
258 266
 .button_bar button.btn {height: 120px;}
259 267
 .button_bar button.btn_col_3 {width: 35%;}
@@ -264,8 +272,13 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
264 272
 
265 273
 /* scroll_area 조정 */
266 274
 .scroll_area {position: absolute; width: 100%; height: 1090px; bottom: 30px; overflow: auto; background: #fff;}
275
+<<<<<<< HEAD
267 276
 .row-1{top: 290px;}
277
+.row-2{top: 345px;}
278
+=======
279
+.row-1{top: 450px;}
268 280
 .row-2{top: 550px;}
281
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
269 282
 .row-3{top: 650px;}
270 283
 .row-4{top: 750px;}
271 284
 .row-5{top: 850px;}
@@ -274,19 +287,32 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
274 287
 
275 288
 
276 289
 
290
+<<<<<<< HEAD
277 291
 .scroll_area li {margin: 5px 3px; list-style: none; width: 99%; height: 100px; border: 1px solid #000; background-color: #fff;}
292
+.scroll_area li.history_list {height: 180px; }
293
+=======
294
+.scroll_area li {margin: 5px; list-style: none; width: 99%; height: 140px; border: 1px solid #000; background-color: #fff;}
278 295
 .scroll_area li.history_list {height: 300px; }
296
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
279 297
 .scroll_area li.history_list .button_right {float: right; display: grid;}
280 298
 .scroll_area li.history_list .button_right button {width: 124px; height: 149px; font-size: 2rem; margin: 0; border-radius: 0;}
281 299
 .scroll_area li.history_list1 {height: 230px; }
282 300
 .scroll_area li.history_list2 {height: 380px;}
283 301
 .scroll_area li.history_list3 {height: 330px;}
284 302
 .scroll_area li .history_info {width: 240px;}
285
-.scroll_area li .left {position: relative; float: left; width:50%;}
303
+<<<<<<< HEAD
304
+.scroll_area li .left {width:100%; height:30px; margin-top:12px;}
286 305
 .scroll_area li .left div {display: inline-block;}
287
-.scroll_area li .left label{font-size: 1.3rem;}
306
+.scroll_area li .left label{font-size: 1.1rem;}
288 307
 .scroll_area li .left .thick {float:left;  margin: 8px 20px; font-size: 1rem; text-align: left; width: 70%; font-weight: 600;}
289
-.scroll_area li .left .history {font-weight: 700; font-size: 1.1rem; margin-left: 20px;}
308
+.scroll_area li .left .history {font-weight: 700; font-size: 1.1rem; margin-top:-2px;}
309
+=======
310
+.scroll_area li .left {position: relative; float: left;}
311
+.scroll_area li .left div {display: inline-block;}
312
+.scroll_area li .left label{font-size: 2.5rem;}
313
+.scroll_area li .left .thick {margin: 10px 20px; font-size: 2.2rem; text-align: left; width: 100%; font-weight: 600;}
314
+.scroll_area li .left .history {font-weight: 700; font-size: 2.4rem; margin-left: 20px;}
315
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
290 316
 .scroll_area li .left .history input{width: 150px;}
291 317
 
292 318
 .scroll_area li div {padding: 1px;}
@@ -303,20 +329,32 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
303 329
 .scroll_area li .detail_right .detail_info label {margin: 5px 30px; font-size: 2rem;}
304 330
 .scroll_area li .detail_right .detail_info div {width: auto; font-size: 2.2rem; font-weight: 700;}
305 331
 .scroll_area li .detail_right .detail_info i {width: auto; font-size: 2.2rem; margin: 0 20px;}
306
-.scroll_area li .left .nomal  {width: 100%; float:left; text-align: left; font-size: 2.2rem;}
332
+<<<<<<< HEAD
333
+.scroll_area li .left .nomal  {width: 100%; float:left; text-align: left; font-size: 1.2rem;}
334
+.scroll_area li .left .nomal .half {width:50%; float:left;}
335
+.scroll_area li .left .nomal .half label {font-weight:100;}
336
+=======
337
+.scroll_area li .left .nomal  {width: 100%; text-align: left; font-size: 2.2rem;}
338
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
307 339
 .scroll_area li .left .nomal  input{width: 200px;}
308 340
 .scroll_area li .left .nomal .scroll_btn {margin-bottom: 10px; min-width: 0;}
309 341
 .scroll_area li .left .nomal .scroll_btn button{position: absolute; top: -10px; width: 100px; height: 70px; font-size: 1.8rem; padding: 0; border-radius: 15px; background: rgb(198, 170, 250);}
310 342
 
343
+.scroll_area li .left .nomal span {margin:0 10px;}
344
+
311 345
 .scroll_area li .left .nomal .btn_bar{position: relative; width: auto; font-size: 2.2rem;}
312 346
 .scroll_area li .left .nomal .btn_bar button{width: 50px; height: 70px; font-size: 2rem; padding: 0;}
313 347
 .scroll_area li .left .nomal .btn_bar .col_0{min-width: auto; margin: 0 50px;}
314 348
 
315
-.scroll_area li .left .nomal .space{ margin-left: 30px; min-width: 100px;}
316
-.scroll_area li .left .nomal .space0{ margin-left: 30px; width: auto;}
349
+.scroll_area li .left .nomal .space{ margin-left: 40px; min-width: 100px;}
350
+.scroll_area li .left .nomal .space0{ margin-left: 40px; width: auto;}
317 351
 .scroll_area li .left .nomal .space1{ margin-left: 0px; width: 200px;}
318 352
 .scroll_area li .left .nomal .space2 {width: 120px; display: inline-flex; font-size: 2.4rem; margin-right: 30px; font-weight: 700;}
353
+<<<<<<< HEAD
354
+.scroll_area li .left .nomal label{position:relative; margin-left: 10px;}
355
+=======
319 356
 .scroll_area li .left .nomal label{margin-left: 10px; width: 230px; display: inline-flex;}
357
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab
320 358
 .scroll_area li .left .nomal label.sub_info{width: 168px; display: inline-flex;}
321 359
 .scroll_area li .left .nomal label.col_0{width: auto;}
322 360
 .scroll_area li .left .nomal label.col_1{width: 180px;}
@@ -324,7 +362,14 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
324 362
 .scroll_area li .left .nomal label.col_6{width: 250px;}
325 363
 .scroll_area li .left .nomal label.col_7{width: 280px;}
326 364
 .scroll_area li .left .nomal i{width: 50px; text-align: center;}
327
-.scroll_area li .left .nomal div{display: inline-flex; font-weight: 700; font-size: 1.2rem;}
365
+<<<<<<< HEAD
366
+.scroll_area li .left .nomal div{display: inline-flex; font-weight: 700; font-size: 1.1rem;}
328 367
 .scroll_area li .right {margin: 30px 20px 0 0; position: relative; display: flex; font-size: 1.4rem; font-weight: 700; float: right;}
329 368
 .scroll_area li .right .num {margin: 0 25px; width: auto;}
330 369
 .scroll_area li .right button {margin: -6px; padding:0px 7px; font-size: 1.5rem; border-radius: 0px;}
370
+=======
371
+.scroll_area li .left .nomal div{min-width: 168px; display: inline-flex; font-weight: 700; font-size: 2.4rem;}
372
+.scroll_area li .right {margin: 40px; position: relative; display: flex; font-size: 2rem; font-weight: 700; float: right;}
373
+.scroll_area li .right .num {margin: 0 40px; width: auto;}
374
+.scroll_area li .right button {margin: -12px; padding: 20px; font-size: 1.5rem; border-radius: 0px;}
375
+>>>>>>> fcba4c6a3bd00921b19895c7e4fb2f7431cf05ab

+ 1 - 0
src/main/webapp/mobile/js/app/login.js

@@ -89,6 +89,7 @@ function itp_fn_login_proc() {
89 89
 	    	$(location).attr('href', MOBILE_CONTEXTPATH + '/app/main.html');
90 90
 		};
91 91
 		var params = $('#ITP_FORM_MOBILE_LOGIN').serializeObject();
92
+		// console.log(JSON.stringify(params));
92 93
 		fn_ajax_call('/api/member/sign-in-app', JSON.stringify(params), loginFn, 'POST'); //암호화 해서 보내는 경우 먼저 해시키를 가져와서 암호화해서 보낸다
93 94
 	};
94 95
 	fn_ajax_call('/api/session/hashed', null, callbackFn, 'GET'); //Crypto 암호화를 위한 해쉬키.. 로그인 후에는 Jwt 포함인 /api/session/hashedKey 이걸로 호출해서 사용한다.

+ 186 - 2
src/main/webapp/mobile/js/app/main.js

@@ -1,14 +1,198 @@
1
+
2
+const MAIN_NOTICE_GRID_ID = '#ITP_MAIN_NOTICE_jqGrid';
3
+const MAIN_NOTICE_GRID_LIST = '#ITP_MAIN_NOTICE_jqGrid_list';
4
+const MAIN_NOTICE_GRID_PAGER = '#ITP_MAIN_NOTICE_jqGridPager';
5
+const MAIN_NOTICE_GRID_EMPTY = '#ITP_MAIN_NOTICE_jqGridEmpty';
6
+
7
+let NTICE_DETAIL_GRID_LIST = '/api/ntice/detail-grid-list';
8
+
1 9
 require(['config'], function() {
2 10
 	require([
3 11
 		'jquery'
4 12
 	], function($) {
5
-
13
+		
6 14
 		setTimeout(function() {
7
-		}, 100);
15
+			// // 시간지정
16
+			// $('#ITP_FORM_MAIN_NOTICE_SEARCH_SCH_DT').val(itp_fn_date_format(new Date(), 2));
17
+			// $('#ITP_FORM_MAIN_NOTICE_SEARCH_USER_ID').val(USER_ID);
18
+			//
19
+	    	// // Barcode
20
+			// itp_fn_barcode.init();
8 21
 
22
+		}, 100);
23
+				
9 24
 	});
10 25
 });
11 26
 
27
+var itp_fn_mobile_MAIN_MENU = {
28
+	init: function() {
29
+		this.topMenuMake();
30
+		this.button();
31
+	},
32
+	button: function() {
33
+		var _this = this;
34
+		$(document).on('click', '.manage_btn_bar button', function() {
35
+			$('#ITP_CONTAINER').empty();
36
+			_this.subMenuMake($(this).data('top-menu'));
37
+		});
38
+		$(document).on('click', '#ITP_CONTAINER button', function() {
39
+			console.log('===> ' + $(this).data('sub-menu'));
40
+		});
41
+	},
42
+	topMenuMake: function() {
43
+		var _this = this;
44
+		var topMenuCnt = 0;
45
+		$.each(AUTH_MENU_LIST, function(key, value) {
46
+			if(value.topMenuNo === 200) {
47
+				topMenuCnt++;
48
+			}
49
+		});
50
+		console.log(topMenuCnt);
51
+		$.each(AUTH_MENU_LIST, function(key, value) {
52
+			if(value.topMenuNo === 200) {
53
+				var menuDIV = 	'<div class="manage col_' + topMenuCnt + '">' +
54
+								'	<button data-top-menu="' + value.menuNo + '">' + value.menuNm + '</button>' +
55
+								'</div>';
56
+				$('.manage_btn_bar').append(menuDIV);
57
+				if(key === 0) {
58
+					_this.subMenuMake(value.menuNo);
59
+				}
60
+			}
61
+		});
62
+	},
63
+	subMenuMake: function(topMenuNo) {
64
+		var seq = 0;
65
+		var pos = 'icon_left';
66
+		var menuDIV = '<div class="wicon">\n';
67
+		$.each(AUTH_MENU_LIST, function(key, value) {
68
+			if(value.topMenuNo === topMenuNo) {
69
+				if(seq > 0 && seq % 2 === 0) {
70
+					menuDIV += '</div>\n';
71
+					menuDIV += '<div class="wicon">\n';
72
+					pos = 'icon_left';
73
+				}
74
+				menuDIV += 	'	<div class="' + pos + '">\n' +
75
+							'		<button data-sub-menu="' + value.menuNo + '">\n' +
76
+							'			<label>ICON<br>' + value.menuNm + '</label>\n' +
77
+							'		</button>\n' +
78
+							'	</div>\n';
79
+				seq++;
80
+				pos = 'icon_right';
81
+			}
82
+		});
83
+		menuDIV += '</div>';
84
+		$('#ITP_CONTAINER').append(menuDIV);
85
+	}
86
+};
87
+
88
+var itp_fn_MAIN_NOTICE_grid = {
89
+	init: function() {
90
+		// 데이터 없을때
91
+		itp_fn_MAIN_NOTICE_empty.push();
92
+		$(MAIN_NOTICE_GRID_EMPTY).on('click', function() {
93
+			itp_fn_MAIN_NOTICE_empty.back();
94
+			itp_MAIN_NOTICE_param.gridSize = $.jgrid.defaults.rowNum;
95
+			$(MAIN_NOTICE_GRID_ID).setGridParam({'postData': JSON.stringify(itp_MAIN_NOTICE_param)}).trigger('reloadGrid');
96
+		});
97
+	},
98
+	callBack: function() {
99
+		let param = $('#ITP_FORM_MAIN_NOTICE_SEARCH').serializeObject();
100
+		param.gridSize = $.jgrid.defaults.rowNum;
101
+		$(MAIN_NOTICE_GRID_ID).jqGrid({
102
+			colModel: [
103
+				{
104
+					index: 'NTICE_NO', name: 'nticeNo',
105
+					label: ITP_MSG_LOCALE.label.notiNo, //공지번호
106
+					width: '10', fixed: false, align: 'center',
107
+					sortable: false, hidden: false
108
+				},
109
+				{
110
+					index: 'NTICE_TITL', name: 'nticeTitl',
111
+					label: '공지사항', //공지제목
112
+					width: '15', fixed: false, align: 'center',
113
+					sortable: false, hidden: false
114
+				},
115
+				{
116
+					index: 'ADD_DT', name: 'addDt',
117
+					label: ITP_MSG_LOCALE.label.regDt, //등록일
118
+					width: '10', fixed: false, align: 'center',
119
+					sortable: false, hidden: false
120
+				}
121
+			],
122
+			loadBeforeSend: function(jqXHR) {
123
+			    jqXHR.setRequestHeader('X-AUTH-TOKEN', CONN_KEY);
124
+			},
125
+			postData: JSON.stringify(param),
126
+			url: DOMAIN + NTICE_DETAIL_GRID_LIST,
127
+			pager: MAIN_NOTICE_GRID_PAGER,
128
+			multiselect: false,
129
+			rownumbers: true,
130
+			onCellSelect: function(rowId, cellIdx, cellValue) {
131
+				var cm = $(this).jqGrid('getGridParam', 'colModel');
132
+				var colNm = cm[cellIdx].name;
133
+				if (colNm == 'nticeTitl') {
134
+					const nticeNoVal = $(this).jqGrid('getCell', rowId, 'nticeNo');
135
+					const key = {nticeNo: nticeNoVal, viewCd: 'R'};
136
+					var param = $.param(key);
137
+					// itp_fn_MAIN_NOTICE_view(param);
138
+					
139
+					fn_call_popup('comm', 'NOTICE_INFO_POPUP', '#ITP_ASIDE', function() {
140
+												
141
+					}, param, 'S');
142
+					$('#ITP_NOTICE_INFO_POPUP > div.modal-dialog').width('500px');
143
+				}
144
+		   	},
145
+			loadComplete: function(data) {
146
+				//console.log(JSON.stringify(data));
147
+				itp_fn_grid_load_complete(data, MAIN_NOTICE_GRID_ID, true, 'number', 'MAIN_NOTICE', itp_MAIN_NOTICE_search, itp_fn_MAIN_NOTICE_empty, false, data.gridRecords, false);
148
+				var ids = $(MAIN_NOTICE_GRID_ID).getDataIDs();
149
+				$.each(ids, function(idx, rowId) {
150
+					$(MAIN_NOTICE_GRID_ID).jqGrid('setCell', rowId, 'nticeTitl', '', ITP_GRID_COL_STYLE.link);
151
+				});
152
+
153
+				if ($('#ITP_CONTAINER').data('openYn') == 'Y') {
154
+					$('#ITP_CONTAINER').data('openYn', 'N');
155
+					const keyNew = {nticeNo: $('#ITP_CONTAINER').data('nticeNo'), viewCd: 'R'};
156
+					var paramNew = $.param(keyNew);
157
+					itp_fn_MAIN_NOTICE_view(paramNew);
158
+				}
159
+		    },
160
+		    loadError: function(jqXHR, textStatus, errorThrown) {
161
+		    	itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
162
+		    },
163
+		    onPaging: function(action) {
164
+		    	itp_fn_grid_paging(MAIN_NOTICE_GRID_ID, action, param);
165
+		    }
166
+		}).navGrid(MAIN_NOTICE_GRID_PAGER, ITP_GRID_NAV_DEFAULTS.navGrid);
167
+	},
168
+	clearData : function() {
169
+		$(MAIN_NOTICE_GRID_ID).jqGrid('clearGridData', true);
170
+		$(MAIN_NOTICE_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
171
+		$(MAIN_NOTICE_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
172
+		$(MAIN_NOTICE_GRID_EMPTY).show();
173
+	},
174
+	unload : function() {
175
+		$.jgrid.gridUnload(MAIN_NOTICE_GRID_ID);
176
+	}
177
+};
178
+
179
+var itp_fn_MAIN_NOTICE_search = function() {
180
+	itp_fn_MAIN_NOTICE_grid.unload();
181
+	itp_fn_MAIN_NOTICE_grid.callBack();
182
+};
183
+
184
+let itp_MAIN_NOTICE_param = {};
185
+let itp_MAIN_NOTICE_search = false;
186
+var itp_fn_MAIN_NOTICE_empty = {
187
+	push: function() {		
188
+		let param = $('#ITP_FORM_MAIN_NOTICE_SEARCH').serializeObject();
189
+		itp_MAIN_NOTICE_param = param;
190
+	},
191
+	back: function() {
192
+		
193
+	}
194
+};
195
+
12 196
 var itp_fn_barcode = {
13 197
 	init: function () {
14 198
 		this.event();