Selaa lähdekoodia

운영관리 > 공지사항관리 작업

juney 2 vuotta sitten
vanhempi
commit
15a6e84a98

+ 57 - 57
src/main/webapp/app/oper/OPER01010.html

@@ -1,19 +1,19 @@
1
-<section id="ITP_TAB_OPERATION01010" class="tab-pane active itp_sec">
1
+<section id="ITP_TAB_OPER01010" class="tab-pane active itp_sec">
2 2
 	<div class="itp_cont">
3 3
 		<article class="itp_detail">
4 4
 			<div class="itp_det_head fix">
5 5
 				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i> <strong>사용자관리</strong></h2>
6 6
 				<div class="pull-right itp_cicon">
7
-					<button type="button" id="ITP_BTN_OPERATION01010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i> 조회</button>
8
-					<button type="button" id="ITP_BTN_OPERATION01010_MODIFY" class="btn btn-success btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-ok"></i> 수정</button>
9
-					<button type="button" id="ITP_BTN_OPERATION01010_NEWREG" class="btn btn-primary btn-sm NEB" style="display: inline-block;"><i class="glyphicon glyphicon-plus"></i> 신규등록</button>
10
-					<button type="button" id="ITP_BTN_OPERATION01010_DELETE" class="btn btn-danger btn-sm DEB"><i class="glyphicon glyphicon-remove"></i> 삭제</button>
11
-					<button type="button" id="ITP_BTN_OPERATION01010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon glyphicon-minus"></i> 취소/목록</button>
12
-					<button type="button" id="ITP_BTN_OPERATION01010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon glyphicon-ok"></i> 저장</button>
7
+					<button type="button" id="ITP_BTN_OPER01010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i> 조회</button>
8
+					<button type="button" id="ITP_BTN_OPER01010_MODIFY" class="btn btn-success btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-ok"></i> 수정</button>
9
+					<button type="button" id="ITP_BTN_OPER01010_NEWREG" class="btn btn-primary btn-sm NEB" style="display: inline-block;"><i class="glyphicon glyphicon-plus"></i> 신규등록</button>
10
+					<button type="button" id="ITP_BTN_OPER01010_DELETE" class="btn btn-danger btn-sm DEB"><i class="glyphicon glyphicon-remove"></i> 삭제</button>
11
+					<button type="button" id="ITP_BTN_OPER01010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon glyphicon-minus"></i> 취소/목록</button>
12
+					<button type="button" id="ITP_BTN_OPER01010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon glyphicon-ok"></i> 저장</button>
13 13
 				</div>				
14 14
 			</div>
15 15
 			<div class="itp_det_in">
16
-				<div id="ITP_AJAX_OPERATION01010_LIST_CONTAINER">
16
+				<div id="ITP_AJAX_OPER01010_LIST_CONTAINER">
17 17
 					<div class="itp_lg_form itp_type1 fix">
18 18
 						<div class="itp_srh_border fix">
19 19
 							<div class="col-xs-12">
@@ -33,22 +33,22 @@
33 33
 									</div>
34 34
 									<div class="form-group">
35 35
 										<div class="col-xs-2 itp_ip itp_noMar">
36
-											<select id="ITP_FORM_OPERATION01010_SERVICE_ST_DT" class="form-control itp_input" name="serviceStDt">
36
+											<select id="ITP_FORM_OPER01010_SERVICE_ST_DT" class="form-control itp_input" name="serviceStDt">
37 37
 												<option value="">가입일</option>											
38 38
 											</select>
39 39
 										</div>
40 40
 										<div class="col-xs-3 itp_ip">
41 41
 											<div class="input-daterange input-group date">
42
-												<input type="text" id="ITP_FORM_OPERATION01010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="" readonly>
42
+												<input type="text" id="ITP_FORM_OPER01010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="" readonly>
43 43
 												<span class="input-group-addon itp_date_to">~</span>
44
-												<input type="text" id="ITP_FORM_OPERATION01010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly>
44
+												<input type="text" id="ITP_FORM_OPER01010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="" readonly>
45 45
 											</div>
46 46
 										</div>
47 47
 										<div class="col-xs-2 itp_ip">
48
-										<input type="text" id="ITP_FORM_OPERATION01010_SEARCH_USER_NM" class="form-control itp_input" name="suserNm" placeholder="아이디/성명 검색" />
48
+										<input type="text" id="ITP_FORM_OPER01010_SEARCH_USER_NM" class="form-control itp_input" name="suserNm" placeholder="아이디/성명 검색" />
49 49
 										</div>
50 50
 										<div class="col-xs-2 itp_ip itp_noMar">
51
-											<select id="ITP_FORM_OPERATION01010_SEARCH_USER_STAT_CD" class="form-control itp_input" name="suserStatCd"></select>
51
+											<select id="ITP_FORM_OPER01010_SEARCH_USER_STAT_CD" class="form-control itp_input" name="suserStatCd"></select>
52 52
 										</div>									
53 53
 									</div>
54 54
 								</form>
@@ -56,20 +56,20 @@
56 56
 						</div>
57 57
 					</div>
58 58
 					<div class="itp_table fix">
