<%@ Control Language="c#" AutoEventWireup="True" Codebehind="UserVoucher.ascx.cs" Inherits="DreamerShop.UserControl.UserVoucher" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<asp:Panel id="PanVoucher" runat="server">
	<asp:datagrid id="dgList" runat="server" PageSize="15" DataKeyField="VoucherID" CssClass="border-l-b-r-t"
		Width="100%" AutoGenerateColumns="False" AllowPaging="True">
		<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1" Height="20"></HeaderStyle>
		<ItemStyle Height="20"></ItemStyle>
		<Columns>
			<asp:BoundColumn DataField="VoucherNum" HeaderText="VoucherNumber">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="VoucherPass" HeaderText="VoucherPass">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="VoucherMoney" HeaderText="VoucherMoney">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="StartTime" HeaderText="VoucherStartTime">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="EndTime" HeaderText="VoucherEndTime">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="UseTime" HeaderText="VoucherUseTime">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
		</Columns>
		<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
	</asp:datagrid>
	<TABLE class="table-notop" width="100%" align="center" border="0">
		<TR align="center">
			<TD>
				<asp:LinkButton id="btFirst" runat="server" CausesValidation="False" onclick="btFirst_Click">首页</asp:LinkButton>&nbsp;
				<asp:LinkButton id="btPre" runat="server" CausesValidation="False" onclick="btPre_Click">上一页</asp:LinkButton>&nbsp;
				<asp:LinkButton id="btNext" runat="server" CausesValidation="False" onclick="btNext_Click">下一页</asp:LinkButton>&nbsp;
				<asp:LinkButton id="btLast" runat="server" CausesValidation="False" onclick="btLast_Click">尾页</asp:LinkButton>&nbsp;&nbsp;
				<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
				<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
				<asp:textbox id="txtPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
				<asp:CompareValidator id="CompareValidator1" runat="server" Display="Dynamic" Type="Integer" Operator="DataTypeCheck"
					ControlToValidate="txtPageNum" ErrorMessage="输入数字"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
				<asp:Button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:Button></TD>
		</TR>
	</TABLE>
	<BR>
	<TABLE class="table-notop" width="100%" align="center" border="0">
		<TR align="center">
			<TD><%=myLanguagesDeal.GetMyString("VoucherNumber")%><!--礼券编号-->
				<asp:textbox id="txtVoucherNumber" runat="server" CssClass="wenbenkuang" Width="100px" MaxLength="100"></asp:textbox><%=myLanguagesDeal.GetMyString("VoucherPass")%><!--礼券密码-->
				<asp:textbox id="txtVoucherPass" runat="server" CssClass="wenbenkuang" Width="200px" MaxLength="100"></asp:textbox>
				<asp:button id="btJoinVuocher" runat="server" CssClass="go-wenbenkuang" Text="添加礼券" onclick="btJoinVuocher_Click"></asp:button><BR>
				<asp:Label id="lbVoucherMsg" runat="server" ForeColor="Red"></asp:Label></TD>
		</TR>
	</TABLE>
</asp:Panel>
<asp:Label id="lbItembgColor" runat="server" Visible="false">#EFF3F7</asp:Label>
