<%@ Page language="c#" Codebehind="BuyorderAdd1.aspx.cs" AutoEventWireup="false" Inherits="WsdnStarMarket.Order.SaleOrderAdd11" smartNavigation="False" %>
<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<!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>
						<asp:datagrid id="DGValidate" runat="server" Visible="False" AutoGenerateColumns="False" Width="100%"
							Height="68px" 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></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"><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="BuyOrderAdd1.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"></asp:textbox>&nbsp;&nbsp;</TD>
					<TD><asp:label id="Label5" runat="server">计量单位</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Unit" runat="server"></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"></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" ReadOnly="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>
					<TD class="WsdnOrgTitle1"><asp:label id="Label13" runat="server">本次付款</asp:label></TD>
					<TD class="WsdnOrgInfo"><asp:textbox id="Wsdn_StarCRM_ThisAmount" runat="server" MaxLength="20"></asp:textbox><FONT face="宋体" color="#ff0033">*</FONT></TD>
					<TD class="WsdnOrgInfo"><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>
						<asp:label id="Label34" runat="server">付款备注</asp:label></TD>
					<TD class="WsdnOrgInfo">
						<asp:textbox id="Wsdn_StarCRM_OInfo" runat="server" Width="200px" MaxLength="200"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD>
						<asp:label id="Label28" runat="server" Enabled="False" Visible="False">采购备注</asp:label></TD>
					<TD>
						<asp:textbox id="Wsdn_StarCRM_Info" runat="server" Width="200px" ReadOnly="True" MaxLength="200"
							Enabled="False" Visible="False"></asp:textbox></TD>
					<TD>
						<asp:label id="Label33" runat="server" Enabled="False" Visible="False">出货备注</asp:label></TD>
					<TD>
						<asp:textbox id="Wsdn_StarCRM_SInfo" runat="server" Width="200px" ReadOnly="True" MaxLength="200"
							Enabled="False" Visible="False"></asp:textbox></TD>
				<TR class="WsdnOrgInfo">
					<TD></TD>
					<TD></TD>
					<TD></TD>
					<TD></TD>
				</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="确认付款" Font-Bold="True"></asp:button>&nbsp;
						<asp:button id="BtAdd" runat="server" Text="添加记录" Enabled="False" Visible="False"></asp:button>&nbsp;&nbsp;<asp:button id="Button1" runat="server" Text="付款单输出"></asp:button>
						<asp:DropDownList id="DropDownList1" runat="server">
							<asp:ListItem Value="Word格式">Word格式</asp:ListItem>
							<asp:ListItem Value="Html格式">Html格式</asp:ListItem>
						</asp:DropDownList>&nbsp;
						<asp:button id="BtCancel" runat="server" ToolTip="删除整一张单" Text="完全删除"></asp:button>&nbsp;
						<asp:Button id="Button4" runat="server" Text="退款&amp;撤销"></asp:Button>&nbsp;&nbsp;
						<asp:button id="Button3" runat="server" Text="返回列表"></asp:button>
						<br>
						<asp:label id="Msg" runat="server" ForeColor="Red"></asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="4" class="WsdnOrgInfo">
						<P>
							<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><FONT face="宋体">&nbsp;</FONT>
							<asp:button id="BtFile" runat="server" ToolTip="添加完毕并存盘之后方可上传相关文件" Text="上传相关文件"></asp:button></P>
						<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><FONT face="宋体">
							<HR width="80%">
							<asp:label id="Label40" runat="server">相关文件：</asp:label>
							<asp:datagrid id="DataGridFile" runat="server" Width="100%" AutoGenerateColumns="False">
								<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
								<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="Wsdn_StarCRM_Id" HeaderText="ID"></asp:BoundColumn>
									<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:HyperLinkColumn Text="下载" Target="_blank" DataNavigateUrlField="Wsdn_StarCRM_Url" DataNavigateUrlFormatString="../UploadFile/{0}"
										HeaderText="下载"></asp:HyperLinkColumn>
									<asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid>
							<HR width="80%">
							付款记录：</FONT>
						<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>
						<HR style="WIDTH: 80.07%; HEIGHT: 2px" width="80.07%" SIZE="2">
						<asp:label id="Label36" runat="server" Width="240px">[确认银行往来账记录：付款记录]</asp:label>
						<asp:label id="Label37" runat="server" Width="86px">银行账号：</asp:label>
						<asp:textbox id="Wsdn_StarCRM_Bank" runat="server" Width="182px"></asp:textbox><IMG onclick="javascript:doselect('银行账号','Wsdn_StarCRM_Bank');" height="14" alt="察看该项目"
							src="../image/mini_post.gif" width="13"><FONT face="宋体">&nbsp; </FONT>
						<asp:label id="Label38" runat="server">金额：</asp:label>
						<asp:textbox id="Wsdn_StarCRM_BankAmount" runat="server" Width="96px"></asp:textbox>
						<asp:button id="Button5" runat="server" Width="64px" Text="提交"></asp:button>
						<br><asp:label id="Label39" runat="server">(注：如录入错误可用负数冲账，一旦录入不可修改)</asp:label>
						<asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False">
							<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_BankAmount" HeaderText="金额"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Bnak" HeaderText="银行账号"></asp:BoundColumn>
							</Columns>
						</asp:datagrid>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
