<%@ Page language="c#" Codebehind="MyStockReg.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MyStockReg" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="MemberHelper" Src="Modules/MemberHelper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="memberfooter" Src="Modules/memberfooter.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="../../inc/encoding.inc"-->
		<title>缺货登记</title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-qgw clear">
		    <!--位置导航开始-->
			<div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<%=GetResourceString("MemberCenter")%>&nbsp;&gt;&nbsp;缺货登记</div>
			<!--位置导航结束-->
			<div class="member_left">
				<!--会员中心导航开始-->
				<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle_right">
				<!--内容开始-->
                <form id="Form1" method="post" runat="server">
				<div class="mframe">
					<div class="tl"></div>
					<div class="tr"></div>
					<div class="tm">
					     缺货登记
					</div>
					<div class="ml"></div>
					<div class="mr"></div>
					<div class="mm">
				        <div>购买商品时,如果商品库存不足可以填写缺货登记,当有现货供应时,可以通知您购买.</div>
				        <asp:datagrid id="dgList" CssClass="dgborder" runat="server" AutoGenerateColumns="False"
						    DataKeyField="OutStockRegID" Width="100%" HorizontalAlign="Center" BorderWidth="1" AllowPaging="true" PageSize="20"
						    BorderColor="#d6d6d6">
						    <ItemStyle BackColor="White"></ItemStyle>
						    <HeaderStyle BackColor="#fff7d3"></HeaderStyle>
						    <Columns>
							    <asp:TemplateColumn HeaderText="商品名称">
								    <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
								    <ItemTemplate>
									    <A href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank">
										    <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
									    </a>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:TemplateColumn HeaderText="会员价格">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center"></ItemStyle>
								    <ItemTemplate>
									    <%# DataBinder.Eval(Container.DataItem, "MemberPrice","{0:f}") %>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:TemplateColumn HeaderText="登记时间">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center"></ItemStyle>
								    <ItemTemplate>
									    <%#DataBinder.Eval(Container.DataItem,"AddTime")%>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:TemplateColumn HeaderText="通知时间">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center"></ItemStyle>
								    <ItemTemplate>
									    <%#(bool)DataBinder.Eval(Container.DataItem,"IsNotified") ? DataBinder.Eval(Container.DataItem,"NotifyTime") : "未通知"%>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
							    </asp:ButtonColumn>
						    </Columns>
			                    <PagerStyle Mode="NumericPages"></PagerStyle>
					    </asp:datagrid>
					</div>
				    <div class="bl"></div>
				    <div class="br"></div>
				    <div class="bm"></div>
				</div>
	            </form>
				<!--内容结束-->
			</div>
		</div>
		<uc1:MemberHelper id="Helper1" runat="server"></uc1:MemberHelper>
		<uc1:memberfooter id="Footer1" runat="server"></uc1:memberfooter>
	</body>
</html>
