<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<%@ Page language="c#" Codebehind="SaleOrderAdd1.aspx.cs" AutoEventWireup="false" Inherits="WsdnStarMarket.Order.SaleOrderAdd1" smartNavigation="False"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>收款单</title>
		<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">
		<script language="javascript" src="../js/JScript.js"></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:css id="Css1" runat="server"></uc1:css>
			<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">
				<TR>
					<TD class="WsdnOrgTitle1" style="HEIGHT: 18px" colSpan="4"><asp:label id="Label1" runat="server">销售收款单添加向导：第二步，核对需收款的产品。</asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="4">
				<TR>
					<TD class="WsdnOrgInfo" colSpan="4"><asp:label id="Label2" runat="server" Font-Bold="True">销售收款单基本信息：</asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label17" runat="server">收款单号：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Id" runat="server"></asp:label></TD>
					<TD><asp:label id="Label11" runat="server">原凭证号</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Oldid" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label19" runat="server">业务员：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Employee" runat="server"></asp:label></TD>
					<TD><asp:label id="Label18" runat="server">客户：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Client" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label20" runat="server">部门：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Department" runat="server"></asp:label></TD>
					<TD><asp:label id="Label21" runat="server">报价时间：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Time" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label12" runat="server">仓管员：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_SEmployee" runat="server"></asp:label></TD>
					<TD><asp:label id="Label15" runat="server">仓管部门：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_SDepartment" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label23" runat="server">货仓：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Storehouse" runat="server"></asp:label></TD>
					<TD><asp:label id="Label25" runat="server">出货时间：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_STime" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label24" runat="server">收款业务员：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_OEmployee" runat="server"></asp:label></TD>
					<TD><asp:label id="Label27" runat="server">收款业务员部门：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_ODepartment" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label29" runat="server">票据类型：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Type" runat="server"></asp:label></TD>
					<TD><asp:label id="Label31" runat="server">票号：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Number" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label26" runat="server">收款时间：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_OTime" runat="server"></asp:label></TD>
					<TD><asp:label id="Label30" runat="server">收款备注：</asp:label></TD>
					<TD><asp:label id="OInfo" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD><asp:label id="Label14" runat="server">销售备注：</asp:label></TD>
					<TD><asp:label id="Info" runat="server"></asp:label></TD>
					<TD><asp:label id="Label16" runat="server">出货备注：</asp:label></TD>
					<TD><asp:label id="SInfo" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="1"></TD>
					<TD colSpan="3"><asp:button id="BtCancel" runat="server" Text=" 撤销该单 " Visible="False"></asp:button><FONT face="宋体">&nbsp;</FONT>
						<asp:Button id="Button2" runat="server" Text="完全收款" Visible="False"></asp:Button></TD>
				</TR>
				</TD></TR>
				<TR>
					<TD class="WsdnOrgInfo" colSpan="4"><asp:label id="Label3" runat="server" Font-Bold="True">销售收款单产品信息：</asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="4"><asp:datagrid id="Datagrid2" runat="server" Width="100%" PageSize="15" AutoGenerateColumns="False"
							ShowFooter="True">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<FooterStyle Font-Bold="True" HorizontalAlign="Right"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn Text="收款" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="SaleOrderAdd1.aspx?mid={0}"
									HeaderText="编辑"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Product" HeaderText="产品"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Unit" HeaderText="单位"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Spec" HeaderText="规格"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Num" HeaderText="数量"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Price" HeaderText="销售单价"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Amount" HeaderText="总价"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_PayAmount" HeaderText="已收金额"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_UnAmount" HeaderText="未收金额"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_OInfo" HeaderText="收款备注"></asp:BoundColumn>
								<asp:TemplateColumn HeaderImageUrl="../image/UPLOAD.GIF" HeaderText="是否收款">
									<HeaderStyle Width="29px"></HeaderStyle>
									<HeaderTemplate>
										是否出库
									</HeaderTemplate>
									<ItemTemplate>
										<asp:Image id="Image1" runat="server" ImageUrl='<%# String.Format("../image/{0}.gif", DataBinder.Eval(Container.DataItem, "IsInStorehouse"))%>'>
										</asp:Image>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderImageUrl="../image/UPLOAD.GIF" HeaderText="是否收款">
									<HeaderStyle Width="29px"></HeaderStyle>
									<HeaderTemplate>
										是否收款
									</HeaderTemplate>
									<ItemTemplate>
										<asp:Image id="Image2" runat="server" ImageUrl='<%# String.Format("../image/{0}.gif", DataBinder.Eval(Container.DataItem, "IsPay"))%>'>
										</asp:Image>
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
							<PagerStyle Position="TopAndBottom" CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:datagrid><asp:label id="Lgrid" runat="server"></asp:label>
						<HR width="80%">
						<asp:label id="Label9" runat="server" Visible="False"></asp:label><asp:textbox id="Wsdn_StarCRM_Productid" runat="server" Width="1px" Height="1px"></asp:textbox>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label4" runat="server">产品名称</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Product" runat="server" ReadOnly="True"></asp:textbox>&nbsp;&nbsp;<IMG onclick="javascript:doselectproduct();" alt="选择产品" src="../image/mini_post.gif"></TD>
					<TD><asp:label id="Label5" runat="server">计量单位</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Unit" runat="server" ReadOnly="True"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label6" runat="server">规格</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Spec" runat="server" ReadOnly="True"></asp:textbox></TD>
					<TD><asp:label id="Label7" runat="server">数量</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Num" runat="server" AutoPostBack="True" ReadOnly="True"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label8" runat="server">销售单价</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Price" runat="server" AutoPostBack="True"></asp:textbox></TD>
					<TD><asp:label id="Label10" runat="server">总价</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Amount" runat="server" MaxLength="200" ReadOnly="True"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label22" runat="server">已收金额</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_PayAmount" runat="server" AutoPostBack="True" ReadOnly="True"></asp:textbox></TD>
					<TD><asp:label id="Label32" runat="server">未收金额</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_UnAmount" runat="server" MaxLength="200" ReadOnly="True"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label13" runat="server">本次收款</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_ThisAmount" runat="server" MaxLength="20"></asp:textbox><FONT face="宋体" color="#ff0033">*</FONT></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_MarketPrice" runat="server" Width="1px" Height="1px"></asp:textbox><asp:textbox id="Wsdn_StarCRM_AgentPrice" runat="server" Width="1px" Height="1px"></asp:textbox></TD>
					<TD></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label34" runat="server">收款备注</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_OInfo" runat="server" Width="200px" MaxLength="200"></asp:textbox></TD>
					<TD></TD>
					<TD></TD>
				<TR class="WsdnOrgInfo">
					<TD><asp:label id="Label28" runat="server">预订备注</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Info" runat="server" Width="200px" MaxLength="200" ReadOnly="True"></asp:textbox></TD>
					<TD><asp:label id="Label33" runat="server">出货备注</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_SInfo" runat="server" Width="200px" MaxLength="200" ReadOnly="True"></asp:textbox></TD>
				</TR>
				</TR> </TD></TR>
				<TR>
				<TR>
					<TD colSpan="4">
						<HR width="80%">
					</TD>
				</TR>
				<TR>
					<TD align="right" colSpan="4">&nbsp;
						<asp:button id="Btmodify" runat="server" Text="确认收款"></asp:button>&nbsp;
						<asp:button id="BtAdd" runat="server" Text="添加记录" Enabled="False" Visible="False"></asp:button>&nbsp;
						<asp:button id="Button3" runat="server" Text="返回列表"></asp:button>&nbsp;
						<asp:button id="Button5" runat="server" Text="单据打印"></asp:button>&nbsp;<asp:button id="Button1" runat="server" Text="收款单输出"></asp:button>&nbsp;
						<asp:Button id="Button4" runat="server" Text="退款&amp;撤销"></asp:Button>
						<br>
						<asp:label id="Msg" runat="server" ForeColor="Red"></asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="4" class="WsdnOrgInfo">
						<asp:datagrid id="DGValidate" runat="server" AutoGenerateColumns="False" Visible="False" Height="68px"
							Width="100%" ForeColor="Red">
							<ItemStyle ForeColor="Red" CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="MainCaption" HeaderText="错误项目"></asp:BoundColumn>
								<asp:BoundColumn DataField="Value" HeaderText="项目值"></asp:BoundColumn>
								<asp:BoundColumn DataField="ValidateMessage" HeaderText="描述"></asp:BoundColumn>
							</Columns>
						</asp:datagrid>
						<asp:Label id="Label35" runat="server">发表留言：</asp:Label>
						<asp:TextBox id="Textbox2" runat="server" Width="450px"></asp:TextBox>
						<asp:Button id="BtNote" runat="server" Text="提交留言"></asp:Button>
						<asp:DataGrid id="DataGridNote" runat="server" AutoGenerateColumns="False" Width="100%">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Employee" HeaderText="发表人"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Name" HeaderText="内容"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Time" HeaderText="发表时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Department" HeaderText="所在部门"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Status" HeaderText="状态"></asp:BoundColumn>
							</Columns>
						</asp:DataGrid>
						收款记录：
						<asp:DataGrid id="DataGridPay" runat="server" AutoGenerateColumns="False" Width="100%">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<Columns>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Employee" HeaderText="业务员"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Time" HeaderText="时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Id" HeaderText="凭证单号"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Amount" HeaderText="金额"></asp:BoundColumn>
							</Columns>
						</asp:DataGrid>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
