<%@ 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>无标题页</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 "> 
                 <asp:Label ID="lbInfo" runat="server" ForeColor="Red"></asp:Label>  </div> 
<!--栏目开始 -->
<asp:Panel ID="Panel1" runat="server" Visible="False">
            <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: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="id" 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="Delete" Text="删除"></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="500px" Rows="5" TextMode="MultiLine"></asp:TextBox>
        &nbsp;
        <asp:Button ID="btAddGuestbook" runat="server" onclick="btAddGuestbook_Click" Text="提交报修" 
                ValidationGroup="AddJilu" />
                          <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>
				<br />请详细描述设备故障及维修地点。
                </div> 
<!--栏目结束 -->



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