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