<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<%@ Page language="c#" Codebehind="Buyorder.aspx.cs" AutoEventWireup="false" Inherits="WsdnStarMarket.Order.Buyorder" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>采购付款单</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:Css id="Css1" runat="server"></uc1:Css>
			<TABLE width="100%" border="0" cellpadding="0" cellspacing="1">
				<TR>
					<TD class="WsdnOrgTitle1">
						<asp:Label id="Label2" runat="server">采购付款单</asp:Label></TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo">
						<asp:Label id="Label1" runat="server">搜索条件：</asp:Label>
						<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
						<asp:DropDownList id="DropDownList1" runat="server">
							<asp:ListItem Value="Wsdn_StarCRM_Id">单号</asp:ListItem>
							<asp:ListItem Value="Wsdn_StarCRM_Client">客户</asp:ListItem>
							<asp:ListItem Value="Wsdn_StarCRM_Employee">业务员</asp:ListItem>
							<asp:ListItem Value="Wsdn_StarCRM_Time">录入时间</asp:ListItem>
							<asp:ListItem Value="Wsdn_StarCRM_Info">备注</asp:ListItem>
						</asp:DropDownList>
						<asp:Button id="Button1" runat="server" Text=" 搜索 "></asp:Button>&nbsp;
						<asp:Button id="BtAdd" runat="server" Text="新建采购付款单" Visible="False"></asp:Button>&nbsp;&nbsp;&nbsp;</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1">
						<asp:Label id="Label3" runat="server">待处理采购付款单</asp:Label></TD>
				</TR>
				<TR>
					<TD>
						<asp:datagrid id="DataGrid1" runat="server" PageSize="5" AllowPaging="True" AutoGenerateColumns="False"
							Width="100%">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<FooterStyle HorizontalAlign="Right"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="BuyOrder.aspx?id={0}"
									DataTextField="Wsdn_StarCRM_Id" HeaderText="采购单号"></asp:HyperLinkColumn>
								<asp:HyperLinkColumn Text="处理" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="BuyOrderAdd.aspx?id={0}"
									HeaderText="处理"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Oldid" HeaderText="原凭证号"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Client" HeaderText="供应商"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Employee" HeaderText="业务员"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Time" HeaderText="录入时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Info" HeaderText="备注"></asp:BoundColumn>
							</Columns>
							<PagerStyle CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
						<asp:Label id="Lgrid" runat="server"></asp:Label></TD>
				</TR>
				<TR>
					<TD><FONT face="宋体"></FONT>
					</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1">
						<asp:Label id="Label4" runat="server">已处理采购付款单</asp:Label></TD>
				</TR>
				<TR>
					<TD>
						<asp:datagrid id="Datagrid3" runat="server" PageSize="5" AllowPaging="True" AutoGenerateColumns="False"
							Width="100%">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<FooterStyle HorizontalAlign="Right"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="BuyOrder.aspx?id={0}"
									DataTextField="Wsdn_StarCRM_Id" HeaderText="采购单号"></asp:HyperLinkColumn>
								<asp:HyperLinkColumn Text="察看" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="BuyOrderAdd1.aspx?id={0}"
									HeaderText="察看"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Oldid" HeaderText="原凭证号"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Client" HeaderText="供应商"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Employee" HeaderText="业务员"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Time" HeaderText="录入时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Info" HeaderText="备注"></asp:BoundColumn>
							</Columns>
							<PagerStyle CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
						<asp:Label id="Lgrid1" runat="server"></asp:Label></TD>
				</TR>
				<TR>
					<TD><FONT face="宋体"></FONT>
					</TD>
				</TR>
				<TR>
					<TD align="right">
						<asp:datagrid id="Datagrid2" runat="server" PageSize="15" AllowPaging="True" AutoGenerateColumns="False"
							Width="100%" ShowFooter="True">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<FooterStyle HorizontalAlign="Right"></FooterStyle>
							<Columns>
								<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_Info" HeaderText="采购备注"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_SInfo" 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 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 CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
						<asp:Label id="Lgrid2" runat="server"></asp:Label>
					</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgTitle1" align="right"><FONT face="宋体"></FONT></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
