|
@@ -249,79 +249,111 @@ let pageObj = {
|
249
|
249
|
}
|
250
|
250
|
},
|
251
|
251
|
switchScreen: function(mode) {
|
252
|
|
- if(mode == 'LIST') { // 목록
|
253
|
|
- $('#ITP_BTN_OPER01010_MODIFY').hide();
|
254
|
|
- $('#ITP_BTN_OPER01010_CANCELLIST').hide();
|
255
|
|
- $('#ITP_BTN_OPER01010_DELETE').hide();
|
256
|
|
- $('#ITP_BTN_OPER01010_SAVE').hide();
|
257
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_SRH');
|
258
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_NEWREG');
|
259
|
|
-
|
|
252
|
+ $('.itp_det_head').find('button[id^="ITP_BTN_OPER01010_"]').each(function(i) {
|
|
253
|
+ $(this).hide();
|
|
254
|
+ });
|
|
255
|
+ $('div[id$="_CONTAINER"]').each(function(i) {
|
|
256
|
+ if($(this).attr('id').startsWith('ITP_AJAX_OPER01010')) {
|
|
257
|
+ $(this).hide();
|
|
258
|
+ }
|
|
259
|
+ });
|
|
260
|
+ if(mode === 'LIST') { // 목록
|
|
261
|
+ fn_show_btn_auth_array(['#ITP_BTN_OPER01010_SRH', '#ITP_BTN_OPER01010_NEWREG']);
|
260
|
262
|
$('#ITP_AJAX_OPER01010_LIST_CONTAINER').show();
|
261
|
|
- $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').hide();
|
262
|
|
- $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
263
|
263
|
} else if(mode == 'ADD') { // 등록
|
264
|
|
- ITP_FORM_OPER01010_DETAIL_IS_DUPLICATE = true;
|
|
264
|
+ fn_show_btn_auth_array(['#ITP_BTN_OPER01010_CANCELLIST', '#ITP_BTN_OPER01010_SAVE']);
|
|
265
|
+ $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
|
265
|
266
|
|
266
|
|
- $('#ITP_BTN_OPER01010_SRH').hide();
|
267
|
|
- $('#ITP_BTN_OPER01010_MODIFY').hide();
|
268
|
|
- $('#ITP_BTN_OPER01010_NEWREG').hide();
|
269
|
|
- $('#ITP_BTN_OPER01010_DELETE').hide();
|
270
|
|
- $('#ITP_BTN_OPER01010_RESET_PW').hide();
|
271
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
272
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_SAVE');
|
|
267
|
+ $('input[id^="ITP_FORM_OPER01010_DETAIL_"]').each(function(i) {
|
|
268
|
+ ($(this).attr('id') === 'ITP_FORM_OPER01010_DETAIL_VIEW_CD') ? $(this).val('C') : $(this).val('');
|
|
269
|
+ });
|
273
|
270
|
|
274
|
|
- $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
275
|
|
- $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
|
276
|
|
- $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
277
|
271
|
$('#ITP_FORM_OPER01010_DETAIL_USER_ID').removeAttr('readonly');
|
278
|
272
|
$('#ITP_FORM_OPER01010_DETAIL_DUP').removeAttr('disabled');
|
279
|
|
-
|
280
|
|
- $('#ITP_FORM_OPER01010_DETAIL_VIEW_CD').val('C');
|
281
|
|
- $('#ITP_FORM_OPER01010_DETAIL_USER_NM').val('');
|
282
|
|
- $('#ITP_FORM_OPER01010_DETAIL_USER_STAT_CD').val('');
|
283
|
|
- $('#ITP_FORM_OPER01010_DETAIL_USER_ID').val('');
|
284
|
|
- $('#ITP_FORM_OPER01010_DETAIL_USER_PW').val('');
|
285
|
|
- $('#ITP_FORM_OPER01010_DETAIL_TEL_NO').val('');
|
286
|
|
- $('#ITP_FORM_OPER01010_DETAIL_USER_PW_CONFIRM').val('');
|
287
|
|
- $('#ITP_FORM_OPER01010_DETAIL_EMAIL').val('');
|
288
|
|
-
|
289
|
|
- $('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP_ID').val('');
|
290
|
|
- $('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP_NM').val('');
|
291
|
273
|
$('#ITP_FORM_OPER01010_DETAIL_SEARCH_BRAND_ID option').remove();
|
292
|
274
|
$('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP').show();
|
293
|
275
|
$('#ITP_FORM_OPER01010_DETAIL_DELETE_AFFL_SHOP').show();
|
294
|
|
- } else if(mode == 'MODIFY') { // 수정
|
295
|
|
- $('#ITP_BTN_OPER01010_SRH').hide();
|
296
|
|
- $('#ITP_BTN_OPER01010_MODIFY').hide();
|
297
|
|
- $('#ITP_BTN_OPER01010_NEWREG').hide();
|
298
|
|
- $('#ITP_BTN_OPER01010_DELETE').hide();
|
299
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
300
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_SAVE');
|
301
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_RESET_PW');
|
302
|
|
-
|
303
|
|
- $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
|
276
|
+ } else if(mode === 'MODIFY') { // 수정
|
|
277
|
+ fn_show_btn_auth_array(['#ITP_BTN_OPER01010_CANCELLIST', '#ITP_BTN_OPER01010_SAVE', '#ITP_BTN_OPER01010_RESET_PW']);
|
304
|
278
|
$('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
|
305
|
|
- $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
|
279
|
+
|
306
|
280
|
$('#ITP_FORM_OPER01010_DETAIL_USER_ID').attr('readonly', true);
|
307
|
281
|
$('#ITP_FORM_OPER01010_DETAIL_DUP').attr('disabled', true);
|
308
|
282
|
$('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP_NM').attr('readonly', true);
|
309
|
|
-
|
310
|
283
|
$('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP').hide();
|
311
|
284
|
$('#ITP_FORM_OPER01010_DETAIL_DELETE_AFFL_SHOP').hide();
|
312
|
|
- } else if(mode == 'VIEW') { // 보기
|
313
|
|
- $('#ITP_BTN_OPER01010_SRH').hide();
|
314
|
|
- $('#ITP_BTN_OPER01010_NEWREG').hide();
|
315
|
|
- $('#ITP_BTN_OPER01010_DELETE').hide();
|
316
|
|
- $('#ITP_BTN_OPER01010_SAVE').hide();
|
317
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_MODIFY');
|
318
|
|
- fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
319
|
|
-
|
320
|
|
- $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
321
|
|
- $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').hide();
|
|
285
|
+ } else if(mode === 'VIEW') { // 보기
|
|
286
|
+ fn_show_btn_auth_array(['#ITP_BTN_OPER01010_MODIFY', '#ITP_BTN_OPER01010_CANCELLIST']);
|
322
|
287
|
$('#ITP_AJAX_OPER01010_VIEW_CONTAINER').show();
|
323
|
288
|
}
|
324
|
|
- }
|
|
289
|
+ },
|
|
290
|
+ // switchScreen: function(mode) {
|
|
291
|
+ // if(mode == 'LIST') { // 목록
|
|
292
|
+ // $('#ITP_BTN_OPER01010_MODIFY').hide();
|
|
293
|
+ // $('#ITP_BTN_OPER01010_CANCELLIST').hide();
|
|
294
|
+ // $('#ITP_BTN_OPER01010_DELETE').hide();
|
|
295
|
+ // $('#ITP_BTN_OPER01010_SAVE').hide();
|
|
296
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_SRH');
|
|
297
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_NEWREG');
|
|
298
|
+ //
|
|
299
|
+ // $('#ITP_AJAX_OPER01010_LIST_CONTAINER').show();
|
|
300
|
+ // $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').hide();
|
|
301
|
+ // $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
|
302
|
+ // } else if(mode == 'ADD') { // 등록
|
|
303
|
+ // ITP_FORM_OPER01010_DETAIL_IS_DUPLICATE = true;
|
|
304
|
+ //
|
|
305
|
+ // $('#ITP_BTN_OPER01010_SRH').hide();
|
|
306
|
+ // $('#ITP_BTN_OPER01010_MODIFY').hide();
|
|
307
|
+ // $('#ITP_BTN_OPER01010_NEWREG').hide();
|
|
308
|
+ // $('#ITP_BTN_OPER01010_DELETE').hide();
|
|
309
|
+ // $('#ITP_BTN_OPER01010_RESET_PW').hide();
|
|
310
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
|
311
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_SAVE');
|
|
312
|
+ //
|
|
313
|
+ // $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
|
314
|
+ // $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
|
|
315
|
+ // $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
|
316
|
+ // $('#ITP_FORM_OPER01010_DETAIL_USER_ID').removeAttr('readonly');
|
|
317
|
+ // $('#ITP_FORM_OPER01010_DETAIL_DUP').removeAttr('disabled');
|
|
318
|
+ //
|
|
319
|
+ // $('input[id^="ITP_FORM_OPER03010_DETAIL_"]').each(function(i) {
|
|
320
|
+ // ($(this).attr('id') === 'ITP_FORM_OPER01010_DETAIL_VIEW_CD') ? $(this).val('C') : $(this).val('');
|
|
321
|
+ // });
|
|
322
|
+ //
|
|
323
|
+ // $('#ITP_FORM_OPER01010_DETAIL_SEARCH_BRAND_ID option').remove();
|
|
324
|
+ // $('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP').show();
|
|
325
|
+ // $('#ITP_FORM_OPER01010_DETAIL_DELETE_AFFL_SHOP').show();
|
|
326
|
+ // } else if(mode == 'MODIFY') { // 수정
|
|
327
|
+ // $('#ITP_BTN_OPER01010_SRH').hide();
|
|
328
|
+ // $('#ITP_BTN_OPER01010_MODIFY').hide();
|
|
329
|
+ // $('#ITP_BTN_OPER01010_NEWREG').hide();
|
|
330
|
+ // $('#ITP_BTN_OPER01010_DELETE').hide();
|
|
331
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
|
332
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_SAVE');
|
|
333
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_RESET_PW');
|
|
334
|
+ //
|
|
335
|
+ // $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
|
336
|
+ // $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
|
|
337
|
+ // $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').hide();
|
|
338
|
+ // $('#ITP_FORM_OPER01010_DETAIL_USER_ID').attr('readonly', true);
|
|
339
|
+ // $('#ITP_FORM_OPER01010_DETAIL_DUP').attr('disabled', true);
|
|
340
|
+ // $('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP_NM').attr('readonly', true);
|
|
341
|
+ //
|
|
342
|
+ // $('#ITP_FORM_OPER01010_DETAIL_SEARCH_AFFL_SHOP').hide();
|
|
343
|
+ // $('#ITP_FORM_OPER01010_DETAIL_DELETE_AFFL_SHOP').hide();
|
|
344
|
+ // } else if(mode == 'VIEW') { // 보기
|
|
345
|
+ // $('#ITP_BTN_OPER01010_SRH').hide();
|
|
346
|
+ // $('#ITP_BTN_OPER01010_NEWREG').hide();
|
|
347
|
+ // $('#ITP_BTN_OPER01010_DELETE').hide();
|
|
348
|
+ // $('#ITP_BTN_OPER01010_SAVE').hide();
|
|
349
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_MODIFY');
|
|
350
|
+ // fn_show_btn_auth('#ITP_BTN_OPER01010_CANCELLIST');
|
|
351
|
+ //
|
|
352
|
+ // $('#ITP_AJAX_OPER01010_LIST_CONTAINER').hide();
|
|
353
|
+ // $('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').hide();
|
|
354
|
+ // $('#ITP_AJAX_OPER01010_VIEW_CONTAINER').show();
|
|
355
|
+ // }
|
|
356
|
+ // }
|
325
|
357
|
};
|
326
|
358
|
|
327
|
359
|
/*목록화면 Object*/
|
|
@@ -453,7 +485,7 @@ let viewObj = {
|
453
|
485
|
$('#ITP_FORM_OPER01010_VIEW .fnLastLoginDt').text(result.lastLoginDt);
|
454
|
486
|
|
455
|
487
|
// 권한정보 리스트 조회
|
456
|
|
- viewObj.grid.init();
|
|
488
|
+ viewObj.grid.load(result.spplyMgrList);
|
457
|
489
|
},
|
458
|
490
|
grid: {
|
459
|
491
|
init: function() {
|
|
@@ -470,23 +502,9 @@ let viewObj = {
|
470
|
502
|
colModel: gridColModel.detail,
|
471
|
503
|
param: JSON.stringify(param),
|
472
|
504
|
url: DOMAIN + USER_USERAUTH_GRID_LIST,
|
473
|
|
- pager: OPER01010_VIEW_GRID_PAGER,
|
474
|
505
|
loadComplete: function(data) {
|
475
|
506
|
itp_fn_grid_load_complete(data, OPER01010_VIEW_GRID_ID, true, undefined, 'OPER01010_VIEW');
|
476
|
507
|
},
|
477
|
|
- onPaging: function(action) {
|
478
|
|
- var pagingFn = {
|
479
|
|
- callBack: function(args) {
|
480
|
|
- $(args).trigger('reloadGrid');
|
481
|
|
- }
|
482
|
|
- };
|
483
|
|
- if (itp_fn_check_grid_is_writing(OPER01010_VIEW_GRID_ID)) {
|
484
|
|
- itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, OPER01010_VIEW_GRID_ID);
|
485
|
|
- return 'stop';
|
486
|
|
- } else {
|
487
|
|
- itp_fn_grid_paging(OPER01010_VIEW_GRID_ID, action, param);
|
488
|
|
- }
|
489
|
|
- },
|
490
|
508
|
onSortCol: function(index, columnIndex, sortOrder) {
|
491
|
509
|
var sortingFn = {
|
492
|
510
|
callBack: function(args) {
|
|
@@ -501,7 +519,7 @@ let viewObj = {
|
501
|
519
|
}
|
502
|
520
|
}
|
503
|
521
|
};
|
504
|
|
- itp_fn_grid_make_remote(option);
|
|
522
|
+ itp_fn_grid_make_not_paging(option);
|
505
|
523
|
},
|
506
|
524
|
clearData : function() {
|
507
|
525
|
$(OPER01010_VIEW_GRID_ID).jqGrid('clearGridData', true);
|
|
@@ -572,24 +590,10 @@ let modifyObj = {
|
572
|
590
|
colModel: gridColModel.detail,
|
573
|
591
|
param: JSON.stringify(param),
|
574
|
592
|
url: DOMAIN + USER_USERAUTH_GRID_LIST,
|
575
|
|
- pager: OPER01010_DETAIL_GRID_PAGER,
|
576
|
593
|
multiselect: true,
|
577
|
594
|
loadComplete: function(data) {
|
578
|
595
|
itp_fn_grid_load_complete(data, OPER01010_DETAIL_GRID_ID, true, undefined, 'OPER01010_DETAIL');
|
579
|
596
|
},
|
580
|
|
- onPaging: function(action) {
|
581
|
|
- var pagingFn = {
|
582
|
|
- callBack: function(args) {
|
583
|
|
- $(args).trigger('reloadGrid');
|
584
|
|
- }
|
585
|
|
- };
|
586
|
|
- if (itp_fn_check_grid_is_writing(OPER01010_DETAIL_GRID_ID)) {
|
587
|
|
- itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, OPER01010_DETAIL_GRID_ID);
|
588
|
|
- return 'stop';
|
589
|
|
- } else {
|
590
|
|
- itp_fn_grid_paging(OPER01010_DETAIL_GRID_ID, action, param);
|
591
|
|
- }
|
592
|
|
- },
|
593
|
597
|
onSortCol: function(index, columnIndex, sortOrder) {
|
594
|
598
|
var sortingFn = {
|
595
|
599
|
callBack: function(args) {
|
|
@@ -604,7 +608,7 @@ let modifyObj = {
|
604
|
608
|
}
|
605
|
609
|
}
|
606
|
610
|
};
|
607
|
|
- itp_fn_grid_make_remote(option);
|
|
611
|
+ itp_fn_grid_make_not_paging(option);
|
608
|
612
|
},
|
609
|
613
|
clearData : function() {
|
610
|
614
|
$(OPER01010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
|