2920ff9c9349cdc126207f9147d555efd6c9cde4.svn-base 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>应急预案修编明细</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  13. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <!--grid组件start-->
  18. <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
  19. <!--grid组件end-->
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  21. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
  22. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  23. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
  24. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  25. </head>
  26. <body>
  27. <div id="i_page_hed" class="c_page_hed">
  28. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  29. <div id="i_page_grid_content" class="c_page_grid_content">
  30. <div id="i_page_grid" class="c_page_grid"></div>
  31. </div>
  32. <script type="text/javascript">
  33. var utils=new Util();
  34. var grid=null;
  35. var params=utils.resolveUrl();
  36. /**
  37. 取系统时间
  38. var time = getNowFormatDate(); YYYY-MM-DD HH:MM:SS
  39. 下面传入sql中的时间格式不需要时分秒,需要截取一下
  40. time = time.substring(0,10);
  41. ***/
  42. var time = "2016-03-18";
  43. var condition1 = (window.location.href).split('?')[1];
  44. var nn = "DATEDIFF(MONTH,take_date , DATE '"+time+"') >35 and IS_DEL='0' and PLAN_STAT='1' and PLAN_STAT1='1' and UNITS='11' and ";
  45. /**
  46. 由于传过来的condition1中带有特殊符号的都不认识,下面通过替换方式将特殊
  47. 符号进行替换成单引号和空格,这样拼接成新的sql语句,进行查询
  48. **/
  49. var temp = condition1.replace(/\|/g,"'");
  50. var temp1 = temp.replace(/\!/g," ");
  51. var condition = nn + temp1;
  52. var loadParams = {
  53. "listId" : '214',
  54. "condition" : condition,
  55. direction:'DESC',
  56. sort: 'UPDATEDATE'
  57. };
  58. var columns=[
  59. { display: '预案名称', name: 'PLAN_NAME_214', align: 'center', width: '10%'},
  60. { display: '所属单位', name: 'UNITS_214_SHOW', align: 'center', width: '15%' },
  61. { display: '责任部门', name: 'INS_UNITS_214_SHOW', align: 'center', width: '8%'},
  62. { display: '预案编码', name: 'PLAN_NO_214', align: 'center', width: '10%'},
  63. { display: '预案类型', name: 'PLAN_TYPE_214_SHOW', align: 'center', width: '10%'},
  64. { display: '突发事件类型', name: 'BYSUNESS_TYPE_214_SHOW', align: 'center', width: '10%'}
  65. ];
  66. var options={
  67. columns:columns,
  68. url:"/nwyj/ws/crud/CRUDService/queryQui",
  69. params:loadParams,
  70. pageSize:10,
  71. usePager:false,
  72. percentWidthMode:true,
  73. height:"100%",
  74. method: "post",
  75. width:"100%",
  76. usePager : false,
  77. isScroll: true,
  78. percentWidthMode : false,
  79. alternatingRow: false,
  80. rowAttrRender: function(rowdata, rowindex, rowid){
  81. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  82. }
  83. };
  84. $(function(){
  85. close();
  86. grid=$("#i_page_grid").quiGrid(options);
  87. setTitle();
  88. close();
  89. });
  90. function setTitle(){
  91. $("#i_page_hed").text(params.text+params.level+"应急预案详情");
  92. }
  93. </script>
  94. </body>
  95. </html>