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

<!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 =" text-align :left; margin-top :10px; ">                             
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
                                 RepeatDirection="Horizontal" 
                                onselectedindexchanged="tbSub_Click">
                                 <asp:ListItem>待审核</asp:ListItem>
                                 <asp:ListItem>审核中</asp:ListItem>
                                 <asp:ListItem>报损完成</asp:ListItem>
                                 <asp:ListItem Selected="True">所有</asp:ListItem>
                             </asp:RadioButtonList></div>
                  <div  style =" margin-top :10px;">                       
                                 按申请时间查询：起始日期：<asp:textbox id="date1" runat="server" Width="100px"  
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                 
        &nbsp;终止日期：<asp:textbox id="date2" runat="server" Width="100px"    
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                              &nbsp;<asp:Button ID="tbSub" runat="server" Text="查询报损" onclick="tbSub_Click" ValidationGroup="cha" />                                   
                                 &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                          ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" ForeColor="Red"></asp:RegularExpressionValidator>
                      </div>
  
                        <asp:GridView ID="GridView1" runat="server" 
                    onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                            onrowdeleting="GridView1_RowDeleting" 
                    onrowcreated="GridView1_RowCreated" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="lossnumber" HeaderText="报损数量" ReadOnly="True" />
                    <asp:BoundField DataField="losscause" HeaderText="报损原因" ReadOnly="True" />
                    <asp:BoundField DataField="applicantkinds" HeaderText="申请类别" ReadOnly="True" />
                    <asp:BoundField DataField="lossapplicantid" HeaderText="申请人编号" ReadOnly="True" />
                    <asp:BoundField DataField="lossapplicant" HeaderText="申请人" ReadOnly="True" />
                    <asp:BoundField DataField="applicanttime" HeaderText="申请时间" ReadOnly="True" />
                    <asp:BoundField DataField="managerdecided" HeaderText="办理意见" ReadOnly="True" />
                    <asp:BoundField DataField="checkdecided" HeaderText="审核意见" ReadOnly="True" />
                    <asp:BoundField DataField="finalcheckdecided" HeaderText="审批意见" ReadOnly="True" />
                    
                    <asp:CommandField DeleteText="取消" HeaderText="操作" 
                        ShowDeleteButton="True" />
                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
             
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>