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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: large;
        }
        .style2
        {
            font-size: 14pt;
        }
    </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>
            物品台账明细</center>
    </div>--%>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                物品台账明细
            </th>
        </tr>
    </table>
    <div style="height: 30px; float:left; width:85%;">
        选择操作方式
        <asp:RadioButton ID="RadioButton1" runat="server" GroupName="czfs" Text="入库" 
            AutoPostBack="True" oncheckedchanged="RadioButton1_CheckedChanged" />
        <asp:RadioButton ID="RadioButton2" runat="server" GroupName="czfs" Text="出库" 
            AutoPostBack="True" oncheckedchanged="RadioButton2_CheckedChanged" />
        <asp:RadioButton ID="RadioButton3" runat="server" GroupName="czfs" Text="全部" 
            Checked="True" AutoPostBack="True" 
            oncheckedchanged="RadioButton3_CheckedChanged" />
        &nbsp;&nbsp;&nbsp;&nbsp; 查询日期：<asp:TextBox ID="TextBox1" runat="server" onfocus="WdatePicker()"
            Width="94px"></asp:TextBox>
        至：<asp:TextBox ID="TextBox2" runat="server" onfocus="WdatePicker()" Width="94px"></asp:TextBox>
        &nbsp;<asp:Button ID="Button1" runat="server" Text="查 询" 
            onclick="Button1_Click" BackColor="#CCCCCC" Height="20px" Width="73px" />
        <asp:Label ID="gid" Visible="false" runat="server" Text=""></asp:Label></div><div style="height: 30px; float:left; width:15%; text-align: center;" 
        > 
        <asp:Button ID="Button2" runat="server" Text="返 回" onclick="Button2_Click" 
            BackColor="#CCCCCC" Height="20px" Width="73px" /> </div>
    <div style="width: 100%; ">
        <table border = "1px" style="width: 100%;" >
            <tr>
                <th>
                    物品编码
                </th>
                <th>
                    物品名称
                </th>
                <th>
                    操作方式
                </th>
                <th>
                    操作数量
                </th>
                <th>
                    操作日期
                </th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr align="center" onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                        <td style="width: 20%">
                            <%#DataBinder.Eval(Container.DataItem, "gid")%>
                        </td>
                        <td style="width: 20%">
                            <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                        </td>
                        <td style="width: 20%">
                            <%#Eval("czlx").ToString() == "0" ? "出库" : "入库"%>
                        </td>
                        <td style="width: 20%">
                            <%#DataBinder.Eval(Container.DataItem, "Cksl")%>
                        </td>
                        <td style="width: 10%">
                            <%#Eval("Date", "{0:yyyy-MM-dd}")%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
 <div style="width: 100%; height: 24px;"  >
    <center style="height: 34px">
        物品当前的库存数量为：<asp:Label ID="xkc" runat="server" Text=""></asp:Label>
       </center>
    </div>
    <div style="width: 100%; height: 24px;">
            <center style="height: 34px">
                             <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>
