123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- var czrz = new Object();
- czrz.loadSearchModule = function(p) {
- var $div = $("#" + p.id);
- if ($div.length > 0) {
- $div.load('czrzSearchModule.htm', {
- from : p.from,
- callBackFunName : p.callBackFunName,
- 'czrzSearchGrid' : $("#czrzSearchGrid").val()
- }, function() {
- });
- }
- };
- /**
- * 加载操作日志查询模块
- */
- czrz.loadSearchModule({
- id : 'czrzSearchModule',
- from : 'czrz',
- callBackFunName : 'searchCzrzCallBack'
- });
- /**
- * 搜索条件回调函数
- *
- * @param {搜索条件对象}
- * data
- * @param {分隔符}
- * fgf
- */
- function searchCzrzCallBack(data, fgf) {
- huimv.searchGrid("czrzGrid", {
- url : 'getCzrzList.htm',
- params : [{
- name : 'param',
- value : data
- }, {
- name : 'fgf',
- value : fgf
- }]
- }, '<b>操作日志搜索结果</b>');
- }
- /**
- * 加载操作日志列表数据
- */
- function loadCzrzGrid(czrzSearchGrid) {
- jQuery("#czrzGrid").flexigrid({
- url : 'getCzrzList.htm',
- dataType : 'json',
- method : 'post',
- params : [{
- name : 'czrzSearchGrid',
- value : $('#czrzSearchGrid').val()
- }, {
- name : 'from',
- value : $("#from").val()
- }],
- title : '<b>操作日志浏览</b>',
- usepager : true,
- useRp : true,
- rp : 10,
- singleSelect : true,
- hidehead : false,
- showInputPage : true,
- showSelectRp : false,
- showTableToggleBtn : false,
- width : '790',
- resizable : false,
- height : '335',
- cache : false,// 清除缓存
- colModel : [{
- display : '行号',
- name : 'hh',
- width : 25,
- sortable : false,
- align : 'center',
- process : function(col, record, d) {
- jQuery(col).html(d + 1);
- }
- }, {
- display : '栏期名称',
- name : 'lqmc',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '机器编号',
- name : 'jqid',
- width : 80,
- sortable : true,
- align : 'center'
- }, {
- display : '变更字段',
- name : 'bgzd',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '旧值',
- name : 'oldvalue',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '新值',
- name : 'newvalue',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '字段来源',
- name : 'zdly',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '修改人',
- name : 'xgrxm',
- width : 80,
- sortable : false,
- align : 'center'
- }, {
- display : '修改时间',
- name : 'xgsj',
- width : 120,
- sortable : false,
- align : 'center'
- }, {
- display : '标识',
- name : 'bz',
- width : 80,
- sortable : false,
- align : 'center'
- }]
- });
- }
- loadCzrzGrid($('#czrzSearchGrid'));
|