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

<!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" >
<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><div class ="biaotileft ">  
                考核周期设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td >
                         
        <div style ="margin-top:15px">
        <table ><tr>
        <td class ="td_centernoborder ">考核周期</td>
        <td class ="td_centernoborder "> <asp:TextBox ID="tbAddDate" runat="server" Width="60px"></asp:TextBox></td>
        <td class ="td_centernoborder ">部门评价比例</td>
        <td class ="td_centernoborder "> <asp:TextBox ID="tbAddRatio" runat="server" Width="60px"></asp:TextBox>%</td>
        <td class ="td_centernoborder ">员工评价范围</td>
        <td class ="td_centernoborder "><asp:RadioButtonList 
                    ID="rblScope" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True">部门</asp:ListItem>
                    <asp:ListItem>所有</asp:ListItem>
                    <asp:ListItem>不允许</asp:ListItem>
                </asp:RadioButtonList></td>
       <td class ="td_centernoborder "><asp:Button
    ID="btAddDate" runat="server" Text="提交" ValidationGroup="AddDate" onclick="btAddDate_Click" />
</td>
        </tr></table>
               说明：考核周期为6位数字，如201204<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                        ControlToValidate="tbAddDate" Display="Dynamic" ErrorMessage="考核周期不能为空！" 
                                        ValidationGroup="AddDate" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                                ControlToValidate="tbAddDate" 
                        Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" 
                                                ValidationGroup="AddDate" ForeColor="Red"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                                        ControlToValidate="tbAddRatio" Display="Dynamic" ErrorMessage="评价比例不能为空！" 
                                        ValidationGroup="AddDate" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server" 
                                                ControlToValidate="tbAddRatio" 
                        Display="Dynamic" ErrorMessage="评价比例为整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="AddDate" ForeColor="Red"></asp:RegularExpressionValidator>
<div>
          <asp:Label ID="lbView" runat="server"  ForeColor ="Red" ></asp:Label>
</div> 
                </div>

          <div style ="margin-bottom :6px; margin-top :6px">
           <asp:GridView ID="GridView1" 
                  runat="server" BorderWidth="1px" cellspacing="1"
                 CssClass="gv" AutoGenerateColumns="False" 
                  onselectedindexchanged="GridView1_SelectedIndexChanged" 
                  onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" >
                <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="evaluationdate" HeaderText="考核周期" ReadOnly="True" />
                   <asp:BoundField DataField="scope" HeaderText="员工评价范围" ReadOnly="True" />
                   <asp:BoundField DataField="lock" HeaderText="锁定状态" ReadOnly="True" />
                    <asp:BoundField DataField="departmentratio" HeaderText="部门评价比例（%）" ReadOnly="True" />
                            <asp:CommandField DeleteText="锁定/解锁" HeaderText="锁定/解锁" 
                                ShowDeleteButton="True" />
                   
                   <asp:CommandField HeaderText="查看无数据部门" SelectText="查看" ShowSelectButton="True"  />
                   
                </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView></div> 
            <div>

            <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" Text="批量删除" 
                    Visible="False" />
                                </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><div class ="biaotileft ">  
                考核等第设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td >
                         
        <div style ="margin-top:15px">

                添加考核等第：<asp:TextBox ID="tbLevelName" runat="server"></asp:TextBox>
                分值：<asp:TextBox ID="tbLevelNum" runat="server" Width="60px"></asp:TextBox> <asp:Button
    ID="btAddLevel" runat="server" Text="提交" ValidationGroup="AddLevel" 
                    onclick="btAddLevel_Click" />

          
                                    &nbsp;

          
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="tbLevelName" Display="Dynamic" ErrorMessage="考核等第不能为空！" 
                                        ValidationGroup="AddLevel" ForeColor="Red"></asp:RequiredFieldValidator>

                </div>

          <div style ="margin-bottom :6px; margin-top :6px">
           <asp:GridView ID="GridView2" 
                  runat="server" BorderWidth="1px" cellspacing="1"
                Width="500px" CssClass="gv" AutoGenerateColumns="False" 
                  onrowdeleting="GridView2_RowDeleting" >
                <RowStyle BorderWidth="1px" CssClass="gvrow" />
 <Columns>
             
                   <asp:BoundField DataField="levelname" HeaderText="考核等第" ReadOnly="True" />
                   <asp:BoundField DataField="levelnum" HeaderText="分值" ReadOnly="True" />
                 
                   <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                 
                </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView></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><div class ="biaotileft ">  
                                基本设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td style ="height :35px">
            前台员工查询最大考核年度（年）：<asp:TextBox ID="tbDaterangestaff" runat="server" 
                    Width="44px" MaxLength="4">3</asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                                ControlToValidate="tbDaterangestaff" 
                Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                ControlToValidate="tbDaterangestaff" 
                Display="Dynamic" ErrorMessage="不能为空。" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator></td>
      </tr>
      <tr>
        <td style ="height :35px">
            后台管理查询最大考核年度（年）：<asp:TextBox ID="tbDaterangeadmin" runat="server" 
                    Width="44px" MaxLength="4">1</asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                                ControlToValidate="tbDaterangeadmin" 
                Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="tbDaterangeadmin" 
                Display="Dynamic" ErrorMessage="不能为空。" 
                                                ValidationGroup="Inquires" ForeColor="Red"></asp:RequiredFieldValidator></td>
      </tr>
      <tr>
        <td style ="height :35px">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" Text="修改" ToolTip="RowNum" 
                                                ValidationGroup="Inquires" />
        </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>

