|
@@ -3012,6 +3012,22 @@ var itp_fn_export_excel = function(excelData, fileName, sheetName) {
|
3012
|
3012
|
saveAs(new Blob([itp_fn_s2ab(wbout)],{type:"application/octet-stream"}), fileName);
|
3013
|
3013
|
}
|
3014
|
3014
|
|
|
3015
|
+var itp_fn_remote_to_excel = function(param) {
|
|
3016
|
+ param['pagingYn'] = false;
|
|
3017
|
+ var options = {
|
|
3018
|
+ url: url,
|
|
3019
|
+ param: param,
|
|
3020
|
+ fileName: 'data1',
|
|
3021
|
+ sheetName: 'sheet1'
|
|
3022
|
+ };
|
|
3023
|
+ $.extend(options, param);
|
|
3024
|
+ var callbackFn = function(result) {
|
|
3025
|
+ console.log(result);
|
|
3026
|
+ itp_fn_export_excel(result.gridRows, options.fileName, options.sheetName);
|
|
3027
|
+ };
|
|
3028
|
+ fn_ajax_call(API_MOBILE_INIT_INFO, $.param(options.param), callbackFn, 'POST');
|
|
3029
|
+};
|
|
3030
|
+
|
3015
|
3031
|
var itp_fn_jqgrid_to_excel = function(gridId, fileName, sheetName){
|
3016
|
3032
|
|
3017
|
3033
|
var colModel = $(gridId).jqGrid('getGridParam', 'colModel');
|