whakdo963 2 lat temu
rodzic
commit
7fc589e8bb
1 zmienionych plików z 0 dodań i 116 usunięć
  1. 0 116
      src/main/webapp/mobile/app/mpomng/MPOMNG08010.html

+ 0 - 116
src/main/webapp/mobile/app/mpomng/MPOMNG08010.html

@@ -1,119 +1,3 @@
1
-require(['config'], function() {
2
-	require([
3
-		'jquery'
4
-	], function($) {
5
-
6
-	});
7
-});
8
-
9
-let API_POP_GRID_LIST = '/api/whs/mng/pop-whs-search';
10
-
11
-function itp_fn_BIZPOP_WISH_LIST_ITEM(parentPopFn, args, returnType) {
12
-	console.log(args);
13
-	let itp_BIZPOP_WISH_LIST_ITEM_param = {};
14
-	let itp_BIZPOP_WISH_LIST_ITEM_search = false;
15
-
16
-	const THIS_FORM_ID = '#ITP_FORM_BIZPOP_WISH_LIST_ITEM';
17
-	const THIS_GIRD_ID = '#ITP_BIZPOP_WISH_LIST_ITEM_jqGrid';
18
-	const THIS_GIRD_PAGER = '#ITP_BIZPOP_WISH_LIST_ITEM_jqGridPager';
19
-
20
-	$('#ITP_FORM_BIZPOP_WISH_LIST_ITEM_BRAND_ID').val(fn_make_user_info.get('brandId'));
21
-	$('#ITP_FORM_BIZPOP_WISH_LIST_ITEM_STORE_ID').val(fn_make_user_info.get('storeId'));
22
-	$('#ITP_FORM_BIZPOP_WISH_LIST_ITEM_WHS_DVSN').val(args.whsDvsn);
23
-
24
-	
25
-	$('#ITP_BIZPOP_WISH_LIST_ITEM').one('shown.bs.modal', function(e) {
26
-		itp_fn_jqgrid_resize(THIS_GIRD_ID, '#ITP_BIZPOP_WISH_LIST_ITEM_jqGrid_list', '');
27
-		itp_fn_fire_window_resize();
28
-	}).one('hidden.bs.modal', function(e) {
29
-		$('#ITP_BIZPOP_WISH_LIST_ITEM').remove();
30
-	}).modal('show');
31
-
32
-	$('#ITP_BIZPOP_WISH_LIST_ITEM_BTN_SEARCH').on('click', function() {
33
-		itp_BIZPOP_WISH_LIST_ITEM_search = true;
34
-		let param = $(THIS_FORM_ID).serializeObject();
35
-		param.gridSize = 10;
36
-		param.gridPage = $.jgrid.defaults.page;
37
-		$(THIS_GIRD_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
38
-	});
39
-	
40
-	$('#ITP_BIZPOP_WISH_LIST_ITEM_BTN_SELECT').on('click', function() {		
41
-		
42
-		const rowKey = $(THIS_GIRD_ID).getGridParam('selrow');
43
-	    if (!rowKey) {
44
-	    	return;
45
-	    }
46
-	
47
-		const selRow = $(THIS_GIRD_ID).getRowData(rowKey);
48
-		parentPopFn(selRow);
49
-		
50
-	
51
-		$('#ITP_BIZPOP_WISH_LIST_ITEM').modal('hide'); // 팝업닫기
52
-	});
53
-
54
-	$('#ITP_BIZPOP_WISH_LIST_ITEM_jqGridEmpty').on('click', function() {
55
-		itp_fn_BIZPOP_WISH_LIST_ITEM_empty.back();
56
-		itp_BIZPOP_WISH_LIST_ITEM_param.gridSize = 10;
57
-		$(THIS_GIRD_ID).setGridParam({'postData': JSON.stringify(itp_BIZPOP_WISH_LIST_ITEM_param)}).trigger('reloadGrid');
58
-	});
59
-
60
-	var itp_fn_BIZPOP_WISH_LIST_ITEM_empty = {
61
-		push: function() {
62
-			let param = $(THIS_FORM_ID).serializeObject();
63
-			itp_BIZPOP_WISH_LIST_ITEM_param = param;
64
-		},
65
-		back: function() {
66
-			$(THIS_FORM_ID + '_BRAND_ID').val(itp_BIZPOP_WISH_LIST_ITEM_param.sbrandId);
67
-			$(THIS_FORM_ID + '_STROE_ID').val(itp_BIZPOP_WISH_LIST_ITEM_param.sstoreId);
68
-		}
69
-	};
70
-
71
-	itp_fn_BIZPOP_WISH_LIST_ITEM_empty.push();
72
-	let param = $('#ITP_FORM_BIZPOP_WISH_LIST_ITEM').serializeObject();
73
-	param.gridSize = 10;
74
-	console.log(JSON.stringify(param));
75
-
76
-	$(THIS_GIRD_ID).jqGrid({
77
-		colModel: [
78
-			{
79
-				index: 'BRAND_NM', name: 'brandNm',
80
-				label: '위시리스트 코드', //
81
-				width: '14', fixed: false, align: 'left',
82
-				sortable: false, hidden: false, classes: 'ui-ellipsis'
83
-			},
84
-			{
85
-				index: 'WHS_NM', name: 'whsNm',
86
-				label: '위시리스트명', //
87
-				width: '12', fixed: false, align: 'center',
88
-				sortable: false, hidden: false, classes: 'ui-ellipsis'
89
-			},
90
-			{
91
-				index: 'STCK_DVSN_NM', name: 'stckDvsnNm',
92
-				label: '사용여부', //
93
-				width: '4', fixed: false, align: 'center',
94
-				sortable: false, hidden: false
95
-			}
96
-		],
97
-		loadBeforeSend: function(jqXHR) {
98
-		    jqXHR.setRequestHeader('X-AUTH-TOKEN', CONN_KEY);
99
-		},
100
-		postData: JSON.stringify(param),
101
-		url: DOMAIN + API_POP_GRID_LIST,
102
-		pager: THIS_GIRD_PAGER,
103
-		multiselect: false,
104
-		rownumbers: false,
105
-		loadComplete: function(data) {
106
-			console.log(data);
107
-			itp_fn_grid_load_complete(data, THIS_GIRD_ID, true, undefined, 'BIZPOP_WISH_LIST_ITEM', itp_BIZPOP_WISH_LIST_ITEM_search, itp_fn_BIZPOP_WISH_LIST_ITEM_empty, true, data.gridRecords, false);
108
-	    },
109
-	    loadError: function(jqXHR, textStatus, errorThrown) {
110
-	    	itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
111
-	    },
112
-	    onPaging: function(action) {
113
-	    	itp_fn_grid_paging(THIS_GIRD_ID, action, param);
114
-	    }
115
-	}).navGrid(THIS_GIRD_PAGER, ITP_GRID_NAV_DEFAULTS.navGrid);
116
-};
117 1
 <section id="ITP_MOBILE_MPOMNG08010">
118 2
 	<div id="ITP_AJAX_MPOMNG08010_LIST_CONTAINER" >
119 3
 		<form id="ITP_FORM_MPOMNG08010_LIST_SEARCH" class="area_full form-horizontal" onsubmit="return false;">