<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<%@ Page language="c#" Codebehind="SaleOutAdd1.aspx.cs" AutoEventWireup="false" Inherits="WsdnStarMarket.Order.SaleOutAdd1" %>
<!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 class="WsdnOrgInfo" colSpan="4"><asp:label id="Label2" runat="server" Font-Bold="True">销售出货单基本信息：</asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label17" runat="server">出货单号：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Id" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label11" runat="server">原凭证号</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Oldid" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label19" runat="server">业务员：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Employee" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label18" runat="server">客户：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Client" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label20" runat="server">部门：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Department" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label21" runat="server">报价时间：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Time" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label12" runat="server">仓管员：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_SEmployee" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label15" runat="server">仓管部门：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_SDepartment" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label23" runat="server">货仓：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Storehouse" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label25" runat="server">出货时间：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_STime" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label24" runat="server">出货方式：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_OutType" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label27" runat="server">运输方式：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_TranType" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label26" runat="server">收货地址：</asp:label></TD>
					<TD><asp:label id="Wsdn_StarCRM_Address" runat="server"></asp:label></TD>
					<TD width="10%">
					</TD>
					<TD>
					</TD>
				</TR>
				<TR>
					<TD width="10%"><asp:label id="Label14" runat="server">销售备注：</asp:label></TD>
					<TD><asp:label id="Info" runat="server"></asp:label></TD>
					<TD width="10%"><asp:label id="Label16" runat="server">出货备注：</asp:label></TD>
					<TD><asp:label id="SInfo" runat="server"></asp:label></TD>
				</TR>
				<TR>
					<TD colSpan="2"></TD>
					<TD colSpan="2"><asp:button id="BtCancel" runat="server" Text=" 撤销该单 "></asp:button>&nbsp;<FONT face="宋体">
						</FONT>
						<asp:Button id="Button2" runat="server" Text="完全出库" Visible="False"></asp:Button></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="Left" VerticalAlign="Bottom"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn Text="确认出库" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="SaleOutAdd1.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="数量" FooterText="数量"></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_Info" HeaderText="销售备注"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_SInfo" 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 HeaderText="删除">
									<ItemTemplate>
										<asp:CheckBox id="ChkDelete" Runat="server"></asp:CheckBox>
										<asp:TextBox id=TextBox1 accessKey='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "DeleteFlag"))%>' runat="server" CssClass='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Id"))%>' Width="0px">
										</asp:TextBox>
									</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 width="10%"><asp:label id="Label4" runat="server">产品名称</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Product" runat="server"></asp:textbox>&nbsp;&nbsp;<IMG onclick="javascript:doselectproduct();" alt="选择产品" src="../image/mini_post.gif"></TD>
					<TD width="10%"><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 width="10%"><asp:label id="Label6" runat="server">规格</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Spec" runat="server"></asp:textbox></TD>
					<TD width="10%"><asp:label id="Label7" runat="server">数量</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Num" runat="server" AutoPostBack="True"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD width="10%"><asp:label id="Label8" runat="server">销售单价</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Price" runat="server" AutoPostBack="True"></asp:textbox></TD>
					<TD width="10%"><asp:label id="Label10" runat="server">总价</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Amount" runat="server" MaxLength="200"></asp:textbox></TD>
				</TR>
				<TR class="WsdnOrgInfo">
					<TD width="10%"><asp:label id="Label13" runat="server">销售备注</asp:label></TD>
					<TD><asp:textbox id="Wsdn_StarCRM_Info" runat="server" Width="200px" MaxLength="200"></asp:textbox></TD>
					<TD width="10%"><asp:label id="Label22" runat="server">出货备注</asp:label><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><asp:textbox id="Wsdn_StarCRM_SInfo" runat="server" Width="200px" MaxLength="200"></asp:textbox></TD>
				</TR>
				</TD></TR>
				<TR>
				<TR>
					<TD colSpan="4">
						<HR width="80%">
					</TD>
				</TR>
				<TR>
					<TD align="right" colSpan="4"><INPUT onclick="javascript:history.go(-1);" type="button" value="<<返回">&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><asp:dropdownlist id="DropDownList2" runat="server">
							<asp:ListItem Value="输出销售出货单">输出销售出货单</asp:ListItem>
							<asp:ListItem Value="Word格式">Word格式</asp:ListItem>
							<asp:ListItem Value="Excel格式">Excel格式</asp:ListItem>
							<asp:ListItem Value="PowerPoint格式">PowerPoint格式</asp:ListItem>
						</asp:dropdownlist><asp:button id="Button1" runat="server" Text="销售出货单打印"></asp:button>&nbsp;
						<asp:Button id="Button4" runat="server" Text="退货&amp;撤销" Enabled="False"></asp:Button>&nbsp;
						<asp:button id="BtnDelete" runat="server" Text="删除" Enabled="False"></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>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
