
var DcxSysMng={};$(document).ready(function(){var a=tzm("hidenav");if(!ymr(a)&&!isNaN(a))a=parseInt(a,10);else a=-1;if(a>0)$("#navContainer").hide();var b=tzm("navindex");if(isNaN(b))b=parseInt(b,10);var c=new Array();var d={"id":1,"text":"组织设置","cssClass":"ico_profile",items:[{"id":1,"text":"部门管理","url":"/System/DeptMng.aspx?MenuId=3275","clickJs":"","cssClass":""},{"id":4,"text":"角色管理","url":"/System/RoleMng.aspx?MenuId=3416&entid=2278","clickJs":"","cssClass":""},{"id":2,"text":"用户管理","url":"/System/UserMng.aspx?menuid=3274","clickJs":"","cssClass":""},{"id":3,"text":"员工管理","url":"/System/EmployeeMng.aspx?menuid=3283","clickJs":"","cssClass":""}]};c.push(d);d={"id":2,"text":"权限设置","cssClass":"ico_lock",items:[{"id":6,"text":"网页权限","url":"/System/MenuPower.aspx?MenuId=3288","clickJs":"","cssClass":""},{"id":5,"text":"应用权限","url":"/System/AppPower.aspx?MenuId=3286","clickJs":"","cssClass":""}]};c.push(d);d={"id":3,"text":"其他设置","cssClass":"ico_profile",items:[{"id":9,"text":"搜索设置","url":"/System/MnSearchItem.aspx?menuid=3294","clickJs":"","cssClass":""},{"id":10,"text":"工作流设计","url":"/WorkFlow/WorkFlowMng.aspx?MenuId=3285&entid=2062","clickJs":"","cssClass":""},{"id":11,"text":"邀请同事","url":"/System/InviteUser.aspx?menuid=3274&entid=2292","clickJs":"","cssClass":""},{"id":12,"text":"系统邮箱","url":"/System/SetSystemEmail2.aspx?EntId=2293&MenuId=3420","clickJs":"","cssClass":""}]};c.push(d);var e=new nzy();for(var i=0;i<c.length;i++){var f=c[i];if(ymr(f.cssClass))f.cssClass="";e.append("<dl class=\"list\" indexId=\""+f.id+"\">\n");e.append("    <dt><i class=\"ui_ico "+f.cssClass+"\"></i>"+f.text+"</dt>\n");e.append("    <dd>\n");e.append("        <ul>\n");for(var k=0;k<f.items.length;k++){var g=f.items[k];if(ymr(g.cssClass))g.cssClass="";if(b==g.id)g.cssClass=g.cssClass+" current";e.append("            <li class=\"bg2_hover bg2\" navindex=\""+g.id+"\">\n");if(!ymr(g.clickJs))e.append("            <a   navindex=\""+g.id+"\" class=\" "+g.cssClass+"\" href=\"javascript:void(0);\" onclick=\"javascript:"+g.clickJs+";\">\n");else if(!ymr(g.url)){if(g.url.indexOf("?")>=0)g.url=g.url+"&navindex="+g.id;else g.url=g.url+"?navindex="+g.id;e.append("            <a  class=\" "+g.cssClass+"\" target=\"_self\" href=\""+g.url+"\">\n")}else e.append("            <a  class=\" "+g.cssClass+"\" target=\"_self\" href=\"javascript:void(0);\">\n");e.append("                "+g.text+"</a></li>\n")}
e.append("        </ul>\n");e.append("    </dd>\n");e.append("</dl>\n");if(i<c.length-1)e.append("<hr class=\"bbor2\">\n")}
$("#navContainer").html(e.toString());var h=tzm("menuId");if(!ymr(h)&&!isNaN(h))h=parseInt(h,10);else h=-1;var j=tzm("navindex");if(!ymr(j)&&!isNaN(j))j=parseInt(j,10);else j=-1;if(h==3288){$("#btn_NewBrotherMenu").remove()}else if(h==3286){$("#btn_NewBrotherMenu").remove()}
if(h==3274&&j==2){var l=$(".tag2_menu");if(l.length>0){var m=l.find("ul").find("li:first");m.next().remove();m.next().remove()}}
if(h==3294){var l=$(".tag2_menu");if(l.length>0){var m=l.find("ul").find("li:first");m.next().remove();m.next().remove()}}});$(window).load(function(){var a=tzm("navindex");var b=$("#menu_container");b.find("li").removeClass("current");if(!ymr(a)&&!isNaN(a)){a=parseInt(a,10);b.find("li[navindex="+a+"]").addClass("current")}});$(window).load(function(){var a=jre("menuId");if(a==3275){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_Dept"}else if(a==3416){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_Role"}else if(a==3285){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_WorkFlow"}else if(a==3294){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_SearchItem"}else if(a==3288){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_Menu"}else if(a==3286){Dcx.FormRun.submitUrl="/WebServices/Form/Form_Run.asmx/SumbitFormData_Entity"}});function nmy(a){var b=2274;var c="DefaultF_";var d="/System/MyInformation/EditMyMsg.aspx?EntId="+b+"&mkfv="+lux()+"&optype=2&navindex="+zvn(a);window.location.href=d}
function zsj(a){}
function oij(a){var b=2276;var c="DefaultF_";var d="/System/MyInformation/ChangeEmail.aspx?EntId="+b+"&optype=1&navindex="+zvn(a);window.location.href=d}
function aou(a){var b=2275;var c="DefaultF_";var d="/System/MyInformation/ChangePwd.aspx?EntId="+b+"&optype=1&navindex="+zvn(a);window.location.href=d}
function mtf(a){var b=2277;var c="DefaultF_";var d="/System/MyInformation/ChangeIp.aspx?EntId="+b+"&optype=1&navindex="+zvn(a);window.location.href=d}
function yzr(a){var b=1904;var c="DefaultF_";var d="/System/MyInformation/ConvertSystem.aspx?EntId="+b+"&optype=1&navindex="+zvn(a);window.location.href=d}
function nfc(a){var b=1904;var c="DefaultF_";var d="/System/MyInformation/ChangeMyAvatar.html?EntId="+b+"&optype=1&navindex="+zvn(a);window.location.href=d}
function zvn(a){return $(a).parent().attr("navindex")}
function pdj(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Invite=pdj;function zrv(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_WorkFlow=zrv;function lig(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Dept=lig;function xor(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Role=xor;function mtc(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Employee=mtc;function yzn(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_MenuPower=yzn;function xos(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_AppPower=xos;function xuy(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_SearchItem=xuy;function lig(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Dept=lig;function lig(a){return $(a).parent().attr("navindex")}
DcxSysMng.SubmitForm_Dept=lig;