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

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="China315" %>
<!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>修改公司信息</title>
    <link rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/CommonJS.js"></script>

    <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("TextBoxImage").value = k.substring(lastIndex+1,strLen); 
          //  document.getElementById("ImageOriginalImge").src = k; 
            var imgvalue = new Array();
            imgvalue = k.split(",");
            document.getElementById("TextBoxImage").value = imgvalue[0]; 
            document.getElementById("ImageOriginalImge").src = imgvalue[1]; 
        }
    } 
      //验证码
     function reloadcode(){
        var verify=document.getElementById('safecode');
        verify.setAttribute('src','imagecode.aspx?'+Math.random());
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
        runat="server">
    </asp:ScriptManager>
    <div class="main">
      
            <div class="title">
                <asp:Label ID="Label1" runat="server" Text="修改公司基本信息"></asp:Label></div>
           
                <table style="width: 100%" cellspacing="1" cellpadding="0">
                    <tr>
                        <td align="right" width="20%">
                            <asp:Localize ID="LocalizeCompanyName" runat="server" Text=""></asp:Localize>公司名称：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCompanyName" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label5" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxCompanyName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" width="20%">
                            <asp:Localize ID="LocalizeCompanyShortName" runat="server" Text=""></asp:Localize>企业简称：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCompanyShortName" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label6" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName0" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxCompanyShortName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" width="20%">
                            <asp:Localize ID="LocalizeMainBusiness" runat="server" Text=""></asp:Localize>主营业务：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxMainBusiness" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label7" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName1" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxMainBusiness"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" width="20%">
                            <asp:Localize ID="LocalizeRegisteredFunds" runat="server" Text=""></asp:Localize>注册资金：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxRegisteredFunds" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label8" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName2" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxRegisteredFunds" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxRegisteredFunds"
                                runat="server" ControlToValidate="TextBoxRegisteredFunds" Display="Dynamic" ErrorMessage="输入金额有误"
                                ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" width="20%">
                            <asp:Localize ID="LocalizeCompanyNature" runat="server" Text=""></asp:Localize>企业性质：
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListCompanyNature" runat="server" CssClass="allinput2">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="Localize1" runat="server" Text=""></asp:Localize>成立时间：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxSendTime1" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" runat="server"
                                ControlToValidate="TextBoxSendTime1" Display="Dynamic" ErrorMessage="时间格式不正确"
                                ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <img id="img1" alt="" src="images/Calendar.png" style="width: 16px; height:18px;position:relative; top:4px" />
                            <China315:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxSendTime1"
                                PopupButtonID="img1" CssClass="ajax__calendar" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeMainWay" runat="server" Text=""></asp:Localize>主营方向：
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListMainWay" runat="server" CssClass="allinput2">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeSaleProduce" runat="server" Text=""></asp:Localize>销售的产品：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxSaleProduce" runat="server" CssClass="allinput1" Width="300px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxSaleProduce"
                                runat="server" ControlToValidate="TextBoxSaleProduce" Display="Dynamic" ErrorMessage="最多250个字符 "
                                ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeBuyProduce" runat="server" Text=""></asp:Localize>采购的产品：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxBuyProduce" runat="server" CssClass="allinput1" Width="300px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxBuyProduce"
                                runat="server" ControlToValidate="TextBoxBuyProduce" Display="Dynamic" ErrorMessage="最多250个字符 "
                                ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeCompanyIntroduce" runat="server" Text=""></asp:Localize>公司简介：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCompanyIntroduce" runat="server" TextMode="MultiLine" Width="440"
                                Height="150px" CssClass="allinput1"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="该值不能为空 "
                                ControlToValidate="TextBoxCompanyIntroduce" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="Localize1DetailAddress" runat="server" Text=""></asp:Localize>公司详细地址：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxDetailAddress" runat="server" Width="440" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label9" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName3" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxDetailAddress" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxDetailAddress"
                                runat="server" ControlToValidate="TextBoxDetailAddress" Display="Dynamic" ErrorMessage="最多250个字符 "
                                ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="Localize12" runat="server" Text="企业网站："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCompanyWebSite" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxDetailAddress0"
                                runat="server" ControlToValidate="TextBoxCompanyWebSite" Display="Dynamic" ErrorMessage="最多250个字符 "
                                ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <%--<tr>
            <td align="right">
                <asp:Localize ID="Localize12" runat="server" Text=""></asp:Localize>用户名：
            </td>
            <td >
                <asp:TextBox ID="TextBox14" runat="server" Enabled="False"  CssClass="allinput1" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right"><asp:Localize ID="Localize13" runat="server" Text=""></asp:Localize> 登录密码：</td>
            <td><asp:TextBox ID="TextBox13" runat="server" Enabled="False"  CssClass="allinput1" ></asp:TextBox>
            </td>
        </tr>--%>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeBindMobile" runat="server" Text=""></asp:Localize>
                            绑定手机：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxBindMobile" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label12" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBoxBindMobile" runat="server"
                                ControlToValidate="TextBoxBindMobile" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeContact" runat="server" Text=""></asp:Localize>联系人：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxContact" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label10" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName4" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxContact"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeEmail" runat="server" Text=""></asp:Localize>电子邮箱：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="allinput2"></asp:TextBox>
                            <asp:Label ID="Label11" runat="server" ForeColor="red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCompantName5" runat="server"
                                ErrorMessage="该值不能为空 " ControlToValidate="TextBoxEmail" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorTextBoxEmail" runat="server"
                                ControlToValidate="TextBoxEmail" Display="Dynamic" ErrorMessage="邮箱格式不正确！" ValidationExpression="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeTel" runat="server" Text=""></asp:Localize>固定电话：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTel" runat="server" CssClass="allinput2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeFax" runat="server" Text=""></asp:Localize>传真号码：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxFax" runat="server" CssClass="allinput2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="Localize2" runat="server" Text=""></asp:Localize>邮编：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxPostcode" runat="server" CssClass="allinput2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="bottom">
                            <asp:Localize ID="LocalizeImage" runat="server" Text=""></asp:Localize>企业图片：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxImage" runat="server" CssClass="allinput2"></asp:TextBox>
                           
                            <input id="ButtonSelectSingleImage" type="button" value="选择图片" onclick="openSingleChild()"
                                class="bnt1" /> 
                                <img id="ImageOriginalImge" runat="server" alt="" src="" width="100" height="60" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Localize ID="LocalizeCheckCode" runat="server" Text="验证码："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxCode" runat="server" CssClass="allinput2"></asp:TextBox>
                            <img src="imagecode.aspx" id="safecode" border="0" onclick="reloadcode()" alt="看不清?点一下"
                                style="cursor: hand; padding: 2px 8px 0pt 3px;" />
                        </td>
                    </tr><tr style="background-color: rgb(238, 238, 238);">
<td align="right">  </td><td> <div class="bottomLine">
        <asp:Button ID="ButtonConfrim" runat="server" Text="确认" CssClass="bnt1" OnClick="ButtonConfrim_Click" />
        <asp:Button ID="Button2" runat="server" Text="取消" CssClass="bnt1 cancel" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
        <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </div></td></tr>
                </table>
         
    </div>
   
    </form>
</body>
</html>
