<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_bidagent.aspx.cs" Inherits="Web.cg.admin.login_bidagent" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
<link href="../../css/admincss/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../css/popcalendar.js"></script>
</head>
<body>
    <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">系统设置</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >

   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                招标代理设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        
<div>
<asp:GridView ID="gvBidagent" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" 
        onrowdatabound="gv_RowDataBound" onrowdeleting="gvBidagent_RowDeleting" 
        onrowcreated="gvBidagent_RowCreated" 
        onselectedindexchanging="gvBidagent_SelectedIndexChanging" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="company" HeaderText="公司名称" ReadOnly="True" />
                    <asp:BoundField DataField="companyid" HeaderText="信用代码" ReadOnly="True" />
                    <asp:BoundField DataField="corporate" HeaderText="法人代表" ReadOnly="True" />
                    <asp:BoundField DataField="contacts" HeaderText="联系人" ReadOnly="True" />
                    <asp:BoundField DataField="address" HeaderText="地址" ReadOnly="True" />
                    <asp:BoundField DataField="tel" HeaderText="电话" ReadOnly="True" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" ReadOnly="True" />        
                    <asp:CommandField HeaderText="操作" SelectText="修改" ShowSelectButton="True" />                             
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>

           <table class ="table "  border = "1"  cellpadding ="0" cellspacing ="0"  style ="width :50% ; margin-top :10px; margin-bottom :10px"><tr>
<td style ="height :40px;width :120px; " class ="tabletd_right ">公司名称</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbCompany" runat="server" Width ="250px" ></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbCompany" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="Add" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="tbCompany" Display="Dynamic" 
                    ErrorMessage="不能超过25个字符。" ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{0,25}$" 
                                                    ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>

                </td>



                     </tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">信用代码</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbCompanyid" runat="server" Width ="200px" ></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                        ControlToValidate="tbCompanyid" Display="Dynamic" ErrorMessage="不要超过50个字符！" 
                        ValidationExpression="^[\w|\.|\@]{0,50}$" ValidationGroup="Add" 
                        ForeColor="Red"></asp:RegularExpressionValidator>

                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">法人代表</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbCorporate" runat="server" Width ="80px" ></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" 
                    ControlToValidate="tbCorporate" Display="Dynamic" 
                    ErrorMessage="不能超过25个字符。" ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{0,25}$" 
                                                    ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>

                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">联系人</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbContacts" runat="server" Width ="80px" ></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" 
                    ControlToValidate="tbContacts" Display="Dynamic" 
                    ErrorMessage="不能超过25个字符。" ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{0,25}$" 
                                                    ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>

                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">地址</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbAddress" runat="server" Width ="400px" ></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                    ControlToValidate="tbAddress" Display="Dynamic" 
                    ErrorMessage="不能超过50个字符。" ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{0,50}$" 
                                                    ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>

                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">电话</td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbTel" runat="server" Width ="150px" ></asp:TextBox>
                    (例：010-12345678-1234或010-12345678或139012345678)<asp:RegularExpressionValidator 
                        ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="tbTel" Display="Dynamic" ErrorMessage="请按示例填写！" 
                        ValidationExpression="^\d{0,4}-\d{0,8}-\d{0,6}|\d{0,4}-\d{0,12}|\d{0,12}$" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">邮箱</td>
                      <td class ="tabletd_left ">   
                         
                <asp:TextBox ID="tbEmail" runat="server" Width ="200px" ></asp:TextBox>
                    (例：123@abc.com)<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="tbEmail" Display="Dynamic" ErrorMessage="不要有非法字符！" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                        ControlToValidate="tbEmail" Display="Dynamic" ErrorMessage="不要超过50个字符！" 
                        ValidationExpression="^[\w|\.|\@]{0,50}$" ValidationGroup="Add" 
                        ForeColor="Red"></asp:RegularExpressionValidator>

                         </td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">
                         <asp:Label ID="lbId" runat="server" Visible="False"></asp:Label>
                         </td>
                     <td>     
                         <asp:Button ID="btAddBidagent" runat="server" Text="提交" 
                    ValidationGroup="Add" onclick="btAddBidagent_Click" />
                         </td></tr>
                                    </table>

                                       </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
  
    </td>
    <td  style =" background-image:url(../../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>