Parcourir la source

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

whakdo963 il y a 2 ans
Parent
commit
4e0fe6cec4

+ 337 - 0
src/main/webapp/app/stinfo/STINFO01011.html

@@ -0,0 +1,337 @@
1
+<section id="ITP_TAB_STINFO01011" class="tab-pane active itp_sec">
2
+	<div class="itp_cont">
3
+		<article class="itp_detail">
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>
6
+				<div class="pull-right itp_cicon">
7
+					<button type="button" id="ITP_BTN_STINFO01011_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8
+					<button type="button" id="ITP_BTN_STINFO01011_MODIFY" class="btn btn-success btn-sm UPB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;수정&nbsp;&nbsp;</button>
9
+					<button type="button" id="ITP_BTN_STINFO01011_NEWREG" class="btn btn-primary btn-sm NEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;신규등록&nbsp;&nbsp;</button>
10
+					<button type="button" id="ITP_BTN_STINFO01011_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon"></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
11
+					<button type="button" id="ITP_BTN_STINFO01011_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon"></i>&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
12
+				</div>
13
+			</div>
14
+			<div class="itp_det_in">
15
+				<div id="ITP_AJAX_STINFO01011_LIST_CONTAINER">
16
+					<div class="itp_lg_form itp_type1 fix">
17
+						<div class="itp_srh_border fix">
18
+							<div class="col-xs-12">
19
+								<form id="ITP_FORM_STINFO01011_SEARCH" class="form-horizontal">
20
+									<div class="form-group">
21
+										<div class="col-xs-2 itp_ip itp_noMar">
22
+											<select id="ITP_FORM_STINFO01011_SERVICE_BRAND_TYPE" data-select-code="BRAND_TYPE" class="form-control itp_input" name="sbrandType">
23
+												<option value="">카테고리(전체)</option>
24
+											</select>
25
+										</div>
26
+										<div class="col-xs-2 itp_ip itp_noMar">
27
+											<select id="ITP_FORM_STINFO01011_SERVICE_ST_CD" data-select-code="ST_CD" class="form-control itp_input" name="sstCd">
28
+												<option value="">상태(전체)</option>
29
+											</select>
30
+										</div>
31
+										<div class="col-xs-6 itp_ip">
32
+											<input type="text" id="ITP_FORM_STINFO01011_SEARCH_BRAND_NM" class="form-control itp_input" name="sbrandNm" placeholder="브랜드명" />
33
+										</div>
34
+									</div>
35
+								</form>
36
+							</div>
37
+						</div>
38
+					</div>
39
+					<div class="itp_table fix">
40
+						<div id="ITP_STINFO01011_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
41
+							<div id="ITP_STINFO01011_jqGridView" class="itp_views fix"></div>
42
+							<table id="ITP_STINFO01011_jqGrid"></table>
43
+							<div id="ITP_STINFO01011_jqGridPager"></div>
44
+							<div id="ITP_STINFO01011_jqGridEmpty" class="itp_no_data"></div>
45
+						</div>
46
+					</div>
47
+				</div>
48
+				<div id="ITP_AJAX_STINFO01011_DETAIL_CONTAINER">
49
+					<div class="itp_form itp_type1 fix">
50
+						<div class="col-xs-12">
51
+							<form id="ITP_FORM_STINFO01011_DETAIL" class="form-horizontal">
52
+								<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_VIEW_CD" name="viewCd" value="C">
53
+								<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID" name="afflShopId" value="">
54
+								<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_BRAND_ID" name="brandId" value="">
55
+								<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_FILE_NO" name="fileNo" value="">
56
+
57
+								<section class="itp_form_sec">
58
+									<h4 class="itp_form_tit">브랜드 정보-신규</h4>
59
+									<div class="itp_form_in">
60
+										<div class="form-group">
61
+											<label class="col-xs-2 itp_lb">가맹점* </label>
62
+											<div class="col-xs-4 itp_ip">
63
+												<div class="col-xs-7 itp_in">
64
+													<input type="text" name="afflShopNm" id="ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM" data-check-required="empty" class="form-control itp_input" readonly placeholder="가맹점명">
65
+												</div>
66
+												<div class="col-xs-3 itp_in">
67
+													<button type="button" id="ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP" class="btn btn-success btn-sm SEB"><i class="glyphicon glyphicon-search"></i></button>
68
+													<button type="button" id="ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP" class="btn btn-primary btn-sm SEB"><i class="glyphicon glyphicon-erase"></i></button>
69
+												</div>
70
+											</div>
71
+											<label class="col-xs-2 itp_lb">브랜드 코드</label>
72
+											<div class="col-xs-4 itp_ip">
73
+												<div class="col-xs-8 itp_in">
74
+													<div class="col-xs-9 itp_in fnBrandId"></div>
75
+												</div>
76
+											</div>
77
+										</div>
78
+										<div class="form-group">
79
+											<label class="col-xs-2 itp_lb">브랜드 명* </label>
80
+											<div class="col-xs-4 itp_ip">
81
+												<div class="col-xs-10 itp_in">
82
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_BRAND_NM" data-check-required="empty" class="form-control itp_input" name="brandNm" value="테스트 브랜드" maxlength="20">
83
+												</div>
84
+											</div>
85
+											<label class="col-xs-2 itp_lb">상태*</label>
86
+											<div class="col-xs-4 itp_ip">
87
+												<div class="col-xs-8 itp_in">
88
+													<select id="ITP_FORM_STINFO01011_DETAIL_ST_CD" data-select-code="ST_CD" data-check-required="empty" class="form-control itp_input" name="stCd">
89
+													</select>
90
+												</div>
91
+											</div>
92
+										</div>
93
+										<div class="form-group">
94
+											<label class="col-xs-2 itp_lb">대표자명 *</label>
95
+											<div class="col-xs-4 itp_ip">
96
+												<div class="col-xs-7 itp_in">
97
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_OWNER_NM" data-check-required="empty" class="form-control itp_input" name="ownerNm" value="">
98
+												</div>
99
+											</div>
100
+											<label class="col-xs-2 itp_lb">브랜드 타입*</label>
101
+											<div class="col-xs-4 itp_ip">
102
+												<div class="col-xs-8 itp_in">
103
+													<select id="ITP_FORM_STINFO01011_DETAIL_BRAND_TYPE" data-select-code="BRAND_TYPE" data-check-required="empty" class="form-control itp_input" name="brandType">
104
+													</select>
105
+												</div>
106
+											</div>
107
+										</div>
108
+										<div class="form-group">
109
+											<label class="col-xs-2 itp_lb">사업자번호 *</label>
110
+											<div class="col-xs-4 itp_ip">
111
+												<div class="col-xs-10 itp_in">
112
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_BSNS_REG_NO" data-check-required="empty" class="form-control itp_input" name="bsnsRegNo" value="" maxlength="20">
113
+												</div>
114
+											</div>
115
+											<label class="col-xs-2 itp_lb">법인번호</label>
116
+											<div class="col-xs-4 itp_ip">
117
+												<div class="col-xs-8 itp_in">
118
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_CORP_REG_NO" class="form-control itp_input" name="corpRegNo" value="" maxlength="20">
119
+												</div>
120
+											</div>
121
+										</div>
122
+										<div class="form-group">
123
+											<label class="col-xs-2 itp_lb">전화번호 *</label>
124
+											<div class="col-xs-4 itp_ip">
125
+												<div class="col-xs-7 itp_in">
126
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_TEL_NO" data-check-required="empty" class="form-control itp_input" name="telNo" value="">
127
+												</div>
128
+												<!-- <button type="button" id="ITP_BTN_STINFO01011_RESET_PW" class="btn btn-danger btn-xs PWC" style="margin: 3px 0px 0px 3px;">비밀번호 초기화</button> -->
129
+											</div>
130
+											<label class="col-xs-2 itp_lb"></label>
131
+											<div class="col-xs-1 itp_in">
132
+												<img src="/oqpo-view/images/naver.png" alt="로고 샘플" id="ITP_FORM_STINFO01011_DETAIL_BRAND_LOGO "style="border:none; top:12px; left:12px; height:70px; width:85px; position:absolute;" class="form-control itp_input" name="brandLogo" >
133
+											</div>
134
+										</div>
135
+										<div class="form-group">
136
+											<label class="col-xs-2 itp_lb">FAX</label>
137
+											<div class="col-xs-4 itp_ip">
138
+												<div class="col-xs-7 itp_in">
139
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_FAX_NO" class="form-control itp_input" name="faxNo" value="">
140
+												</div>
141
+											</div>
142
+											<label class="col-xs-2 itp_lb" style="border-top:none;">로고</label>
143
+											<div class="col-xs-4 itp_ip"style="border-top:none;">
144
+												<div class="col-xs-5 itp_in">
145
+													<label class="col-xs-12"></label>
146
+												</div>
147
+											</div>
148
+										</div>
149
+										<div class="form-group">
150
+											<label class="col-xs-2 itp_lb">이메일</label>
151
+											<div class="col-xs-4 itp_ip">
152
+												<div class="col-xs-7 itp_in">
153
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_EMAL_ADDR" class="form-control itp_input" name="emalAddr" value="">
154
+												</div>
155
+											</div>
156
+											<label class="col-xs-2 itp_lb"style="border-top:none;"></label>
157
+											<div class="col-xs-4 itp_ip"style="border-top:none;">
158
+												<div class="col-xs-12 itp_in colspan">
159
+													<div class="fileupload-wrapper">
160
+														<!-- data-show-yn: 파일업로드를 할 수 있는 권한이 있는지 없는지.. -->
161
+														<div id="ITP_STINFO01011_DETAIL_UPLOAD" data-show-yn="Y"></div>
162
+													</div>
163
+												</div>
164
+											</div>
165
+										</div>
166
+									</div>
167
+									<div class="itp_form_in">
168
+										<div class="form-group border">
169
+											<label class="col-xs-2 itp_lb">입금계좌정보</label>
170
+											<div class="col-xs-12 itp_ip">
171
+												<div class="col-xs-2 itp_in">
172
+													<select id="ITP_FORM_STINFO01011_DETAIL_DPST_BNK_CD" data-select-code="BNK_CD" data-check-required="empty" class="form-control itp_input" name="bnkCd">
173
+													</select>
174
+												</div>
175
+												<div class="col-xs-4 itp_in">
176
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_RCV_ACCT_NO" data-check-required="empty" class="form-control itp_input" name="acctNo" value="" placeholder="계좌번호">
177
+												</div>
178
+												<div class="col-xs-2 itp_in">
179
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_OWAC_NM" data-check-required="empty" class="form-control itp_input" name="owacNm" value="" placeholder="예금주명">
180
+												</div>
181
+											</div>
182
+										</div>
183
+									</div>
184
+									<div class="itp_form_in">
185
+										<div class="form-group border">
186
+											<label class="col-xs-2 itp_lb">주소</label>
187
+											<div class="col-xs-10 itp_ip">
188
+												<div class="col-xs-1 itp_in">
189
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_ZIPNO" class="form-control itp_input" name="zipNo" value="" maxlength="6" readonly placeholder="우편번호">
190
+												</div>
191
+												<div class="col-xs-1 itp_in">
192
+													<button type="button" id="ITP_FORM_STINFO01011_DETAIL_ADRES_SCH" class="btn btn-primary btn-sm SHOW" style="margin: -1px 0px 0px 3px;">&nbsp;&nbsp;주소검색&nbsp;&nbsp;</button>
193
+												</div>
194
+												<div class="col-xs-4 itp_in" style="margin-right: 5px; margin-left:20px;">
195
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_ADRES" class="form-control itp_input" name="addr1" value="" readonly placeholder="기본주소">
196
+												</div>
197
+												<div class="col-xs-4 itp_in">
198
+													<input type="text" id="ITP_FORM_STINFO01011_DETAIL_ADRES_DTL" class="form-control itp_input" name="addr2" value="" placeholder="상세주소">
199
+												</div>
200
+
201
+												<!-- 주소 맵 -->
202
+												<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_LOTS_ADDRESS" value="" />
203
+												<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_STREET_ADDRESS" value="" />
204
+												<input type="hidden" name="latX" id="ITP_FORM_STINFO01011_DETAIL_LAT" value="" />
205
+												<input type="hidden" name="latY" id="ITP_FORM_STINFO01011_DETAIL_LNG" value="" />
206
+												<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_HJ_DONG" value="" />
207
+												<input type="hidden" id="ITP_FORM_STINFO01011_DETAIL_BJ_DONG" value="" />
208
+												<div id="ITP_FORM_STINFO01011_DETAIL_MAP" style="margin-top:30px; width:700px; height:400px;"></div>
209
+											</div>
210
+										</div>
211
+									</div>
212
+								</section>
213
+							</form>
214
+						</div>
215
+					</div>
216
+				</div>
217
+				<div id="ITP_AJAX_STINFO01011_VIEW_CONTAINER">
218
+					<div class="itp_form itp_type1 fix">
219
+						<div class="col-xs-12">
220
+							<form id="ITP_FORM_STINFO01011_VIEW" class="form-horizontal">
221
+								<input type="hidden" id="ITP_FORM_STINFO01011_VIEW_VIEW_CD" name="viewCd" value="R">
222
+								<input type="hidden" id="ITP_FORM_STINFO01011_VIEW_BRAND_ID" name="brandId" value="">
223
+								<input type="hidden" id="ITP_FORM_STINFO01011_VIEW_AFFL_SHOP_ID" name="afflShopId" value="">
224
+
225
+								<section class="itp_form_sec">
226
+									<h4 class="itp_form_tit">브랜드 정보-상세</h4>
227
+									<div class="itp_form_in">
228
+										<div class="form-group">
229
+											<label class="col-xs-2 itp_lb">브랜드 코드</label>
230
+											<div class="col-xs-4 itp_ip">
231
+												<div class="col-xs-5 itp_in fnBrandUnitUnqNo"></div>
232
+											</div>
233
+											<label class="col-xs-2 itp_lb">상태*</label>
234
+											<div class="col-xs-4 itp_ip">
235
+												<div class="col-xs-8 itp_in fnStCd"></div>
236
+											</div>
237
+										</div>
238
+										<div class="form-group">
239
+											<label class="col-xs-2 itp_lb">브랜드 명* </label>
240
+											<div class="col-xs-4 itp_ip">
241
+												<div class="col-xs-8 itp_in fnBrandNm"></div>
242
+											</div>
243
+											<label class="col-xs-2 itp_lb">브랜드 타입*</label>
244
+											<div class="col-xs-4 itp_ip">
245
+												<div class="col-xs-8 itp_in fnBrandType"></div>
246
+											</div>
247
+										</div>
248
+										<div class="form-group">
249
+											<label class="col-xs-2 itp_lb">전화번호</label>
250
+											<div class="col-xs-4 itp_ip">
251
+												<div class="col-xs-5 itp_in fnTelNo"></div>
252
+											</div>
253
+											<label class="col-xs-2 itp_lb"></label>
254
+											<div class="col-xs-1 itp_ip">
255
+												<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" >
256
+												<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" >
257
+											</div>
258
+										</div>
259
+										<div class="form-group">
260
+											<label class="col-xs-2 itp_lb">FAX</label>
261
+											<div class="col-xs-4 itp_ip">
262
+												<div class="col-xs-5 itp_in fnFaxNo"></div>
263
+											</div>
264
+											<label class="col-xs-2 itp_lb" style="border-top:none;">로고</label>
265
+											<div class="col-xs-4 itp_ip"style="border-top:none;">
266
+												<div class="col-xs-5 itp_in"></div>
267
+											</div>
268
+										</div>
269
+										<div class="form-group">
270
+											<label class="col-xs-2 itp_lb">이메일</label>
271
+											<div class="col-xs-4 itp_ip">
272
+												<div class="col-xs-6 itp_in fnEmalAddr"></div>
273
+											</div>
274
+											<label class="col-xs-2 itp_lb"style="border-top:none;"></label>
275
+											<div class="col-xs-4 itp_ip"style="border-top:none;"></div>
276
+										</div>
277
+									</div>
278
+									<div class="itp_form_in">
279
+										<div class="form-group">
280
+											<label class="col-xs-2 itp_lb">입금계좌정보</label>
281
+											<div class="col-xs-12 itp_ip">
282
+												<div class="col-xs-2 itp_in fnDpstBnkCd"></div>
283
+												<div class="col-xs-2 itp_in fnRcvAcctNo"></div>
284
+												<div class="col-xs-2 itp_in fnOwacNm"></div>
285
+											</div>
286
+										</div>
287
+									</div>
288
+									<div class="itp_form_in">
289
+										<div class="form-group ">
290
+											<label class="col-xs-2 itp_lb">주소 *</label>
291
+											<div class="col-xs-10 itp_ip">
292
+												<div class="col-xs-10 itp_in">
293
+													<div class="col-xs-1 itp_in fnZipNo"></div>
294
+													<div class="col-xs-4 itp_in fnLoadAddr"></div>
295
+													<div class="col-xs-4 itp_in fnDtlAddr"></div>
296
+												</div>
297
+
298
+												<!-- 주소 맵 -->
299
+												<div id="ITP_FORM_STINFO01011_VIEW_MAP" style="width:700px; height:400px;"></div>
300
+											</div>
301
+										</div>
302
+									</div>
303
+									<div class="itp_form_in">
304
+										<div class="form-group border">
305
+											<label class="col-xs-2 itp_lb">등록자/등록일 </label>
306
+											<div class="col-xs-4 itp_ip">
307
+												<div class="col-xs-2 itp_in">
308
+													<div class="input-group fnRegId" style="padding:5px;"></div>
309
+												</div>
310
+												<label class="col-xs-1" style="top:7px;">/</label>
311
+												<div class="col-xs-6 itp_in">
312
+													<div class="input-group fnRegDt" style="padding:5px;"></div>
313
+												</div>
314
+											</div>
315
+											<label class="col-xs-2 itp_lb">최종  수정자/수정일</label>
316
+											<div class="col-xs-4 itp_ip">
317
+												<div class="col-xs-2 itp_in">
318
+													<div class="input-group fnChgId" style="padding:5px;"></div>
319
+												</div>
320
+												<label class="col-xs-1" style="top:7px;">/</label>
321
+												<div class="col-xs-6 itp_in">
322
+													<div class="input-group fnChgDt" style="padding:5px;"></div>
323
+												</div>
324
+											</div>
325
+										</div>
326
+									</div>
327
+								</section>
328
+							</form>
329
+						</div>
330
+					</div>
331
+				</div>
332
+			</div>
333
+		</article>
334
+	</div>
335
+
336
+	<div id="ITP_TAP_JS"></div>
337
+</section>

