<%@ 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" />
    <style type="text/css">
        .style1
        {
            height: 22px;
        }
    </style>
</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 class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    设备维修
                      	</td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
             <div style ="text-align :left ">   </div> 
                      <asp:Panel ID="Panelview" runat ="server" >
<!--栏目开始 -->
<div>
          <table  border ="0" cellpadding="1px" cellspacing ="1px"  >
          <tr>


          <td> 部门：<asp:DropDownList ID="ddlDepartment" runat="server">
             </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="rbl1_SelectedIndexChanged">
            <asp:ListItem  >已申请</asp:ListItem>
            <asp:ListItem  Selected="True" >处理中</asp:ListItem>
            </asp:RadioButtonList>
                </td>
              <td style ="padding-left :20px;">
                  <asp:Label ID="lbManagerlist" runat="server" Text="维修人：" ></asp:Label>

                  <asp:DropDownList ID="ddlManagerlist" runat="server"   >
             </asp:DropDownList>
              </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>
     <div class ="lanmubiaoti ">报修申请列表</div>
            
            <!--这里添加内容 -->

            				    <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="报修编号" 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:TemplateField HeaderText="问题" ShowHeader="False">
                   <ItemTemplate>
                       <asp:LinkButton ID="LinkButton_Trouble" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# Bind("trouble") %>'></asp:LinkButton>
                       <asp:Label ID="lb_Trouble" runat="server" Text='<%# Bind("trouble") %>' Visible ="false" ></asp:Label>
                   </ItemTemplate>
                   </asp:TemplateField>
                    <asp:BoundField DataField="repairstate" HeaderText="处理状态" ReadOnly="True" />


                    <asp:BoundField DataField="repairman" HeaderText="维修人" ReadOnly="True" />
     <asp:BoundField DataField="repairmanid" HeaderText="维修人编号" ReadOnly="True" />
                                        <asp:BoundField DataField="最后更新" HeaderText="最后更新" ReadOnly="True" />
                                <asp:TemplateField HeaderText="更新时间">
                                    <EditItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("更新时间") %>'></asp:Label>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lbUpdate" runat="server" Text='<%# Bind("更新时间") %>'></asp:Label>
                                          <asp:Label ID="lbupstaffid" runat="server" Text='<%# Bind("upstaffid") %>'  Visible="False"></asp:Label>
                                           <asp:Label ID="lbNew" runat="server" Text='（新）' Font-Bold="True" ForeColor="Red" Visible="False"></asp:Label>
                                    </ItemTemplate>
                      </asp:TemplateField>

                      <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>
                          </asp:Panel> 

                    <asp:Panel ID ="PanelEdit" runat ="server" Visible ="false" >                          
      <div  class ="gv2row ">报修编号：<asp:Label ID="lbId" runat="server" ></asp:Label> 报修人：   <asp:Label ID="lbStaffname" runat="server"></asp:Label>
          报修提交时间：<asp:Label ID="lbDate" runat="server" ></asp:Label>
          <asp:Label ID="lbState" runat="server" Visible ="false" ></asp:Label>
                     <asp:Label ID="lbStaffid" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lbRepairmanid" runat="server" Visible="false"></asp:Label>
                        </div> 
           <div  class ="gv2row ">报修内容：<asp:Label ID="lbTrouble" runat="server" ></asp:Label> </div>
          <asp:DataList ID="DataList1" runat="server" Width="100%">
                <AlternatingItemStyle CssClass="gv2row_AlternatingItemStyle" />
              <ItemTemplate>
              <div  class ="gv2row ">
                <div><asp:Label ID="lbDate" runat="server" Text='<%# Bind("repairdate") %>'></asp:Label>&nbsp; <asp:Label ID="Label11" runat="server" Text='<%# Bind("staffname") %>'></asp:Label>：<asp:Label ID="Label13" runat="server" Text='<%# Bind("details") %>'></asp:Label></div> 
                </ItemTemplate>
          </asp:DataList>
                        <div>处理状态:     
        <asp:RadioButtonList ID="rbl2" runat="server" 
                    RepeatDirection="Horizontal">

            </asp:RadioButtonList></div>
                        <div>维修时长:      <asp:TextBox ID="tbDuration" runat="server" Width="80px">0</asp:TextBox>
                        分钟
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbDuration" Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="EditJilu" ForeColor="Red"></asp:RegularExpressionValidator></div>
               <asp:TextBox ID="tb_Trouble" runat="server"  Width ="100%" Height="160px" 
                TextMode="MultiLine"></asp:TextBox>
                    <div style =" padding-top :10px; padding-bottom :10px; text-align :center ">
                             <asp:CheckBox ID="cbEmail" Text="邮件通知" runat="server" Visible ="false"  />   &nbsp;
                        <asp:CheckBox ID="cbSMS" Text="短信通知" runat="server"  Visible ="false" />   &nbsp;
                        <asp:CheckBox ID="cbChat" Text="微信通知" runat="server"  Visible ="false" />   &nbsp;
                        <asp:Button ID="btNext" runat="server" Text="回复" 
              onclick="btNext_Click" ValidationGroup="add" />
                     &nbsp;
                     <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" CausesValidation="False" />
                        <asp:Label ID="lbEmail" runat="server"  Visible ="false"></asp:Label>
                        <asp:Label ID="lbSMS" runat="server"  Visible ="false" ></asp:Label>
                        <asp:Label ID="lbChat" runat="server"  Visible ="false"></asp:Label>
                               </div>  
                       
                </asp:Panel>        
<!--栏目结束 -->



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