|
@@ -92,7 +92,8 @@ require([
|
92
|
92
|
'jquery.bootstrap',
|
93
|
93
|
'jquery.bootstrap.datepicker.locale',
|
94
|
94
|
'jquery.jqGrid.locale',
|
95
|
|
- 'message.locale'
|
|
95
|
+ 'message.locale',
|
|
96
|
+ 'xlsx'
|
96
|
97
|
], function($) {
|
97
|
98
|
$.jgrid.styleUI.Bootstrap.base.rowTable = 'table table-bordered table-striped';
|
98
|
99
|
$.jgrid.defaults.styleUI = 'Bootstrap';
|
|
@@ -3013,11 +3014,11 @@ var itp_fn_export_excel = function(excelData, fileName, sheetName) {
|
3013
|
3014
|
}
|
3014
|
3015
|
|
3015
|
3016
|
var itp_fn_remote_to_excel = function(param) {
|
3016
|
|
- param['pagingYn'] = false;
|
|
3017
|
+ param.param['pagingYn'] = false;
|
3017
|
3018
|
var options = {
|
3018
|
|
- url: url,
|
3019
|
|
- param: param,
|
3020
|
|
- fileName: 'data1',
|
|
3019
|
+ url: param.url,
|
|
3020
|
+ param: param.param,
|
|
3021
|
+ fileName: 'data1.xlsx',
|
3021
|
3022
|
sheetName: 'sheet1'
|
3022
|
3023
|
};
|
3023
|
3024
|
$.extend(options, param);
|
|
@@ -3025,7 +3026,7 @@ var itp_fn_remote_to_excel = function(param) {
|
3025
|
3026
|
console.log(result);
|
3026
|
3027
|
itp_fn_export_excel(result.gridRows, options.fileName, options.sheetName);
|
3027
|
3028
|
};
|
3028
|
|
- fn_ajax_call(API_MOBILE_INIT_INFO, $.param(options.param), callbackFn, 'POST');
|
|
3029
|
+ fn_ajax_call(options.url, JSON.stringify(options.param), callbackFn, 'POST');
|
3029
|
3030
|
};
|
3030
|
3031
|
|
3031
|
3032
|
var itp_fn_jqgrid_to_excel = function(gridId, fileName, sheetName){
|