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

<!DOCTYPE html>

<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:ListItem  >派发中</asp:ListItem>
            <asp:ListItem  >维修中</asp:ListItem>
            <asp:ListItem  >维修完成</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="managerid" HeaderText="办理人编号" ReadOnly="True" />
                      <asp:BoundField DataField="managername" 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>
                      
                          <asp:BoundField DataField="folder" HeaderText="folder" ReadOnly="True" NullDisplayText=" "/>
                          <asp:BoundField DataField="attachment" HeaderText="attachment" ReadOnly="True" NullDisplayText=" "/>

                    
                </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>
                        <asp:Label ID="lbManagerid" runat="server"  Visible="false"></asp:Label>
                        </div> 
           <div  class ="gv2row ">报修内容：<asp:Label ID="lbTrouble" runat="server" ></asp:Label> </div>
                          <div>  <asp:Image ID="Imagetitle" runat="server" /></div>
          <asp:DataList ID="DataList1" runat="server" Width="100%" OnItemDataBound="DataList1_ItemDataBound">
                <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><asp:Label ID="Label2" runat="server" Text='<%# Bind("remarks") %>'>
                </asp:Label><asp:Label ID="folder" Visible ="false"  runat="server" Text='<%# Bind("folder") %>'></asp:Label><asp:Label ID="attachment" runat="server" Visible ="false"  Text='<%# Bind("attachment") %>'></asp:Label></div> 
                <div>
                    <asp:Image ID="Image1" runat="server" />
                </div>
                  </ItemTemplate>
          </asp:DataList>
                        <div>处理状态:     
        <asp:RadioButtonList ID="rbl2" runat="server" 
                    RepeatDirection="Horizontal" OnSelectedIndexChanged="rbl2_SelectedIndexChanged" AutoPostBack="True">
            </asp:RadioButtonList>
                            <asp:Label ID="lbManagerlist_add" runat="server" Text="维修人："  Visible ="false"></asp:Label>
                            <asp:CheckBoxList ID="cblManagerlist_add" runat="server" Visible ="false" >
                            </asp:CheckBoxList>
                            <asp:RadioButtonList ID="rblManagerlist_add" runat="server" Visible ="false" ></asp:RadioButtonList>
                        </div>
                        <asp:Panel ID="plEdit" runat="server"  Visible ="false">
               <asp:TextBox ID="tb_Trouble" runat="server"  Width ="100%" Height="160px" 
                TextMode="MultiLine"></asp:TextBox>
                          <div >
                <asp:FileUpload ID="FileUpload1" runat="server" />
                &nbsp; &nbsp;</div>
</asp:Panel>  

                    <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" />
           
                 
                        <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> 
                       <div style ="text-align :right ;padding-right :20px">    <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" CausesValidation="False" /></div>
                </asp:Panel>        
<!--栏目结束 -->



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