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


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>用户管理</title>
    
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <script language="javascript" type="text/javascript">
        KindEditor.ready(function (K) {
            K.create('#txtUserInfo');
        });
    </script>

    <style type="text/css">
        .NTree input {
            width: 12px;
            height: 12px;
            !important;
            margin: 0px;
            !important;
            padding: 0px;
            !important;
            border: 0px none #009999;
        }
    </style>

    <script language="javascript" type="text/javascript">
        function opJsTree(txt, txtValue) {
            var para = "/admin/basic/departmentztreeselect.aspx?para=3&list=" + $("#" + txtValue).val();
            //alert(para);
            //alert(para);
            //UsOpenDialogTree(para, txt, txtValue);
            CareffArtOpen4(para, '部门选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
                $id("btnchange").click();


            });

        }
        function opJsTreeUser(txt, txtValue) {
            var para = "/admin/basic/usertreeselect.aspx?para=2&list=" + $("#" + txtValue).val() + "&PostID=<% =LoginUserInfo.sPostID %>&DeptID=<% =LoginUserInfo.sDeptID %>";
            CareffArtOpen4(para, '人员选择', 300, 650, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
            });
        }
        function opJsTree2(txt, txtValue) {
            var para = "/admin/basic/departmentztreeselect.aspx?para=2&list=" + $("#" + txtValue).val();
            //UsOpenDialogTree(para, txt, txtValue);
            CareffArtOpen4(para, '部门选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
                // $id("btnchange").click();


            });
            //$id("btnchange").click();
        }
    </script>

</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
        <%=NoAutoInputStr %>
        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        用户管理
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        用户管理
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户编号<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserID" runat="server" ToolTip="用户编号" Text="" CssClass="1"></asp:TextBox>(唯一且不可以修改)</td>
                                <td rowspan="5" class="tablisttitle">照片显示</td>
                                <td rowspan="5" class="tabmanagertr">
                                    <asp:Image ID="imgUserPic" runat="server" Width="96" Height="120" onerror="javascript:this.src='/upload/user/no.jpg'" /></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">登录名称<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtLoginID" runat="server" ToolTip="登录名称" CssClass="1"></asp:TextBox>(唯一,登录时候使用,可修改)</td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户密码<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserPwd" runat="server" ToolTip="用户密码" Text="" CssClass="1"></asp:TextBox>

                                    (修改用户可以不填写密码，保留默认密码)
                                </td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">用户名称<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserName" runat="server" ToolTip="用户名称" Text="" CssClass="1"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户角色</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpRoleID" CssClass="1" ToolTip="用户角色">
                                        <asp:ListItem Value="LModel" Text="code"></asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户性别</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpUserSex" ToolTip="用户性别">
                                        <asp:ListItem Value="CodeSex" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">用户照片</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserPic" runat="server" ToolTip="用户照片" Text=""></asp:TextBox>
                                    <span runat="server" id="divClose">
                                        <a href="#" onclick="SkyOpenBak('txtUserPic','imgUserPic');">[选择]</a>
                                        <a href="#" onclick="SkyView('txtUserPic');">[查看]</a></span>

                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">隶属部门<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtDeptName" runat="server" ToolTip="隶属部门" Text="" CssClass="1"></asp:TextBox>
                                    <span runat="server" id="Span1"><a href="javascript:opJsTree('txtDeptName','txtDeptID');">[选择]</a></span>

                                    <div style="display: none">
                                        <asp:TextBox ID="txtDeptID" runat="server" ToolTip="部门编号" Text=""></asp:TextBox>


                                        <asp:Button ID="btnchange" runat="server" Text="调整"
                                            CssClass="SkyButtonFocus" OnClick="btnchange_Click" />


                                    </div>
                                </td>
                                <td class="tablisttitle">隶属岗位<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpPostID" ToolTip="隶属岗位">
                                    </asp:DropDownList></td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">启用状态</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpUserState" ToolTip="启用状态">
                                        <asp:ListItem Value="UserState" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList></td>
                                <td class="tablisttitle">联系地址</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserAddr" runat="server" ToolTip="联系地址"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户电话</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserTel" runat="server" ToolTip="用户电话" Text=""></asp:TextBox>
                                </td>
                                <td class="tablisttitle">电子邮箱</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserEmail" runat="server" ToolTip="电子邮箱" Text=""></asp:TextBox>(接收系统电子邮件)</td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">人员工资</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUSalary" runat="server" ToolTip="人员工资" Text="0" CssClass="2"></asp:TextBox>(绩效工资用，可不填)</td>
                                <td class="tablisttitle">用户分组</td>
                                <td class="tabmanagertr"><asp:DropDownList runat="server" ID="drpUserGroup" ToolTip="用户分组">
                                        <asp:ListItem Value="UserGroup" Text="code"></asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">可评人员<span class="fStarBlue">*</span></td>
                                <td class="tabmanagertr" colspan="3">
                                   <asp:TextBox ID="txtPUserName" runat="server" ToolTip="可评人员" Text=""  Width="90%"></asp:TextBox>
                                    <div style="display: none;">
                                        <asp:TextBox ID="txtPUserID" runat="server" ToolTip="被评分人编号" Text="" ></asp:TextBox></div>
                                    <a runat="server" id="lnkGo" href="javascript:opJsTreeUser('txtPUserName','txtPUserID');">[选择]</a></td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">可评人员部门</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtPUserDepartment" runat="server" ToolTip="可评人员部门" Text="" Width="90%"></asp:TextBox>
                                    <span runat="server" id="Span2"><a href="javascript:opJsTree2('txtPUserDepartment','txtPUserDepartmentID');">[选择]</a></span>
                                    <div style="display: none">
                                        <asp:TextBox ID="txtPUserDepartmentID" runat="server" ToolTip="可评人员部门编号"
                                            Text=""></asp:TextBox>
                                    </div>
                                </td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">&nbsp;</td>
                                <td class="tabmanagertr" colspan="3">可评人员部门如果选择，则此人可以评价此部门下的相关岗位人员；</td>
                            </tr>

                            <tr class="tablisttr">
                                <td class="tablisttitle">用户说明</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtUserInfo" runat="server" ToolTip="用户说明" Text="" TextMode="MultiLine" Height="100px" Width="100%"></asp:TextBox></td>
                            </tr>
                            <%--<tr class="tablisttr">
                                <td class="tablisttitle">使用说明</td>
                                <td class="tabmanagertr" colspan="3">
                                    <span class="usHelpMessage">* 注意事项：1、新建用户时，请输入用户的密码，该用户可使用密码登录；
                                              2、修改用户时，如果不修改用户的密码，请把密码框留空，则密码不修改； 
                                    </span>
                                </td>
                            </tr>--%>





                        </table>

                        <div class="divSave">
                            <asp:Button ID="btnSubmit" runat="server" Text="保存(S)"
                                CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                            <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
