<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="goodssqrk.aspx.cs" Inherits="goods_goodssqrk" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<div style="background-image: url('../b2c/images/win_top.png'); font-weight: bold;
        height: 27px; line-height: 30px;">
        <center>
            物品申请单</center>
    </div>--%>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                物品申请单
            </th>
        </tr>
    </table>
    <div style="width: 100%; height: 25px;">
        <div style="float: left; width: 80%; text-align: left;">
            &nbsp; &nbsp;
            <asp:Label ID="Label1" runat="server" Text="下单时间："></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" onfocus="WdatePicker()" Width="94px"></asp:TextBox>
            <asp:Label ID="Label2" runat="server" Text="至"></asp:Label>
            <asp:TextBox ID="TextBox2" runat="server" onfocus="WdatePicker()" Width="94px"></asp:TextBox>
            &nbsp;
            <asp:Button ID="Btncx" runat="server" Text="查 询" Width="67px" 
                OnClick="Btncx_Click" BackColor="#CCCCCC" /> &nbsp; &nbsp;
            <asp:Button ID="Button1" runat="server" Text="增 加" Width="67px" 
                OnClick="Button2_Click" BackColor="#CCCCCC" />
        </div>
        <div style="float: left; width: 20%; height:25px; text-align: right;">
           <%-- <a style="cursor:pointer;" onclick="javascript:history.back(-1);">返回</a>
            &nbsp; &nbsp; &nbsp;--%>
        </div>
    </div>
    <center>
        <div style="width: 100%; position: relative; margin-top: 0px; top: -1px;
            left: 0px;">
            <table border="1" width="100%">
                <tr style="background-color: #999999; width: 100%;">
                    <th style="width: 10%">
                        申请单号
                    </th>
                    <th style="width: 10%">
                        申请人
                    </th>
                    <th style="width: 10%">
                        申请日期
                    </th>
                    <th style="width: 10%">
                        审核状态
                    </th>
                    <th style="width: 10%">
                        修改
                    </th>
                    <th style="width: 10%">
                        查看具体
                    </th>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <tr onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'"
                            style="width: 100%;">
                            <td style="width: 10%">
                                <%#DataBinder.Eval(Container.DataItem, "ckdh")%>
                            </td>
                            <td style="width: 10%">
                               <%#DataBinder.Eval(Container.DataItem, "PersonnelName")%>
                                 
                            </td>
                            <td style="width: 10%">
                                <%#Eval("Date", "{0:yyyy-MM-dd}")%>
                            </td>
                            <td style="width: 10%">
                                <%#Eval("ckbz").ToString() == "0" ? "未审核" : "已审核"%>
                            </td>
                            <td style="width: 10%">
                              
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("ckbz") %>'><%#Eval("ckbz").ToString() == "0" ? "修改" : "已审核"%></asp:LinkButton>
                            </td>
                            <td style="width: 10%">
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="detaileduser" CommandArgument='<%# Eval("ckbz") %>'>详细</asp:LinkButton>
                                <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "ckdh")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </center>
    
    <div style="width: 100%; height: 25px;">
        <center style="height: 30px">
                        <asp:Label ID="Label3" runat="server" Text="当前"></asp:Label>
                    <asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>
                       <asp:Label ID="Label5" runat="server" Text="/"></asp:Label>
                        <asp:Label ID="lblPageCount" runat="server" Text="X"></asp:Label>
                    <asp:Label ID="Label4" runat="server" Text="页"></asp:Label>
            <asp:Button ID="Button5" runat="server" Text="首 页" Height="20px" Width="56px" 
                OnClick="Button4_Click" BackColor="#CCCCCC" />
            <asp:Button ID="Button6" runat="server" Text="上 页" Height="20px" Width="56px" OnClick="Button6_Click"
                BackColor="#CCCCCC" />
            <asp:Button ID="Button7" runat="server" Text="下 页" Height="20px" Width="56px" OnClick="Button7_Click"
                BackColor="#CCCCCC" />
            <asp:Button ID="Button8" runat="server" Text="末 页" Height="20px" Width="56px" 
                OnClick="Button8_Click" BackColor="#CCCCCC" />
       
        </center>
    </div>
</asp:Content>
