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

<!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" />
    <style type="text/css">
        .style1
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" defaultfocus ="tbAddDepartment">
<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 :31px"  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 >
        <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    添加部门</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAddDepartment" runat="server" Width ="150px"></asp:TextBox>
                                            <span class="style1">（必填）</span></td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btAddDepartment" runat="server" Text="添加" 
                    ValidationGroup="AddDeparment" onclick="btAddDepartment_Click" />
                                            </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px"><asp:Label ID="lbDepartment" runat="server"></asp:Label>   </div>         
                  <div style ="padding :3px"><asp:Label ID="lbMessageDepartment" runat="server" ForeColor="Red"></asp:Label> </div>
                  <div style ="padding :3px"> 
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddDepartment" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddDeparment" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddDepartment" Display="Dynamic" 
                    ErrorMessage="请输入2-15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{2,15}$" 
                    ValidationGroup="AddDeparment" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                    ControlToValidate="tbAddDepartment" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="AddDeparment" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="tbEditDepartment" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="EditDepartment" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="tbEditDepartment" Display="Dynamic" 
                    ErrorMessage="请输入2-15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{2,15}$" 
                                                    ValidationGroup="EditDepartment" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                    ControlToValidate="tbEditDepartment" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="EditDepartment" ForeColor="Red"></asp:RegularExpressionValidator>
                         &nbsp;   </div>                 </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    删除部门</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDelDepartment" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDelDepartment" runat="server" Text="删除" CausesValidation="False" onclick="btDelDepartment_Click" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    修改部门</td>
                <td class ="tabletd_left ">
                          <asp:DropDownList ID="ddlEditDepartment" runat="server"></asp:DropDownList>
                          修改为：<asp:TextBox ID="tbEditDepartment" runat="server" Width ="150px"></asp:TextBox>
                          <span class="style1">（必填）</span></td>
                <td class ="tabletd_center " style="width :60px">
                                  <asp:Button ID="btEditDepartment" runat="server" Text="修改" 
                                        ValidationGroup="EditDepartment" onclick="btEditDepartment_Click" />
                   </td>
            </tr>
        </table>
            </div>
            <div>修改部门操作将同步更新人员表中的部门信息；删除部门时，如果此部门没有人员，部门直接删除，如果有员工，则部门列表中增中一个名为“未设置”的部门，这部分人员全部转移至“未设置”部门下。</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>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    添加角色</td>
                <td class ="tabletd_left ">
                <asp:TextBox ID="tbAddPost" runat="server" Width ="200px"></asp:TextBox>
                                            <span class="style1">（必填）</span></td>
                <td class ="tabletd_center " style="width :60px">

                <asp:Button ID="btAddPost" runat="server" Text="添加" 
                    ValidationGroup="AddPost" onclick="btAddPost_Click" />
                    </td>
                <td rowspan="3" class ="tabletd_left " style =" width :40%; vertical-align :top ">
               <div style ="padding :3px">
                   <asp:Label ID="lbPost" runat="server"></asp:Label>
                    </div>         
                  <div style ="padding :3px">
                      <asp:Label ID="lbMessagePost" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                  <div style ="padding :3px"> 
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="tbAddPost" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddPost" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="tbAddPost" Display="Dynamic" 
                    ErrorMessage="请输入2-15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{2,15}$" 
                    ValidationGroup="AddPost" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                    ControlToValidate="tbAddPost" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="AddPost" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="tbEditPost" Display="Dynamic" ErrorMessage="名称不能为空。" 
                                                    ValidationGroup="EditPost" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="tbEditPost" Display="Dynamic" 
                    ErrorMessage="请输入2-15个合法字符。" ValidationExpression="^[^%&gt;&lt;&amp;=\s]{2,15}$" 
                                                    ValidationGroup="EditPost" ForeColor="Red"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="tbEditPost" Display="Dynamic" 
                    ErrorMessage="请用汉字或字母开头。" ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                                                    ValidationGroup="EditPost" ForeColor="Red"></asp:RegularExpressionValidator>
                          &nbsp;  </div>                    </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    删除角色</td>
                <td class ="tabletd_left ">
                <asp:DropDownList ID="ddlDelPost" runat="server">
                </asp:DropDownList>
                </td>
                <td class ="tabletd_center " style="width :60px">
                <asp:Button ID="btDelPost" runat="server" Text="删除" 
                    CausesValidation="False" onclick="btDelPost_Click" />
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                                                修改角色</td>
                <td class ="tabletd_left ">

                                                <asp:DropDownList ID="ddlEditPost" runat="server">
                                                </asp:DropDownList>
                                                修改为：<asp:TextBox ID="tbEditPost" runat="server" Width ="150px"></asp:TextBox>
                                                <span class="style1">（必填）</span></td>
                <td class ="tabletd_center " style="width :60px">
                                                <asp:Button ID="btEditPost" runat="server" Text="修改" 
                                                    ValidationGroup="EditPost" onclick="btEditPost_Click" />
                                            </td>
            </tr>
        </table>
                    </div>
            <div>修改角色操作将同步更新人员表中的角色信息；删除角色时，如果此角色有人员，则这部分人员的角色全部为“无”。</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>