59
-						<div id="ITP_OPERATION01010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
60
-							<div id="ITP_OPERATION01010_jqGridView" class="itp_views fix"></div>
61
-							<table id="ITP_OPERATION01010_jqGrid"></table>
62
-							<div id="ITP_OPERATION01010_jqGridPager"></div>
63
-							<div id="ITP_OPERATION01010_jqGridEmpty" class="itp_no_data"></div>
59
+						<div id="ITP_OPER01010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">
60
+							<div id="ITP_OPER01010_jqGridView" class="itp_views fix"></div>
61
+							<table id="ITP_OPER01010_jqGrid"></table>
62
+							<div id="ITP_OPER01010_jqGridPager"></div>
63
+							<div id="ITP_OPER01010_jqGridEmpty" class="itp_no_data"></div>
64 64
 						</div>
65 65
 					</div>
66 66
 				</div>
67
-				
68
-				<div id="ITP_AJAX_OPERATION01010_DETAIL_CONTAINER">
67
+
68
+				<div id="ITP_AJAX_OPER01010_DETAIL_CONTAINER">
69 69
 					<div class="itp_form itp_type1 fix">
70 70
 						<div class="col-xs-12">
71
-							<form id="ITP_FORM_OPERATION01010_DETAIL" class="form-horizontal">
72
-								<input type="hidden" id="ITP_FORM_OPERATION01010_DETAIL_VIEW_CD" name="viewCd" value="C">
71
+							<form id="ITP_FORM_OPER01010_DETAIL" class="form-horizontal">
72
+								<input type="hidden" id="ITP_FORM_OPER01010_DETAIL_VIEW_CD" name="viewCd" value="C">
73 73
 								<section class="itp_form_sec">
74 74
 									<!-- <h4 class="itp_form_tit">사용자정보 현재 테스트중</h4> -->
75 75
 									<div class="itp_form_in">
@@ -94,13 +94,13 @@
94 94
 											<label class="col-xs-2 itp_lb">사용자명</label>
95 95
 											<div class="col-xs-4 itp_ip">
96 96
 												<div class="col-xs-5 itp_in">
97
-													<input type="text" id="ITP_FORM_OPERATION01010_DETAIL_USER_NM" class="form-control itp_input" name="userNm" value="" maxlength="40">
97
+													<input type="text" id="ITP_FORM_OPER01010_DETAIL_USER_NM" class="form-control itp_input" name="userNm" value="" maxlength="40">
98 98
 												</div>
99 99
 											</div>
100 100
 											<label class="col-xs-2 itp_lb">상태</label>
101 101
 											<div class="col-xs-4 itp_ip">
102 102
 												<div class="col-xs-5 itp_in">
103
-													<select id="ITP_FORM_OPERATION01010_DETAIL_USER_STAT_CD" class="form-control itp_input" name="userStatCd">
103
+													<select id="ITP_FORM_OPER01010_DETAIL_USER_STAT_CD" class="form-control itp_input" name="userStatCd">
104 104
 													<option value=""></option>
105 105
 													</select>
106 106
 												</div>
@@ -111,9 +111,9 @@
111 111
 											<div class="col-xs-4 itp_ip">
112 112
 												<div class="col-xs-6 itp_in">
113 113
 													<div class="input-group">
114
-													<input type="text" id="ITP_FORM_OPERATION01010_DETAIL_USER_ID" class="form-control itp_input" name="userId" value="" maxlength="20" readonly>
114
+													<input type="text" id="ITP_FORM_OPER01010_DETAIL_USER_ID" class="form-control itp_input" name="userId" value="" maxlength="20" readonly>
115 115
 													<span class="input-group-btn">
116
-														<button id="ITP_FORM_OPERATION01010_DETAIL_DUP" class="btn btn-default btn-sm itp_btn SHOW" type="button" disabled><i class="glyphicon glyphicon-ok"></i></button>
116
+														<button id="ITP_FORM_OPER01010_DETAIL_DUP" class="btn btn-default btn-sm itp_btn SHOW" type="button" disabled><i class="glyphicon glyphicon-ok"></i></button>
117 117
 													</span>
118 118
 													</div>
119 119
 												</div>
@@ -127,14 +127,14 @@
127 127
 											<label class="col-xs-2 itp_lb">비밀번호</label>
128 128
 											<div class="col-xs-4 itp_ip">
129 129
 												<div class="col-xs-5 itp_in">
130
-													<input type="password" id="ITP_FORM_OPERATION01010_DETAIL_USER_PW" class="form-control itp_input" name="userPw" value="">																								
130
+													<input type="password" id="ITP_FORM_OPER01010_DETAIL_USER_PW" class="form-control itp_input" name="userPw" value="">
131 131
 												</div>
132
-												<button type="button" id="ITP_BTN_OPERATION01010_RESET_PW" class="btn btn-danger btn-xs PWC" style="margin: 3px 0px 0px 3px;">비밀번호 초기화</button>
132
+												<button type="button" id="ITP_BTN_OPER01010_RESET_PW" class="btn btn-danger btn-xs PWC" style="margin: 3px 0px 0px 3px;">비밀번호 초기화</button>
133 133
 											</div>
134 134
 											<label class="col-xs-2 itp_lb">핸드폰번호</label>
135 135
 											<div class="col-xs-4 itp_ip">
136 136
 												<div class="col-xs-5 itp_in">
