<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.Product_OutStock_List, V5Shop.Member" title="缺货登记" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="UserControl/PageList.ascx" TagName="PageList" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="float: left; width: 760px">
        <div>
            <img src="images/list/top-1.gif" /></div>
        <div style="border-right: #c5dce7 1px solid; padding-right: 10px; padding-left: 10px;
            padding-bottom: 10px; width: 739px; padding-top: 10px">
            <div style="padding-left: 20px; background: url(images/list/tab-bg.gif) repeat-x 50% bottom;
                height: 27px">
                <div style="font-weight: bold; background: url(images/list/tab-1.gif) no-repeat;
                    float: left; width: 76px; color: #111; line-height: 27px; margin-right: 3px;
                    height: 27px; text-align: center">
                    缺货登记 </div>
            </div>
            <div style="background: url(images/list/bg_2.gif) repeat-x; line-height: 30px; height: 30px">
                <div style="float: left; width: 150px; text-align: center">
                    用户名</div>
                <div style="float: left; width: 300px; text-align: center">
                    缺货商品名称</div>
                <div style="float: left; width: 80px; text-align: center">
                    登记数量</div>
                <div style="float: left; width: 100px; text-align: center">
                    最晚到货时间 </div>
                <div style="float: left; width: 85px; text-align: center">
                    操作时间</div>
              
            </div>
            <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px">
                <input id="CheckAllBox" class="checkbox" name="checkbox" onclick="CheckAll()" type="checkbox" />
                全选
                <asp:Button ID="BtnDelete2" runat="server" CssClass="input_bg" OnClick="BtnDelete_Click"
                    Text="删除" />
            </div>
            <div class="list2_div1">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                  <asp:Repeater ID="rpOutStockList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td width="20">
                                  
                                        <asp:CheckBox ID="chkChoose" runat="server" />
                                        <asp:HiddenField ID="CheckBoxID" runat="server" Value='<%# Eval("ID") %>' />
                                    
                                </td>
                                <td align="center" width="150">
                                    <%# Eval("UserName")%>
                                </td>
                                <td align="center" width="200px">
                                   <a href="Product_OutStock_View.aspx?id=<%# Eval("ID") %>"> <%# Eval("ProductName")%></a>
                                </td>
                                <td align="center" width="80">
                                    <%# Eval("Count")%>
                                </td>
                                <td align="center" width="100">
                                    <%# Convert.ToDateTime(Eval("LatestDate")).ToShortDateString()%>
                                </td>
                                <td align="center" width="85">
                                    <%#Convert.ToDateTime(Eval("Date")).ToShortDateString()%>
                                </td>
                               
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px;">
                <div style="float: left">
                    <input id="CheckAllBox2" class="checkbox" name="checkbox1" onclick="CheckAll2()" type="checkbox" />
                    &nbsp;全选
                    <asp:Button ID="BtnDelete" runat="server" CssClass="input_bg" OnClick="BtnDelete_Click"
                        Text="删除" />
                </div>
                <uc1:pagelist id="PageList1" runat="server"></uc1:pagelist>
            </div>
        </div>
        <div>
            <img src="images/list/bottom-1.gif" /></div>
    </div>
    
    <script language="javascript" type="text/javascript">
    ShowOrHidden(1);
    ShowOrHidden(3);
    ShowOrHidden(5);
    </script>
    
     <asp:Label ID="lblDelete" runat="server" Text="您确定要删除吗?" Visible="false" ></asp:Label>
      <asp:Label ID="lblParam" runat="server" Text="参数错误" Visible="false" ></asp:Label>
</asp:Content>

