czrzList.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. var czrz = new Object();
  2. czrz.loadSearchModule = function(p) {
  3. var $div = $("#" + p.id);
  4. if ($div.length > 0) {
  5. $div.load('czrzSearchModule.htm', {
  6. from : p.from,
  7. callBackFunName : p.callBackFunName,
  8. 'czrzSearchGrid' : $("#czrzSearchGrid").val()
  9. }, function() {
  10. });
  11. }
  12. };
  13. /**
  14. * 加载操作日志查询模块
  15. */
  16. czrz.loadSearchModule({
  17. id : 'czrzSearchModule',
  18. from : 'czrz',
  19. callBackFunName : 'searchCzrzCallBack'
  20. });
  21. /**
  22. * 搜索条件回调函数
  23. *
  24. * @param {搜索条件对象}
  25. * data
  26. * @param {分隔符}
  27. * fgf
  28. */
  29. function searchCzrzCallBack(data, fgf) {
  30. huimv.searchGrid("czrzGrid", {
  31. url : 'getCzrzList.htm',
  32. params : [{
  33. name : 'param',
  34. value : data
  35. }, {
  36. name : 'fgf',
  37. value : fgf
  38. }]
  39. }, '<b>操作日志搜索结果</b>');
  40. }
  41. /**
  42. * 加载操作日志列表数据
  43. */
  44. function loadCzrzGrid(czrzSearchGrid) {
  45. jQuery("#czrzGrid").flexigrid({
  46. url : 'getCzrzList.htm',
  47. dataType : 'json',
  48. method : 'post',
  49. params : [{
  50. name : 'czrzSearchGrid',
  51. value : $('#czrzSearchGrid').val()
  52. }, {
  53. name : 'from',
  54. value : $("#from").val()
  55. }],
  56. title : '<b>操作日志浏览</b>',
  57. usepager : true,
  58. useRp : true,
  59. rp : 10,
  60. singleSelect : true,
  61. hidehead : false,
  62. showInputPage : true,
  63. showSelectRp : false,
  64. showTableToggleBtn : false,
  65. width : '790',
  66. resizable : false,
  67. height : '335',
  68. cache : false,// 清除缓存
  69. colModel : [{
  70. display : '行号',
  71. name : 'hh',
  72. width : 25,
  73. sortable : false,
  74. align : 'center',
  75. process : function(col, record, d) {
  76. jQuery(col).html(d + 1);
  77. }
  78. }, {
  79. display : '栏期名称',
  80. name : 'lqmc',
  81. width : 80,
  82. sortable : false,
  83. align : 'center'
  84. }, {
  85. display : '机器编号',
  86. name : 'jqid',
  87. width : 80,
  88. sortable : true,
  89. align : 'center'
  90. }, {
  91. display : '变更字段',
  92. name : 'bgzd',
  93. width : 80,
  94. sortable : false,
  95. align : 'center'
  96. }, {
  97. display : '旧值',
  98. name : 'oldvalue',
  99. width : 80,
  100. sortable : false,
  101. align : 'center'
  102. }, {
  103. display : '新值',
  104. name : 'newvalue',
  105. width : 80,
  106. sortable : false,
  107. align : 'center'
  108. }, {
  109. display : '字段来源',
  110. name : 'zdly',
  111. width : 80,
  112. sortable : false,
  113. align : 'center'
  114. }, {
  115. display : '修改人',
  116. name : 'xgrxm',
  117. width : 80,
  118. sortable : false,
  119. align : 'center'
  120. }, {
  121. display : '修改时间',
  122. name : 'xgsj',
  123. width : 120,
  124. sortable : false,
  125. align : 'center'
  126. }, {
  127. display : '标识',
  128. name : 'bz',
  129. width : 80,
  130. sortable : false,
  131. align : 'center'
  132. }]
  133. });
  134. }
  135. loadCzrzGrid($('#czrzSearchGrid'));