1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- var utils = new Util();
- var su = new SearchUtil();
- var grid = null;
- var params = utils.resolveUrl();
- var columns=[{ display:"任务名称", name: "PROGRAM_NAME", align: "center", width: "10%"},
- { display:"性质", name: "GPS_TASK_PROPERTY", align: "center", width: "10%"},
- { display:"级别", name: "GPS_LEVEL", align:"center", width: "10%"},
- { display:"类别", name: "GPS_TASK_TYPE",align: "center", width: "10%"},
- { display:"来源", name: "GPS_SIREL",align: "center", width: "10%"},
- { display:"计划性", name: "GPS_TASK_PLAN_TYPE",align: "center", width: "10%"},
- { display:"保供电区域", name: "GPS_AREA_CITY",align: "center", width: "10%"},
- { display:"实施单位", name: "GPS_AREA_NAME",align: "center", width: "10%"},
- { display:"开始时间", name: "START_TIME",align: "center", width: "10%"},
- { display:"结束时间", name: "END_TIME",align: "center", width: "10%"}
- ];
- var deptId=params["dept_id"];
- var level="'500kV','220kV','110kV','35kV','10kV'";
- var options={
- columns:columns,
- url:"/nwyj/ws/cockpitGrid/CockpitGridService/getGPSProgramInfo",
- params: {deptId:deptId,date:su.getNowFormatDate(new Date())},
- pageSize:15,
- // rownumbers:true,
- usePager:false,
- height:"100%",
- method: "post",
- width:"99.8%",
- usePager : true,
- isScroll: true,
- percentWidthMode : true,
- 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(){
- grid=$("#i_page_chart").quiGrid(options);
- setTitle();
- //close();
- //rendGrid();
-
- });
- function setTitle(){
- $("#i_page_head_title").text("保供电任务记录表");
- }
- setInterval(function(){
- grid=$("#i_page_chart").quiGrid(options);
- }, "300000") ;
|