<%@ 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 class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    报修录入
                      	</td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
                                   <div style ="padding-bottom :10px; margin-top :20px ;">     人员编号/姓名/登录名/智能卡：<asp:TextBox ID="tbStaff" runat="server"></asp:TextBox>
                &nbsp;<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> 
<!--栏目开始 -->
<asp:Panel ID="Panel1" runat="server" Visible="False">
          <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" 
                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="问题">
                          <ItemTemplate>
                              <asp:Label ID="Label1" runat="server" Text='<%# Bind("trouble") %>'></asp:Label>
                          </ItemTemplate>
                      </asp:TemplateField>
                    <asp:BoundField DataField="repairstate" HeaderText="处理状态" ReadOnly="True" />
                    <asp:BoundField DataField="repairdateend" HeaderText="更新时间" ReadOnly="True" />
                    <asp:BoundField DataField="managername" HeaderText="受理人" ReadOnly="True" />
                    </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
</asp:Panel> 
<!--栏目结束 -->
               
<!--栏目开始 -->
                        <!--这里添加内容 -->

                <asp:Panel ID="PlEdit" runat ="server"  Visible ="false" >
                <div style ="margin-top :10px; margin-bottom :10px;">
                      报修人: <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>

                </div>
               <div style ="margin-top :10px; margin-bottom :10px;">                     <asp:TextBox ID="TextBox1" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox>
    </div>
    <div style ="margin-top :10px; margin-bottom :10px; text-align :center ">     
     <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="RequiredFieldValidator1" runat="server" 
                              ControlToValidate="TextBox1" Display="Dynamic" 
                            ErrorMessage="内容不能为空。" ValidationGroup="AddJilu" 
                Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                runat="server" ControlToValidate="TextBox1" Display="Dynamic" 
                ErrorMessage="不能超过200个字" Font-Size="Small" 
                ValidationExpression="^[\S\s]{0,200}$" ValidationGroup="AddJilu" 
                    ForeColor="Red"></asp:RegularExpressionValidator></div> 
                    </asp:Panel> 
                



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

