123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>应急预案修编明细</title>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
- <!--框架必需start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <!--grid组件start-->
- <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
- <!--grid组件end-->
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
-
-
-
- <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css">
- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
- </head>
-
- <body>
- <div id="i_page_hed" class="c_page_hed">
- </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
- <div id="i_page_grid_content" class="c_page_grid_content">
- <div id="i_page_grid" class="c_page_grid"></div>
- </div>
- <script type="text/javascript">
- var utils=new Util();
- var grid=null;
-
- var params=utils.resolveUrl();
- /**
- 取系统时间
- var time = getNowFormatDate(); YYYY-MM-DD HH:MM:SS
- 下面传入sql中的时间格式不需要时分秒,需要截取一下
- time = time.substring(0,10);
- ***/
-
-
- var time = "2016-03-18";
- var condition1 = (window.location.href).split('?')[1];
- 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 ";
-
-
-
- /**
- 由于传过来的condition1中带有特殊符号的都不认识,下面通过替换方式将特殊
- 符号进行替换成单引号和空格,这样拼接成新的sql语句,进行查询
- **/
- var temp = condition1.replace(/\|/g,"'");
- var temp1 = temp.replace(/\!/g," ");
-
- var condition = nn + temp1;
-
- var loadParams = {
- "listId" : '214',
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
-
- var columns=[
- { display: '预案名称', name: 'PLAN_NAME_214', align: 'center', width: '10%'},
- { display: '所属单位', name: 'UNITS_214_SHOW', align: 'center', width: '15%' },
- { display: '责任部门', name: 'INS_UNITS_214_SHOW', align: 'center', width: '8%'},
- { display: '预案编码', name: 'PLAN_NO_214', align: 'center', width: '10%'},
- { display: '预案类型', name: 'PLAN_TYPE_214_SHOW', align: 'center', width: '10%'},
- { display: '突发事件类型', name: 'BYSUNESS_TYPE_214_SHOW', align: 'center', width: '10%'}
- ];
-
- var options={
- columns:columns,
- url:"/nwyj/ws/crud/CRUDService/queryQui",
-
- params:loadParams,
- pageSize:10,
- usePager:false,
- percentWidthMode:true,
- height:"100%",
- method: "post",
- width:"100%",
- usePager : false,
- isScroll: true,
- percentWidthMode : false,
- alternatingRow: false,
- rowAttrRender: function(rowdata, rowindex, rowid){
- return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
- }
- };
- $(function(){
- close();
- grid=$("#i_page_grid").quiGrid(options);
- setTitle();
- close();
- });
- function setTitle(){
- $("#i_page_hed").text(params.text+params.level+"应急预案详情");
- }
- </script>
- </body>
- </html>
|