137
-													<input type="text" id="ITP_FORM_OPERATION01010_DETAIL_TEL_NO" class="form-control itp_input" name="telNo" value="">
137
+													<input type="text" id="ITP_FORM_OPER01010_DETAIL_TEL_NO" class="form-control itp_input" name="telNo" value="">
138 138
 												</div>
139 139
 											</div>
140 140
 										</div>
@@ -142,13 +142,13 @@
142 142
 											<label class="col-xs-2 itp_lb">비밀번호 확인</label>
143 143
 											<div class="col-xs-4 itp_ip">
144 144
 												<div class="col-xs-5 itp_in">
145
-													<input type="password" id="ITP_FORM_OPERATION01010_DETAIL_USER_PW_CONFIRM" class="form-control itp_input" value="">
145
+													<input type="password" id="ITP_FORM_OPER01010_DETAIL_USER_PW_CONFIRM" class="form-control itp_input" value="">
146 146
 												</div>
147 147
 											</div>
148 148
 											<label class="col-xs-2 itp_lb">이메일</label>
149 149
 											<div class="col-xs-4 itp_ip">
150 150
 												<div class="col-xs-5 itp_in">
151
-													<input type="text" id="ITP_FORM_OPERATION01010_DETAIL_EMAIL" class="form-control itp_input" name="email" value="">
151
+													<input type="text" id="ITP_FORM_OPER01010_DETAIL_EMAIL" class="form-control itp_input" name="email" value="">
152 152
 												</div>
153 153
 											</div>
154 154
 										</div>
@@ -161,37 +161,37 @@
161 161
 											<div class="col-xs-4 itp_ip">
162 162
 												<div class="col-xs-5 itp_in fnLastLoginDt"></div>
163 163
 											</div>
164
-										</div>									
164
+										</div>
165 165
 									</div>
166
-								</section>								
166
+								</section>
167 167
 							</form>
168 168
 						</div>
169 169
 					</div>
170
-					
170
+
171 171
 					<div class="itp_table fix">
172 172
 						<div class="itp_table_head fix">
173 173
 							<!-- <h4 class="itp_table_tit">* 권한정보</h4> -->
174 174
 							<div class="pull-right itp_cicon">
175
-								<button type="button" id="ITP_BTN_OPERATION01010_DETAIL_ADDROW" class="btn btn-primary btn-sm ADB" style="display: inline-block;"><i class="glyphicon glyphicon-plus"></i> 추가</button>
176
-								<button type="button" id="ITP_BTN_OPERATION01010_DETAIL_DELROW" class="btn btn-danger btn-sm DEB"><i class="glyphicon glyphicon-remove"></i> 삭제</button>									
175
+								<button type="button" id="ITP_BTN_OPER01010_DETAIL_ADDROW" class="btn btn-primary btn-sm ADB" style="display: inline-block;"><i class="glyphicon glyphicon-plus"></i> 추가</button>
176
+								<button type="button" id="ITP_BTN_OPER01010_DETAIL_DELROW" class="btn btn-danger btn-sm DEB"><i class="glyphicon glyphicon-remove"></i> 삭제</button>
177 177
 							</div>
178 178
 						</div>
179
-						
180
-						<div id="ITP_OPERATION01010_DETAIL_jqGrid_list" class="itp_tb_list">
181
-							<div id="ITP_OPERATION01010_DETAIL_jqGridView" class="itp_views fix"></div>
182
-							<table id="ITP_OPERATION01010_DETAIL_jqGrid"></table>
183
-							<div id="ITP_OPERATION01010_DETAIL_jqGridPager"></div>
184
-							<div id="ITP_OPERATION01010_DETAIL_jqGridEmpty" class="itp_no_data"></div>
179
+
180
+						<div id="ITP_OPER01010_DETAIL_jqGrid_list" class="itp_tb_list">
181
+							<div id="ITP_OPER01010_DETAIL_jqGridView" class="itp_views fix"></div>
182
+							<table id="ITP_OPER01010_DETAIL_jqGrid"></table>
183
+							<div id="ITP_OPER01010_DETAIL_jqGridPager"></div>
184
+							<div id="ITP_OPER01010_DETAIL_jqGridEmpty" class="itp_no_data"></div>
185 185
 						</div>
186 186
 					</div>
187 187
 				</div>
188
-				<div id="ITP_AJAX_OPERATION01010_VIEW_CONTAINER">
188
+				<div id="ITP_AJAX_OPER01010_VIEW_CONTAINER">
189 189
 					<div class="itp_form itp_type1 fix">
190 190
 						<div class="col-xs-12">
191
-							<form id="ITP_FORM_OPERATION01010_VIEW" class="form-horizontal">
192
-								<input type="hidden" id="ITP_FORM_OPERATION01010_VIEW_VIEW_CD" name="viewCd" value="R">
193
-								<input type="hidden" id="ITP_FORM_OPERATION01010_VIEW_USER_ID" name="userId" value="">
194
-					
191
+							<form id="ITP_FORM_OPER01010_VIEW" class="form-horizontal">
192
+								<input type="hidden" id="ITP_FORM_OPER01010_VIEW_VIEW_CD" name="viewCd" value="R">
193
+								<input type="hidden" id="ITP_FORM_OPER01010_VIEW_USER_ID" name="userId" value="">
194
+
195 195
 								<section class="itp_form_sec">
