<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="repair.aspx.cs" Inherits="Web.wx.show.repair" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                    <td style ="width :720px; height :34px;  background-image: url('../../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    设备维修
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
             <div style ="text-align :left ">   </div> 
<!--栏目开始 -->
<div>
          <table  border ="0" cellpadding="1px" cellspacing ="1px"  >
          <tr>


          <td> 部门：<asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" 
                  onselectedindexchanged="btnQuery2_Click">
             </asp:DropDownList></td>
          <td>&nbsp; 职工号、身份证号或姓名：<asp:TextBox ID="tbStaff" runat="server" ValidationGroup="checked"></asp:TextBox></td>
          <td>
  
        
        <asp:RadioButtonList ID="rbl1" runat="server" 
                    RepeatDirection="Horizontal" ValidationGroup="checked" 
                  AutoPostBack="True" onselectedindexchanged="btnQuery2_Click">
            <asp:ListItem  >已申请</asp:ListItem>
            <asp:ListItem  Selected="True" >处理中</asp:ListItem>
            </asp:RadioButtonList>
                </td>
          <td>&nbsp;&nbsp; 
              <asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="num2" />
          
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ControlToValidate="tbStaff" Display="Dynamic" ErrorMessage="输入的人员编号或姓名不对！" 
            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,25}$" 
                 ValidationGroup="num2" ForeColor="Red"></asp:RegularExpressionValidator></td>
          </tr>
         </table> 
                 </div>
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                        报修申请列表
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;">
              
                    
                    </td>
                </tr>
            </table>
            <!--这里添加内容 -->

            				    <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>  
			<asp:GridView ID="GridView2" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onselectedindexchanging="GridView2_SelectedIndexChanging" 
                onrowcreated="GridView2_RowCreated" onrowdatabound="GridView2_RowDataBound" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                    <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                    <asp:BoundField DataField="staffid" HeaderText="申报人编号" ReadOnly="True" />
                    <asp:BoundField DataField="staff" HeaderText="姓名" ReadOnly="True" />
                    <asp:BoundField DataField="department" HeaderText="部门" ReadOnly="True" />
                    <asp:BoundField DataField="reportdate" HeaderText="提交时间" ReadOnly="True" />
                    <asp:BoundField DataField="trouble" HeaderText="问题描述" ReadOnly="True" />
                    <asp:BoundField DataField="repairstate" HeaderText="处理状态" ReadOnly="True" />

                        <asp:TemplateField HeaderText="开始处理时间">
                        <EditItemTemplate>
                        <asp:Label ID="lbrepairdatestar_e" runat="server" Text='<%# Bind("repairdatestar") %>' ></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbrepairdatestar_v" runat="server"></asp:Label>
                            <asp:Label ID="lbrepairdatestar_notv" runat="server" Text='<%# Bind("repairdatestar") %>'  Visible ="false" ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                        <asp:TemplateField HeaderText="结束处理时间">
                        <EditItemTemplate>
                        <asp:Label ID="lbrepairdateend_e" runat="server" Text='<%# Bind("repairdateend") %>' ></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbrepairdateend_v" runat="server"></asp:Label>
                            <asp:Label ID="lbrepairdateend_notv" runat="server" Text='<%# Bind("repairdateend") %>'  Visible ="false" ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:BoundField DataField="duration" HeaderText="维修时长（分钟）" ReadOnly="True" />
                    <asp:BoundField DataField="repairnote" HeaderText="维修备注" ReadOnly="True" />
                    <asp:BoundField DataField="repairman" HeaderText="维修人" ReadOnly="True" />
    

                      <asp:TemplateField HeaderText="操作" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                  CommandName="Select" Text="处理"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                      


                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>

                       <table  style =" width :600px" border = "1" class ="table " cellpadding ="0" cellspacing ="0" runat ="server" id ="viewrepair" visible ="false" >
                <tr>
                    <td style ="width:60px"  class ="tabletd_right ">
                        报修人</td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                                                    &nbsp;<asp:Label ID="lbZhengjian" runat="server"></asp:Label>
                                                    &nbsp;<asp:Label ID="lbName" runat="server"></asp:Label>
                                                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right">
                        提交时间</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbReportdate" runat="server"></asp:Label>
                                                    </td>
                    <td    class ="tabletd_right" style ="width:80px">
                        开始处理时间</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbReapairdatestar" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        问题描述</td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:Label ID="lbTrouble" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        处理状态</td>
                    <td class ="tabletd_left">
  
        
        <asp:RadioButtonList ID="rbl2" runat="server" 
                    RepeatDirection="Horizontal">

            </asp:RadioButtonList>
                                </td>
                    <td class ="tabletd_right">
                        结束处理时间</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbRepairdateend" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        维修时长</td>
                    <td class ="tabletd_left" colspan="3">
                        <asp:TextBox ID="tbDuration" runat="server" Width="80px"></asp:TextBox>
                        分钟
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbDuration" Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="EditJilu" ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
        维修备注
                    </td>
                    <td class ="tabletd_left" colspan="3">
        <asp:TextBox ID="tbRepairnote" runat="server" Width="500px" Rows="5" TextMode="MultiLine"></asp:TextBox>
                          <div>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="tbRepairnote" Display="Dynamic" ErrorMessage="不能超过100个字" 
                            ValidationExpression="^[\S\s]{0,100}$" ValidationGroup="EditJilu" 
                                  ForeColor="Red"></asp:RegularExpressionValidator></div> 
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        共同完成人<br />
                        <asp:CheckBox ID="cbChoose_OtherReapairman" runat="server" AutoPostBack="True" 
                            oncheckedchanged="cbChoose_OtherReapairman_CheckedChanged" Text="全选" />
                    </td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:CheckBoxList ID="cblOtherReapairman" runat="server" RepeatColumns="6" 
                            RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                        <asp:Label ID="lbParticipant" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td class ="tabletd_left " colspan="2">
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="提交" 
                            ValidationGroup="EditJilu" />
                    </td>
                    <td class ="tabletd_right ">
                        <asp:Button ID="btDel" runat="server" Text="删除" onclick="btDel_Click" />
                    </td>
                </tr>
            </table>
                        
<!--栏目结束 -->



                </div>
            </div>
        </form>
    </body>
</html>
