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

<!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" />
    </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%; "  border="0" cellspacing="0"  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><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">
            <asp:Panel ID="plAdd" runat="server" >            
                <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"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="请不要超过25个字符。" 
                    ValidationExpression="^[^\s]{1,25}$" 
                    ValidationGroup="AddField"></asp:RegularExpressionValidator>

                    </td>
                </tr>
            </table>  
             </asp:Panel>


                </div>
        <asp:GridView ID="GridView1" runat="server"  onrowediting="GridView1_RowEditing" 
                 onrowdatabound="GridView1_RowDataBound" Width="600px" 
                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:TemplateField HeaderText="字段名称">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("字段名称") %>' Width="300px"></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("字段名称") %>' Width="300px"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                               <asp:TemplateField HeaderText="排序">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("排序") %>' Width="40px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                    ControlToValidate="TextBox18" Display="Dynamic" ErrorMessage="排序不能为空。" ForeColor="Red"></asp:RequiredFieldValidator>

                    <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" 
                                                ControlToValidate="TextBox18" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" 
                                                ></asp:RegularExpressionValidator>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label18" 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="全选" />
                                            &nbsp;</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="600px" 
                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: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>