+ 510 - 0
src/main/webapp/app/stinfo/STINFO02011.html

@@ -0,0 +1,510 @@
1
+<section id="ITP_TAB_STINFO02011" class="tab-pane active itp_sec">
2
+	<div class="itp_cont">
3
+		<article class="itp_detail">
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>
6
+				<div class="pull-right itp_cicon">
7
+					<button type="button" id="ITP_BTN_STINFO02011_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8
+					<button type="button" id="ITP_BTN_STINFO02011_MODIFY" class="btn btn-success btn-sm UPB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;수정&nbsp;&nbsp;</button>
9
+					<button type="button" id="ITP_BTN_STINFO02011_NEWREG" class="btn btn-primary btn-sm NEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;신규등록&nbsp;&nbsp;</button>
10
+					<button type="button" id="ITP_BTN_STINFO02011_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon"></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
11
+					<button type="button" id="ITP_BTN_STINFO02011_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon"></i>&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
12
+				</div>
13
+			</div>
14
+			<div class="itp_det_in">
15
+				<div id="ITP_AJAX_STINFO02011_LIST_CONTAINER">
16
+					<div class="itp_lg_form itp_type1 fix">
17
+						<div class="itp_srh_border fix">
18
+							<div class="col-xs-12">
19
+								<form id="ITP_FORM_STINFO02011_SEARCH" class="form-horizontal">
20
+									<div class="form-group">
21
+										<div class="col-xs-2 itp_ip itp_noMar">
22
+											<select id="ITP_FORM_STINFO02011_SERVICE_ST_DT" class="form-control itp_input" name="searchDateType">
23
+												<option value="">선택</option>
24
+												<option value="20">등록일</option>
25
+												<option value="10">오픈일</option>
26
+											</select>
27
+										</div>
28
+										<div class="col-xs-10 itp_ip itp_noMar">
29
+											<div class="col-xs-4 itp_ip">
30
+												<div class="input-daterange input-group date">
31
+													<input type="text" id="ITP_FORM_STINFO02011_SEARCH_REG_DT" class="form-control itp_input" name="fromDt" readonly>
32
+													<span class="input-group-addon itp_date_to">~</span>
33
+													<input type="text" id="ITP_FORM_STINFO02011_SEARCH_OPEN_DT" class="form-control itp_input" name="toDt" readonly>
34
+												</div>
35
+											</div>
36
+										</div>
37
+									</div>
38
+									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
39
+										<div class="col-xs-2 itp_ip itp_noMar">
40
+											<select id="ITP_FORM_STINFO02011_SEARCH_STORE_DVSN" data-select-code="STORE_DVSN" class="form-control itp_input" name="sstoreDvsn">
41
+												<option value="">매장구분</option>
42
+											</select>
43
+										</div>
44
+										<div class="col-xs-2 itp_ip itp_noMar">
45
+											<select id="ITP_FORM_STINFO02011_SEARCH_STORE_ST_CD" data-select-code="ST_CD" class="form-control itp_input" name="sstoreStCd">
46
+												<option value="">매장상태</option>
47
+											</select>
48
+										</div>
49
+										<div class="col-xs-2 itp_ip itp_noMar">
50
+											<select id="ITP_FORM_STINFO02011_SEARCH_LOAN_DVSN" data-select-code="LOAN_DVSN" class="form-control itp_input" name="sloanDvsn">
51
+												<option value="">정산타입</option>
52
+											</select>
53
+										</div>
54
+										<div class="col-xs-4 itp_ip itp_noMar">
55
+											<input type="text" id="ITP_FORM_STINFO02011_SEARCH_STORE_NM" class="form-control itp_input" name="sstoreMm" placeholder="매장 명" />
56
+										</div>
57
+									</div>
58
+								</form>
59
+							</div>
60
+						</div>
61
+					</div>
62
+					<div class="itp_table fix">
63
+						<div id="ITP_STINFO02011_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
64
+							<div id="ITP_STINFO02011_jqGridView" class="itp_views fix"></div>
65
+							<table id="ITP_STINFO02011_jqGrid"></table>
66
+							<div id="ITP_STINFO02011_jqGridPager"></div>
67
+							<div id="ITP_STINFO02011_jqGridEmpty" class="itp_no_data"></div>
68
+						</div>
69
+					</div>
70
+				</div>
71
+				<div id="ITP_AJAX_STINFO02011_DETAIL_CONTAINER">
72
+					<div class="itp_form itp_type1 fix">
73
+						<div class="col-xs-12">
74
+							<form id="ITP_FORM_STINFO02011_DETAIL" class="form-horizontal">
75
+								<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_VIEW_CD" name="viewCd" value="R">
76
+								<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_AFFL_SHOP_ID" name="afflShopId" value="">
77
+								<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_BRAND_ID" name="brandId" value="">
78
+								<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_STORE_ID" name="storeId" value="">
79
+								<section class="itp_form_sec">
80
+									<h4 class="itp_form_tit">매장정보-신규</h4>
81
+									<div class="itp_form_in">
82
+										<div class="form-group">
83
+											<label class="col-xs-2 itp_lb">브랜드 *</label>
84
+											<div class="col-xs-4 itp_ip">
85
+												<div class="col-xs-10 itp_in fnBrandNm"></div>
86
+											</div>
87
+											<label class="col-xs-2 itp_lb">상태 *</label>
88
+											<div class="col-xs-4 itp_ip">
89
+												<div class="col-xs-7 itp_in">
90
+													<select id="ITP_FORM_STINFO02011_DETAIL_STORE_ST_CD" data-select-code="STORE_ST_CD" data-check-required="empty" class="form-control itp_input" name="stCd"></select>
91
+												</div>
92
+											</div>
93
+										</div>
94
+									</div>
95
+									<div class="itp_form_in">
96
+										<div class="form-group">
97
+											<label class="col-xs-2 itp_lb">매장번호 *</label>
98
+											<div class="col-xs-4 itp_ip">
99
+												<div class="col-xs-10 itp_in fnStoreNm"></div>
100
+											</div>
101
+											<label class="col-xs-2 itp_lb">매장구분 *</label>
102
+											<div class="col-xs-4 itp_ip">
103
+												<div class="col-xs-7 itp_in">
104
+													<select id="ITP_FORM_STINFO02011_DETAIL_STORE_DVSN" data-select-code="STORE_DVSN" data-check-required="empty" class="form-control itp_input" name="storeDvsn"></select>
105
+												</div>
106
+											</div>
107
+										</div>
108
+									</div>
109
+									<div class="itp_form_in">
110
+										<div class="form-group">
111
+											<label class="col-xs-2 itp_lb">매장명 *</label>
112
+											<div class="col-xs-4 itp_ip">
113
+												<div class="col-xs-9 itp_in">
114
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_STORE_NM" data-check-required="empty" class="form-control itp_input" name="storeNm" value="">
115
+												</div>
116
+											</div>
117
+											<label class="col-xs-2 itp_lb">업태</label>
118
+											<div class="col-xs-4 itp_ip">
119
+												<div class="col-xs-7 itp_in">
120
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_BSNS_CNDT" class="form-control itp_input" name="bsnsCndt" value="">
121
+												</div>
122
+											</div>
123
+										</div>
124
+									</div>
125
+									<div class="itp_form_in">
126
+										<div class="form-group">
127
+											<label class="col-xs-2 itp_lb">사업자번호 *</label>
128
+											<div class="col-xs-4 itp_ip">
129
+												<div class="col-xs-6 itp_in">
130
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_BSNS_REG_NO"  data-check-required="empty"class="form-control itp_input" name="bsnsRegNo" value="">
131
+												</div>
132
+											</div>
133
+											<label class="col-xs-2 itp_lb">업종</label>
134
+											<div class="col-xs-4 itp_ip">
135
+												<div class="col-xs-7 itp_in">
136
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_CTGR_BSNS" class="form-control itp_input" name="ctgrBsns" value="">
137
+												</div>
138
+											</div>
139
+										</div>
140
+									</div>
141
+									<div class="itp_form_in">
142
+										<div class="form-group">
143
+											<label class="col-xs-2 itp_lb">법인번호</label>
144
+											<div class="col-xs-4 itp_ip">
145
+												<div class="col-xs-6 itp_in">
146
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_CORP_REG_NO" class="form-control itp_input" name="corpRegNo" value="">
147
+												</div>
148
+											</div>
149
+											<label class="col-xs-2 itp_lb">전화번호 *</label>
150
+											<div class="col-xs-4 itp_ip">
151
+												<div class="col-xs-7 itp_in">
152
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_TEL_NO" data-check-required="empty" class="form-control itp_input" name="telNo" value="">
153
+												</div>
154
+											</div>
155
+										</div>
156
+									</div>
157
+									<div class="itp_form_in">
158
+										<div class="form-group">
159
+											<label class="col-xs-2 itp_lb">점주/대표자명*</label>
160
+											<div class="col-xs-4 itp_ip">
161
+												<div class="col-xs-6 itp_in">
162
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_OWNER_NM" data-check-required="empty" class="form-control itp_input" name="ownerNm" value="">
163
+												</div>
164
+											</div>
165
+											<label class="col-xs-2 itp_lb">FAX</label>
166
+											<div class="col-xs-4 itp_ip">
167
+												<div class="col-xs-7 itp_in">
168
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_FAX_NO" class="form-control itp_input" name="faxNo" value="">
169
+												</div>
170
+											</div>
171
+										</div>
172
+									</div>
173
+									<div class="itp_form_in">
174
+										<div class="form-group">
175
+											<label class="col-xs-2 itp_lb">핸드폰</label>
176
+											<div class="col-xs-4 itp_ip">
177
+												<div class="col-xs-6 itp_in">
178
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_MBL_NO" class="form-control itp_input" name="mblNo" value="">
179
+												</div>
180
+											</div>
181
+											<label class="col-xs-2 itp_lb">이메일 *</label>
182
+											<div class="col-xs-4 itp_ip">
183
+												<div class="col-xs-7 itp_in">
184
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_EMAL_ADDR" data-check-required="empty" class="form-control itp_input" name="emalAddr" value="">
185
+												</div>
186
+											</div>
187
+										</div>
188
+									</div>
189
+									<div class="itp_form_in">
190
+										<div class="form-group">
191
+											<label class="col-xs-2 itp_lb">지역 *</label>
192
+											<div class="col-xs-4 itp_ip">
193
+												<div class="col-xs-6 itp_in">
194
+													<select id="ITP_FORM_STINFO02011_DETAIL_AREA_CD" data-select-code="AREA_CD" data-check-required="empty" class="form-control itp_input" name="areaCd">
195
+													</select>
196
+												</div>
197
+											</div>
198
+											<label class="col-xs-2 itp_lb">오픈일</label>
199
+											<div class="col-xs-5 itp_ip">
200
+												<div class="col-xs-7 itp_in">
201
+													<div class="input-daterange input-group date itp_in">
202
+														<input type="text" id="ITP_FORM_STINFO02011_DETAIL_FROM_DT" class="form-control itp_input" name="openDt" value="2022.08.10">
203
+													</div>
204
+												</div>
205
+											</div>
206
+										</div>
207
+									</div>
208
+									<div class="itp_form_in">
209
+										<div class="form-group">
210
+											<label class="col-xs-2 itp_lb">매장계좌정보</label>
211
+											<div class="col-xs-12 itp_ip">
212
+												<div class="col-xs-2 itp_in">
213
+													<select id="ITP_FORM_STINFO02011_DETAIL_BNK_CD" data-select-code="BNK_CD" data-check-required="empty" class="form-control itp_input" name="bnkCd">
214
+													</select>
215
+												</div>
216
+												<div class="col-xs-4 itp_in">
217
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_ACCT_NO" data-check-required="empty" class="form-control itp_input" name="acctNo" value="" placeholder="계좌번호">
218
+												</div>
219
+												<div class="col-xs-2 itp_in">
220
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_OWAC_NM" data-check-required="empty" class="form-control itp_input" name="owacNm" value="" placeholder="예금주명">
221
+												</div>
222
+											</div>
223
+										</div>
224
+									</div>
225
+									<div class="itp_form_in">
226
+										<div class="form-group">
227
+											<label class="col-xs-2 itp_lb">정산타입*</label>
228
+											<div class="col-xs-4 itp_ip">
229
+												<div class="col-xs-7 itp_in">
230
+													<select id="ITP_FORM_STINFO02011_DETAIL_LOAN_DVSN" data-select-code="LOAN_DVSN" data-check-required="empty" class="form-control itp_input" name="loanDvsn">
231
+													</select>
232
+												</div>
233
+												<div class="col-xs-4 itp_in">
234
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_LIMIT_AMT" data-check-required="empty" class="form-control itp_input" name="limitAmt" placeholder="후불한도금액">
235
+												</div>
236
+											</div>
237
+											<label class="col-xs-2 itp_lb">창고사용여부 *</label>
238
+											<div class="col-xs-4 itp_ip">
239
+												<div class="col-xs-7 itp_in">
240
+													<select id="ITP_FORM_STINFO02011_DETAIL_WHS_USE_YN" data-select-code="WHS_USE_YN" data-check-required="empty" class="form-control itp_input" name="whsUseYn">
241
+													</select>
242
+												</div>
243
+											</div>
244
+										</div>
245
+									</div>
246
+									<div class="itp_form_info">
247
+										<div class="itp_form_in">
248
+											<div class="form-group">
249
+												<label class="col-xs-2 itp_lb">입금계좌정보</label>
250
+												<div class="col-xs-4 itp_ip">
251
+													<div class="col-xs-12 itp_in fnBrandAcctInfo"></div>
252
+												</div>
253
+												<label class="col-xs-2 itp_lb">가수금액</label>
254
+												<div class="col-xs-4 itp_ip">
255
+													<div class="col-xs-12 itp_in fnAcctBal"></div>
256
+												</div>
257
+											</div>
258
+										</div>
259
+										<div class="itp_form_in">
260
+											<div class="form-group">
261
+												<label class="col-xs-2 itp_lb">현 잔여한도</label>
262
+												<div class="col-xs-4 itp_ip">
263
+													<div class="col-xs-12 itp_in fnTmpRcvAcctTotal"></div>
264
+												</div>
265
+												<label class="col-xs-2 itp_lb">수정일</label>
266
+												<div class="col-xs-4 itp_ip">
267
+													<div class="col-xs-12 itp_in fnSysChgDttm"></div>
268
+												</div>
269
+											</div>
270
+										</div>
271
+									</div>
272
+									<div class="itp_form_in">
273
+										<div class="form-group">
274
+											<label class="col-xs-2 itp_lb">주소 *</label>
275
+											<div class="col-xs-10 itp_ip">
276
+												<div class="col-xs-1 itp_in">
277
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_ZIPNO" data-check-required="empty" class="form-control itp_input" name="zipNo" value="" maxlength="6" placeholder="우편번호">
278
+												</div>
279
+												<div class="col-xs-2 itp_in" style="width:10%;">
280
+													<button type="button" id="ITP_FORM_STINFO02011_DETAIL_ADRES_SCH" class="btn btn-primary btn-sm SHOW" style="margin: -1px 0px 0px 3px;">&nbsp;&nbsp;주소검색&nbsp;&nbsp;</button>
281
+												</div>
282
+												<div class="col-xs-4 itp_in" style="margin:0 5px;">
283
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_ADRES" data-check-required="empty" class="form-control itp_input" name="addr1" value="" placeholder="기본주소">
284
+												</div>
285
+												<div class="col-xs-4 itp_in">
286
+													<input type="text" id="ITP_FORM_STINFO02011_DETAIL_ADRES_DTL" data-check-required="empty" class="form-control itp_input" name="addr2" value="" placeholder="상세주소">
287
+												</div>
288
+											</div>
289
+										</div>
290
+									</div>
291
+									<div class="itp_form_in">
292
+										<div class="form-group border">
293
+											<label class="col-xs-2 itp_lb"></label>
294
+											<div class="col-xs-10 itp_ip">
295
+												<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_LOTS_ADDRESS" value="" />
296
+												<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_STREET_ADDRESS" value="" />
297
+												<input type="hidden" name="latX" id="ITP_FORM_STINFO02011_DETAIL_LAT" value="" />
298
+												<input type="hidden" name="longY" id="ITP_FORM_STINFO02011_DETAIL_LNG" value="" />
299
+												<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_HJ_DONG" value="" />
300
+												<input type="hidden" id="ITP_FORM_STINFO02011_DETAIL_BJ_DONG" value="" />
301
+												<div id="ITP_FORM_STINFO02011_DETAIL_MAP" style="width:700px; height:400px;"></div>
302
+											</div>
303
+										</div>
304
+									</div>
305
+								</section>
306
+							</form>
307
+						</div>
308
+					</div>
309
+				</div>
310
+				<div id="ITP_AJAX_STINFO02011_VIEW_CONTAINER">
311
+					<div class="itp_form itp_type1 fix">
312
+						<div class="col-xs-12">
313
+							<form id="ITP_FORM_STINFO02011_VIEW" class="form-horizontal">
314
+								<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_VIEW_CD" name="viewCd" value="R">
315
+								<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_STORE_ID" name="storeId" value="">
316
+								<section class="itp_form_sec">
317
+									<h4 class="itp_form_tit">매장정보-상세</h4>
318
+									<div class="itp_form_in">
319
+										<div class="form-group">
320
+											<label class="col-xs-2 itp_lb">브랜드 *</label>
321
+											<div class="col-xs-4 itp_ip">
322
+												<div class="col-xs-10 itp_in fnBrandNm"></div>
323
+											</div>
324
+											<label class="col-xs-2 itp_lb">상태 *</label>
325
+											<div class="col-xs-4 itp_ip">
326
+												<div class="col-xs-7 itp_in fnStCd">
327
+												</div>
328
+											</div>
329
+										</div>
330
+									</div>
331
+									<div class="itp_form_in">
332
+										<div class="form-group">
333
+											<label class="col-xs-2 itp_lb">매장번호</label>
334
+											<div class="col-xs-4 itp_ip">
335
+												<div class="col-xs-10 itp_in fnStoreId"></div>
336
+											</div>
337
+											<label class="col-xs-2 itp_lb">매장구분 *</label>
338
+											<div class="col-xs-4 itp_ip">
339
+												<div class="col-xs-7 itp_in fnStoreDvsn">
340
+												</div>
341
+											</div>
342
+										</div>
343
+									</div>
344
+									<div class="itp_form_in">
345
+										<div class="form-group">
346
+											<label class="col-xs-2 itp_lb">매장명 *</label>
347
+											<div class="col-xs-4 itp_ip">
348
+												<div class="col-xs-9 itp_in fnStoreNm">
349
+												</div>
350
+											</div>
351
+											<label class="col-xs-2 itp_lb">업태</label>
352
+											<div class="col-xs-4 itp_ip">
353
+												<div class="col-xs-7 itp_in fnBsnsCndt">
354
+												</div>
355
+											</div>
356
+										</div>
357
+									</div>
358
+									<div class="itp_form_in">
359
+										<div class="form-group">
360
+											<label class="col-xs-2 itp_lb">사업자번호 *</label>
361
+											<div class="col-xs-4 itp_ip">
362
+												<div class="col-xs-6 itp_in fnBsnsRegNo">
363
+												</div>
364
+											</div>
365
+											<label class="col-xs-2 itp_lb">업종</label>
366
+											<div class="col-xs-4 itp_ip">
367
+												<div class="col-xs-7 itp_in fnCtgrBsns">
368
+												</div>
369
+											</div>
370
+										</div>
371
+									</div>
372
+									<div class="itp_form_in">
373
+										<div class="form-group">
374
+											<label class="col-xs-2 itp_lb">법인번호</label>
375
+											<div class="col-xs-4 itp_ip">
376
+												<div class="col-xs-6 itp_in fnCorpRegNo">
377
+												</div>
378
+											</div>
379
+											<label class="col-xs-2 itp_lb">전화번호 *</label>
380
+											<div class="col-xs-4 itp_ip">
381
+												<div class="col-xs-7 itp_in fnTelNo">
382
+												</div>
383
+											</div>
384
+										</div>
385
+									</div>
386
+									<div class="itp_form_in">
387
+										<div class="form-group">
388
+											<label class="col-xs-2 itp_lb">점주/대표자명*</label>
389
+											<div class="col-xs-4 itp_ip">
390
+												<div class="col-xs-6 itp_in fnOwnerNm">
391
+												</div>
392
+											</div>
393
+											<label class="col-xs-2 itp_lb">FAX</label>
394
+											<div class="col-xs-4 itp_ip">
395
+												<div class="col-xs-7 itp_in fnFaxNo">
396
+												</div>
397
+											</div>
398
+										</div>
399
+									</div>
400
+									<div class="itp_form_in">
401
+										<div class="form-group">
402
+											<label class="col-xs-2 itp_lb">핸드폰</label>
403
+											<div class="col-xs-4 itp_ip">
404
+												<div class="col-xs-6 itp_in fnMblNo">
405
+												</div>
406
+											</div>
407
+											<label class="col-xs-2 itp_lb">이메일</label>
408
+											<div class="col-xs-4 itp_ip">
409
+												<div class="col-xs-7 itp_in fnEmalAddr">
410
+												</div>
411
+											</div>
412
+										</div>
413
+									</div>
414
+									<div class="itp_form_in">
415
+										<div class="form-group">
416
+											<label class="col-xs-2 itp_lb">지역 *</label>
417
+											<div class="col-xs-4 itp_ip">
418
+												<div class="col-xs-6 itp_in fnAreaCd">
419
+												</div>
420
+											</div>
421
+											<label class="col-xs-2 itp_lb">오픈일</label>
422
+											<div class="col-xs-5 itp_ip">
423
+												<div class="col-xs-7 itp_in fnFromDt">
424
+												</div>
425
+											</div>
426
+										</div>
427
+									</div>
428
+									<div class="itp_form_in">
429
+										<div class="form-group">
430
+											<label class="col-xs-2 itp_lb">주소 *</label>
431
+											<div class="col-xs-10 itp_ip">
432
+												<div class="col-xs-7 itp_in fnZipNo"></div>
433
+												<div class="col-xs-7 itp_in fnLoadAddr"></div>
434
+												<div class="col-xs-7 itp_in fnDtlAddr"></div>
435
+											</div>
436
+										</div>
437
+									</div>
438
+									<div class="itp_form_in">
439
+										<div class="form-group">
440
+											<label class="col-xs-2 itp_lb"></label>
441
+											<div class="col-xs-10 itp_ip">
442
+												<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_LOTS_ADDRESS" value="" />
443
+												<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_STREET_ADDRESS" value="" />
444
+												<input type="hidden" name="cmpyLat" id="ITP_FORM_STINFO02011_VIEW_LAT" value="" />
445
+												<input type="hidden" name="cmpyLng" id="ITP_FORM_STINFO02011_VIEW_LNG" value="" />
446
+												<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_HJ_DONG" value="" />
447
+												<input type="hidden" id="ITP_FORM_STINFO02011_VIEW_BJ_DONG" value="" />
448
+												<div id="ITP_FORM_STINFO02011_VIEW_MAP" style="width:700px; height:400px;"></div>
449
+											</div>
450
+										</div>
451
+									</div>
452
+									<div class="itp_form_in">
453
+										<div class="form-group">
454
+											<label class="col-xs-2 itp_lb">매장계좌정보</label>
455
+											<div class="col-xs-4 itp_ip">
456
+												<div class="col-xs-12 itp_in fnStoreAcctInfo"></div>
457
+											</div>
458
+											<label class="col-xs-2 itp_lb">정산타입</label>
459
+											<div class="col-xs-4 itp_ip">
460
+												<div class="col-xs-12 itp_in fnLoanDvsn"></div>
461
+											</div>
462
+										</div>
463
+									</div>
464
+									<div class="itp_form_in">
465
+										<div class="form-group">
466
+											<label class="col-xs-2 itp_lb">입금계좌정보</label>
467
+											<div class="col-xs-4 itp_ip">
468
+												<div class="col-xs-12 itp_in fnBrandAcctInfo"></div>
469
+											</div>
470
+											<label class="col-xs-2 itp_lb">가수금액</label>
471
+											<div class="col-xs-4 itp_ip">
472
+												<div class="col-xs-12 itp_in fnAcctBal">(선입금일때 존재)</div>
473
+											</div>
474
+										</div>
475
+									</div>
476
+									<div class="itp_form_in">
477
+										<div class="form-group">
478
+											<label class="col-xs-2 itp_lb">창고사용여부</label>
479
+											<div class="col-xs-4 itp_ip">
480
+												<div class="col-xs-12 itp_in fnWhsUseYn"></div>
481
+											</div>
482
+											<label class="col-xs-2 itp_lb">현 잔여한도</label>
483
+											<div class="col-xs-4 itp_ip">
484
+												<div class="col-xs-7 itp_in fnLimitAmt"></div>
485
+											</div>
486
+										</div>
487
+									</div>
488
+									<div class="itp_form_in">
489
+										<div class="form-group border">
490
+											<label class="col-xs-2 itp_lb">등록일</label>
491
+											<div class="col-xs-4 itp_ip">
492
+												<div class="col-xs-12 itp_in fnSysRegDttm"></div>
493
+											</div>
494
+											<label class="col-xs-2 itp_lb">폐점일</label>
495
+											<div class="col-xs-4 itp_ip">
496
+												<div class="col-xs-7 itp_in fnCloseDt"></div>
497
+											</div>
498
+										</div>
499
+									</div>
500
+								</section>
501
+							</form>
502
+						</div>
503
+					</div>
504
+				</div>
505
+			</div>
506
+		</article>
507
+	</div>
508
+
509
+	<div id="ITP_TAP_JS"></div>
510
+</section>

