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

<%@ Register Assembly="AjaxControlToolkit, Version=1.0.10201.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            font-family: 宋体;
            font-size: 13pt;
        }
        .style2
        {
            font-size: 14pt;
        }
        .style3
        {
            font-size: 13pt;
        }
    </style>
</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 class="style2">
            &nbsp;入库处理</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: 372px;">
        &nbsp;&nbsp;
        <asp:Label ID="Label3" runat="server" Text="入库单号："></asp:Label>
        <asp:TextBox ID="Textrkdh" runat="server" Width="139px" Height="20px"
            Enabled="False"></asp:TextBox>
        <asp:Label ID="Label4" runat="server" Text="创建人："></asp:Label>
        <asp:Label ID="Labid" runat="server" Text="" Visible="false"></asp:Label>
        <asp:TextBox ID="TextBox3" runat="server" Width="95px" Height="20px"
            Enabled="False"></asp:TextBox>
        &nbsp;<asp:Label ID="Label2" runat="server" Text="选择入库方式："></asp:Label>
        <asp:DropDownList ID="DropDownList1" runat="server"  Height="22px"
            Width="114px">
        </asp:DropDownList>
        <asp:Label ID="Label5" runat="server" Text="创建日期："></asp:Label>
        <asp:TextBox ID="TextBox4" runat="server" Width="121px" Height="20px"
            Enabled="False"></asp:TextBox>
        <br />
        <br />
        &nbsp;
        <asp:Label ID="Label1" 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" AutoComplete="off"></asp:TextBox>
      
        <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtDemo"
            CompletionInterval="500" EnableCaching="true" ServicePath="~/AutoCompleteDemo.asmx"
            ServiceMethod="GetData" MinimumPrefixLength="1" CompletionSetCount="5">
        </cc1:AutoCompleteExtender>
        <asp:Label ID="Label7" runat="server" Text="数量："></asp:Label>
        <asp:TextBox ID="Textwpsl" runat="server" Height="20px" Width="62px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="添 加" Height="21px" Width="73px"
            OnClick="click" BackColor="#CCCCCC" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label
            ID="Labdkbs" runat="server" Text="" Visible="false"></asp:Label>
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button3" runat="server" Height="20px" OnClick="Button3_Click" Text=" 返 回"
            Width="73px" BackColor="#CCCCCC" />
        <div style="height: 264px">
            <table width="100%" align="center" >
                <tr>
                    <th>
                        物品编码
                    </th>
                    <th>
                        物品名称
                    </th>
                    <th>
                        物品价格
                    </th>
                                        <th>
                     物品数量
                    </th>
                    <th>
                        删除物品
                    </th>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <tr onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'" align="center">
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "Gid")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "price")%>
                            </td>
                                                      <td>
                                <%#DataBinder.Eval(Container.DataItem, "Rksl")%>
                            </td>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm( '您确认要删除吗？ ') "
                                    CommandName="Delete" CommandArgument='<%# Eval("Gid") %>'>删除</asp:LinkButton>
                                <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "rkdh")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
</asp:Content>
