<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="ShippingAdd.aspx.cs" Inherits="SocoShop.Web.Admin.ShippingAdd" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Common" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	 
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>物流<%=ShopCommon.GetAddUpdate()%></div>
<div class="add">
	<ul>
		<li class="left">名称：</li>
		<li class="right"><SkyCES:TextBox ID="Name" CssClass="input" runat="server" Width="400px" CanBeNull="必填" /></li>
	</ul>
	<ul>
		<li class="left">描述：</li>
		<li class="right"><SkyCES:TextBox ID="Description" CssClass="input" runat="server" Width="400px" TextMode="MultiLine" Height="80px" /></li>
	</ul>
	<ul>
		<li class="left">是否启用：</li>
		<li class="right"><asp:RadioButtonList ID="IsEnabled" runat="server" RepeatDirection="Horizontal"><asp:ListItem Value="0">否</asp:ListItem><asp:ListItem Value="1" Selected="True">是</asp:ListItem></asp:RadioButtonList></li>
	</ul>
	<ul>
		<li class="left">运费方式：</li>
		<li class="right"><asp:RadioButtonList ID="ShippingType" runat="server" RepeatDirection="Horizontal" onclick="selectShippingType()"><asp:ListItem Value="1">固定运费</asp:ListItem><asp:ListItem Value="2">按重量计算</asp:ListItem><asp:ListItem Value="3">按商品数量计算</asp:ListItem></asp:RadioButtonList></li>
	</ul>
	<ul style="display:none" id="ShippingTypeDiv">
		<li class="left">首重：</li>
		<li class="right"><SkyCES:TextBox ID="FirstWeight" CssClass="input" runat="server" Width="80px" Text="0" CanBeNull="必填" RequiredFieldType="数据校验"  />（克）</li>
		<li class="left">续重：</li>
		<li class="right"><SkyCES:TextBox ID="AgainWeight" CssClass="input" runat="server" Width="80px" Text="0" CanBeNull="必填" RequiredFieldType="数据校验"/>（克）</li>
	</ul>
</div>
<div class="action">
    <asp:Button CssClass="button" ID="SubmitButton" Text=" 确 定 " runat="server"  OnClick="SubmitButton_Click" />
</div>
<script language="javascript" type="text/javascript">
    function selectShippingType(){
        var shippingType=getRadioValue(os("name","ctl00$ContentPlaceHolder$ShippingType"));
        if(shippingType=="2"){
            o("ShippingTypeDiv").style.display="";
        }
        else{
            o("ShippingTypeDiv").style.display="none";
        }
    }
    selectShippingType();
</script>
</asp:Content>
