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

<!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 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="最后更新" 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>
                        </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="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 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>

