<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script src="../../utility/region.helper.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="PageTitleArea">
                <div class="PageTitle">添加发货信息</div>
                <div style="width: 80%;">发货信息方便打印快递单时用来选择 </div>
            </div>
            <Hishop:AddShipper ID="AddShipper" runat="server">
                <SkinTemplate>
                    <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="formTableList">
                        <tr>
                            <td align="right" class="leftTD" style="height: 40px; width: 141px;">发货点：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtShipperTag" runat="server" ></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtShipperTagTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="ValidateTarget1" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtShipperTag" Description="发货点不能为空，用来选择从哪个点发货" Nullable="false" ValidateGroup="groupProfile">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="发货点不能为空，长度限制在30个字符以内" LowerBound="0" UpperBound="30" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 40px; width: 141px;">发货人姓名：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtShipperName" runat="server"></asp:TextBox>
                            </td>
                            <td class="rightTD">
                                <div id="txtShipperNameTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="ValidateTarget2" runat="server" ContainerId="ValidatorContainer"  ControlToValidate="txtShipperName" ValidateGroup="groupProfile" Nullable="false" Description="发货人姓名不能为空，长度限制在50个字符以内">
                                    <Validators>
                                         <Hishop:InputStringClientValidator ErrorMessage="发货人姓名不能为空，长度限制在50个字符以内" LowerBound="0" UpperBound="50" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">发货地区：</td>
                            <td colspan="2" class="rightTD">
                                <Hishop:RegionSelector runat="server" ID="ddlReggion" /></td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">发货详细地址：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtAddressTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="ValidateTarget3" runat="server" ContainerId="ValidatorContainer" ControlToValidate="txtAddress" Description="发货详细地址不能为空，长度限制在300个字符以内" Nullable="false" ValidateGroup="groupProfile">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="发货详细地址不能为空，长度限制在300个字符以内" LowerBound="0" UpperBound="300" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">手机号码：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtCellPhone" runat="server"></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtCellPhoneTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="ValidateTarget4" ContainerId="ValidatorContainer" runat="server" ValidateGroup="groupProfile" Nullable="true" ControlToValidate="txtCellPhone" Description="手机号码的长度限制在20个字符以内">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="手机号码的长度限制在20个字符以内" LowerBound="0" UpperBound="20" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">电话号码：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtTelPhone" runat="server"></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtTelPhoneTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="validateTarget5" ContainerId="ValidatorContainer" runat="server" ValidateGroup="groupProfile" Nullable="true" ControlToValidate="txtTelPhone" Description="电话号码的长度限制在20个字符以内">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="电话号码的长度限制在20个字符以内" LowerBound="0" UpperBound="20" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">邮政编码：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtZipcode" runat="server"></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtZipcodeTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="validateTarget6" ContainerId="ValidatorContainer" runat="server" ValidateGroup="groupProfile" Nullable="true" ControlToValidate="txtZipcode" Description="邮政编码的长度限制在20个字符以内">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="邮政编码的长度限制在20个字符以内" LowerBound="0" UpperBound="20" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">设为默认：</td>
                            <td colspan="2" class="rightTD">
                                 <Hishop:YesNoRadioButtonList id="chkIsDefault" runat="server" /></td>
                        </tr>
                        <tr>
                            <td align="right" class="leftTD" style="height: 35px; width: 141px;">备注：</td>
                            <td class="rightTD">
                                <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="450" Height="120"></asp:TextBox></td>
                            <td class="rightTD">
                                <div id="txtRemarkTip" runat="server"></div>
                                <Hishop:ValidateTarget ID="validateTarget7" ContainerId="ValidatorContainer" runat="server" ValidateGroup="groupProfile" Nullable="true" ControlToValidate="txtRemark" Description="备注的长度限制在20个字符以内">
                                    <Validators>
                                        <Hishop:InputStringClientValidator ErrorMessage="备注的长度限制在20个字符以内" LowerBound="0" UpperBound="20" />
                                    </Validators>
                                </Hishop:ValidateTarget>
                            </td>
                        </tr>
                        <tr>
                        <td class="bottonLeftTD">&nbsp;</td>
                        <td class="rightTD">
                            <table>
                                <tr>
                                    <td valign="top" style="padding-top: 5px;">
                                        <asp:Button ID="btnAddShipper" runat="server" Text="确定"  OnClientClick="return PageIsValid('groupProfile');" CssClass="inp_L1" /></td>
                                    <td>
                                </tr>
                            </table>
                        </td>
                        <td class="rightTD"> &nbsp;</td>
                      </tr>
                    </table>
                </SkinTemplate>
            </Hishop:AddShipper>
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
 