fc5551414d30fe56e77cba64c30a4428bffb23f8.svn-base 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title>日常值班安排表填报</title>
  7. <!--引入QUI框架js -->
  8. <%@include file="../../../../include.jsp" %>
  9. <script>
  10. var g;
  11. var dutyid;
  12. var dutyData={"list":[{"value":"0","key":"在岗值班"},{"value":"1","key":"电话值班"},{"value":"2","key":"应急指挥中心值班"}]};
  13. function initComplete(){
  14. if((window.location.href).indexOf('?')>-1){
  15. dutyid = (window.location.href).split('?')[1];//获取记录id
  16. var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
  17. var params = {
  18. classid : '235',
  19. objectID : dutyid
  20. };
  21. $.request.query(url,params,function(data){
  22. for(var i in data){
  23. $('#'+i).html(data[i]);
  24. }
  25. });
  26. initGrid(dutyid);
  27. }
  28. }
  29. function updateAlertReport(){
  30. var params = {classid : "235"};
  31. //操作状态为4 代表回退
  32. $("#STATE_235").val("4");
  33. //$("#IS_RELEASE_321").val("0");
  34. // var formValue = $('#myFormId').serialize();
  35. $.ajax({
  36. url : $.pathname() + '/ws/crud/CRUDService/update/',
  37. type : 'post',
  38. timeout : 15000,
  39. data :{
  40. FD_OBJECTID235:dutyid,
  41. classid:235,
  42. STATE_235:'4'
  43. },
  44. dataType : 'json',
  45. success : function(data){
  46. goBack();
  47. },
  48. error : function(e){
  49. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  50. }
  51. });
  52. }
  53. function initGrid(dutyid){
  54. g = $("#maingrid").quiGrid({
  55. columns: [
  56. {name:'fd_objectid',hide:true},
  57. {name:'duty_id',hide:true},
  58. { display: '日期', name: 'duty_date', hide:true, align: 'center', width: "13%",editor: { type: 'date',dateFmt:'yyyy-MM-dd' }},
  59. { display: '开始时间', name: 'start_time', align: 'center', width: "12%",editor: { type: 'date',dateFmt:'HH:mm:ss' }},
  60. { display: '结束时间', name: 'end_time', align: 'center', width: "12%",editor: { type: 'date',dateFmt:'HH:mm:ss' }},
  61. { display: '值班领导', name: 'leader', align: 'center', width: "12%",editor: { type: 'text'}},
  62. { display: '领导电话', name: 'leader_tel', align: 'center', width: "13%",editor: { type: 'text' }},
  63. { display: '值班成员', name: 'name', align: 'center', width: "12%",editor: { type: 'text'}},
  64. { display: '联系电话', name: 'telephone', align: 'center', width: "13%",editor: { type: 'text' }},
  65. { display: '值班方式', name: 'duty_way', align: 'center', width: "12%",editor: { type: 'select',data:dutyData,selWidth:103 },render:function (item){
  66. for (var i = 0; i < dutyData["list"].length; i++)
  67. {
  68. if (dutyData["list"][i]['value'] == item.duty_way)
  69. return dutyData["list"][i]['key']
  70. }
  71. return item.duty_way;
  72. }}
  73. ],
  74. // $.pathname() + '/ws/duty/DutyRecordsService/delDetailByID',
  75. url: $.pathname() + '/ws/duty/DutyRecordsService/queryDetailByDutyId',
  76. params :{"dutyid":dutyid,"is_del":0},
  77. sortName : 'duty_date', //排序字段
  78. sortOrder : 'DESC', //排序方式
  79. rownumbers:true,
  80. enabledSort:false,
  81. pageSize:10,
  82. dataAction:'server',
  83. usePager: false,
  84. percentWidthMode : true,
  85. height: '100%', width:'100%',enabledEdit: false,clickToEdit: false
  86. });
  87. }
  88. $(function(){
  89. var bodyheight = $(window.document.body).height();
  90. $(parent.document.body).find("#frmright").height(bodyheight);
  91. })
  92. </script>
  93. </head>
  94. <body style="height: 700px;background-color:white">
  95. <div style="height: 50px;background: #F8F8F8;" align="center">
  96. <a href="javascript:;">
  97. <img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" onclick="javascript:window.location.href='resp_duty_list.jsp';" />
  98. </a>
  99. <font style="font-weight: bold;font-size: 20px;line-height: 45px;" >查看应急预警值班安排表</font>
  100. </div>
  101. <form id="RespDutyForm" >
  102. <table width="1500" formMode="view">
  103. <tr>
  104. <td colspan="4" align="right"><input value="回退" type="button" onclick="updateAlertReport()"/>&nbsp;&nbsp;
  105. </tr>
  106. <tr >
  107. <td width="10%" align="right">名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称:</td><td width="20%"><div id="NAME_235"></div></td>
  108. <td width="10%" align="right">部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门:</td><td width="20%"><div id="DEPT_NAMES_235_SHOW" ></div></td>
  109. <td width="10%"></td><td width="20%"></td>
  110. </tr>
  111. <tr>
  112. <td align="right">填报人员:</td>
  113. <td><div id="OPER_NAME_235" ></div></td>
  114. <td align="right">填报部门:</td>
  115. <td><div id="OPER_DEPT_235_SHOW" ></div></td>
  116. </tr>
  117. <tr>
  118. <td align="right">填报时间:</td><td><div id="OPER_TIME_235" ></div></td>
  119. </tr>
  120. <tr>
  121. <td width="20%" align="right">回退说明:</td>
  122. <td width="80%" colspan="3"><textarea rows="2" name="RETURN_EXPLAIN_235" style="width: 90%"></textarea><span class="star">*</span></td>
  123. </tr>
  124. </table>
  125. </form>
  126. <div class="padding_right5">
  127. <div id="maingrid"></div>
  128. </div>
  129. </div>
  130. </body>
  131. </html>