03ac35b3c42862a847d3fc0a70150d11a3c3e02e.svn-base 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 language="javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
  10. <script>
  11. var g;
  12. var dutyid;
  13. var dutyData={"list":[{"value":"0","key":"在岗值班"},{"value":"1","key":"电话值班"},{"value":"2","key":"应急指挥中心值班"}]};
  14. function initComplete(){
  15. if((window.location.href).indexOf('?')>-1){
  16. dutyid = (window.location.href).split('?')[1];//获取记录id
  17. var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
  18. var params = {
  19. classid : '235',
  20. objectID : dutyid
  21. };
  22. $.request.query(url,params,function(data){
  23. for(var i in data){
  24. $('#'+i).html(data[i]);
  25. }
  26. });
  27. initGrid(dutyid);
  28. }
  29. }
  30. function initGrid(dutyid){
  31. g = $("#maingrid").quiGrid({
  32. columns: [/*
  33. {name:'fd_objectid',hide:true},
  34. {name:'duty_id',hide:true},
  35. { display: '日期', name: 'duty_date', align: 'center', width: "13%",editor: { type: 'date',dateFmt:'yyyy-MM-dd' }},
  36. */
  37. //{ display: '开始时间', name: 'start_time', align: 'center', width: "10%",editor: { type: 'date',dateFmt:'yyyy-MM-dd HH:mm' }},
  38. { display: '值班时间', name: 'end_time', align: 'center', width: "18%",editor: { type: 'date',dateFmt:'yyyy-MM-dd HH:mm' }},
  39. { display: '值班领导', name: 'leader', align: 'center', width: "16%",editor: { type: 'text'}},
  40. { display: '领导电话', name: 'leader_tel', align: 'center', width: "16%",editor: { type: 'text' }},
  41. { display: '值班成员', name: 'administration_duty',showTitle:true,align: 'center', width: "16%",editor: { type: 'text' }},
  42. { display: '成员电话', name: 'administration_duty_tel',showTitle:true,align: 'center', width: "16%",editor: { type: 'text'}},
  43. // { display: '联系电话', name: 'telephone', align: 'center', width: "13%",editor: { type: 'text' }},
  44. { display: '值班方式', name: 'duty_way', align: 'center', width: "16%",editor: { type: 'select',data:dutyData,selWidth:103 },render:function (item){
  45. for (var i = 0; i < dutyData["list"].length; i++)
  46. {
  47. if (dutyData["list"][i]['value'] == item.duty_way)
  48. return dutyData["list"][i]['key']
  49. }
  50. return item.duty_way;
  51. }}
  52. ],
  53. // $.pathname() + '/ws/duty/DutyRecordsService/delDetailByID',
  54. url: $.pathname() + '/ws/duty1/DutyRecordsService1/queryDetailByDutyId',
  55. params :{"dutyid":dutyid,"is_del":0},
  56. sortName : 'duty_date', //排序字段
  57. sortOrder : 'DESC', //排序方式
  58. rownumbers:true,
  59. enabledSort:false,
  60. pageSize:10,
  61. dataAction:'server',
  62. usePager: false,
  63. percentWidthMode : true,
  64. height: '100%',
  65. width:'100%',
  66. enabledEdit: false,
  67. clickToEdit: false
  68. });
  69. }
  70. function onPrint(){
  71. $(".print").jqprint();
  72. };
  73. $(function(){
  74. $("#back").hover(function(){
  75. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  76. },function(){
  77. $(this).attr("src","/nwyj/images/temp/back.png");
  78. });
  79. var bodyheight = $(window.document.body).height();
  80. $(parent.document.body).find("#frmright").height(bodyheight);
  81. })
  82. </script>
  83. <style type="text/css">
  84. .title_font{
  85. font-weight: bold;
  86. font-size: 24px;
  87. line-height: 45px;
  88. color:#3e62a0;
  89. }
  90. .back{
  91. margin:10px 0px 10px 15px;
  92. }
  93. .title{
  94. height: 50px;
  95. /* background: #F8F8F8; */
  96. border-style:solid;
  97. border-width:1px;
  98. border-right:1px;
  99. border-left:1px;
  100. border-top:1px;
  101. border-color:#cdcaca;
  102. }
  103. .legend{
  104. font-family:宋体;
  105. font-weight: bold;
  106. font-size:14px;
  107. color:#3e62a0;
  108. }
  109. </style>
  110. </head>
  111. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  112. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  113. <div class="title" align="center">
  114. <a href="javascript:;">
  115. <!-- <img id="back" class="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="javascript:window.location.href='/nwyj/page/business/am/duty/duty.jsp';" /> -->
  116. </a>
  117. <font class="title_font" >查看日常值班安排表</font>
  118. </div>
  119. <br/>
  120. <!-- 打印按钮 -->
  121. <div style="float:right"><input type="button" onclick="onPrint()" value="打印"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  122. <form id="RespDutyForm" >
  123. <br/>
  124. <div class="print">
  125. <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px " align="center" >
  126. <legend width="960px" class="legend">基本信息:</legend>
  127. <table width="960px" class="tableStyle" align="center" formMode="view">
  128. <tr >
  129. <td width="10%" align="right">名称:</td>
  130. <td width="20%"><div id="NAME_235"></div></td>
  131. <td width="10%" align="right">单位:</td><td width="20%">
  132. <div id="OPER_DEPT_235_SHOW" ></div></td>
  133. </tr>
  134. <tr>
  135. <!-- <td align="right">值班时间区间</td>
  136. <td><div id="QUJIAN_235_SHOW"></div></td> -->
  137. <td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;填报人员:</td>
  138. <td><div id="OPER_NAME_235" ></div></td>
  139. <td align="right">填报部门:</td>
  140. <td><div id="DEPT_NAMES_235_SHOW" ></div></td>
  141. </tr>
  142. <tr>
  143. <td align="right">填报时间:</td>
  144. <td><div id="OPER_TIME_235" ></div></td>
  145. <td></td>
  146. <td></td>
  147. </tr>
  148. </table>
  149. </fieldset>
  150. <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px " align="center" >
  151. <legend width="960px" class="legend">值班信息:</legend>
  152. <div id="maingrid"></div>
  153. </div>
  154. </fieldset>
  155. </form>
  156. </div>
  157. </body>
  158. </html>