<%@ Page language="c#" Codebehind="Preferential.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.Preferential" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>Preferential</title>
		<script language="javascript">
			function advsearch()
			{
				if(document.Form1.cbAddToAdvSearch.checked)
				{
					eval("AdvSearch" + ".style.display=\"\";");
					eval("document.Form1.chkChoice.checked=false");
				}
				else
				{
					eval("AdvSearch" + ".style.display=\"none\";");
				}
			}
		</script>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />代理参数设定</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title">经代理购买商品优惠设定</div>
		        <div class="frame_content">
			        <table class="tableBorder" cellspacing="1" cellpadding="1" width="98%" align="center"
                        border="0" id="Table2">
				        <tr>
					        <td class="forumRowHighlight">
					            <asp:datagrid id="dgCustomField" runat="server" Width="50%" HeaderStyle-CssClass="summary-title"
							        HorizontalAlign="Left" DataKeyField="AgentDiscountID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							        <Columns>
								        <asp:TemplateColumn HeaderText="优惠折扣" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="left"
									        HeaderStyle-HorizontalAlign="left">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "AgentDis")%>%
									        </ItemTemplate>
									        <EditItemTemplate>
										        <asp:TextBox ID="AgentDis" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AgentDis") %>' TextMode="SingleLine" Width="50px">
										        </asp:TextBox>%
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="最低消费金额" HeaderStyle-Width="150px" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "AgentLower")%>元
									        </ItemTemplate>
									        <EditItemTemplate>
										        <asp:TextBox ID="AgentLower" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AgentLower") %>' TextMode="SingleLine" Width="50px">
										        </asp:TextBox>元
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消">
								        </asp:EditCommandColumn>
							        </Columns>
						        </asp:datagrid>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
	        <div class="frame">
		        <div class="frame_title">代理负责人提成比例设定</div>
		        <div class="frame_content">
			        <table class="tableBorder" cellspacing="1" cellpadding="1" width="98%" align="center"
                        border="0" id="Table1">
				        <tr>
					        <td class="forumRowHighlight">
					            <asp:datagrid id="dgCustomField1" runat="server" Width="50%" HeaderStyle-CssClass="summary-title"
							        HorizontalAlign="Left" DataKeyField="AgentDiscountID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							        <Columns>
								        <asp:TemplateColumn HeaderText="代理负责人提成比例" HeaderStyle-Width="300px" ItemStyle-Width="300px" ItemStyle-HorizontalAlign="left"
									        HeaderStyle-HorizontalAlign="left">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "AgentDis")%>%
									        </ItemTemplate>
									        <EditItemTemplate>
										        <asp:TextBox ID="AgentDis" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AgentDis") %>' TextMode="SingleLine" Width="50px">
										        </asp:TextBox>%
									        </EditItemTemplate>
								        </asp:TemplateColumn>								        
								        <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消">
								        </asp:EditCommandColumn>
							        </Columns>
						        </asp:datagrid>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
	        <div class="frame">
		        <div class="frame_title">代销员提成比例设定</div>
		        <div class="frame_content">
			        <table class="tableBorder" cellspacing="1" cellpadding="1" width="98%" align="center"
                        border="0" id="Table3">
				        <tr>
					        <td class="forumRowHighlight">
					            <asp:datagrid id="dgCustomField2" runat="server" Width="50%" HeaderStyle-CssClass="summary-title"
							        HorizontalAlign="Left" DataKeyField="AgentDiscountID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							        <Columns>
								        <asp:TemplateColumn HeaderText="代销员提成比例" HeaderStyle-Width="300px" ItemStyle-Width="300px" ItemStyle-HorizontalAlign="left"
									        HeaderStyle-HorizontalAlign="left">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "AgentDis")%>%
									        </ItemTemplate>
									        <EditItemTemplate>
										        <asp:TextBox ID="AgentDis" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AgentDis") %>' TextMode="SingleLine" Width="50px">
										        </asp:TextBox>%
									        </EditItemTemplate>
								        </asp:TemplateColumn>								        
								        <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消">
								        </asp:EditCommandColumn>
							        </Columns>
						        </asp:datagrid>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