+ 1 - 1
src/main/webapp/app/stinfo/STINFO06010.html

@@ -16,7 +16,7 @@
16 16
 						<div class="itp_srh_border fix">
17 17
 							<div class="col-xs-12">
18 18
 								<form id="ITP_FORM_STINFO06010_SEARCH" class="form-horizontal">
19
-									<input type="hidden" id="ITP_FORM_STINFO06010_SEARCH_BRAND_ID" name="brandId" value="">
19
+									<input type="hidden" id="ITP_FORM_STINFO06010_SEARCH_BRAND_ID" name="sbrandId" value="">
20 20
 									<div class="form-group">
21 21
 										<div class="col-xs-3 itp_ip itp_noMar">
22 22
 											<input type="text" id="ITP_FORM_STINFO06010_SEARCH_STORE_NM" class="form-control itp_input" name="sstoreNm" placeholder="매장명" />

+ 3 - 4
src/main/webapp/js/app/config.js

@@ -405,7 +405,8 @@ var fn_make_user_info = {
405 405
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
406 406
 		let authTypeNm = (this.get('authTpNm') === undefined) ? '오더퀸' : this.get('authTpNm');
407 407
 		$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
408
-		$('#ITP_TXT_MAIN_SHR_BRAND').text('(' + this.get('brandNm') + ')');
408
+		var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
409
+		$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
409 410
 	},
