123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>日常值班安排表填报</title>
- <!--引入QUI框架js -->
- <%@include file="../../../../include.jsp" %>
- <script>
- var g;
- var dutyid;
- var dutyData={"list":[{"value":"0","key":"在岗值班"},{"value":"1","key":"电话值班"},{"value":"2","key":"应急指挥中心值班"}]};
- function initComplete(){
- if((window.location.href).indexOf('?')>-1){
- dutyid = (window.location.href).split('?')[1];//获取记录id
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '235',
- objectID : dutyid
- };
-
- $.request.query(url,params,function(data){
- for(var i in data){
- $('#'+i).html(data[i]);
-
- }
- });
-
-
- initGrid(dutyid);
- }
-
- }
- function updateAlertReport(){
- var params = {classid : "235"};
- //操作状态为4 代表回退
-
- $("#STATE_235").val("4");
- //$("#IS_RELEASE_321").val("0");
- // var formValue = $('#myFormId').serialize();
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/update/',
- type : 'post',
- timeout : 15000,
- data :{
- FD_OBJECTID235:dutyid,
- classid:235,
- STATE_235:'4'
-
- },
- dataType : 'json',
- success : function(data){
- goBack();
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- }
-
- function initGrid(dutyid){
- g = $("#maingrid").quiGrid({
- columns: [
- {name:'fd_objectid',hide:true},
- {name:'duty_id',hide:true},
- { display: '日期', name: 'duty_date', hide:true, align: 'center', width: "13%",editor: { type: 'date',dateFmt:'yyyy-MM-dd' }},
- { display: '开始时间', name: 'start_time', align: 'center', width: "12%",editor: { type: 'date',dateFmt:'HH:mm:ss' }},
- { display: '结束时间', name: 'end_time', align: 'center', width: "12%",editor: { type: 'date',dateFmt:'HH:mm:ss' }},
- { display: '值班领导', name: 'leader', align: 'center', width: "12%",editor: { type: 'text'}},
- { display: '领导电话', name: 'leader_tel', align: 'center', width: "13%",editor: { type: 'text' }},
- { display: '值班成员', name: 'name', align: 'center', width: "12%",editor: { type: 'text'}},
- { display: '联系电话', name: 'telephone', align: 'center', width: "13%",editor: { type: 'text' }},
- { display: '值班方式', name: 'duty_way', align: 'center', width: "12%",editor: { type: 'select',data:dutyData,selWidth:103 },render:function (item){
- for (var i = 0; i < dutyData["list"].length; i++)
- {
- if (dutyData["list"][i]['value'] == item.duty_way)
- return dutyData["list"][i]['key']
- }
- return item.duty_way;
- }}
- ],
- // $.pathname() + '/ws/duty/DutyRecordsService/delDetailByID',
- url: $.pathname() + '/ws/duty/DutyRecordsService/queryDetailByDutyId',
- params :{"dutyid":dutyid,"is_del":0},
- sortName : 'duty_date', //排序字段
- sortOrder : 'DESC', //排序方式
- rownumbers:true,
- enabledSort:false,
- pageSize:10,
- dataAction:'server',
- usePager: false,
- percentWidthMode : true,
- height: '100%', width:'100%',enabledEdit: false,clickToEdit: false
-
- });
- }
- $(function(){
- var bodyheight = $(window.document.body).height();
- $(parent.document.body).find("#frmright").height(bodyheight);
- })
- </script>
- </head>
- <body style="height: 700px;background-color:white">
- <div style="height: 50px;background: #F8F8F8;" align="center">
- <a href="javascript:;">
- <img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" onclick="javascript:window.location.href='resp_duty_list.jsp';" />
- </a>
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" >查看应急预警值班安排表</font>
- </div>
- <form id="RespDutyForm" >
- <table width="1500" formMode="view">
- <tr>
- <td colspan="4" align="right"><input value="回退" type="button" onclick="updateAlertReport()"/>
- </tr>
- <tr >
- <td width="10%" align="right">名 称:</td><td width="20%"><div id="NAME_235"></div></td>
- <td width="10%" align="right">部 门:</td><td width="20%"><div id="DEPT_NAMES_235_SHOW" ></div></td>
- <td width="10%"></td><td width="20%"></td>
- </tr>
- <tr>
- <td align="right">填报人员:</td>
- <td><div id="OPER_NAME_235" ></div></td>
- <td align="right">填报部门:</td>
- <td><div id="OPER_DEPT_235_SHOW" ></div></td>
- </tr>
- <tr>
- <td align="right">填报时间:</td><td><div id="OPER_TIME_235" ></div></td>
- </tr>
- <tr>
- <td width="20%" align="right">回退说明:</td>
- <td width="80%" colspan="3"><textarea rows="2" name="RETURN_EXPLAIN_235" style="width: 90%"></textarea><span class="star">*</span></td>
- </tr>
- </table>
- </form>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </div>
-
- </body>
- </html>
|