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

<!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>无标题页</title>
    <link href="../../css/admincss/skin.css" rel="stylesheet" type="text/css" />
</head>


<body>
 <form id="form1" runat="server" defaultfocus ="tbAddField" defaultbutton ="btAddProject">
<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  border = "0"  cellpadding ="0" cellspacing ="0"><tr>
        <td class =" td_leftnoborder  " style ="width :70px"><div >
             <b>选择模块：</b>
             </div> </td>
        <td class =" td_rightnoborder  ">                         <asp:RadioButtonList ID="rblProjectA" runat="server" 
                             RepeatDirection ="Horizontal" RepeatColumns ="8" AutoPostBack="True" 
                             onselectedindexchanged="rblProjectA_SelectedIndexChanged" >
                         </asp:RadioButtonList>
  </td>
        </tr> </table> 
<!--  一组内容模块开始   --> 
    <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><table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  模块字段管理</div></td>
          </tr>
        </table> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>

             
                                   
        <div style ="margin-top:15px">
                <table style ="width :100%">
                <tr>
                    <td >
                            <b>添加字段：</b><asp:TextBox ID="tbAddField" runat="server" Width ="200px"></asp:TextBox>
                <asp:Button ID="btAddProject" runat="server" Text="添加" 
                    ValidationGroup="AddField" onclick="btAddProject_Click" />   
                    <asp:Label ID="lbAddMessage" runat="server" ForeColor="Red"></asp:Label>                                  
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddField" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="请不要超过25个字符。" 
                    ValidationExpression="^[^\s]{1,25}$" 
                    ValidationGroup="AddField" ForeColor="Red"></asp:RegularExpressionValidator>

                    </td>

                </tr>
            </table>  
                </div>
        <asp:GridView ID="GridView1" runat="server"  onrowediting="GridView1_RowEditing" 
                 onrowdatabound="GridView1_RowDataBound" Width="700px" 
                BorderWidth="1px" CssClass="gv" 
                 cellspacing="1" AutoGenerateColumns="False" 
                onrowcancelingedit="GridView1_RowCancelingEdit" 
                onrowupdating="GridView1_RowUpdating">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
            
             <asp:TemplateField> 
               <HeaderTemplate>  <asp:CheckBox ID="CheckBox2" Text ="全选" runat="server" AutoPostBack="True" 
                OnCheckedChanged="CheckBox2_CheckedChanged"  />    </HeaderTemplate>        
               <ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate>               
               </asp:TemplateField>
                <asp:BoundField DataField="序号" HeaderText="序号" ReadOnly="True"   >
                    <ControlStyle CssClass="hidden" />
                    <FooterStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="所属模块" HeaderText="所属模块" ReadOnly="True" />
                                               <asp:TemplateField HeaderText="字段名称">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("字段名称") %>' Width="40px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox8" Display="Dynamic" ErrorMessage="名称不能为空。" ForeColor="Red"></asp:RequiredFieldValidator>

                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="TextBox8" Display="Dynamic" ErrorMessage="请不要超过25个字符。" 
                    ValidationExpression="^[^\s]{1,25}$" 
                    ForeColor="Red"></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("字段名称") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="统计">
                     <EditItemTemplate>

                    <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Value ="允许">允许</asp:ListItem>
                    <asp:ListItem Value ="禁止">禁止</asp:ListItem>
                    </asp:DropDownList>
                     <asp:Label ID="Label10" runat="server" Text='<%# Bind("统计") %>' Visible ="false" ></asp:Label>

                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label9" runat="server" Text='<%# Bind("统计") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                <asp:CommandField HeaderText="修改" ShowEditButton="True" EditText="修改" />
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
        <div>

            <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" Text="批量删除" />
                                </div> 
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

<!--  一组内容模块开始   --> 
    <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><table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">字段选择及排序</div> </td>
          </tr>
        </table> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
<td>
<div style ="margin-top :8px"> 
                    <table  class ="table " border = "1"  cellpadding ="0" cellspacing ="0" style ="width :100%"><tr>
<td style ="width :140px; " class ="tabletd_right ">选择主管部门：</td>
                     <td class ="tabletd_left "> 
                         
                         <asp:RadioButtonList ID="rblDepartment" runat="server" 
                             RepeatDirection ="Horizontal" RepeatColumns ="8" AutoPostBack="True" 
                             onselectedindexchanged="rblDepartment_SelectedIndexChanged" >
                         </asp:RadioButtonList>
                         
                     </td>

                     </tr>
                                    <tr>
<td  class ="tabletd_right ">勾选所需的查询字段：<br /><asp:CheckBox ID="cbChoose" runat="server" 
                    AutoPostBack="True" oncheckedchanged="cbChoose_CheckedChanged" Text="全选" /></td>
                     <td class ="tabletd_left "> <asp:CheckBoxList ID="cblField" runat="server" RepeatColumns="8" 
                        RepeatDirection="Horizontal"></asp:CheckBoxList>
                         
                         &nbsp;</td>

                     </tr>
                                    <tr>
<td  class ="tabletd_right ">&nbsp;</td>
                     <td class ="tabletd_left ">  <asp:Button ID="btSetFieldList" runat="server" onclick="btSetFieldList_Click" Text="提交" /></td>

                     </tr>
                                    </table>                 
             </div>
             <asp:GridView ID="GridView2" runat="server" Width="700px" 
                BorderWidth="1px" CssClass="gv" 
                 cellspacing="1" AutoGenerateColumns="False">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>

                <asp:BoundField DataField="序号" HeaderText="序号" ReadOnly="True"   >
                    <ControlStyle CssClass="hidden" />
                    <FooterStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="所属模块" HeaderText="所属模块" ReadOnly="True" />
                <asp:BoundField DataField="字段名称" HeaderText="字段名称" ReadOnly="True" />
               <asp:TemplateField HeaderText="字段顺序">
                  <ControlStyle Width="60px" />
                  <ItemTemplate>
                      <asp:TextBox ID="tbFieldid" runat="server" Text='<%#Eval("字段顺序") %>'></asp:TextBox>
                                                                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbFieldid" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="btMove" ForeColor="Red"></asp:RegularExpressionValidator>
                  </ItemTemplate>
              </asp:TemplateField>
                
                
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
        <div>
            <asp:Button ID="btMove" runat="server" Text="确认排序" onclick="btMove_Click" ValidationGroup="btMove" /></div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->



<!--  一组内容模块开始   --> 
    <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><table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">其它设置</div> </td>
          </tr>
        </table> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
<td>
          <asp:Button ID="btUpField" runat="server" Text="检查修复字段设置" 
                onclick="btUpField_Click" />
        </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>
