<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<%@ Page language="c#" Codebehind="CarriageLadderManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.CarriageLadderManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextCarriageLadder")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<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">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--
		
		
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:Label id="lbEditID" runat="server" Visible="False"></asp:Label>
			<uc1:languagesdeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:languagesdeal>
			<table cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextPayAndSend")%>--&gt;<%=myLanguagesDeal.GetMyString("TextCarriageLadder")%></SPAN>
													</TD>
													<TD>
														<asp:ImageButton id="btAddNew" runat="server" ImageUrl="../Images/Admin/fb-new.gif" onclick="btAddNew_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("CarriageLadderTextAddNew")%><!--新增--></TD>
												</TR>
											</TABLE>
											<HR noShade SIZE="1">
											<asp:datagrid id="dgList" runat="server" DataKeyField="LadderID" Width="100%" AutoGenerateColumns="False"
												AllowPaging="false" PageSize="50" CssClass="table-shangxia">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="LadderName" HeaderText="CarriageLadderTextName">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="LadderMode" HeaderText="CarriageLadderTextMode">
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="TextOperation">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btEdit" Text="修改" CssClass="go-wenbenkuang" CommandName="Edit" Runat="server"></asp:Button>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
										</asp:panel></FONT><asp:panel id="Pan2" runat="server" Visible="False">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD>
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextCarriageLadder")%>--&gt;
																	<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN></TD>
															<TD align="right" width="50"><!--BUTTON_BEGIN-->
																<TABLE>
																	<TR>
																		<TD vAlign="bottom" noWrap>
																			<asp:ImageButton id="ibtReturn" runat="server" ImageUrl="../Images/Admin/fb-cancel.gif" CausesValidation="False" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%><!--返回--></TD>
																	</TR>
																</TABLE> <!--BUTTON_END--></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<HR noShade SIZE="1">
										<TABLE cellSpacing="1" cellPadding="5" width="700" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("CarriageLadderTextName")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:textbox id="txtLadderName" runat="server" Width="300px" CssClass="wenbenkuang" MaxLength="50"></asp:textbox>
													<asp:requiredfieldvalidator id="rfvLadderName" runat="server" ErrorMessage="请输入名称" Display="Dynamic" ControlToValidate="txtLadderName" ForeColor="#FF0000"></asp:requiredfieldvalidator></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right"><%=myLanguagesDeal.GetMyString("CarriageLadderTextMode")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad">
													<asp:RadioButtonList id="rblLadderMode" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="0" Selected="True">按商品总重量</asp:ListItem>
														<asp:ListItem Value="1">商品总单金额</asp:ListItem>
													</asp:RadioButtonList></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right" width="200"><%=myLanguagesDeal.GetMyString("CarriageLadderTextLadderInfo")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
												<TD class="pad" width="500">
													<TABLE width="500" border="0">
														<TR>
															<TD width="100"><%=myLanguagesDeal.GetMyString("CarriageLadderTextMinValue")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
															<TD colSpan="2">
																<asp:textbox id="txtMinValue" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"></asp:textbox>
																<asp:CompareValidator id="cpvMinValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtMinValue"
																	Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																<asp:requiredfieldvalidator id="rfvMinValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtMinValue" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
														</TR>
														<TR>
															<TD><%=myLanguagesDeal.GetMyString("CarriageLadderTextMaxValue")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
															<TD colSpan="2">
																<asp:textbox id="txtMaxValue" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"></asp:textbox>
																<asp:CompareValidator id="cpvMaxValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtMaxValue"
																	Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																<asp:requiredfieldvalidator id="rfvMaxValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtMaxValue" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
														</TR>
														<TR>
															<TD><%=myLanguagesDeal.GetMyString("CarriageLadderTextLadderCharge")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
															<TD>
																<asp:textbox id="txtLadderCharge" runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="4"></asp:textbox>
																<asp:CompareValidator id="cpvLadderCharge" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtLadderCharge"
																	Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																<asp:requiredfieldvalidator id="rfvLadderCharge" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtLadderCharge" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
														</TR>
														<TR>
															<TD></TD>
															<TD colSpan="2">
																<asp:button id="btLadderAddItem" runat="server" CssClass="go-wenbenkuang" CausesValidation="false"
																	Text="添加" onclick="btLadderAddItem_Click"></asp:button></TD>
														</TR>
													</TABLE>
													<asp:datagrid id="dgLadderItem" runat="server" DataKeyField="ItemID" Width="100%" AutoGenerateColumns="False">
														<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
														<Columns>
															<asp:TemplateColumn HeaderText="CarriageLadderTextMinValue">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:textbox id="txtItemMinValue" Text='<%# DataBinder.Eval(Container.DataItem, "MinValue")%>' runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="10">
																	</asp:textbox>
																	<asp:CompareValidator id="cpvItemMinValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtItemMinValue"
																		Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="CarriageLadderTextMaxValue">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:textbox id="txtItemMaxValue" Text='<%# DataBinder.Eval(Container.DataItem, "MaxValue")%>' runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="12">
																	</asp:textbox>
																	<asp:CompareValidator id="cpvItemMaxValue" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtItemMaxValue"
																		Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="CarriageLadderTextLadderCharge">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:textbox id="txtItemLadderCharge" Text='<%# DataBinder.Eval(Container.DataItem, "LadderCharge")%>' runat="server" Width="50px" CssClass="wenbenkuang" MaxLength="10">
																	</asp:textbox>
																	<asp:CompareValidator id="cpvItemLadderCharge" runat="server" ErrorMessage="请输入数字" Display="Dynamic" ControlToValidate="txtItemLadderCharge"
																		Type="Double" Operator="DataTypeCheck" ForeColor="#FF0000"></asp:CompareValidator>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="TextOperation">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:Button id="btLadderItemDel" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"
																		CausesValidation="false"></asp:Button>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
													</asp:datagrid></FONT></TD>
											</TR>
											<TR bgColor="#ffffff">
												<TD align="right">&nbsp;</TD>
												<TD class="pad " width="540">&nbsp;
													<asp:button id="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit_Click"></asp:button>
													<asp:button id="btSave" runat="server" CssClass="go-wenbenkuang" Text="更新信息" onclick="btSave_Click"></asp:button>&nbsp;&nbsp;
												</TD>
											</TR>
										</TABLE>
									</asp:panel>
									<div align="center"><asp:label id="lbInfo" runat="server"></asp:label></div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
