username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
zhengcaioa/zhengcaioa/wwwroot/js/plugins/search/search.js
@@ -7,7 +7,8 @@
//参数配置   multiselect 是否出现多选  selectcol 多选获取的值 默认id,
//获取方式:GetGridSelect() 值结果 1,2,3 注意不管是否中文 都无引号 例如 :春,夏,秋,东
var gridConfig = { multiselect: false, selectcol: "id" };
var shrinkToFit = true;
var footerrow = true;
//txt date datetime datearea chechbox ,combox 参考
//searchCol = [
//    { label: '商品编号', name: 'Productcode', labtype: 'txt', ismust: true },
@@ -182,15 +183,15 @@
        datatype: "json",
        colModel: dataCol,
        viewrecords: true, // show the current page, data rang and total records on the toolbar
        width: 780,
        shrinkToFit: shrinkToFit,
        width:1000,
        height: 200,
        loadonce: false,
        pager: "#jqGridPager",
        footerrow: true,
        footerrow: footerrow,
        rownumbers: true,
        rowNum: 30,
        rowList: [30, 50, 100],
        rowList: [30, 50, 100,500],
        cmTemplate: { sortable: false },
        jsonReader: {
            root: "DataList", page: "CurrPage", total: "PageTotal",          //   很重要 定义了 后台分页参数的名字。
@@ -213,6 +214,13 @@
            totalrows: "Records" // 表示需从Server得到总共多少行数据的参数名称,参见jqGrid选项中的rowTotal  
        },
        gridComplete: completeMethod,
        loadComplete: function loadcompleteMethod(xhr) {
            if (typeof (_afterLoadDataload) === "function") {
                _afterLoadDataload(xhr);
            }
        },
        multiselect: gridConfig.multiselect
          , beforeRequest: BeforeRequest
    });
@@ -320,4 +328,7 @@
        _afterLoadData();
    }
}