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

<!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/admincss/skin.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript" src="/css/popcalendar.js"></script>
</head>
<body>
    <form id="form1" runat="server" defaultfocus ="tbStaff">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31px"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">
维修查询
           </div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle" >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
 
<!--  一组内容模块开始   -->     <asp:Panel ID="plzong" runat="server"  >
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">报修明细查询</div>
         
                                        </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <div>        <asp:RadioButtonList ID="rbl1" runat="server" 
                    RepeatDirection="Horizontal" ValidationGroup="checked" 
                  AutoPostBack="True" onselectedindexchanged="btnQuery_Click">
             <asp:ListItem  >已申请</asp:ListItem>
            <asp:ListItem  Selected="True" >处理中</asp:ListItem>
            <asp:ListItem  >派发中</asp:ListItem>
            <asp:ListItem  >维修中</asp:ListItem>
            <asp:ListItem  >维修完成</asp:ListItem>
              <asp:ListItem  >完成</asp:ListItem>
            </asp:RadioButtonList></div>
                  <div> 维修人员：<asp:DropDownList ID="ddlRepairman" runat="server" AutoPostBack="True" 
                          onselectedindexchanged="btnQuery_Click">
                      </asp:DropDownList></div>
            <div>
部门：<asp:DropDownList ID="ddlDepartment" runat="server" 
                 AutoPostBack="True" onselectedindexchanged="btnQuery_Click">
             </asp:DropDownList>
             &nbsp;人员编号/姓名：<asp:TextBox ID="tbStaff" runat="server"></asp:TextBox>
             &nbsp;日期：<asp:textbox id="date1" runat="server" Width="65px"  onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
        &nbsp;至 <asp:textbox id="date2" runat="server" Width="65px"   onclick="popUpCalendar(this,this,'yyyy-mm-dd')"> </asp:textbox>
       &nbsp;<asp:Button ID="btQuery1" runat="server" onclick="btnQuery_Click" Text="查询" ValidationGroup="Inquires" />
             &nbsp;&nbsp;
            <asp:Label ID="lbRowscountview" runat="server" ForeColor="Red"></asp:Label>
               <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
            ControlToValidate="tbStaff" Display="Dynamic" ErrorMessage="输入的人员编号或姓名不正确！" 
            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,25}$" 
                 ValidationGroup="Inquires" ForeColor="Red"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                 ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="Inquires" 
                 ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="Inquires" 
                 ForeColor="Red"></asp:RegularExpressionValidator>
        <div style ="margin-bottom :6px; margin-top :6px">
        <asp:GridView ID="GridView1" runat="server" BorderWidth="1px" 
                onrowdatabound="GridView1_RowDataBound" Width="100%" CssClass="gv" 
                cellspacing="1" 
                AutoGenerateColumns="False" OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" BorderWidth="1px" 
                CssClass="gvrow" />
                            <Columns>
                             <asp:TemplateField> 
               <HeaderTemplate>  <asp:CheckBox ID="CheckBox2" Text ="全选" runat="server" AutoPostBack="True" 
                OnCheckedChanged="CheckBox2_CheckedChanged"  />    </HeaderTemplate>        
               <ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" />&nbsp;</ItemTemplate>               
               </asp:TemplateField>
                    <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="managername" HeaderText="办理人" ReadOnly="True" />
                 <asp:BoundField DataField="repairmanid" HeaderText="维修人编号" ReadOnly="True" />
                    <asp:BoundField DataField="repairman" HeaderText="维修人" ReadOnly="True" />
                       <asp:BoundField DataField="最后更新" HeaderText="最后更新" ReadOnly="True" />
                    <asp:BoundField DataField="更新时间" HeaderText="更新时间" ReadOnly="True" />
                    <asp:BoundField DataField="evaluate" HeaderText="评价" ReadOnly="True" />
                    <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></div>
                        </div>
            <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  ">
               
                          <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click"  onClientClick="return confirm('您确定要删除这些记录吗？删除后不可恢复，请谨慎操作！')" 
                              Text="批量删除"  Visible="False" />
              
                  </td>
                  <td  style ="text-align :right ;  padding-right  :5px">
                            <div class =" td_rightnoborder  ">      
                <asp:Button ID="btPrintView" runat="server" Text="打印预览" 
                  onclick="btPrintView_Click" Visible="False"  />
                &nbsp;<asp:Button ID="btExcel" runat="server" onclick="btExcel_Click" 
                    Text="导出到EXCEL" Visible="False" />
            </div></td>
              </tr>
          </table>
        </td>
      </tr>
        </table></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>
                        <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>
  &nbsp;<asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" CausesValidation="False" />
</asp:Panel>
    </td>
    <td  style =" background-image:url(/css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
    <td  class ="buttom_bg_left "></td>
    <td class ="buttom_bg_center " >&nbsp;</td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>


