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

<%@ Register Assembly="AjaxControlToolkit, Version=1.0.10201.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<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%;">
        <div style="width: 100%; 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_Click1"
                BackColor="#CCCCCC" />
        </div>
        <div style="float: left; width: 100%;">
            &nbsp;&nbsp;
            <asp:Label ID="Label3" runat="server" Text="请输入要调拨的物品名称:"></asp:Label>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="~/AutoCompleteDemo.asmx" />
                </Services>
            </asp:ScriptManager>
            <asp:TextBox ID="txtDemo" runat="server" Height="20px" CssClass="style3" AutoComplete="off"></asp:TextBox>
            <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtDemo"
                CompletionInterval="500" EnableCaching="true" ServicePath="~/AutoCompleteDemo1.asmx"
                ServiceMethod="GetData" MinimumPrefixLength="1" CompletionSetCount="5">
            </cc1:AutoCompleteExtender>
            &nbsp;
            <asp:Label ID="Label5" runat="server" Text="调拨数量："></asp:Label>
            <asp:TextBox ID="TextBox4" runat="server" Height="20px" Width="87px"></asp:TextBox>
            <asp:Label ID="Label4" runat="server" Text="物品接收人："></asp:Label>
            <asp:DropDownList ID="DropDownList1" runat="server">
            </asp:DropDownList>
            &nbsp;<asp:Button ID="Button2" runat="server" Text="增 加" Width="67px" OnClick="Button2_Click"
                BackColor="#CCCCCC" />
            &nbsp; &nbsp; &nbsp;
        </div>
    </div>
    <div style="width: 100%;">
        <table border="1px" width="100%">
            <tr>
                <th>
                    调拨单号
                </th>
                <th>
                    物品名称
                </th>
                <th>
                    调拨数量
                </th>
                <th>
                    物品价格
                </th>
                <th>
                    调拨时间
                </th>
                <th>
                    物品接收人
                </th>
                <th>
                    状态
                </th>
                <th>
                    编辑
                </th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr align="center" onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "nbdbid")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "Goodprice")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "dbsl")%>
                        </td>
                        <td>
                            <%#Eval("Date", "{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                        </td>
                        <td>
                            <%#Eval("dbbz").ToString() == "0" ? "未审核" : "已审核"%>
                        </td>
                        <td>
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm( '您确认要执行吗？ ') "
                                CommandName="Delete" CommandArgument='<%# Eval("nbdbid") %>'>  <%#Eval("dbbz").ToString() == "0" ? "审核" : "已审核"%> </asp:LinkButton>
                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "nbdbid")%>' />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <div style="width: 100%; height: 29px;">
            <center style="height: 34px">
                <asp:Label ID="Label6" runat="server" Text="当前"></asp:Label>
                <asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>
                <asp:Label ID="Label7" runat="server" Text="/"></asp:Label>
                <asp:Label ID="lblPageCount" runat="server" Text="X"></asp:Label>
                <asp:Label ID="Label8" 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>
    </div>
</asp:Content>