196 196
 									<h4 class="itp_form_tit">사용자정보</h4>
197 197
 									<div class="itp_form_in">
@@ -234,25 +234,25 @@
234 234
 											<div class="col-xs-4 itp_ip">
235 235
 												<div class="col-xs-5 itp_in fnLastLoginDt"></div>
236 236
 											</div>
237
-										</div>									
237
+										</div>
238 238
 									</div>
239
-								</section>								
239
+								</section>
240 240
 							</form>
241 241
 						</div>
242 242
 					</div>
243
-					
243
+
244 244
 					<div class="itp_table fix">
245 245
 						<div class="itp_table_head fix">
246 246
 							<h4 class="itp_table_tit">*권한정보</h4>
247 247
 						</div>
248
-						
249
-						<div id="ITP_OPERATION01010_VIEW_jqGrid_list" class="itp_tb_list">
250
-							<div id="ITP_OPERATION01010_VIEW_jqGridView" class="itp_views fix"></div>
251
-							<table id="ITP_OPERATION01010_VIEW_jqGrid"></table>
252
-							<div id="ITP_OPERATION01010_VIEW_jqGridPager"></div>
253
-							<div id="ITP_OPERATION01010_VIEW_jqGridEmpty" class="itp_no_data"></div>
248
+
249
+						<div id="ITP_OPER01010_VIEW_jqGrid_list" class="itp_tb_list">
250
+							<div id="ITP_OPER01010_VIEW_jqGridView" class="itp_views fix"></div>
251
+							<table id="ITP_OPER01010_VIEW_jqGrid"></table>
252
+							<div id="ITP_OPER01010_VIEW_jqGridPager"></div>
253
+							<div id="ITP_OPER01010_VIEW_jqGridEmpty" class="itp_no_data"></div>
254 254
 						</div>
255
-					</div>					
255
+					</div>
256 256
 				</div>
257 257
 			</div>
258 258
 		</article>

+ 3 - 1
src/main/webapp/app/oper/OPER02010.html

@@ -23,7 +23,7 @@
23 23
 										<div class="col-xs-2 itp_ip itp_noMar">
24 24
 											<input type="text" name="afflShopNm" id="ITP_FORM_OPER02010_SEARCH_AFFL_SHOP_NM" class="form-control itp_input" placeholder="가맹점명" readonly>
25 25
 										</div>
26
-										<div class="col-xs-2 itp_ip itp_noMar">
26
+										<div class="col-xs-2 itp_ip">
27 27
 											<button type="button" id="ITP_FORM_OPER02010_SEARCH_AFFL_SHOP" class="btn btn-success btn-sm SEB"><i class="glyphicon glyphicon-search"></i></button>
28 28
 											<button type="button" id="ITP_FORM_OPER02010_DELETE_AFFL_SHOP" class="btn btn-primary btn-sm SEB"><i class="glyphicon glyphicon-erase"></i></button>
29 29
 										</div>
@@ -83,6 +83,8 @@
83 83
 											<div class="col-xs-5 itp_ip">
84 84
 												<div class="col-xs-8 itp_in">
85 85
 													<input type="text" name="afflShopNm" id="ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP_NM" class="form-control itp_input" placeholder="가맹점명" readonly>
86
+												</div>
87
+												<div class="col-xs-3 itp_in">
86 88
 													<button type="button" id="ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP" class="btn btn-success btn-sm SEB"><i class="glyphicon glyphicon-search"></i></button>
87 89
 													<button type="button" id="ITP_FORM_OPER02010_DETAIL_DELETE_AFFL_SHOP" class="btn btn-primary btn-sm SEB"><i class="glyphicon glyphicon-erase"></i></button>
88 90
 												</div>

+ 7 - 17
src/main/webapp/js/app/config.js

@@ -3,8 +3,6 @@
3 3
 var today = new Date();
4 4
 const js_version = itp_fn_date_format(today);
5 5
 
