|
@@ -47,6 +47,44 @@ let API_CHECK_DUPLICATE = '/api/user/check-duplicate';
|
47
|
47
|
let API_INTI_USERPW = '/api/user/inti-userpw';
|
48
|
48
|
let API_POP_GRID_LIST = '/api/brand/pop-grid-list';
|
49
|
49
|
|
|
50
|
+let gridParams=null;
|
|
51
|
+function itp_fn_grid_make_remote(option) {
|
|
52
|
+ var options = $.extend({
|
|
53
|
+ mtype: 'POST',
|
|
54
|
+ multiselect: false,
|
|
55
|
+ rownumbers: true,
|
|
56
|
+
|
|
57
|
+ ondblClickRow: null,
|
|
58
|
+ loadBeforeSend: function(jqXHR) {
|
|
59
|
+ jqXHR.setRequestHeader('X-AUTH-TOKEN', CONN_KEY);
|
|
60
|
+ },
|
|
61
|
+ onPaging: function(action) {
|
|
62
|
+ console.log("xxxxxx onPaging xxxxxxxx", option.param, gridParams );
|
|
63
|
+ itp_fn_grid_paging(option.gridId, action, gridParams);
|
|
64
|
+ },
|
|
65
|
+ loadError: function(jqXHR, textStatus, errorThrown) {
|
|
66
|
+ itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
|
|
67
|
+ }
|
|
68
|
+ }, option);
|
|
69
|
+
|
|
70
|
+ $(options.gridId).jqGrid({
|
|
71
|
+ colModel: options.colModel,
|
|
72
|
+ postData: JSON.stringify(options.param),
|
|
73
|
+ mtype: options.mtype,
|
|
74
|
+ url: options.url,
|
|
75
|
+ pager: options.pager,
|
|
76
|
+ multiselect: options.multiselect,
|
|
77
|
+ rownumbers: options.rownumbers,
|
|
78
|
+ loadBeforeSend: options.loadBeforeSend,
|
|
79
|
+ onCellSelect: options.onCellSelect,
|
|
80
|
+ ondblClickRow: options.ondblClickRow,
|
|
81
|
+ loadComplete: options.loadComplete,
|
|
82
|
+ loadError: options.loadError,
|
|
83
|
+ onPaging: options.onPaging
|
|
84
|
+ }).navGrid(options.pager, ITP_GRID_NAV_DEFAULTS.navGrid);
|
|
85
|
+ console.log("xxxxxx itp_fn_grid_make_remote xxxxxxxx", options );
|
|
86
|
+}
|
|
87
|
+
|
50
|
88
|
/*화면 Grid ColModel*/
|
51
|
89
|
const gridColModel = {
|
52
|
90
|
list: [
|
|
@@ -199,6 +237,7 @@ const gridColModel = {
|
199
|
237
|
/*화면공통 Object*/
|
200
|
238
|
let pageObj = {
|
201
|
239
|
init: function () {
|
|
240
|
+ itp_fn_jqgrid_resize(OPER01010_GRID_ID, OPER01010_GRID_LIST, 'lg');
|
202
|
241
|
this.ui.init();
|
203
|
242
|
this.event.init();
|
204
|
243
|
afflShopObj.init();
|
|
@@ -384,6 +423,7 @@ let listObj = {
|
384
|
423
|
let param = $('#ITP_FORM_OPER01010_SEARCH').serializeObject();
|
385
|
424
|
param.gridSize = $.jgrid.defaults.rowNum;
|
386
|
425
|
param.gridPage = $.jgrid.defaults.page;
|
|
426
|
+ gridParams=param;
|
387
|
427
|
$(OPER01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
388
|
428
|
},
|
389
|
429
|
create: function () {
|