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

<!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 class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    网上报修
                     </td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
             <div style ="text-align :left "> 
                 <asp:Label ID="lbInfo" runat="server" ForeColor="Red"></asp:Label>  </div> 

                <asp:Panel ID="Panelview" runat ="server" >
<!--栏目开始 -->
<asp:Panel ID="Panel1" runat="server" Visible="False">
         <div class ="lanmubiaoti ">报修申请列表（点击问题查看详情或继续提问）</div>
            
            <!--这里添加内容 -->
			<asp:GridView ID="GridView2" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onrowdeleting="GridView2_RowDeleting" 
                onselectedindexchanging="GridView2_SelectedIndexChanging" 
                onrowcreated="GridView2_RowCreated" OnRowDataBound="GridView2_RowDataBound" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                   <asp:BoundField DataField="id" 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="reportdate" HeaderText="提交时间" ReadOnly="True" />
                    <asp:BoundField DataField="repairstate" 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="lkbDel" runat="server" CausesValidation="False" 
                                  CommandName="Delete" Text="删除"
                    OnClientClick="if(confirm('你确定要删除此记录吗?')){return true;}else{return false;}"
                                  ></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
</asp:Panel> 
<!--栏目结束 -->
               
<!--栏目开始 -->
                        <!--这里添加内容 -->
                        <div style =" margin-top :20px;">
                         <asp:TextBox ID="TextBox1" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox>
    <div style ="padding-bottom :5px; padding-top :5px;">
        <asp:Label ID="lbNote" runat="server" Text=""></asp:Label></div>
                                <div style ="text-align :center ; padding-bottom :10px; padding-top :10px;">
  <asp:Button ID="btAddGuestbook" runat="server" onclick="btAddGuestbook_Click" Text="提交报修" 
                ValidationGroup="AddJilu" /></div> 
                             <div style ="text-align :center ; padding-bottom :5px; padding-top :5px;">
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                              ControlToValidate="TextBox1" Display="Dynamic" 
                            ErrorMessage="内容不能为空。" ValidationGroup="AddJilu" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" 
                runat="server" ControlToValidate="TextBox1" Display="Dynamic" 
                ErrorMessage="不能超过200个字" Font-Size="Small" 
                ValidationExpression="^[\S\s]{0,200}$" ValidationGroup="AddJilu" 
                    ForeColor="Red"></asp:RegularExpressionValidator></div> 
                </div> 
<!--栏目结束 -->

</asp:Panel>
                <asp:Panel ID ="PanelEdit" runat ="server" Visible ="false" >
      <div  class ="gv2row ">报修编号：<asp:Label ID="lbId" runat="server" ></asp:Label> 报修提交时间：<asp:Label ID="lbDate" runat="server" ></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>
            <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:Button ID="btNext" runat="server" Text="继续提问" 
              onclick="btNext_Click" ValidationGroup="add" />
                     &nbsp;&nbsp;
                     <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" CausesValidation="False" />
                   <div style =" padding-top :5px; padding-bottom :5px; text-align :center "><asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                        ControlToValidate="tb_Trouble" Display="Dynamic" ErrorMessage="请填入内容。" 
                        ForeColor="Red" ValidationGroup="add"></asp:RequiredFieldValidator></div> 
            </div>

                </asp:Panel>

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