<%@ Page language="c#" Codebehind="Products.aspx.cs" AutoEventWireup="false" Inherits="WsdnStarMarket.Storehouse.Products" %>
<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Products</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 cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD class="WsdnOrgTitle1" colSpan="3">
						<P><STRONG>商品/产品资料</STRONG>&nbsp;<STRONG>(管理公司的产品档案)</STRONG>&nbsp;</P>
					</TD>
				</TR>
				<TR CssClass="WsdnOrgTitle1">
					<TD><asp:label id="Label1" runat="server">产品名称:</asp:label><asp:textbox id="Wsdn_StarCRM_Name" runat="server" Width="65px"></asp:textbox>&nbsp;&nbsp;
					</TD>
					<TD align="left">&nbsp;
						<asp:dropdownlist id="DropDownList1" runat="server" Width="57px">
							<asp:ListItem Value="可用">可用</asp:ListItem>
							<asp:ListItem Value="回收站">回收站</asp:ListItem>
						</asp:dropdownlist>&nbsp;
						<asp:button id="Button1" runat="server" Text="搜索"></asp:button>&nbsp;<asp:button id="Button2" runat="server" Text="更多条件↓"></asp:button></TD>
					<TD>&nbsp;&nbsp;
						<asp:button id="ImBtAdd" runat="server" Text="添加记录"></asp:button>&nbsp;<asp:button id="BtnDelete" runat="server" Text="删除"></asp:button>&nbsp;&nbsp;
					</TD>
				<TR>
				<TR CssClass="WsdnOrgTitle1">
					<TD colSpan="3"><asp:panel id="Panel1" runat="server" Visible="False">
<asp:Label id="Label4" runat="server">产品编码:</asp:Label>
<asp:TextBox id="Wsdn_StarCRM_Sname" runat="server" Width="65px"></asp:TextBox>&nbsp; 
<asp:Label id="Label3" runat="server">型号规格:</asp:Label>
<asp:TextBox id="Wsdn_StarCRM_Spec" runat="server" Width="65px"></asp:TextBox>&nbsp; 
<asp:Label id="Label5" runat="server">产品类型:</asp:Label>
<asp:TextBox id="Wsdn_StarCRM_Type" runat="server" Width="65px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp; 
<asp:Label id="Label7" runat="server">涉及部门:</asp:Label>
<asp:TextBox id="Wsdn_StarCRM_Department" runat="server" Width="65px"></asp:TextBox>&nbsp; 
<asp:Label id="Label2" runat="server">备注:</asp:Label>
<asp:TextBox id="Wsdn_StarCRM_Info" runat="server" Width="65px"></asp:TextBox>&nbsp;&nbsp;&nbsp; 
      </asp:panel></TD>
				<TR>
					<TD colSpan="3"><asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True"
							PageSize="15">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<FooterStyle HorizontalAlign="Right"></FooterStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="选择">
									<ItemTemplate>
										<INPUT type="radio" onclick='selectproduct("<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Name"))%>","<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Unit"))%>","<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Id"))%>","<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Spec"))%>","<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_MarketPrice"))%>","<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_AgentPrice"))%>")' name='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Name"))%>' title='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Name"))%>' value='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_Name"))%>'>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn Text="编辑" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="ProductEdit.aspx?id={0}&amp;mode=edit"
									HeaderText="编辑"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Name" HeaderText="产品名称"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Sname" HeaderText="产品编码"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Type" 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_From" HeaderText="产地"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_MarketPrice" HeaderText="市场价"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_AgentPrice" HeaderText="代理价"></asp:BoundColumn>
								<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 CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:datagrid><asp:label id="Lgrid" runat="server"></asp:label>
						<asp:Button id="Button3" runat="server" Text="输出Excel"></asp:Button></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
