123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <%@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 language="javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
- <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 initGrid(dutyid){
- g = $("#maingrid").quiGrid({
- columns: [/*
- {name:'fd_objectid',hide:true},
- {name:'duty_id',hide:true},
- { display: '日期', name: 'duty_date', align: 'center', width: "13%",editor: { type: 'date',dateFmt:'yyyy-MM-dd' }},
- */
-
- //{ display: '开始时间', name: 'start_time', align: 'center', width: "10%",editor: { type: 'date',dateFmt:'yyyy-MM-dd HH:mm' }},
- { display: '值班时间', name: 'end_time', align: 'center', width: "18%",editor: { type: 'date',dateFmt:'yyyy-MM-dd HH:mm' }},
- { display: '值班领导', name: 'leader', align: 'center', width: "16%",editor: { type: 'text'}},
- { display: '领导电话', name: 'leader_tel', align: 'center', width: "16%",editor: { type: 'text' }},
- { display: '值班成员', name: 'administration_duty',showTitle:true,align: 'center', width: "16%",editor: { type: 'text' }},
- { display: '成员电话', name: 'administration_duty_tel',showTitle:true,align: 'center', width: "16%",editor: { type: 'text'}},
-
- // { display: '联系电话', name: 'telephone', align: 'center', width: "13%",editor: { type: 'text' }},
- { display: '值班方式', name: 'duty_way', align: 'center', width: "16%",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/duty1/DutyRecordsService1/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 onPrint(){
- $(".print").jqprint();
- };
- $(function(){
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- var bodyheight = $(window.document.body).height();
- $(parent.document.body).find("#frmright").height(bodyheight);
- })
- </script>
- <style type="text/css">
- .title_font{
- font-weight: bold;
- font-size: 24px;
- line-height: 45px;
- color:#3e62a0;
- }
- .back{
- margin:10px 0px 10px 15px;
- }
- .title{
- height: 50px;
- /* background: #F8F8F8; */
- border-style:solid;
- border-width:1px;
- border-right:1px;
- border-left:1px;
- border-top:1px;
- border-color:#cdcaca;
- }
- .legend{
- font-family:宋体;
- font-weight: bold;
- font-size:14px;
- color:#3e62a0;
- }
- </style>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div class="title" align="center">
- <a href="javascript:;">
- <!-- <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';" /> -->
- </a>
- <font class="title_font" >查看日常值班安排表</font>
- </div>
- <br/>
- <!-- 打印按钮 -->
- <div style="float:right"><input type="button" onclick="onPrint()" value="打印"/> </div>
- <form id="RespDutyForm" >
- <br/>
- <div class="print">
- <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" >
- <legend width="960px" class="legend">基本信息:</legend>
- <table width="960px" class="tableStyle" align="center" formMode="view">
- <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="OPER_DEPT_235_SHOW" ></div></td>
- </tr>
- <tr>
- <!-- <td align="right">值班时间区间</td>
- <td><div id="QUJIAN_235_SHOW"></div></td> -->
- <td align="right"> 填报人员:</td>
- <td><div id="OPER_NAME_235" ></div></td>
- <td align="right">填报部门:</td>
- <td><div id="DEPT_NAMES_235_SHOW" ></div></td>
- </tr>
- <tr>
- <td align="right">填报时间:</td>
- <td><div id="OPER_TIME_235" ></div></td>
- <td></td>
- <td></td>
- </tr>
- </table>
- </fieldset>
- <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" >
- <legend width="960px" class="legend">值班信息:</legend>
- <div id="maingrid"></div>
- </div>
- </fieldset>
- </form>
- </div>
- </body>
- </html>
|