<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userAllocationRole.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.sysmanage.userAllocationRole" %>

<!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 runat="server">
    <title>分配角色</title>
     <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/messages_cn.js"></script>
    <script type="text/javascript" src="../../scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../scripts/calendar.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script type="text/javascript" >
        function validateone_Role() {
            if ($("#DropDownListRole").val() == "" || $("#DropDownListRole").val() == undefined) {
                //jsprint("密码不允许为空！", "", "Error", "");
                //$("#txtone_password").focus();
                document.getElementById("lbone_Role").innerHTML = "* 不为空！";
                document.getElementById("lbone_Role").style.color = "red";
                return false;
            }
            else {
                document.getElementById("lbone_Role").innerHTML = "*";
                document.getElementById("lbone_Role").style.color = "#414141";
                return true;
            }
        }

    
        function validate() {
            var i = 0;
            if (!validateone_Role()) {
                i++;
            }
            if (i > 0) {
                return false;
            }
            return true;
        }

        function CloseThis() {
            var dialog = frameElement.dialog;
            parent.LoadList();
            dialog.close();
            //parent.window.LoadList(); 
        }

        function getRoleName() {
            alert(document.getElementById("DropDownListRole").value);
            if (document.getElementById("DropDownListRole").value != "") {
                document.getElementById("hfRoleName").value = document.getElementById("DropDownListRole").value;
            }
        }
    </script>



</head>
<body class="mainbody" scroll="no" style="margin-top: 0px;">
    <form id="form1" runat="server">
    <asp:HiddenField ID="hfRoleName" runat="server" />
    <div id="contentTab">
        <ul class="tab_nav">
            <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">重设密码</a></li>
        </ul>
        <div class="tab_con" style="display: block; height: 120px;">
            <table class="form_table">
                <col width="100px" />
                <col />
                <col width="100px" />
                <col />
                <tbody>
                    <tr>
                        <th>
                            员工工号：
                        </th>
                        <td>
                            <asp:TextBox ID="txtWorkingCode" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                     <th>
                            员工姓名：
                        </th>
                        <td>
                            <asp:TextBox ID="txtRealName" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                     <th>
                            操作角色：
                        </th>
                        <td>
                            <asp:DropDownList ID="DropDownListRole" runat="server"  CssClass="txtInput normal"
                                Style="width: 130px;" onchange="getRoleName()">
                            </asp:DropDownList><label id="lbone_Role" for="DropDownListRole">*</label>
                            
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="foot_btn_box">
            <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
                OnClientClick="return validate();" OnClick="btnSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
