<%@ page language="C#" autoeventwireup="true" inherits="Admin_Supplier_Operate, GroupTGWeb_deploy" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<!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 runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript"> 
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxCompanyLogo").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImgeLogo").src = k; 
        }
    } 
       function openSingleChild1()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxAddressImage").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImge").src = k; 
        }
    } 
    </script>

    <style type="text/css">
        .style1
        {
            height: 15px;
        }
    </style>
</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        【
        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增供应商"></asp:Label>
        】</div>
    <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
        <tr>
            <td width="20%">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                供应商分类：
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListCategoryguid" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownListCategoryguid"
                    Display="Dynamic" ErrorMessage="请选择" InitialValue="-1" Width="298"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td align="right">
             <asp:Label ID="labelUserName" runat ="server" Text="登录名称："></asp:Label> </td>
             <td>
               <asp:TextBox ID="TextBoxUserName" runat ="server" CssClass="input2"></asp:TextBox>
               <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
               <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxMemLoginIDValue"
                   runat="server" ControlToValidate="TextBoxUserName" ErrorMessage="只能输入字母或数字"
                   ValidationExpression="^[a-zA-Z0-9_@]+" Display="Dynamic" ValidationGroup="memberValidate"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxName"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                    ControlToValidate="TextBoxUserName" Display="Dynamic" ErrorMessage="登录名称最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
               <asp:Button ID="ButtonSearchRepeate" runat="server" Text="检查是否存在" CssClass="bt3"  OnClick="ButtonSearchRepeate_Click" CausesValidation="false" />
               <asp:Label ID="LabelMessages" runat="server" Visible="false"></asp:Label>
             </td>
        </tr>
        <asp:Panel ID="PanelUserPwd" runat ="server">
        <tr>
           <td align="right">
             <asp:Label ID="LabelUserPwd" runat="server" Text="登录密码："></asp:Label>             
           </td>
           <td>
             <asp:TextBox ID="TextBoxUserPwd" runat="server" TextMode="Password" CssClass="input2"></asp:TextBox>
             <asp:Label ID="Label5" runat="server" Text="*" ForeColor="red"></asp:Label>
             <asp:RequiredFieldValidator ID="RequiredFieldValidatorPwd" runat="server" ControlToValidate="TextBoxUserPwd"
                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidatorPwd" runat="server"
                ControlToValidate="TextBoxUserPwd" Display="Dynamic" ErrorMessage="只能输入15个字符" ValidationExpression="^[\s\S]{0,15}$"></asp:RegularExpressionValidator>
            <br />
            <span id="MemberRegister3">6-15个英文字母或数字，字母区分大小写 </span>
           </td>
        </tr>
        <tr>
           <td align="right">
              <asp:Label ID="LabelUserPwd2" runat ="server" Text="确认密码：" ></asp:Label>
           </td>
           <td>
              <asp:TextBox ID="TextBoxUserPwd2" runat="server" TextMode="Password" CssClass="input2"></asp:TextBox>
              <asp:Label ID="Label6" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPwd2" runat="server" ControlToValidate="TextBoxUserPwd2"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorPwd2" runat="server"
                    ControlToValidate="TextBoxUserPwd2" Display="Dynamic" ErrorMessage="只能输入15个字符" ValidationExpression="^[\s\S]{0,15}$"></asp:RegularExpressionValidator>
                <asp:CompareValidator ID="CompareValidatorPwd" runat="server" ControlToCompare="TextBoxUserPwd"
                    ControlToValidate="TextBoxUserPwd2" ErrorMessage="登录密码输入不一致"></asp:CompareValidator>
                <br />
                <span id="MemberRegister4">再次输入密码 </span>
           </td>
        </tr>
        </asp:Panel>
        <tr>
            <td align="right">
                <asp:Label ID="LabelName" runat="server" Text="供应商名称："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" runat="server"
                    ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="供应商名称最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelAddress" runat="server" Text="联系地址："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxAddress" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorAddress" runat="server"
                    ControlToValidate="TextBoxAddress" Display="Dynamic" ErrorMessage="联系地址最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelContact" runat="server" Text="联系人："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxContact" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorContact" runat="server" ControlToValidate="TextBoxContact"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorContact" runat="server"
                    ControlToValidate="TextBoxContact" Display="Dynamic" ErrorMessage="联系人最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelContactTel" runat="server" Text="联系电话："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxContactTel" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label4" runat="server" Text="*" ForeColor="red"></asp:Label>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBoxContactTel"
                        Display="Dynamic" ErrorMessage="请填写正确的手机号" ValidationExpression="^(1[3|5|8][0-9])\d{8}$"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorContactTel" runat="server"
                    ControlToValidate="TextBoxContactTel" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>                
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelFax" runat="server" Text="传真："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxFax" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode3" runat="server"
                    ControlToValidate="TextBoxFax" Display="Dynamic" ErrorMessage="传真最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelEmail" runat="server" Text="Email(电子邮箱)："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" runat="server"
                    ControlToValidate="TextBoxEmail" Display="Dynamic" ErrorMessage="Email最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelSite" runat="server" Text="网址："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxSite" runat="server" CssClass="input2"></asp:TextBox>                
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode4" runat="server"
                    ControlToValidate="TextBoxSite" Display="Dynamic" ErrorMessage="网址最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
       <%-- <tr>
           <td align ="right" >
               <asp:Label ID="LabelAbscissa" runat ="server" Text="供应商地址横坐标"></asp:Label>                 
           </td>
           <td align="left">
               <asp:TextBox ID="TextBoxAbscissa" runat ="server" CssClass="input2" ></asp:TextBox>
               <asp:Label ID="Label8" runat="server" Text="*" ForeColor="red"></asp:Label>
               <asp:RequiredFieldValidator ID="RequiredFieldValidatorAbscissa" runat="server"
                    ControlToValidate="TextBoxAbscissa" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
           </td>
        </tr>
        <tr>
           <td align="right" >
              <asp:Label ID="LabelOrdinate" runat ="server" Text="供应商地址纵坐标"></asp:Label>   
           </td>
           <td>
               <asp:TextBox ID="TextBoxOrdinate" runat ="server" CssClass="input2" ></asp:TextBox>
               <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrdinate" runat="server"
                    ControlToValidate="TextBoxOrdinate" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
           </td>
        </tr>--%>
        <tr>
            <td align="right" class="style1">
                <asp:Label ID="LabelCompanyLogo" runat="server" Text="公司Logo："></asp:Label>
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="TextBoxCompanyLogo" runat="server" CssClass="input2"></asp:TextBox>
                <input id="ButtonSelectSingleImage" type="button" value="选择图片" class="bt3" onclick="openSingleChild()" /><asp:RegularExpressionValidator
                    ID="RegularExpressionValidatorMerchantCode5" runat="server" ControlToValidate="TextBoxCompanyLogo"
                    Display="Dynamic" ErrorMessage="Logo最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                <br />
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                <img id="ImageOriginalImgeLogo" alt="" src="~/images/noImage.gif" width="150" height="55"
                    runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelPrimeProducts" runat="server" Text="供应的主要商品："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxPrimeProducts" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label9" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPrimeProducts" runat="server"
                    ControlToValidate="TextBoxPrimeProducts" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode7" runat="server"
                    ControlToValidate="TextBoxPrimeProducts" Display="Dynamic" ErrorMessage="商品最多300个字符"
                    ValidationExpression="^[\s\S]{0,300}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelBusinessCulture" runat="server" Text="企业文化："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxBusinessCulture" runat="server" TextMode="MultiLine" Width="298"
                    Height="60"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorBusinessCulture" runat="server"
                    ControlToValidate="TextBoxBusinessCulture" Display="Dynamic" ErrorMessage="企业文化最多200个字符"
                    ValidationExpression="^[\s\S]{0,4000}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelBusinessEntity" runat="server" Text="企业法人："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxBusinessEntity" runat="server" CssClass="input2"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorBusinessEntity" runat="server"
                    ControlToValidate="TextBoxBusinessEntity" Display="Dynamic" ErrorMessage="企业法人最多50个字符"
                    ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelCompanyInfo" runat="server" Text="公司介绍："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxCompanyInfo" runat="server" TextMode="MultiLine" Width="298"
                    Height="60"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelRemark" runat="server" Text="备注："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxRemark" runat="server" TextMode="MultiLine" Width="298" Height="60"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorMerchantCode11" runat="server"
                    ControlToValidate="TextBoxRemark" Display="Dynamic" ErrorMessage="备注最多200个字符"
                    ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1">
                地图链接详细：
            </td>
            <td align="left" class="style1">
                <asp:TextBox ID="TextBoxImageLink" runat="server" CssClass="input2"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                供应商图片：
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxAddressImage" runat="server" CssClass="input2"></asp:TextBox>
                <input id="ButtonSelectSingleImage0" type="button" value="选择图片" class="bt3" onclick="openSingleChild1()" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <img id="ImageOriginalImge" alt="" src="~/images/noImage.gif" width="150" height="55"
                    runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr style="background-color: #EEEEEE;" class="btconfig">
            <td align="right">
            </td>
            <td align="left">
                <asp:Button ID="ButtonConfirm" runat="server" OnClick="ButtonConfirm_Click" Text="确定"
                    ToolTip="Submit" CssClass="bt2" />
                <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />
                <a href="Supplier_List.aspx">
                    <img src="images/back.png" border="0" align="top" /></a>
                <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