410 411
 	button: function() {
411 412
 		var _this = this;
@@ -430,7 +431,6 @@ var fn_make_user_info = {
430 431
 			if(typeof(userInfo) == "string") {
431 432
 				var sessionUserInfo = this.get();
432 433
 				$.each(JSON.parse(userInfo), function(key, value) {
433
-					console.log(key + ' ===> ' + value);
434 434
 					sessionUserInfo[key] = value;
435 435
 				});
436 436
 				sessionStorage.setItem('itp_manage_user_info', JSON.stringify(sessionUserInfo));
@@ -490,8 +490,7 @@ function fn_make_side_menu() {
490 490
 		console.log('[ITP_NAV_LINK] data-itp-nav-id = ' + id + ', data-conn-url = ' + connUrl + ', tabSize = ' + tabSize);
491 491
 
492 492
 		if(String(id).indexOf('OPER') === -1 && String(id).indexOf('SYSTEM') === -1) {
493
-			var afflShopId = JSON.parse(sessionStorage.getItem('itp_manage_user_info')).afflShopId;
494
-			if(afflShopId === '') {
493
+			if(fn_make_user_info.get('brandId') === '') {
495 494
 				itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noChoiceBrand);
496 495
 				return false;
497 496
 			}

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

@@ -430,20 +430,8 @@ let createObj = {
430 430
         save: function() {
431 431
             const formId = '#ITP_FORM_OPER06010_DETAIL';
432 432
             itp_fn_form_clear_validate(null, formId);
433
-            // var vali_brandCd = itp_fn_form_validate(formId, formId + '_BRAND_ID', ['empty'], undefined);
434
-            // var vali_brandUseCd = itp_fn_form_validate(formId, formId + '_BRAND_USE_CD', ['empty'], undefined);
435
-            // var vali_brandNm = itp_fn_form_validate(formId, formId + '_BRAND_NM', ['empty'], undefined);
436 433
 
437
-            var isValid = false;
438
-            $(formId).find('input, select, checkbox, textarea').each(function(k) {
439
-                if($(this).data('check-required')) {
440
-                    var arry = $(this).data('check-required').split(',');
441
-                    isValid = itp_fn_form_validate(formId, '#' + $(this).attr('id'), arry, undefined);
442
-                    if(!isValid) return false;
443
-                }
444
-            });
445
-
446
-            if (isValid) {
434
+            if (createObj.isValid(formId)) {
447 435
                 let param = $(formId).serializeObject();
448 436
                 // console.log(JSON.stringify(param));
449 437
 
@@ -467,5 +455,16 @@ let createObj = {
467 455
             }
468 456
         };
469 457
         fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
458
+    },
459
+    isValid: function(formId) {
460
+        var isValid = false;
461
+        $(formId).find('input, select, checkbox, textarea').each(function(k) {
462
+            if($(this).data('check-required')) {
463
+                var arry = $(this).data('check-required').split(',');
464
+                isValid = itp_fn_form_validate(formId, '#' + $(this).attr('id'), arry, undefined);
465
+                if(!isValid) return false;
466
+            }
467
+        });
468
+        return isValid;
470 469
     }
471 470
 };

+ 464 - 0
src/main/webapp/js/app/stinfo/ITP_STINFO01011.js

@@ -0,0 +1,464 @@
1
+require(['config'], function() {
2
+    require([
3
+        'jquery.bootstrap.fileUpload', //파일 업로드가 있는 페이지에서 로딩
4
+        'kakao.map.util'
5
+    ], function($) {
6
+        pageObj.init();
7
+    });
8
+});
9
+
10
+/********************************************************
11
+ --------------------------------------------------------
12
+ - Object 목록								            -
13
+ --------------------------------------------------------
14
+ * const gridColModel = {}	: 화면 Grid Object			*
15
+ * let pageObj = {}			: 화면공통 Object			*
16
+ * let listObj = {}			: 목록화면 Object			*
17
+ * let viewObj = {}			: 상세화면 Object			*
18
+ * let modifyObj = {}		: 수정화면 Object			*
19
+ * let createObj = {}		: 신규화면 Object			*
20
+ *******************************************************/
21
+
22
+/*화면 변수*/
23
+const STINFO01011_GRID_ID = '#ITP_STINFO01011_jqGrid';
24
+const STINFO01011_GRID_LIST = '#ITP_STINFO01011_jqGrid_list';
25
+const STINFO01011_GRID_PAGER = '#ITP_STINFO01011_jqGridPager';
26
+const STINFO01011_GRID_EMPTY = '#ITP_STINFO01011_jqGridEmpty';
27
+
28
+const STINFO01011_VIEW_GRID_ID = '#ITP_STINFO01011_VIEW_jqGrid';
29
+const STINFO01011_VIEW_GRID_LIST = '#ITP_STINFO01011_VIEW_jqGrid_list';
30
+const STINFO01011_VIEW_GRID_PAGER = '#ITP_STINFO01011_VIEW_jqGridPager';
31
+const STINFO01011_VIEW_GRID_EMPTY = '#ITP_STINFO01011_VIEW_jqGridEmpty';
32
+
33
+const STINFO01011_DETAIL_GRID_ID = '#ITP_STINFO01011_DETAIL_jqGrid';
34
+const STINFO01011_DETAIL_GRID_LIST = '#ITP_STINFO01011_DETAIL_jqGrid_list';
35
+const STINFO01011_DETAIL_GRID_PAGER = '#ITP_STINFO01011_DETAIL_jqGridPager';
36
+const STINFO01011_DETAIL_GRID_EMPTY = '#ITP_STINFO01011_DETAIL_jqGridEmpty';
37
+
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
+
43
+let ITP_FORM_STINFO01011_DETAIL_IS_WRITING = false;
44
+
45
+/*화면 Grid Object*/
46
+const gridColModel = {
47
+    list: [
48
+        {
49
+            index: 'VIEW_CD', name: 'viewCd',
50
+            label: ITP_MSG_LOCALE.label.viewCd,
51
+            width: '10', fixed: false, align: 'center',
52
+            sortable: false, hidden: true
53
+        },
54
+        {
55
+            index: 'AFFL_SHOP_ID', name: 'afflShopId',
56
+            label: ITP_MSG_LOCALE.label.afflShopId,
57
+            width: '10', fixed: false, align: 'center',
58
+            sortable: false, hidden: true
59
+        },
60
+        {
61
+            index: 'AFFL_SHOP_NM', name: 'afflShopNm',
62
+            label: ITP_MSG_LOCALE.label.afflShopNm, //가맹점
63
+            width: '10', fixed: false, align: 'center',
64
+            sortable: false, hidden: false
65
+        },
66
+        {
67
+            index: 'BRAND_ID', name: 'brandId',
68
+            label: ITP_MSG_LOCALE.label.brandId,
69
+            width: '10', fixed: false, align: 'center',
70
+            sortable: false, hidden: false
71
+        },
72
+        {
73
+            index: 'BRAND_NM', name: 'brandNm',
74
+            label: ITP_MSG_LOCALE.label.brandNm, //브랜드명
75
+            width: '13', fixed: false, align: 'center',
76
+            sortable: false, hidden: false
77
+        },
78
+        {
79
+            index: 'ST_NM', name: 'stNm',
80
+            label: ITP_MSG_LOCALE.label.stNm, //상태
81
+            width: '10', fixed: false, align: 'center',
82
+            sortable: false, hidden: false
83
+        },
84
+        {
85
+            index: 'BRAND_TYPE_NM', name: 'brandTypeNm',
86
+            label: ITP_MSG_LOCALE.label.brandTypeNm, //브랜드 타입
87
+            width: '13', fixed: false, align: 'center',
88
+            sortable: false, hidden: false
89
+        },
90
+        {
91
+            index: 'REG_DT', name: 'regDt',
92
+            label: ITP_MSG_LOCALE.label.regDt, //등록일
93
+            width: '10', fixed: false, align: 'center',
94
+            sortable: false, hidden: false
95
+        }],
96
+    view: [],
97
+    detail: []
98
+};
99
+
100
+/*화면공통 Object*/
101
+let pageObj = {
102
+    init: function () {
103
+        this.ui.init();
104
+        this.event.init();
105
+        this.fileUpload();
106
+    },
107
+    ui: {
108
+        init: function () {
109
+            this.view();
110
+            this.grid();
111
+            this.ready();
112
+        },
113
+        view: function() {
114
+            // 버튼 권한설정
115
+            fn_proc_btn_auth('STINFO01011');
116
+
117
+            // 공통코드 표시
118
+            $('select').each(function() {
119
+                if($(this).data('select-code')) {
120
+                    fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
121
+                }
122
+            });
123
+        },
124
+        grid: function() {
125
+            // itp_fn_jqgrid_resize(STINFO01011_GRID_ID, STINFO01011_GRID_LIST, 'lg');
126
+            // listObj.empty.init();
127
+            // itp_fn_fire_window_resize();
128
+        },
129
+        ready: function() {
130
+            viewObj.init();
131
+        }
132
+    },
133
+    event: {
134
+        init: function () {
135
+            this.button();
136
+        },
137
+        button: function () {
138
+            // 버튼 클릭 이벤트
139
+            $('button').each(function() {
140
+                var id = $(this).attr('id');
141
+                $(this).on('click', function() {
142
+                    switch (id) {
143
+                        case 'ITP_BTN_STINFO01011_MODIFY'				: modifyObj.button.modify();	break;	// 수정 버튼
144
+                        case 'ITP_BTN_STINFO01011_CANCELLIST'			: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
145
+                        case 'ITP_BTN_STINFO01011_SAVE'				    : modifyObj.button.save(); 		break;	// 저장 버튼
146
+                        case 'ITP_FORM_STINFO01011_DETAIL_ADRES_SCH'	: modifyObj.button.address();	break;	// 신규등록 주소 찾기
147
+                    }
148
+                });
149
+            });
150
+        }
151
+    },
152
+    fileUpload: function() {
153
+        //파일업로드(수정화면)
154
+        var id = 'STINFO01011';
155
+        $('#ITP_' + id + '_DETAIL_UPLOAD').empty();
156
+        const fileArgs = {
157
+            'fileNo': $('#ITP_FORM_' + id + '_DETAIL_FILE_NO').val(),
158
+            'viewCd': $('#ITP_FORM_' + id + '_DETAIL_VIEW_CD').val(),
159
+            'showYn': $('#ITP_' + id + '_DETAIL_UPLOAD').attr('data-show-yn'),
160
+            'fileId': '#ITP_FORM_' + id + '_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
161
+        };
162
+        itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'notice', true, false, id, fileArgs);
163
+    },
164
+    switchScreen: function(mode) {
165
+        $('.itp_det_head').find('button[id^="ITP_BTN_STINFO01011_"]').each(function(i) {
166
+            $(this).hide();
167
+        });
168
+        $('#ITP_TAB_STINFO01011').find('div[id$="_CONTAINER"]').each(function(i) {
169
+            $(this).hide();
170
+        });
171
+        if(mode == 'LIST') { // 목록
172
+            fn_show_btn_auth_array(['#ITP_BTN_STINFO01011_SRH', '#ITP_BTN_STINFO01011_NEWREG']);
173
+            $('#ITP_AJAX_STINFO01011_LIST_CONTAINER').show();
174
+        } else if(mode == 'ADD') { // 등록
175
+            $('#ITP_AJAX_STINFO01011_DETAIL_CONTAINER').show();
176
+            fn_show_btn_auth_array(['#ITP_BTN_STINFO01011_CANCELLIST', '#ITP_BTN_STINFO01011_SAVE']);
177
+
178
+            $('#ITP_FORM_STINFO01011_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
179
+                $(this).attr('id') === 'ITP_FORM_STINFO01011_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
180
+                if(elem.type === 'select') {
181
+                    $(this).val('').prop('selected', true);
182
+                }
183
+            });
184
+
185
+            $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_FILE_NO').val('');
186
+            $('#ITP_FORM_STINFO01011_DETAIL_BRAND_ID').removeAttr('readonly');
187
+            $('#ITP_FORM_STINFO01011_DETAIL_BRAND_NM').removeAttr('readonly');
188
+            $('#ITP_FORM_STINFO01011_DETAIL_BSNS_REG_NO').removeAttr('readonly');
189
+            $('#ITP_FORM_STINFO01011_DETAIL_CORP_REG_NO').removeAttr('readonly');
190
+            // $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').removeAttr('disabled');
191
+            // $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').removeAttr('disabled');
192
+            $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').show();
193
+            $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').show();
194
+            $('.fnBrandId').text('(자동부여)');
195
+        } else if(mode == 'MODIFY') { // 수정
196
+            $('#ITP_AJAX_STINFO01011_DETAIL_CONTAINER').show();
197
+            fn_show_btn_auth_array(['#ITP_BTN_STINFO01011_CANCELLIST', '#ITP_BTN_STINFO01011_SAVE', '#ITP_BTN_STINFO01011_RESET_PW']);
198
+
199
+            $('#ITP_FORM_STINFO01011_DETAIL_BRAND_ID').attr('readonly', true);
200
+            $('#ITP_FORM_STINFO01011_DETAIL_BRAND_NM').attr('readonly', true);
201
+            $('#ITP_FORM_STINFO01011_DETAIL_BSNS_REG_NO').attr('readonly', true);
202
+            $('#ITP_FORM_STINFO01011_DETAIL_CORP_REG_NO').attr('readonly', true);
203
+            // $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').attr('disabled', true);
204
+            // $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').attr('disabled', true);
205
+            $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').hide();
206
+            $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').hide();
207
+        } else if(mode == 'VIEW') { // 보기
208
+            $('#ITP_AJAX_STINFO01011_VIEW_CONTAINER').show();
209
+            fn_show_btn_auth_array(['#ITP_BTN_STINFO01011_MODIFY', '#ITP_BTN_STINFO01011_CANCELLIST']);
210
+        }
211
+    }
212
+};
213
+
214
+/*목록화면 Object*/
215
+let listObj = {
216
+    init: function () {
217
+        this.grid.init();
218
+    },
219
+    itp_STINFO01011_param: {},
220
+    itp_STINFO01011_search: false,
221
+    button: {
222
+        search: function() {
223
+            listObj.itp_STINFO01011_search = true;
224
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
225
+            param.gridSize = $.jgrid.defaults.rowNum;
226
+            param.gridPage = $.jgrid.defaults.page;
227
+            $(STINFO01011_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
228
+        },
229
+        create: function() {
230
+            pageObj.switchScreen('ADD');
231
+            itp_fn_form_clear_validate(null, '#ITP_FORM_STINFO01011_DETAIL');
232
+            // 권한정보 리스트 조회
233
+            createObj.init();
234
+        }
235
+    },
236
+    empty: {
237
+        init: function() {
238
+            var _this = this;
239
+            this.push();
240
+            $(STINFO01011_GRID_EMPTY).on('click', function() {
241
+                _this.back();
242
+                listObj.itp_STINFO01011_param.gridSize = $.jgrid.defaults.rowNum;
243
+                $(STINFO01011_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_STINFO01011_param)}).trigger('reloadGrid');
244
+            });
245
+        },
246
+        push: function() {
247
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
248
+            listObj.itp_STINFO01011_param = param;
249
+        },
250
+        back: function() {
251
+            $('#ITP_FORM_STINFO01011_SERVICE_BRAND_TYPE').val(listObj.itp_STINFO01011_param.brandType);
252
+            $('#ITP_FORM_STINFO01011_SERVICE_ST_CD').val(listObj.itp_STINFO01011_param.stCd);
253
+            $('#ITP_FORM_STINFO01011_SEARCH_BRAND_NM').val(listObj.itp_STINFO01011_param.brandNm);
254
+        }
255
+    },
256
+    grid: {
257
+        init: function () {
258
+            // 데이터 없을때
259
+            listObj.empty.push();
260
+            this.search();
261
+        },
262
+        colModel: gridColModel.list,
263
+        search: function() {
264
+            pageObj.switchScreen('LIST');
265
+            this.unload();
266
+            this.load();
267
+        },
268
+        load: function() {
269
+            let param = $('#ITP_FORM_STINFO01011_SEARCH').serializeObject();
270
+            param.gridSize = $.jgrid.defaults.rowNum;
271
+
272
+            var option = {
273
+                gridId: STINFO01011_GRID_ID,
274
+                colModel: gridColModel.list,
275
+                param: JSON.stringify(param),
276
+                url: DOMAIN + API_DETAIL_GRID_LIST,
277
+                pager: STINFO01011_GRID_PAGER,
278
+                onCellSelect: function(rowId, cellIdx, cellValue) {
279
+                    var cm = $(this).jqGrid('getGridParam', 'colModel');
280
+                    var colNm = cm[cellIdx].name;
281
+                    if (colNm === 'brandId') {
282
+                        const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
283
+                        const key = {brandId: brandIdVal, viewCd: 'R'};
284
+                        var param = $.param(key);
285
+                        viewObj.init(param);
286
+                    }
287
+                },
288
+                loadComplete: function(data) {
289
+                    console.log(data);
290
+                    itp_fn_grid_load_complete(data, STINFO01011_GRID_ID, true, 'number', 'STINFO01011', listObj.itp_STINFO01011_search, listObj.empty, true, data.gridRecords, true);
291
+                    var ids = $(STINFO01011_GRID_ID).getDataIDs();
292
+                    $.each(ids, function(idx, rowId) {
293
+                        $(STINFO01011_GRID_ID).jqGrid('setCell', rowId, 'brandId', '', ITP_GRID_COL_STYLE.link);
294
+                    });
295
+                },
296
+                onPaging: function(action) {
297
+                    itp_fn_grid_paging(STINFO01011_GRID_ID, action, param);
298
+                }
299
+            };
300
+            itp_fn_grid_make_remote(option);
301
+        },
302
+        clearData : function() {
303
+            $(STINFO01011_GRID_ID).jqGrid('clearGridData', true);
304
+            $(STINFO01011_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
305
+            $(STINFO01011_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
306
+            $(STINFO01011_GRID_EMPTY).show();
307
+        },
308
+        unload : function() {
309
+            $.jgrid.gridUnload(STINFO01011_GRID_ID);
310
+        }
311
+    }
312
+};
313
+
314
+/*상세화면 Object*/
315
+let viewObj = {
316
+    init: function () {
317
+        const key = {brandId: fn_make_user_info.get('brandId'), viewCd: 'R'};
318
+        var param = $.param(key);
319
+        this.load(param);
320
+    },
321
+    load: function(param) {
322
+        fn_ajax_call(API_DETAIL_INFO, param, this.callback, 'GET');
323
+    },
324
+    callback: function (result) {
325
+        console.log(result);
326
+        pageObj.switchScreen('VIEW');
327
+        $('#ITP_FORM_STINFO01011_VIEW #ITP_FORM_STINFO01011_VIEW_AFFL_SHOP_ID').val(result.afflShopId);
328
+        $('#ITP_FORM_STINFO01011_VIEW #ITP_FORM_STINFO01011_VIEW_BRAND_ID').val(result.brandId);
329
+        $('#ITP_FORM_STINFO01011_VIEW .fnBrandUnitUnqNo').text(result.brandId);
330
+        $('#ITP_FORM_STINFO01011_VIEW .fnStCd').text(result.stNm);
331
+        $('#ITP_FORM_STINFO01011_VIEW .fnBrandNm').text(result.brandNm);
332
+        $('#ITP_FORM_STINFO01011_VIEW .fnBrandType').text(result.brandTypeNm);
333
+        $('#ITP_FORM_STINFO01011_VIEW .fnOwnerNm').text(result.ownerNm);
334
+        $('#ITP_FORM_STINFO01011_VIEW .fnTelNo').text(result.telNo);
335
+        $('#ITP_FORM_STINFO01011_VIEW .fnFaxNo').text(result.faxNo);
336
+        $('#ITP_FORM_STINFO01011_VIEW .fnEmalAddr').text(result.emalAddr);
337
+        $('#ITP_FORM_STINFO01011_VIEW .fnDpstBnkCd').text(result.bnkCdNm);
338
+        $('#ITP_FORM_STINFO01011_VIEW .fnRcvAcctNo').text(result.acctNo);
339
+        $('#ITP_FORM_STINFO01011_VIEW .fnOwacNm').text(result.owacNm);
340
+        $('#ITP_FORM_STINFO01011_VIEW .fnZipNo').text(result.zipNo);
341
+        $('#ITP_FORM_STINFO01011_VIEW .fnLoadAddr').text(result.addr1);
342
+        $('#ITP_FORM_STINFO01011_VIEW .fnDtlAddr').text(result.addr2);
343
+        $('#ITP_FORM_STINFO01011_VIEW .fnRegId').text(result.sysRegId);
344
+        $('#ITP_FORM_STINFO01011_VIEW .fnRegDt').text(result.sysRegDttm);
345
+        $('#ITP_FORM_STINFO01011_VIEW .fnChgId').text(result.sysChgId);
346
+        $('#ITP_FORM_STINFO01011_VIEW .fnChgDt').text(result.sysChgDttm);
347
+        // $('#ITP_FORM_STINFO01011_VIEW .fnBrandLogo').text(result.lastLoginDt);
348
+
349
+        let locate = result.addr1 + ' ' + result.addr2;
350
+        kakaoMap.init('ITP_FORM_STINFO01011_VIEW', locate);
351
+
352
+    }
353
+};
354
+
355
+/*수정화면 Object*/
356
+let modifyObj = {
357
+    button: {
358
+        modify: function () {
359
+            itp_fn_form_clear_validate(null, '#ITP_FORM_STINFO01011_DETAIL');
360
+            const brandIdVal = $('#ITP_FORM_STINFO01011_VIEW_BRAND_ID').val();
361
+            const key = {brandId: brandIdVal, viewCd: 'R'};
362
+            var param = $.param(key);
363
+            modifyObj.load(param);
364
+        },
365
+        address: function() {
366
+            kakaoMap.address('ITP_FORM_STINFO01011_DETAIL');
367
+        },
368
+        save: function() {
369
+            const formId = '#ITP_FORM_STINFO01011_DETAIL';
370
+            itp_fn_form_clear_validate(null, formId);
371
+
372
+            if (modifyObj.isValid(formId)) {
373
+                let param = $(formId).serializeObject();
374
+                console.log(JSON.stringify(param));
375
+
376
+                var searhFn = function() {
377
+                    ITP_FORM_STINFO01011_DETAIL_IS_WRITING = false;
378
+                    viewObj.init();
379
+                };
380
+                fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
381
+            }
382
+        },
383
+        cancel: function () {
384
+            viewObj.init();
385
+        }
386
+    },
387
+    load: function(param) {
388
+        fn_ajax_call(API_DETAIL_INFO, param, this.callback, 'GET');
389
+    },
390
+    callback: function (result) {
391
+        console.log(result);
392
+        pageObj.switchScreen('MODIFY');
393
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_VIEW_CD').val('U');
394
+
395
+        $('#ITP_FORM_STINFO01011_DETAIL .fnBrandId').text(result.brandId);
396
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID').val(result.afflShopId);
397
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM').val(result.afflShopNm);
398
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_BRAND_ID').val(result.brandId);
399
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_ST_CD').val(result.stCd);
400
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_BRAND_NM').val(result.brandNm);
401
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_BRAND_TYPE').val(result.brandType);
402
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_BSNS_REG_NO').val(result.bsnsRegNo);
403
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_CORP_REG_NO').val(result.corpRegNo);
404
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_OWNER_NM').val(result.ownerNm);
405
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_TEL_NO').val(result.telNo);
406
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_FAX_NO').val(result.faxNo);
407
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_EMAL_ADDR').val(result.emalAddr);
408
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_DPST_BNK_CD').val(result.bnkCd);
409
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_RCV_ACCT_NO').val(result.acctNo);
410
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_OWAC_NM').val(result.owacNm);
411
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_ZIPNO').val(result.zipNo);
412
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_STINFO01011_DETAIL_ADRES').val(result.addr1);
413
+        $('#ITP_FORM_STINFO01011_DETAIL #ITP_FORM_OPER03010_DETAIL_ADRES_DTL').val(result.addr2);
414
+
415
+        $('#ITP_FORM_STINFO01011_DETAIL .fnAddDt').text(result.sysRegDttm);
416
+        $('#ITP_FORM_STINFO01011_DETAIL .fnChgDt').text(result.sysChgDttm);
417
+
418
+        let locate = result.addr1 + ' ' + result.addr2;
419
+        kakaoMap.init('ITP_FORM_STINFO01011_DETAIL', locate);
420
+    },
421
+    isValid: function(formId) {
422
+        var isValid = false;
423
+        $(formId).find('input, select, checkbox, textarea').each(function(k) {
424
+            if($(this).data('check-required')) {
425
+                var arry = $(this).data('check-required').split(',');
426
+                isValid = itp_fn_form_validate(formId, '#' + $(this).attr('id'), arry, undefined);
427
+                if(!isValid) return false;
428
+            }
429
+        });
430
+        return isValid;
431
+    }
432
+};
433
+
434
+/*신규화면 Object*/
435
+let createObj = {
436
+    init: function () {
437
+        this.button.init();
438
+        pageObj.fileUpload();
439
+        kakaoMap.init('ITP_FORM_STINFO01011_DETAIL', '');
440
+    },
441
+    button: {
442
+        init: function() {
443
+            // 가맹점 조회 버튼 클릭
444
+            $('#ITP_FORM_STINFO01011_DETAIL_SEARCH_AFFL_SHOP').on('click', function() {
445
+                createObj.popup();
446
+            });
447
+            // 가맹점 텍스트 삭제 버튼 클릭
448
+            $('#ITP_FORM_STINFO01011_DETAIL_DELETE_AFFL_SHOP').on('click', function() {
449
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID').val('');
450
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM').val('');
451
+            });
452
+        },
453
+    },
454
+    popup: function() {
455
+        var popFn = function(rowDataPop) {
456
+            // console.log(rowDataPop);
457
+            if(rowDataPop.AFFL_SHOP) {
458
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
459
+                $('#ITP_FORM_STINFO01011_DETAIL_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
460
+            }
461
+        };
462
+        fn_call_popup('biz', 'BIZPOP_AFFL_SHOP', '#ITP_ASIDE', popFn, null, 'S');
463
+    }
464
+};

+ 492 - 0
src/main/webapp/js/app/stinfo/ITP_STINFO02011.js

@@ -0,0 +1,492 @@
1
+require(['config'], function() {
2
+	require([
3
+		'kakao.map.util'
4
+	], function($) {
5
+		pageObj.init();
6
+	});
7
+});
8
+
9
+/********************************************************
10
+ --------------------------------------------------------
11
+ - Object 목록								            -
12
+ --------------------------------------------------------
13
+ * const gridColModel = {}	: 화면 Grid Object			*
14
+ * let pageObj = {}			: 화면공통 Object			*
15
+ * let listObj = {}			: 목록화면 Object			*
16
+ * let viewObj = {}			: 상세화면 Object			*
17
+ * let modifyObj = {}		: 수정화면 Object			*
18
+ * let createObj = {}		: 신규화면 Object			*
19
+ *******************************************************/
20
+
21
+/*화면 변수*/
22
+const STINFO02011_GRID_ID = '#ITP_STINFO02011_jqGrid';
23
+const STINFO02011_GRID_LIST = '#ITP_STINFO02011_jqGrid_list';
24
+const STINFO02011_GRID_PAGER = '#ITP_STINFO02011_jqGridPager';
25
+const STINFO02011_GRID_EMPTY = '#ITP_STINFO02011_jqGridEmpty';
26
+
27
+const STINFO02011_VIEW_GRID_ID = '#ITP_STINFO02011_VIEW_jqGrid';
28
+const STINFO02011_VIEW_GRID_LIST = '#ITP_STINFO02011_VIEW_jqGrid_list';
29
+const STINFO02011_VIEW_GRID_PAGER = '#ITP_STINFO02011_VIEW_jqGridPager';
30
+const STINFO02011_VIEW_GRID_EMPTY = '#ITP_STINFO02011_VIEW_jqGridEmpty';
31
+
32
+const STINFO02011_DETAIL_GRID_ID = '#ITP_STINFO02011_DETAIL_jqGrid';
33
+const STINFO02011_DETAIL_GRID_LIST = '#ITP_STINFO02011_DETAIL_jqGrid_list';
34
+const STINFO02011_DETAIL_GRID_PAGER = '#ITP_STINFO02011_DETAIL_jqGridPager';
35
+const STINFO02011_DETAIL_GRID_EMPTY = '#ITP_STINFO02011_DETAIL_jqGridEmpty';
36
+
37
+let ITP_FORM_STINFO02011_DETAIL_IS_WRITING = false;
38
+
39
+/*API URL*/
40
+let API_DETAIL_GRID_LIST 	= '/api/store/detail-grid-list';	// 목록
41
+let API_DETAIL_INFO 		= '/api/store/info-store';			// 상세
42
+let API_DETAIL_SAVE 		= '/api/store/save-store';			// 저장
43
+let API_INTI_PW				= '/api/store/inti-storePw';		// 패스워드 초기화
44
+
45
+/*화면 Grid ColModel*/
46
+const gridColModel = {
47
+	list: [
48
+		{
49
+			index: 'STORE_ID', name: 'storeId',
50
+			label: ITP_MSG_LOCALE.label.storeId, //매장번호
51
+			width: '10', fixed: false, align: 'center',
52
+			sortable: false, hidden: false
53
+		},
54
+		{
55
+			index: 'STORE_NM', name: 'storeNm',
56
+			label: ITP_MSG_LOCALE.label.storeNm, //매장명
57
+			width: '13', fixed: false, align: 'center',
58
+			sortable: false, hidden: false
59
+		},
60
+		{
61
+			index: 'BRAND_ID', name: 'brandId',
62
+			label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
63
+			width: '10', fixed: false, align: 'center',
64
+			sortable: false, hidden: true
65
+		},
66
+		{
67
+			index: 'BRAND_NM', name: 'brandNm',
68
+			label: ITP_MSG_LOCALE.label.brandNm, //브랜드명
69
+			width: '10', fixed: false, align: 'center',
70
+			sortable: false, hidden: false
71
+		},
72
+		{
73
+			index: 'BSNS_REG_NO', name: 'bsnsRegNo',
74
+			label: ITP_MSG_LOCALE.label.bsnsRegNo, //사업자등록번호
75
+			width: '13', fixed: false, align: 'center',
76
+			sortable: false, hidden: false
77
+		},
78
+		{
79
+			index: 'STORE_DVSN', name: 'storeDvsn',
80
+			label: ITP_MSG_LOCALE.label.storeDvsn, //매장구분
81
+			width: '15', fixed: false, align: 'center',
82
+			sortable: false, hidden: true
83
+		},
84
+		{
85
+			index: 'STORE_DVSN_NM', name: 'storeDvsnNm',
86
+			label: ITP_MSG_LOCALE.label.storeDvsn, //매장구분명
87
+			width: '15', fixed: false, align: 'center',
88
+			sortable: false, hidden: false
89
+		},
90
+		{
91
+			index: 'STORE_ST_NM', name: 'storeStNm',
92
+			label: ITP_MSG_LOCALE.label.stNm, //상태
93
+			width: '6', fixed: false, align: 'center',
94
+			sortable: false, hidden: false
95
+		},
96
+		{
97
+			index: 'SYS_REG_DTTM', name: 'sysRegDttm',
98
+			label: ITP_MSG_LOCALE.label.sysRegDttm, //최초등록일
99
+			width: '10', fixed: false, align: 'center',
100
+			sortable: false, hidden: false
101
+		},
102
+	],
103
+	detail: [
104
+		{
105
+			index: 'VIEW_CD', name: 'viewCd',
106
+			label: ITP_MSG_LOCALE.label.viewCd,
107
+			width: '10', fixed: false, align: 'center',
108
+			sortable: false, hidden: true
109
+		},
110
+		{
111
+			index: 'AUTH_NO', name: 'authNo',
112
+			label: ITP_MSG_LOCALE.label.permitCd,
113
+			width: '20', fixed: false, align: 'center',
114
+			sortable: false, editable: false, edittype: 'text',
115
+			editrules: {required: true}
116
+		},
117
+		{
118
+			index: 'AUTH_NM', name: 'authNm',
119
+			label: ITP_MSG_LOCALE.label.permitName,
120
+			width: '30', fixed: false, align: 'center',
121
+			sortable: true, editable: false, edittype: 'text',
122
+			editrules: {required: true}
123
+		},
124
+		{
125
+			index: 'USE_YN_NM', name: 'useYnNm',
126
+			label: ITP_MSG_LOCALE.label.status,
127
+			width: '10', fixed: false, align: 'center',
128
+			sortable: false, editable: false, edittype: 'text'
129
+		},
130
+		{
131
+			index: 'ADD_DT', name: 'addDt',
132
+			label: ITP_MSG_LOCALE.label.regDt,
133
+			width: '10', fixed: false, align: 'center',
134
+			sortable: false, editable: false, edittype: 'text'
135
+		}
136
+	]
137
+};
138
+
139
+/*화면공통 Object*/
140
+let pageObj = {
141
+	init: function () {
142
+		this.ui.init();
143
+		this.event.init();
144
+	},
145
+	ui: {
146
+		init: function () {
147
+			this.view();
148
+			this.grid();
149
+			this.ready();
150
+		},
151
+		view: function() {
152
+			// 버튼 권한설정
153
+			fn_proc_btn_auth('STINFO02011');
154
+
155
+			// 공통코드 표시
156
+			$('select').each(function() {
157
+				if($(this).data('select-code')) {
158
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
159
+				}
160
+			});
161
+
162
+			// 조회일자 지정
163
+			$('#ITP_TAB_STINFO02011 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
164
+		},
165
+		grid: function() {
166
+			// itp_fn_jqgrid_resize(STINFO02011_GRID_ID, STINFO02011_GRID_LIST, 'lg');
167
+			// listObj.empty.init();
168
+			// itp_fn_fire_window_resize();
169
+		},
170
+		ready: function() {
171
+			viewObj.init();
172
+		}
173
+	},
174
+	event: {
175
+		init: function () {
176
+			this.button();
177
+		},
178
+		button: function () {
179
+			// 버튼 클릭 이벤트
180
+			$('button').each(function() {
181
+				var id = $(this).attr('id');
182
+				$(this).on('click', function() {
183
+					switch (id) {
184
+						case 'ITP_BTN_STINFO02011_MODIFY'				: modifyObj.button.modify();	break;	// 수정 버튼
185
+						case 'ITP_BTN_STINFO02011_CANCELLIST'			: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
186
+						case 'ITP_BTN_STINFO02011_SAVE'					: modifyObj.button.save(); 		break;	// 저장 버튼
187
+						case 'ITP_FORM_STINFO02011_DETAIL_ADRES_SCH'	: modifyObj.button.address();	break;	// 신규등록 주소 찾기
188
+					}
189
+				});
190
+			});
191
+
192
+		}
193
+	},
194
+	switchScreen: function(mode) {
195
+		$('.itp_det_head').find('button[id^="ITP_BTN_STINFO02011_"]').each(function(i) {
196
+			$(this).hide();
197
+		});
198
+		$('#ITP_TAB_STINFO02011').find('div[id$="_CONTAINER"]').each(function(i) {
199
+			$(this).hide();
200
+		});
201
+		if(mode == 'LIST') { // 목록
202
+			$('#ITP_AJAX_STINFO02011_LIST_CONTAINER').show();
203
+			fn_show_btn_auth_array(['#ITP_BTN_STINFO02011_SRH', '#ITP_BTN_STINFO02011_NEWREG']);
204
+		} else if(mode == 'ADD') { // 등록
205
+			$('#ITP_AJAX_STINFO02011_DETAIL_CONTAINER').show();
206
+			fn_show_btn_auth_array(['#ITP_BTN_STINFO02011_CANCELLIST', '#ITP_BTN_STINFO02011_SAVE']);
207
+
208
+			$('#ITP_FORM_STINFO02011_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
209
+				$(this).attr('id') === 'ITP_FORM_STINFO02011_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
210
+				if(elem.type === 'select') {
211
+					$(this).val('').prop('selected', true);
212
+				}
213
+			});
214
+
215
+
216
+			// 가맹점 정보 설정
217
+			$('#ITP_FORM_STINFO02011_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
218
+			$('#ITP_FORM_STINFO02011_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
219
+			$('#ITP_FORM_STINFO02011_DETAIL .fnBrandNm').text(fn_make_user_info.get('brandNm'));
220
+
221
+			$('#ITP_FORM_STINFO02011_DETAIL .fnStoreNm').text('(자동부여)');
222
+			$('#ITP_FORM_STINFO02011_DETAIL_STORE_ID').removeAttr('readonly');
223
+			$('#ITP_FORM_STINFO02011_DETAIL .itp_form_info').hide();
224
+		} else if(mode == 'MODIFY') { // 수정
225
+			$('#ITP_AJAX_STINFO02011_DETAIL_CONTAINER').show();
226
+			fn_show_btn_auth_array(['#ITP_BTN_STINFO02011_CANCELLIST', '#ITP_BTN_STINFO02011_SAVE', '#ITP_BTN_STINFO02011_RESET_PW']);
227
+
228
+			$('#ITP_FORM_STINFO02011_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
229
+			$('#ITP_FORM_STINFO02011_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
230
+			$('#ITP_FORM_STINFO02011_DETAIL .fnBrandNm').text(fn_make_user_info.get('brandNm'));
231
+
232
+			$('#ITP_FORM_STINFO02011_DETAIL_STORE_ID').attr('readonly', true);
233
+			$('#ITP_FORM_STINFO02011_DETAIL .itp_form_info').show();
234
+		} else if(mode == 'VIEW') { // 보기
235
+			$('#ITP_AJAX_STINFO02011_VIEW_CONTAINER').show();
236
+			fn_show_btn_auth_array(['#ITP_BTN_STINFO02011_MODIFY', '#ITP_BTN_STINFO02011_CANCELLIST']);
237
+		}
238
+	}
239
+};
240
+
241
+/*목록화면 Object*/
242
+let listObj = {
243
+	init: function () {
244
+		this.grid.init();
245
+	},
246
+	itp_STINFO02011_search: false,
247
+	button: {
248
+		search: function() {
249
+			listObj.itp_STINFO02011_search = true;
250
+			let param = $('#ITP_FORM_STINFO02011_SEARCH').serializeObject();
251
+			param.gridSize = $.jgrid.defaults.rowNum;
252
+			param.gridPage = $.jgrid.defaults.page;
253
+			$(STINFO02011_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
254
+		},
255
+		create: function() {
256
+			pageObj.switchScreen('ADD');
257
+			itp_fn_form_clear_validate(null, '#ITP_FORM_STINFO02011_DETAIL');
258
+			createObj.init();
259
+		}
260
+	},
261
+	empty: {
262
+		init: function() {
263
+			var _this = this;
264
+			this.push();
265
+			$(STINFO02011_GRID_EMPTY).on('click', function() {
266
+				_this.back();
267
+				_this.itp_STINFO02011_param.gridSize = $.jgrid.defaults.rowNum;
268
+				$(STINFO02011_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_STINFO02011_param)}).trigger('reloadGrid');
269
+			});
270
+		},
271
+		itp_STINFO02011_param: {},
272
+		push: function() {
273
+			let param = $('#ITP_FORM_STINFO02011_SEARCH').serializeObject();
274
+			listObj.itp_STINFO02011_param = param;
275
+		},
276
+		back: function() {
277
+			$('#ITP_FORM_STINFO02011_SERVICE_ST_DT').val(this.itp_STINFO02011_param.searchDateType);
278
+			$('#ITP_FORM_STINFO02011_SEARCH_REG_DT').val(this.itp_STINFO02011_param.fromDt);
279
+			$('#ITP_FORM_STINFO02011_SEARCH_OPEN_DT').val(this.itp_STINFO02011_param.toDt);
280
+			$('#ITP_FORM_STINFO02011_SEARCH_STORE_DVSN').val(this.itp_STINFO02011_param.sstoreDvsn);
281
+			$('#ITP_FORM_STINFO02011_SEARCH_STORE_ST_CD').val(this.itp_STINFO02011_param.sstoreStCd);
282
+			$('#ITP_FORM_STINFO02011_SEARCH_LOAN_DVSN').val(this.itp_STINFO02011_param.sloanDvsn);
283
+			$('#ITP_FORM_STINFO02011_SEARCH_STORE_NM').val(this.itp_STINFO02011_param.sstoreMm);
284
+		}
285
+	},
286
+	grid: {
287
+		init: function () {
288
+			// 데이터 없을때
289
+			listObj.empty.push();
290
+			this.search();
291
+		},
292
+		colModel: gridColModel.list,
293
+		search: function() {
294
+			pageObj.switchScreen('LIST');
295
+			this.unload();
296
+			this.load();
297
+		},
298
+		load: function() {
299
+			let param = $('#ITP_FORM_STINFO02011_SEARCH').serializeObject();
300
+			param.gridSize = $.jgrid.defaults.rowNum;
301
+			param.sbrandId = fn_make_user_info.get('brandId');
302
+			// param.sbrandId = sessionStorage.getItem('itp_brand_id') !== null ? sessionStorage.getItem('itp_brand_id') : 'BRD221000001';
303
+
304
+			var option = {
305
+				gridId: STINFO02011_GRID_ID,
306
+				colModel: gridColModel.list,
307
+				param: JSON.stringify(param),
308
+				url: DOMAIN + API_DETAIL_GRID_LIST,
309
+				pager: STINFO02011_GRID_PAGER,
310
+				onCellSelect: function(rowId, cellIdx, cellValue) {
311
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
312
+					var colNm = cm[cellIdx].name;
313
+					if (colNm == 'storeNm') {
314
+						const selectVal = $(this).jqGrid('getCell', rowId, 'storeId');
315
+						const key = {brandId:fn_make_user_info.get('brandId'), storeId: selectVal, viewCd: 'R'};
316
+						var param = $.param(key);
317
+						viewObj.init(param);
318
+					}
319
+				},
320
+				loadComplete: function(data) {
321
+					console.log(data);
322
+					itp_fn_grid_load_complete(data, STINFO02011_GRID_ID, true, 'number', 'STINFO02011', listObj.itp_STINFO02011_search, listObj.empty, true, data.gridRecords, true);
323
+					var ids = $(STINFO02011_GRID_ID).getDataIDs();
324
+					$.each(ids, function(idx, rowId) {
325
+						$(STINFO02011_GRID_ID).jqGrid('setCell', rowId, 'storeNm', '', ITP_GRID_COL_STYLE.link);
326
+					});
327
+				},
328
+				onPaging: function(action) {
329
+					itp_fn_grid_paging(STINFO02011_GRID_ID, action, param);
330
+				}
331
+			};
332
+			itp_fn_grid_make_remote(option);
333
+		},
334
+		clearData : function() {
335
+			$(STINFO02011_GRID_ID).jqGrid('clearGridData', true);
336
+			$(STINFO02011_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
337
+			$(STINFO02011_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
338
+			$(STINFO02011_GRID_EMPTY).show();
339
+		},
340
+		unload : function() {
341
+			$.jgrid.gridUnload(STINFO02011_GRID_ID);
342
+		}
343
+	}
344
+};
345
+
346
+/*상세화면 Object*/
347
+let viewObj = {
348
+	init: function () {
349
+		const key = {brandId:fn_make_user_info.get('brandId'), storeId: fn_make_user_info.get('storeId'), viewCd: 'R'};
350
+		var param = $.param(key);
351
+		this.load(param);
352
+	},
353
+	load: function(param) {
354
+		fn_ajax_call(API_DETAIL_INFO, param, this.callback, 'GET');
355
+	},
356
+	callback: function (result) {
357
+		console.log(result);
358
+		pageObj.switchScreen('VIEW');
359
+		$('#ITP_FORM_STINFO02011_VIEW #ITP_FORM_STINFO02011_VIEW_STORE_ID').val(result.storeId);
360
+		$('#ITP_FORM_STINFO02011_VIEW .fnBrandNm').text(result.brandNm);
361
+		$('#ITP_FORM_STINFO02011_VIEW .fnStCd').text(result.storeStNm);
362
+		$('#ITP_FORM_STINFO02011_VIEW .fnStoreId').text(result.storeId);
363
+		$('#ITP_FORM_STINFO02011_VIEW .fnStoreDvsn').text(result.storeDvsnNm);
364
+		$('#ITP_FORM_STINFO02011_VIEW .fnStoreNm').text(result.storeNm);
365
+		$('#ITP_FORM_STINFO02011_VIEW .fnBsnsCndt').text(result.bsnsCndt);
366
+		$('#ITP_FORM_STINFO02011_VIEW .fnBsnsRegNo').text(result.bsnsRegNo);
367
+		$('#ITP_FORM_STINFO02011_VIEW .fnCtgrBsns').text(result.ctgrBsns);
368
+		$('#ITP_FORM_STINFO02011_VIEW .fnCorpRegNo').text(result.corpRegNo);
369
+		$('#ITP_FORM_STINFO02011_VIEW .fnTelNo').text(result.telNo);
370
+		$('#ITP_FORM_STINFO02011_VIEW .fnOwnerNm').text(result.ownerNm);
371
+		$('#ITP_FORM_STINFO02011_VIEW .fnFaxNo').text(result.faxNo);
372
+		$('#ITP_FORM_STINFO02011_VIEW .fnMblNo').text(result.telNo);
373
+		$('#ITP_FORM_STINFO02011_VIEW .fnEmalAddr').text(result.emalAddr);
374
+		$('#ITP_FORM_STINFO02011_VIEW .fnAreaCd').text(result.areaNm);
375
+		$('#ITP_FORM_STINFO02011_VIEW .fnFromDt').text(result.openDt);
376
+		$('#ITP_FORM_STINFO02011_VIEW .fnZipNo').text(result.zipNo);
377
+		$('#ITP_FORM_STINFO02011_VIEW .fnLoadAddr').text(result.addr1);
378
+		$('#ITP_FORM_STINFO02011_VIEW .fnDtlAddr').text(result.addr2);
379
+
380
+		var cmpyAdres = result.addr1/* + ' ' + result.addr*/;
381
+		kakaoMap.init('ITP_FORM_STINFO02011_VIEW', cmpyAdres);
382
+
383
+		$('#ITP_FORM_STINFO02011_VIEW .fnStoreAcctInfo').text(result.storeBnkNm + ' ' + result.storeAcctNo + ' ' + result.storeOwacNm);
384
+		$('#ITP_FORM_STINFO02011_VIEW .fnLoanDvsn').text(result.loanDvsnNm);
385
+		$('#ITP_FORM_STINFO02011_VIEW .fnBrandAcctInfo').text(result.brandBnkNm + ' ' + result.brandAcctNo + ' ' + result.brandOwacNm);
386
+		$('#ITP_FORM_STINFO02011_VIEW .fnAcctBal').text(result.acctBal);
387
+		$('#ITP_FORM_STINFO02011_VIEW .fnWhsUseYn').text(result.whsUseYn);
388
+		$('#ITP_FORM_STINFO02011_VIEW .fnLimitAmt').text(result.limitAmt);
389
+		$('#ITP_FORM_STINFO02011_VIEW .fnSysRegDttm').text(result.sysRegDttm);
390
+		$('#ITP_FORM_STINFO02011_VIEW .fnCloseDt').text(result.closeDt);
391
+	}
392
+};
393
+
394
+/*수정화면 Object*/
395
+let modifyObj = {
396
+	init: function () {
397
+	},
398
+	button: {
399
+		modify: function (param) {
400
+			itp_fn_form_clear_validate(null, '#ITP_FORM_STINFO02011_DETAIL');
401
+			const selectVal = $('#ITP_FORM_STINFO02011_VIEW_STORE_ID').val();
402
+			const key = {brandId:fn_make_user_info.get('brandId'), storeId: selectVal, viewCd: 'R'};
403
+			var param = $.param(key);
404
+			modifyObj.load(param);
405
+		},
406
+		address: function() {
407
+			kakaoMap.address('ITP_FORM_STINFO02011_DETAIL');
408
+		},
409
+		cancel: function() {
410
+			viewObj.init();
411
+		},
412
+		save: function() {
413
+			const formId = '#ITP_FORM_STINFO02011_DETAIL';
414
+			itp_fn_form_clear_validate(null, formId);
415
+
416
+			if (modifyObj.isValid(formId)) {
417
+				let param = $(formId).serializeObject();
418
+				console.log(JSON.stringify(param));
419
+				var searhFn = function() {
420
+					ITP_FORM_STINFO02011_DETAIL_IS_WRITING = false;
421
+					viewObj.init();
422
+				};
423
+				fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
424
+			}
425
+		}
426
+	},
427
+	load: function(param) {
428
+		fn_ajax_call(API_DETAIL_INFO, param, this.callback, 'GET');
429
+	},
430
+	callback: function (result) {
431
+		console.log(result);
432
+		pageObj.switchScreen('MODIFY');
433
+
434
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_VIEW_CD').val('U');
435
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_STORE_ID').val(result.storeId);
436
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
437
+		$('#ITP_FORM_STINFO02011_DETAIL .fnBrandNm').text(result.brandNm);
438
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_STORE_ST_CD').val(result.storeStCd);
439
+		$('#ITP_FORM_STINFO02011_DETAIL .fnStoreNm').text(result.storeId);
440
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_STORE_DVSN').val(result.storeDvsn);
441
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_STORE_NM').val(result.storeNm);
442
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_BSNS_CNDT').val(result.bsnsCndt);
443
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_BSNS_REG_NO').val(result.bsnsRegNo);
444
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_CTGR_BSNS').val(result.ctgrBsns);
445
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_CORP_REG_NO').val(result.bsnsRegNo);
446
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_TEL_NO').val(result.telNo);
447
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_OWNER_NM').val(result.ownerNm);
448
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_FAX_NO').val(result.faxNo);
449
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_MBL_NO').val(result.telNo);
450
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_EMAL_ADDR').val(result.emalAddr);
451
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_AREA_CD').val(result.areaCd);
452
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_FROM_DT').val(result.openDt);
453
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_ZIPNO').val(result.zipNo);
454
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_ADRES').val(result.addr1);
455
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_ADRES_DTL').val(result.addr2);
456
+
457
+		var cmpyAdres = result.addr1/* + ' ' + result.addr*/;
458
+		kakaoMap.init('ITP_FORM_STINFO02011_DETAIL', cmpyAdres);
459
+
460
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_DPST_BNK_CD').text(result.storeBnkCd);
461
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_ACCT_NO').text(result.storeAcctNo);
462
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_OWAC_NM').text(result.storeOwacNm);
463
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_LOAN_DVSN').val(result.loanDvsn);
464
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_LIMIT_AMT').val(result.limitAmt);
465
+		$('#ITP_FORM_STINFO02011_DETAIL #ITP_FORM_STINFO02011_DETAIL_WHS_USE_YN').val(result.whsUseYn);
466
+		$('#ITP_FORM_STINFO02011_DETAIL .fnBrandAcctInfo').text(result.brandBnkNm + ' ' + result.brandAcctNo + ' ' + result.brandOwacNm);
467
+		$('#ITP_FORM_STINFO02011_DETAIL .fnAcctBal').text(result.acctBal);
468
+		$('#ITP_FORM_STINFO02011_DETAIL .fnTmpRcvAcctTotal').text(result.tmpRcvAcctTotal);
469
+		$('#ITP_FORM_STINFO02011_DETAIL .fnSysChgDttm').text(result.sysChgDttm);
470
+	},
471
+	isValid: function(formId) {
472
+		var isValid = false;
473
+		$(formId).find('input, select, checkbox, textarea').each(function(k) {
474
+			if($(this).data('check-required')) {
475
+				var arry = $(this).data('check-required').split(',');
476
+				isValid = itp_fn_form_validate(formId, '#' + $(this).attr('id'), arry, undefined);
477
+				if(!isValid) return false;
478
+			}
479
+		});
480
+		return isValid;
481
+	}
482
+};
483
+
484
+/*신규화면 Object*/
485
+let createObj = {
486
+	init: function () {
487
+		$('#ITP_FORM_STINFO02011_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
488
+		kakaoMap.init('ITP_FORM_STINFO02011_DETAIL', '');
489
+	},
490
+	button: {
491
+	}
492
+};

+ 9 - 9
src/main/webapp/js/app/stinfo/ITP_STINFO05010.js

@@ -39,25 +39,25 @@ const gridColModel = {
39 39
 		{
40 40
 			index: 'BRAND_ID', name: 'brandId',
41 41
 			label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
42
-			width: '10', fixed: false, align: 'center',
42
+			width: '0', fixed: false, align: 'center',
43 43
 			sortable: false, hidden: true
44 44
 		},
45 45
 		{
46 46
 			index: 'BRAND_UNIT_UNQ_NO', name: 'brandUnitUnqNo',
47 47
 			label: ITP_MSG_LOCALE.label.brandUnitUnqNo, //브랜드ID
48
-			width: '10', fixed: false, align: 'center',
48
+			width: '0', fixed: false, align: 'center',
49 49
 			sortable: false, hidden: true
50 50
 		},
51 51
 		{
52 52
 			index: 'ITEM_ID', name: 'itemId',
53 53
 			label: ITP_MSG_LOCALE.label.itemId, //품목번호
54
-			width: '10', fixed: false, align: 'center',
54
+			width: '13', fixed: false, align: 'center',
55 55
 			sortable: false, hidden: false
56 56
 		},
57 57
 		{
58 58
 			index: 'ITEM_NM', name: 'itemNm',
59 59
 			label: ITP_MSG_LOCALE.label.itemNm, //품목명
60
-			width: '13', fixed: false, align: 'center',
60
+			width: '15', fixed: false, align: 'center',
61 61
 			sortable: false, hidden: false
62 62
 		},
63 63
 		{
@@ -75,7 +75,7 @@ const gridColModel = {
75 75
 		{
76 76
 			index: 'STDD_QYT', name: 'stddQty',
77 77
 			label: ITP_MSG_LOCALE.label.stddQty, //기준수량
78
-			width: '15', fixed: false, align: 'center',
78
+			width: '6', fixed: false, align: 'center',
79 79
 			sortable: false, hidden: false
80 80
 		},
81 81
 		{
@@ -93,13 +93,13 @@ const gridColModel = {
93 93
 		{
94 94
 			index: 'CONT_STT_DT', name: 'contSttDt',
95 95
 			label: ITP_MSG_LOCALE.label.contSttDt, //시작일
96
-			width: '15', fixed: false, align: 'center',
96
+			width: '10', fixed: false, align: 'center',
97 97
 			sortable: false, hidden: false
98 98
 		},
99 99
 		{
100 100
 			index: 'CONT_END_DT', name: 'contEndDt',
101 101
 			label: ITP_MSG_LOCALE.label.contEndDt, //종료일
102
-			width: '6', fixed: false, align: 'center',
102
+			width: '10', fixed: false, align: 'center',
103 103
 			sortable: false, hidden: false
104 104
 		},
105 105
 		{
@@ -111,7 +111,7 @@ const gridColModel = {
111 111
 		{
112 112
 			index: 'FILE_PATH', name: 'filePath',
113 113
 			label: ITP_MSG_LOCALE.label.itemFilePath, //단가계약파일
114
-			width: '15', fixed: false, align: 'center',
114
+			width: '10', fixed: false, align: 'center',
115 115
 			sortable: false, hidden: false
116 116
 		},
117 117
 		{
@@ -165,7 +165,7 @@ let pageObj = {
165 165
 			$('#ITP_TAB_STINFO05010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
166 166
 		},
167 167
 		grid: function() {
168
-			itp_fn_jqgrid_resize(STINFO05010_GRID_ID, STINFO05010_GRID_LIST, 'lg');
168
+			itp_fn_jqgrid_resize(STINFO05010_GRID_ID, STINFO05010_GRID_LIST, 'sm');
169 169
 			listObj.empty.init();
170 170
 			itp_fn_fire_window_resize();
171 171
 		},

+ 26 - 20
src/main/webapp/js/app/stinfo/ITP_STINFO06010.js

@@ -49,12 +49,6 @@ const gridColModel = {
49 49
 			width: '10', fixed: false, align: 'center',
50 50
 			sortable: false, hidden: true
51 51
 		},
52
-		{
53
-			index: 'BRAND_NM', name: 'brandNm',
54
-			label: ITP_MSG_LOCALE.label.brandNm, //브랜드명
55
-			width: '13', fixed: false, align: 'center',
56
-			sortable: false, hidden: false
57
-		},
58 52
 		{
59 53
 			index: 'STORE_ID', name: 'storeId',
60 54
 			label: ITP_MSG_LOCALE.label.storeId, //매장ID
@@ -65,7 +59,7 @@ const gridColModel = {
65 59
 			index: 'STORE_NM', name: 'storeNm',
66 60
 			label: ITP_MSG_LOCALE.label.storeNm, //매장명
67 61
 			width: '10', fixed: false, align: 'center',
68
-			sortable: false, hidden: true
62
+			sortable: false, hidden: false
69 63
 		},
70 64
 		{
71 65
 			index: 'CONT_STT_DT', name: 'contSttDt',
@@ -93,6 +87,12 @@ const gridColModel = {
93 87
 		}
94 88
 	],
95 89
 	detail: [
90
+		{
91
+			index: 'VIEW_CD', name: 'viewCd',
92
+			label: ITP_MSG_LOCALE.label.brandId, //공급단가
93
+			width: '6', fixed: false, align: 'center',
94
+			sortable: false, hidden: true
95
+		},
96 96
 		{
97 97
 			index: 'BRAND_ID', name: 'brandId',
98 98
 			label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
@@ -166,12 +166,6 @@ const gridColModel = {
166 166
 			label: ITP_MSG_LOCALE.label.spplyUnitAmt, //공급단가
167 167
 			width: '6', fixed: false, align: 'center',
168 168
 			sortable: false, hidden: false
169
-		},
170
-		{
171
-			index: 'EDIT_STATUS', name: 'editStatus',
172
-			label: ITP_MSG_LOCALE.label.spplyUnitAmt, //공급단가
173
-			width: '6', fixed: false, align: 'center',
174
-			sortable: false, hidden: true
175 169
 		}
176 170
 	]
177 171
 };
@@ -256,6 +250,7 @@ let pageObj = {
256 250
 			// 가맹점 정보 설정
257 251
 			$('#ITP_FORM_STINFO06010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
258 252
 			$('#ITP_FORM_STINFO06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
253
+			$('#ITP_FORM_STINFO06010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
259 254
 
260 255
 			$('#ITP_FORM_STINFO06010_DETAIL_STORE_ID').removeAttr('readonly');
261 256
 			$('#ITP_FORM_STINFO06010_DETAIL_DUP').removeAttr('disabled');
@@ -268,6 +263,11 @@ let pageObj = {
268 263
 			// 가맹점 정보 설정
269 264
 			$('#ITP_FORM_STINFO06010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
270 265
 			$('#ITP_FORM_STINFO06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
266
+			$('#ITP_FORM_STINFO06010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
267
+
268
+			if(fn_make_user_info.get('authTpCd') === '50') {
269
+				$('#ITP_FORM_STINFO06010_DETAIL_STORE_NM').val(fn_make_user_info.get('storeNm'));
270
+			}
271 271
 		} else if(mode == 'VIEW') { // 보기
272 272
 			$('#ITP_AJAX_STINFO06010_VIEW_CONTAINER').show();
273 273
 			fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_MODIFY', '#ITP_BTN_STINFO06010_CANCELLIST']);
@@ -292,8 +292,7 @@ let listObj = {
292 292
 		},
293 293
 		create: function() {
294 294
 			if(!fn_make_user_info.isEmpty()) {
295
-				let param = $('#ITP_FORM_STINFO06010_DETAIL').serializeObject();
296
-				modifyObj.init($.param(param));
295
+				modifyObj.init();
297 296
 			}
298 297
 		}
299 298
 	},
@@ -379,7 +378,11 @@ let listObj = {
379 378
 /*수정화면 Object*/
380 379
 let modifyObj = {
381 380
 	init: function (param) {
381
+		console.log(param);
382 382
 		pageObj.switchScreen('MODIFY');
383
+		if(!param) {
384
+			param = $('#ITP_FORM_STINFO06010_DETAIL').serializeObject();
385
+		}
383 386
 		this.grid.init(param);
384 387
 	},
385 388
 	itp_STINFO06010_search: false,
@@ -396,15 +399,19 @@ let modifyObj = {
396 399
 
397 400
 			var rows = $(STINFO06010_DETAIL_GRID_ID).getRowData();
398 401
 			let param = {};
402
+			var gridInsertData = [];
399 403
 			var gridUpdateData = [];
400 404
 			$.each(rows, function (key, value) {
401
-				if(value.editStatus === 'U') {
405
+				if(value.viewCd === 'C') {
406
+					gridInsertData.push(value);
407
+				} else if(value.viewCd === 'U') {
402 408
 					gridUpdateData.push(value);
403 409
 				}
404 410
 			});
405 411
 			param['viewCd'] = 'U';
406 412
 			param['brandId'] = fn_make_user_info.get('brandId');
407
-			param['storeId'] = fn_make_user_info.get('userId');
413
+			param['storeId'] = fn_make_user_info.get('storeId');
414
+			param['gridInsertData'] = gridInsertData;
408 415
 			param['gridUpdateData'] = gridUpdateData;
409 416
 			console.log(JSON.stringify(param));
410 417
 			var searhFn = function() {
@@ -456,10 +463,9 @@ let modifyObj = {
456 463
 					console.log('rowId ===> ' + rowid);
457 464
 					STINFO06010_GRID_LAST_ROW_ID = itp_fn_set_data_editable(rowid, iRow, STINFO06010_GRID_LAST_ROW_ID, STINFO06010_DETAIL_GRID_ID, ['itemId']);
458 465
 					$('#' + rowid + "_stddQty").blur(function(){
459
-						console.log('_stddQty ===> ' + '#' + rowid + "_stddQty");
460 466
 						$(STINFO06010_DETAIL_GRID_ID).jqGrid('saveRow', rowid, true, 'clientArray');
461
-						if($(STINFO06010_DETAIL_GRID_ID).jqGrid('getRowData', rowid, 'editStatus') !== 'U') {
462
-							$(STINFO06010_DETAIL_GRID_ID).jqGrid('setRowData', rowid, {editStatus: 'U'});
467
+						if($(STINFO06010_DETAIL_GRID_ID).jqGrid('getRowData', rowid, 'viewCd') !== 'C') {
468
+							$(STINFO06010_DETAIL_GRID_ID).jqGrid('setRowData', rowid, {viewCd: 'U'});
463 469
 						}
464 470
 					});
465 471
 				},

+ 2 - 1
src/main/webapp/mobile/js/config.js

@@ -408,7 +408,8 @@ var fn_make_user_info = {
408 408
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
409 409
 		let authTypeNm = (this.get('authTpNm') === undefined) ? '오더퀸' : this.get('authTpNm');
410 410
 		$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
411
-		$('#ITP_TXT_MAIN_SHR_BRAND').text('(' + this.get('brandNm') + ')');
411
+		var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
412
+		$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
412 413
 	},
413 414
 	button: function() {
414 415
 		var _this = this;