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

<%@ 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("ImageOriginalImge").src = k; 
        }
    } 
     </script> 
</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" >
                    <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:RequiredFieldValidator ID="RequiredFieldValidatorContactTel" 
                            runat="server" ControlToValidate="TextBoxContactTel" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorRemark" 
                        runat="server" ControlToValidate="TextBoxContactTel" Display="Dynamic" 
                        ErrorMessage="联系电话最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </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="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" 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="选择图片" 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="ImageOriginalImge" alt="" src="~/images/noImage.gif" runat="server" /></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="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="440" 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="440" 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="440" 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" >
    
                    &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>
