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

<!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" />
    <script type="text/javascript" src="../../css/popcalendar.js"></script>
</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 ">   </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:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>  
			<asp:GridView ID="GridView2" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onrowcreated="GridView2_RowCreated" 
                onrowdatabound="GridView2_RowDataBound" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                    <asp:BoundField DataField="id" HeaderText="id" 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: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" />
    


                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
</asp:Panel> 
<!--栏目结束 -->
               
<!--栏目开始 -->
                        <!--这里添加内容 -->
                   <div style ="padding-bottom :10px; margin-top :20px ;">     人员编号/姓名/登录名/智能卡：<asp:TextBox ID="tbStaff" runat="server"></asp:TextBox>
                <asp:Button ID="btStaff" runat="server" onclick="btStaff_Click" Text="查询" 
                           ValidationGroup="Cha" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                              ControlToValidate="tbStaff" Display="Dynamic" 
                            ErrorMessage="内容不能为空。" ValidationGroup="Cha" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                </div> 
                <table id="viewrepair" runat="server" border="1" cellpadding="0" 
                    cellspacing="0" class="table " style=" width :600px" visible="false">
                    <tr>
                        <td class="tabletd_right " style="width:90px">
                            报修人</td>
                        <td class="tabletd_left ">
                            <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                        &nbsp;<asp:Label ID="lbZhengjian" runat="server"></asp:Label>
                        &nbsp;<asp:Label ID="lbName" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            问题描述</td>
                        <td class="tabletd_left ">
                         <asp:TextBox ID="TextBox1" runat="server" Width="500px" Rows="5" TextMode="MultiLine"></asp:TextBox><div>
                          <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> 
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            开始处理时间</td>
                        <td class="tabletd_left">
                             <asp:TextBox ID="tbDate1" runat="server" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>&nbsp;<asp:TextBox ID="tbH1" runat="server" 
                               Width="40px"></asp:TextBox>

                             :<asp:TextBox ID="tbM1" runat="server" 
                               Width="40px"></asp:TextBox>

                             （填写格式为：日期/时/分）<div><asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                              ControlToValidate="tbDate1" Display="Dynamic" 
                            ErrorMessage="开始时间不能为空。" ValidationGroup="AddJilu" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                ControlToValidate="tbH1" Display="Dynamic" ErrorMessage="请输入整数。" 
                                ForeColor="Red" ValidationExpression="^\+?[0-9]*$" 
                                 ValidationGroup="AddJilu"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                                ControlToValidate="tbM1" Display="Dynamic" ErrorMessage="请输入整数。" 
                                ForeColor="Red" ValidationExpression="^\+?[0-9]*$" 
                                 ValidationGroup="AddJilu"></asp:RegularExpressionValidator></div> 
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            结束处理时间</td>
                        <td class="tabletd_left">
                            <asp:TextBox ID="tbDate2" runat="server" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>&nbsp;<asp:TextBox 
                                ID="tbH2" runat="server" 
                               Width="40px"></asp:TextBox>

                             :<asp:TextBox ID="tbM2" runat="server" 
                               Width="40px"></asp:TextBox>

                             （填写格式为：日期/时/分）<div><asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                ControlToValidate="tbH2" Display="Dynamic" ErrorMessage="请输入整数。" 
                                ForeColor="Red" ValidationExpression="^\+?[0-9]*$" 
                                ValidationGroup="AddJilu"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                                ControlToValidate="tbM2" Display="Dynamic" ErrorMessage="请输入整数。" 
                                ForeColor="Red" ValidationExpression="^\+?[0-9]*$" 
                                ValidationGroup="AddJilu"></asp:RegularExpressionValidator></div> 
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            处理状态</td>
                        <td class="tabletd_left">
                            <asp:RadioButtonList ID="rbl2" runat="server" RepeatDirection="Horizontal" 
                                ValidationGroup="checked">
                                <asp:ListItem Selected="True">处理中</asp:ListItem>
                                <asp:ListItem>完成</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            维修时长</td>
                        <td class="tabletd_left">
                            <asp:TextBox ID="tbDuration" runat="server" Width="80px"></asp:TextBox>
                            分钟 
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="tbDuration" Display="Dynamic" ErrorMessage="请输入整数。" 
                                ForeColor="Red" ValidationExpression="^\+?[0-9]*$" 
                                ValidationGroup="AddJilu"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                       维修备注
                        </td>
                        <td class="tabletd_left">
                            <asp:TextBox ID="tbRepairnote" runat="server" Rows="5" TextMode="MultiLine" 
                                Width="500px"></asp:TextBox>
                            <div>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                    ControlToValidate="tbRepairnote" Display="Dynamic" ErrorMessage="不能超过100个字" 
                                    ForeColor="Red" ValidationExpression="^[\S\s]{0,100}$" 
                                    ValidationGroup="AddJilu"></asp:RegularExpressionValidator>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletd_right ">
                            <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                        </td>
                        <td class="tabletd_left ">
        <asp:Button ID="btAddGuestbook" runat="server" onclick="btAddGuestbook_Click" Text="提交" 
                ValidationGroup="AddJilu" />
				
                        
                        </td>
                    </tr>
                </table>



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

