<%@ Register TagPrefix="uc1" TagName="popUpCalendar" Src="popUpCalendar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="OFBillManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.OFBillManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextOFBill")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<LINK href="../StyleSheet2.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function imgHelp_onclick() {
			popUpWin("DSHelp/OrderFormManage.htm","Help",100,100,800,600);
			}
			
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
			<uc1:popupcalendar id="myCalendar" runat="server"></uc1:popupcalendar><asp:panel id="Pan1" runat="server">
				<TABLE cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
					<TR>
						<TD vAlign="top">
							<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TR>
									<TD vAlign="top" bgColor="#ffffff">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD>
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextBillManage")%>--&gt;<%=myLanguagesDeal.GetMyString("TextOFBill")%></SPAN>
																<IMG language=javascript id=imgHelp 
                        style="CURSOR: pointer" 
                        onclick="return imgHelp_onclick()" 
                        alt='<%=myLanguagesDeal.GetMyString("TextHelp")%>' 
                        src="../Images/Admin/helpicon.gif"></TD>
															<TD align="right"></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" border="0">
											<TR>
												<TD>
													<asp:DropDownList id="drlFindPaymentMode" runat="server"></asp:DropDownList></TD>
												<TD>
													<asp:DropDownList id="drlFindKeyType" runat="server">
														<asp:ListItem Value="0">收款单号</asp:ListItem>
														<asp:ListItem Value="1">订单号</asp:ListItem>
														<asp:ListItem Value="2">付款用户</asp:ListItem>
														<asp:ListItem Value="3">收款金额></asp:ListItem>
														<asp:ListItem Value="4">收款金额&lt;</asp:ListItem>
														<asp:ListItem Value="5">收款金额=</asp:ListItem>
														<asp:ListItem Value="6">备注</asp:ListItem>
														<asp:ListItem Value="7">下单用户名</asp:ListItem>
													</asp:DropDownList>
													<asp:TextBox id="txtFindKey" runat="server" Width="80px" CssClass="wenbenkuang"></asp:TextBox></TD>
												<TD><%=myLanguagesDeal.GetMyString("TextStart")%>
													<asp:TextBox id="txtStartDate" runat="server" Width="65px" CssClass="wenbenkuang"></asp:TextBox>
													<asp:ImageButton id="ibtSelStartDate" runat="server" ImageUrl="../Images/calendar.gif" onclick="ibtSelStartDate_Click"></asp:ImageButton></TD>
												<TD>&nbsp;<%=myLanguagesDeal.GetMyString("TextEnd")%><asp:TextBox id="txtEndDate" runat="server" Width="65px" CssClass="wenbenkuang"></asp:TextBox>
													<asp:ImageButton id="ibtSelEndDate" runat="server" ImageUrl="../Images/calendar.gif" onclick="ibtSelEndDate_Click"></asp:ImageButton>&nbsp;</TD>
												<TD></TD>
												<TD>
													<asp:DropDownList id="drlFindOrder" runat="server">
														<asp:ListItem Value="0">按收款时间</asp:ListItem>
														<asp:ListItem Value="1">按收款金额</asp:ListItem>
														<asp:ListItem Value="2">按付款用户</asp:ListItem>
														<asp:ListItem Value="3">按资金账户</asp:ListItem>
														<asp:ListItem Value="4">按支付方式</asp:ListItem>
														<asp:ListItem Value="5">按操作员</asp:ListItem>
													</asp:DropDownList></TD>
												<TD>
													<asp:RadioButtonList id="rblFindOrderMode" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="0" Selected="True">降序</asp:ListItem>
														<asp:ListItem Value="1">升序</asp:ListItem>
													</asp:RadioButtonList></TD>
												<TD>
													<asp:Button id="btSure" runat="server" CssClass="go-wenbenkuang" Text="查询" onclick="btSure_Click"></asp:Button></TD>
											</TR>
										</TABLE>
										<asp:datagrid id="dgList" runat="server" Width="100%" CssClass="table-shangxia" AllowPaging="True"
											AutoGenerateColumns="False" DataKeyField="BillID">
											<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
											<Columns>
												<asp:BoundColumn DataField="BillNum" HeaderText="收款单号">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="OFID" HeaderText="订单号">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="GathieringMoney" HeaderText="金额">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="OFMoneySum" HeaderText="订单金额">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="UserName" HeaderText="付款用户">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="GatheringTime" HeaderText="时间">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="GatheringAccount" HeaderText="资金账户">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="PaymentMode" HeaderText="支付方式">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
												</asp:BoundColumn>
												<asp:TemplateColumn HeaderText="操作">
													<HeaderStyle></HeaderStyle>
													<ItemStyle HorizontalAlign="Center"></ItemStyle>
													<ItemTemplate>
														<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
														<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right" Visible="False"></PagerStyle>
										</asp:datagrid>
										<TABLE class="table-notop" width="100%" align="center" border="0">
											<TR align="center" bgColor="#f1f1f1">
												<TD>
													<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btFirst_Click"></asp:button>&nbsp;
													<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btPre_Click"></asp:button>&nbsp;
													<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btNext_Click"></asp:button>&nbsp;
													<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btLast_Click"></asp:button>&nbsp;
													<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
													<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
													<asp:textbox id="txtPageNum" runat="server" Width="30px" CssClass="wenbenkuang" MaxLength="3"></asp:textbox>
													<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="输入数字" ControlToValidate="txtPageNum"
														Operator="DataTypeCheck" Type="Integer" Display="Dynamic"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
													<asp:Button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:Button></TD>
											</TR>
										</TABLE>
                                        <TABLE width="100%" align="center" border="0">
	                                        <TR align="center">
		                                        <TD>
			                                        <asp:LinkButton id="lkbDataToExcel" runat="server" 
                                                        ForeColor="Red" Text="导出到Excel" onclick="lkbDataToExcel_Click"  ></asp:LinkButton></TD>
	                                        </TR>
                                        </TABLE>
									</TD>
								</TR>
							</TABLE>
						</TD>
					</TR>
				</TABLE>
				<TABLE width="100%" align="center" border="0">
					<TR align="center">
						<TD><%=myLanguagesDeal.GetMyString("OFBillMsg1")%><!--点击下单人可以查看用户所有交易明细--></TD>
					</TR>
				</TABLE>
			</asp:panel><asp:panel id="Pan2" runat="server" Visible="False">
				<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR>
						<TD style="WIDTH: 711px">
							<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TR>
									<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextBillManage")%>--&gt;
											<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN></TD>
									<TD align="right" width="50"><!--BUTTON_BEGIN-->
										<TABLE>
											<TR>
												<TD vAlign="bottom" noWrap>
													<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextProductReturn")%></TD>
											</TR>
										</TABLE> <!--BUTTON_END--></TD>
								</TR>
							</TABLE>
						</TD>
					</TR>
				</TABLE>
				<HR noShade SIZE="1">
				<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextOFBillNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--收款单号：--></TD>
						<TD class="pad" width="70%">
							<asp:TextBox id="txtBillNum" runat="server" Width="120px" CssClass=" wenbenkuang" ReadOnly="True"></asp:TextBox></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextOFNumber")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--订单单号：--></TD>
						<TD class="pad" width="70%">
							<asp:TextBox id="txtOFID" runat="server" Width="120px" CssClass=" wenbenkuang" ReadOnly="True"></asp:TextBox></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextOperator")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--操作员：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtBillOperator" runat="server" Width="120px" CssClass=" wenbenkuang" MaxLength="25"
									ReadOnly="True"></asp:TextBox></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextTiem")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--时间：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtBillGatheringTime" runat="server" Width="120px" CssClass="wenbenkuang"></asp:TextBox>
								<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入时间" ControlToValidate="txtBillGatheringTime"
									Display="Dynamic"></asp:RequiredFieldValidator>
								<asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ErrorMessage="请输入指定格式时间" ControlToValidate="txtBillGatheringTime"
									Display="Dynamic" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}"></asp:RegularExpressionValidator></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextPayMan")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--付款人：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtBillPaymentMan" runat="server" Width="120px" CssClass=" wenbenkuang" MaxLength="25"></asp:TextBox></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextGatheringMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--收款方式：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:DropDownList id="drlBillGatheringMode" runat="server" AutoPostBack="True" onselectedindexchanged="drlBillGatheringMode_SelectedIndexChanged">
									<asp:ListItem Value="0" Selected="True">现金</asp:ListItem>
									<asp:ListItem Value="1">预存款</asp:ListItem>
								</asp:DropDownList></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextFundAccount")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--资金帐户：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:DropDownList id="drlBillFundAccount" runat="server" AutoPostBack="True" onselectedindexchanged="drlBillFundAccount_SelectedIndexChanged"></asp:DropDownList></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextAccountCode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--收款帐号：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtBillAccountCode" runat="server" Width="120px" CssClass=" wenbenkuang" MaxLength="25"
									ReadOnly="true"></asp:TextBox></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextAccountName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--收款银行：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtBillAccountName" runat="server" Width="180px" CssClass=" wenbenkuang" MaxLength="100"
									ReadOnly="true"></asp:TextBox></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextPayMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--支付方式：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:DropDownList id="drlBillPaymentMode" runat="server"></asp:DropDownList></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("OFBillTextPayMoney")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--付款金额：--></TD>
						<TD class="pad"><FONT face="宋体">
								<asp:TextBox id="txtBillPaymentMoney" runat="server" Width="120px" CssClass=" wenbenkuang"></asp:TextBox>
								<asp:CompareValidator id="CompareValidator2" runat="server" ErrorMessage="请输入付款金额" ControlToValidate="txtBillPaymentMoney"
									Operator="DataTypeCheck" Type="Double" Display="Dynamic"></asp:CompareValidator></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="30%"><%=myLanguagesDeal.GetMyString("TextRemark")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--备注：--></TD>
						<TD class="pad"><FONT color="red">
								<asp:TextBox id="txtRemark" runat="server" Width="400px" CssClass="wenbenkuang" MaxLength="300"
									Rows="3" TextMode="MultiLine" EnableViewState="False"></asp:TextBox></FONT></TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD align="right" width="20%"></TD>
						<TD class="pad">&nbsp;
							<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button>&nbsp;&nbsp;</TD>
					</TR>
				</TABLE>
				<P align="center">
					<asp:Label id="lbInfo" runat="server" ForeColor="Red"></asp:Label></P>
			</asp:panel></form>
	</body>
</HTML>