6
-var selTabIndex = 0;
7
-
8 6
 requirejs.config({
9 7
 	baseUrl: ITP_CONTEXTPATH,
10 8
 	paths: {
@@ -172,8 +170,6 @@ require([
172 170
 	});
173 171
 
174 172
 	$('#ITP_HEADER .itp_tab_list').on('click', '.itp_tab_open', function() {
175
-		var li = $(this).closest('li');
176
-		selTabIndex = li.index();
177 173
 		// console.log('[ITP_TAB_OPEN] CALL');
178 174
 		//로그인체크
179 175
 		itp_fn_logined_check();
@@ -183,10 +179,11 @@ require([
183 179
 	$('#ITP_HEADER .itp_tab_list').on('click', '.itp_tab_close', function() {
184 180
 		var tab_id = $(this).attr('data-itp-tab-id');
185 181
 		var li = $(this).closest('li');
182
+		var tabSize = $('#ITP_HEADER .itp_tab_list li').size() - 1;
186 183
 		var curIdx = li.index();
187 184
 		$('#ITP_TAB_' + tab_id).remove();
188 185
 		$(this).closest('li').remove();
189
-		if(curIdx === selTabIndex) {
186
+		if(curIdx === tabSize) {
190 187
 			$('#ITP_HEADER .itp_tab_list li').removeClass('active');
191 188
 			$('#ITP_CONTAINER .itp_contents .itp_sec').removeClass('active');
192 189
 			// $('#ITP_HEADER .itp_tab_list li:first-child').addClass('active');
@@ -194,9 +191,6 @@ require([
194 191
 			$('#ITP_HEADER .itp_tab_list li').eq(curIdx - 1).addClass('active');
195 192
 			$('#ITP_CONTAINER .itp_contents .itp_sec').eq(curIdx - 1).addClass('active');
196 193
 			itp_fn_fire_window_resize();
197
-			selTabIndex = 0;
198
-		} else {
199
-			selTabIndex = selTabIndex - 1;
200 194
 		}
201 195
 
202 196
 		return false;
@@ -469,10 +463,10 @@ function fn_make_side_menu() {
469 463
 
470 464
 		console.log('[ITP_NAV_LINK] data-itp-nav-id = ' + id + ', data-conn-url = ' + connUrl + ', tabSize = ' + tabSize);
471 465
 
472
-		if(String(id).indexOf('OPER') === -1 && !sessionStorage.getItem('itp_manage_brand_cd')) {
473
-			itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noChoiceBrand);
474
-			return false;
475
-		}
466
+		// if(String(id).indexOf('OPER') === -1 && String(id).indexOf('SYSTEM') === -1 && !sessionStorage.getItem('itp_manage_brand_cd')) {
467
+		// 	itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noChoiceBrand);
468
+		// 	return false;
469
+		// }
476 470
 
477 471
 		if (tabSize > 10) {
478 472
 			itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noMoreTab);
@@ -488,16 +482,12 @@ function fn_make_side_menu() {
488 482
 	        	$('#ITP_CONTAINER .itp_contents .itp_sec').removeClass('active');
489 483
 	        	$(this).addClass('active');
490 484
 	        	$('#ITP_TAB_' + id).addClass('active');
491
-
492
-				selTabIndex = this.index();
493 485
 				return false;
494 486
 			}
495 487
 		});
496 488
 
497 489
 		if (!isDup && openCd == 'C') {
498 490
 
499
-			selTabIndex = tabSize;
500
-
501 491
 			const href = ITP_CONTEXTPATH + connUrl; // $(this).attr('href');
502 492
 			const text = $(this).children('.itp_tt').text();
503 493
 			const tab = '<li class="active"><a href="#ITP_TAB_' + id + '" role="tab" data-toggle="tab" class="itp_tab_open">' + text + ' <i class="glyphicon glyphicon-remove itp_tab_close" data-itp-tab-id="' + id + '"></i></a></li>';
@@ -2450,7 +2440,7 @@ function itp_fn_load_page(href, tab, param, id) {
2450 2440
         },
2451 2441
         complete: function() {
2452 2442
         	//$('#ITP_OVERLAY').hide();
2453
-        	//$('#ITP_SIDEBAR').removeClass('itp_open_nav');
2443
+        	//$('#ITP_SIDEBAR').removeClass('itp_open_nav');srhResult
2454 2444
         },
2455 2445
         success: function(html) {
2456 2446
         	$('#ITP_HEADER .itp_tab_list li').removeClass('active');

+ 5 - 0
src/main/webapp/js/app/locales/locale-ko.js

@@ -41,6 +41,7 @@ const ITP_MSG_LOCALE = (function() {
41 41
 			"email": "이메일",
42 42
 			"userId": "사용자ID",
43 43
 			"userName": "사용자명",
44
+			"idEmail": "아이디(이메일)",
44 45
 			"telephone": "전화번호",
45 46
 			"confrimPassword": "비밀번호확인",
46 47
 			"code": "코드",
@@ -114,7 +115,11 @@ const ITP_MSG_LOCALE = (function() {
114 115
 			"targetNm": "대상구분",
115 116
 			"viewDt": "노출일",
116 117
 			"regDt": "등록일",
118
+			"lastLogin": "마지막 로그인",
117 119
 			"srhResult": "검색결과",
120
+			"numbering": "NO",
121
+			"ordering": "노출순서",
122
+			"ranking": "순위",
118 123
 		},
119 124
 		"table": {
120 125
 			"brandId": "브랜드ID",

+ 8 - 5
src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -34,8 +34,8 @@ require(['config'], function() {
34 34
 		// 버튼 권한설정
35 35
 		fn_proc_btn_auth('OPER02010');
36 36
 		// 공통코드 표시
37
-		// fn_make_select(CODE_LIST, 'TARGET_CD', 'ITP_FORM_OPER02010_DETAIL_TARGET_CD');
38
-		fn_make_select(CODE_LIST, 'TARGET_CD', 'ITP_FORM_OPER02010_DETAIL_TARGET_CD', true, '선택');
37
+		fn_make_select(CODE_LIST, 'TARGET_CD', 'ITP_FORM_OPER02010_DETAIL_TARGET_CD', false);
38
+		// fn_make_select(CODE_LIST, 'TARGET_CD', 'ITP_FORM_OPER02010_DETAIL_TARGET_CD', true, '선택');
39 39
 
40 40
 		// 조회일자 지정
41 41
 		var now = new Date();
@@ -683,7 +683,7 @@ var itp_fn_OPER02010_form_set = {
683 683
 				} else {
684 684
 					$('#ITP_BTN_OPER02010_DETAIL_ADDROW').attr('disabled', true);
685 685
 					$('#ITP_BTN_OPER02010_DETAIL_DELROW').attr('disabled', true);
686
-					$(OPER02010_DETAIL_GRID_ID).remove();
686
+					$(OPER02010_DETAIL_GRID_ID).jqGrid('clearGridData');
687 687
 				}
688 688
 			});
689 689
 		}
@@ -703,6 +703,7 @@ var itp_fn_OPER02010_form_set = {
703 703
 
704 704
 var itp_fn_OPER02010_brand_search = {
705 705
 	init: function () {
706
+		console.log(CONN_KEY);
706 707
 		if(AUTH_TYPE_CD === '10' || AUTH_TYPE_CD === '20') {
707 708
 			this.action();
708 709
 		} else {
@@ -739,6 +740,8 @@ var itp_fn_OPER02010_brand_search = {
739 740
 		$('#ITP_FORM_OPER02010_DETAIL_DELETE_AFFL_SHOP').on('click', function() {
740 741
 			$('#ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP_NM').val('');
741 742
 			$('select#ITP_FORM_OPER02010_DETAIL_SEARCH_BRAND_ID option').remove();
743
+			$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD option:eq(0)').prop('selected', true);
744
+			$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').trigger('change');
742 745
 		});
743 746
 	},
744 747
 	afflShop: function (view) {
@@ -748,7 +751,7 @@ var itp_fn_OPER02010_brand_search = {
748 751
 	},
749 752
 	callback: {
750 753
 		list: function(rowDataPop) {
751
-			console.log(rowDataPop);
754
+			// console.log(rowDataPop);
752 755
 			if(rowDataPop.AFFL_SHOP) {
753 756
 				$('#ITP_FORM_OPER02010_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
754 757
 				$('#ITP_FORM_OPER02010_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);
@@ -758,7 +761,7 @@ var itp_fn_OPER02010_brand_search = {
758 761
 			}
759 762
 		},
760 763
 		create: function(rowDataPop) {
761
-			console.log(rowDataPop);
764
+			// console.log(rowDataPop);
762 765
 			if(rowDataPop.AFFL_SHOP) {
763 766
 				$('#ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP_ID').val(rowDataPop.AFFL_SHOP.afflShopId);
764 767
 				$('#ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP_NM').val(rowDataPop.AFFL_SHOP.afflShopNm);

+ 235 - 0
src/main/webapp/js/app/oper/ITP_OPER03010.js

@@ -0,0 +1,235 @@
1
+
2
+const OPER03010_GRID_ID = '#ITP_OPER03010_jqGrid';
3
+const OPER03010_GRID_LIST = '#ITP_OPER03010_jqGrid_list';
4
+const OPER03010_GRID_PAGER = '#ITP_OPER03010_jqGridPager';
5
+const OPER03010_GRID_EMPTY = '#ITP_OPER03010_jqGridEmpty';
6
+
7
+const OPER03010_VIEW_GRID_ID = '#ITP_OPER03010_VIEW_jqGrid';
8
+const OPER03010_VIEW_GRID_LIST = '#ITP_OPER03010_VIEW_jqGrid_list';
9
+const OPER03010_VIEW_GRID_PAGER = '#ITP_OPER03010_VIEW_jqGridPager';
10
+const OPER03010_VIEW_GRID_EMPTY = '#ITP_OPER03010_VIEW_jqGridEmpty';
11
+
12
+const OPER03010_DETAIL_GRID_ID = '#ITP_OPER03010_DETAIL_jqGrid';
13
+const OPER03010_DETAIL_GRID_LIST = '#ITP_OPER03010_DETAIL_jqGrid_list';
14
+const OPER03010_DETAIL_GRID_PAGER = '#ITP_OPER03010_DETAIL_jqGridPager';
15
+const OPER03010_DETAIL_GRID_EMPTY = '#ITP_OPER03010_DETAIL_jqGridEmpty';
16
+
17
+let ITP_FORM_OPER03010_DETAIL_IS_DUPLICATE = false;
18
+let ITP_FORM_OPER03010_DETAIL_IS_WRITING = false;
19
+
20
+let AFFL_DETAIL_GRID_LIST = '/api/affl/detail-grid-list';
21
+let USER_SALESUSER_GRID_LIST = '/api/frcomp/cmpy-saleusers-list';
22
+let COMPANY_INFO_COMPANY = '/api/frcomp/info-frcomp';
23
+let COMPANY_SAVE_COMPANY = '/api/frcomp/save-frcomp';
24
+let COMPANY_CHECK_DUPLICATE = '/api/frcomp/check-duplicate';
25
+let USER_INTI_USERPW = '/api/user/inti-userpw';
26
+
27
+require(['config'], function() {
28
+	require([
29
+	], function($) {
30
+		pageObj.init();
31
+	});
32
+});
33
+
34
+var pageObj = {
35
+	init: function () {
36
+		this.ui.init();
37
+	},
38
+	itp_OPER03010_param: {},
39
+	itp_OPER03010_search: false,
40
+	ui: {
41
+		init: function () {
42
+			this.button();
43
+			this.comCode();
44
+			this.ready();
45
+		},
46
+		button: function () {
47
+			// 버튼 권한설정
48
+			fn_proc_btn_auth('OPER03010');
49
+		},
50
+		comCode: function () {
51
+			// 공통코드 표시
52
+			fn_make_select(CODE_LIST, 'ST_CD', 'ITP_FORM_OPER03010_SEARCH_CMPY_STAT_CD', true, '상태(전체)');
53
+			fn_make_select(CODE_LIST, 'ST_CD', 'ITP_FORM_OPER03010_DETAIL_CMPY_STAT_CD', true, '선택');
54
+			fn_make_select(CODE_LIST, 'CMPY_TYPE_CD', 'ITP_FORM_OPER03010_DETAIL_CMPY_TYPE_CD', true, '선택');
55
+			fn_make_select(CODE_LIST, 'FRCOMP_AUTH_CD', 'ITP_FORM_OPER03010_DETAIL_FRCOMP_AUTH_CD', true, '선택');
56
+		},
57
+		ready: function () {
58
+			listObj.grid.init();
59
+		}
60
+	}
61
+};
62
+
63
+/*목록*/
64
+var listObj = {
65
+	grid: {
66
+		init: function() {
67
+			// 데이터 없을때
68
+			this.itp_fn_OPER03010_empty.push();
69
+			itp_fn_jqgrid_resize(OPER02010_GRID_ID, OPER02010_GRID_LIST, 'lg');
70
+			itp_fn_OPER02010_grid.init();
71
+			itp_fn_fire_window_resize();
72
+			this.reload();
73
+		},
74
+		colModel: [
75
+			{
76
+				index: 'CMPY_CD', name: 'afflShopId',
77
+				label: '가맹점코드',
78
+				width: '6', fixed: false, align: 'center',
79
+				sortable: false, hidden: false
80
+			},
81
+			{
82
+				index: 'CMPY_NM', name: 'afflShopNm',
83
+				label: '가맹점명',
84
+				width: '10', fixed: false, align: 'center',
85
+				sortable: false, hidden: false
86
+			},
87
+			{
88
+				index: 'CORP_TYPE_NM', name: 'corpTypeNm',
89
+				label: '기업형태',
90
+				width: '6', fixed: false, align: 'center',
91
+				sortable: false, hidden: false
92
+			},
93
+			{
94
+				index: 'ST_NM', name: 'stNm',
95
+				label: '기업상태',
96
+				width: '6', fixed: false, align: 'center',
97
+				sortable: false, hidden: false
98
+			},
99
+			{
100
+				index: 'OWNER_NM', name: 'ownerNm',
101
+				label: '대표자명',
102
+				width: '6', fixed: false, align: 'center',
103
+				sortable: false, hidden: false
104
+			},
105
+			{
106
+				index: 'OWNER_TEL', name: 'ownerTel',
107
+				label: '대표연락처',
108
+				width: '6', fixed: false, align: 'center',
109
+				sortable: false, hidden: false
110
+			},
111
+			{
112
+				index: 'JOIN_DT', name: 'joinDt',
113
+				label: '가입일자',
114
+				width: '8', fixed: false, align: 'center',
115
+				sortable: false, hidden: false
116
+			}
117
+		],
118
+		load: function() {
119
+			var _this = this;
120
+			let param = $('#ITP_FORM_OPER03010_SEARCH').serializeObject();
121
+			param.gridSize = $.jgrid.defaults.rowNum;
122
+			$(OPER03010_GRID_ID).jqGrid({
123
+				colModel: this.colModel,
124
+				loadBeforeSend: function(jqXHR) {
125
+					jqXHR.setRequestHeader('X-AUTH-TOKEN', CONN_KEY);
126
+				},
127
+				postData: JSON.stringify(param),
128
+				url: DOMAIN + AFFL_DETAIL_GRID_LIST,
129
+				pager: OPER03010_GRID_PAGER,
130
+				multiselect: false,
131
+				rownumbers: true,
132
+				onCellSelect: function(rowId, cellIdx, cellValue) {
133
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
134
+					var colNm = cm[cellIdx].name;
135
+					if (colNm == 'corpNm') {
136
+						const cmpyCdVal = $(this).jqGrid('getCell', rowId, 'cmpyCd');
137
+						const key = {cmpyCd: cmpyCdVal, viewCd: 'R'};
138
+						var param = $.param(key);
139
+						_this.itp_fn_OPER03010_view(param);
140
+					}
141
+				},
142
+				loadComplete: function(data) {
143
+					console.log(data);
144
+					itp_fn_grid_load_complete(data, OPER03010_GRID_ID, true, 'number', 'OPER03010', pageObj.itp_OPER03010_search, _this.itp_fn_OPER03010_empty, true, data.gridRecords, true);
145
+					var ids = $(OPER03010_GRID_ID).getDataIDs();
146
+					$.each(ids, function(idx, rowId) {
147
+						$(OPER03010_GRID_ID).jqGrid('setCell', rowId, 'cmpyNm', '', ITP_GRID_COL_STYLE.link);
148
+					});
149
+				},
150
+				loadError: function(jqXHR, textStatus, errorThrown) {
151
+					itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
152
+				},
153
+				onPaging: function(action) {
154
+					itp_fn_grid_paging(OPER03010_GRID_ID, action, param);
155
+				}
156
+			}).navGrid(OPER03010_GRID_PAGER, ITP_GRID_NAV_DEFAULTS.navGrid);
157
+		},
158
+		itp_fn_OPER03010_view: {
159
+			call: function (param) {
160
+				fn_ajax_call(COMPANY_INFO_COMPANY, param, this.callback, 'GET');
161
+			},
162
+			callback:  function(result) {
163
+				// console.log(result);
164
+				itp_fn_OPER03010_switch_screen('VIEW');
165
+				$('#ITP_FORM_OPER03010_VIEW #ITP_FORM_OPER03010_VIEW_CMPY_CD').val(result.cmpyCd);
166
+
167
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyNm').text(result.cmpyNm);
168
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyStatCd').text(result.cmpyStatNm);
169
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyCd').text(result.cmpyCd);
170
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyTypeCd').text(result.cmpyTypeNm);
171
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyRegNum').text(result.cmpyRegNum);
172
+				$('#ITP_FORM_OPER03010_VIEW .fnFrcompAuthCd').text(result.frcompAuthNm);
173
+				$('#ITP_FORM_OPER03010_VIEW .fnCoptNum').text(result.coptNum);
174
+				$('#ITP_FORM_OPER03010_VIEW .fnBizCate').text(result.bizCate);
175
+				$('#ITP_FORM_OPER03010_VIEW .fnBizType').text(result.bizType);
176
+				$('#ITP_FORM_OPER03010_VIEW .fnBossNm').text(result.bossNm);
177
+				$('#ITP_FORM_OPER03010_VIEW .fnMainTel').text(result.mainTel);
178
+				$('#ITP_FORM_OPER03010_VIEW .fnMainFax').text(result.mainFax);
179
+				$('#ITP_FORM_OPER03010_VIEW .fnMainEmail').text(result.mainEmail);
180
+				$('#ITP_FORM_OPER03010_VIEW .fnCmpyAddress').text('('+ result.cmpyZipno + ') ' + result.cmpyAdres + ' ' + result.cmpyAdresDtl);
181
+
182
+				$('#ITP_FORM_OPER03010_VIEW .fnAddDt').text(result.addDt);
183
+				$('#ITP_FORM_OPER03010_VIEW .fnChgDt').text(result.chgDt);
184
+
185
+				itp_fn_OPER03010_view_map(result.cmpyAdres);
186
+
187
+				// 영업담당자정보  리스트 조회
188
+				itp_fn_OPER03010_view_grid.unload();
189
+				itp_fn_OPER03010_view_grid.callBack();
190
+			}
191
+		},
192
+		itp_fn_OPER03010_empty: {
193
+			push: function() {
194
+				let param = $('#ITP_FORM_OPER03010_SEARCH').serializeObject();
195
+				pageObj.itp_OPER03010_param = param;
196
+			},
197
+			back: function() {
198
+				$('#ITP_FORM_OPER03010_DEVI_TP_CD').val(pageObj.itp_OPER03010_param.deviTpCd);
199
+				$('#ITP_FORM_OPER03010_ORDER_YN').val(pageObj.itp_OPER03010_param.orderYn);
200
+				$('#ITP_FORM_OPER03010_ADT_AUTH_CD').val(pageObj.itp_OPER03010_param.adtAuthCd);
201
+				$('#ITP_FORM_OPER03010_EMAIL_RCV_YN').val(pageObj.itp_OPER03010_param.emailRcvYn);
202
+				$('#ITP_FORM_OPER03010_SMS_RCV_YN').val(pageObj.itp_OPER03010_param.smsRcvYn);
203
+				$('#ITP_FORM_OPER03010_MEMB_EXIT_DT').val(pageObj.itp_OPER03010_param.membExitDt);
204
+				$('#ITP_FORM_OPER03010_FROM_DT').val(pageObj.itp_OPER03010_param.fromDt);
205
+				$('#ITP_FORM_OPER03010_TO_DT').val(pageObj.itp_OPER03010_param.toDt);
206
+				$('#ITP_FORM_OPER03010_KEYWORD').val(pageObj.itp_OPER03010_param.keyword);
207
+			}
208
+		},
209
+		reload : function() {
210
+			var _this = this;
211
+			$(OPER03010_GRID_EMPTY).on('click', function() {
212
+				_this.itp_fn_OPER03010_empty.back();
213
+				pageObj.itp_OPER03010_param.gridSize = $.jgrid.defaults.rowNum;
214
+				$(OPER03010_GRID_ID).setGridParam({'postData': JSON.stringify(pageObj.itp_OPER03010_param)}).trigger('reloadGrid');
215
+			});
216
+		},
217
+		clearData : function() {
218
+			$(OPER03010_GRID_ID).jqGrid('clearGridData', true);
219
+			$(OPER03010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
220
+			$(OPER03010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
221
+			$(OPER03010_GRID_EMPTY).show();
222
+		},
223
+		unload : function() {
224
+			$.jgrid.gridUnload(OPER03010_GRID_ID);
225
+		}
226
+	}
227
+};
228
+
229
+var modifyObj = {
230
+
231
+};
232
+
233
+var createObj = {
234
+
235
+};