//调试免登录
        private void DebugLogin()
        {
            #region 进入调试模式

            if (AppPluginManage.getbaseinfoDataValue(_pluginName, "isdebug") == "true")
            {
                //进入调试模式
                DefaultView = frmmain as IBaseViewBusiness;

                SysLoginRight right = new SysLoginRight();
                right.UserId = 1;
                right.EmpId = 1;
                right.WorkId = 1;
                right.DeptId = 1;
                right.DeptName = "调试科室";
                right.EmpName = "调试用户";
                right.WorkName = "调试机构";
                AppGlobal.cache.Add("RoleUser", right);

                frmmain.UserName = right.EmpName;
                frmmain.DeptName = right.DeptName;
                frmmain.WorkName = right.WorkName;
                if (AppPluginManage.getbaseinfoDataValue(_pluginName, "menuconfig") != null)
                {
                    string filepath = AppPluginManage.getbaseinfoDataValue(_pluginName, "menuconfig");
                    System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
                    xmlDoc.Load(filepath);

                    XmlNodeList nl = xmlDoc.DocumentElement.SelectNodes("modules/module");
                    List<BaseModule> mdlist = new List<BaseModule>();
                    foreach (XmlNode n in nl)
                    {
                        BaseModule bmd = new BaseModule();
                        bmd.ModuleId = Convert.ToInt32(n.Attributes["ModuleId"].Value);
                        bmd.Name = n.Attributes["Name"].Value;
                        mdlist.Add(bmd);
                    }
                    nl = xmlDoc.DocumentElement.SelectNodes("menus/menu");
                    List<BaseMenu> menulist = new List<BaseMenu>();
                    foreach (XmlNode n in nl)
                    {
                        BaseMenu bmenu = new BaseMenu();
                        bmenu.MenuId = Convert.ToInt32(n.Attributes["MenuId"].Value);
                        bmenu.ModuleId = Convert.ToInt32(n.Attributes["ModuleId"].Value);
                        bmenu.PMenuId = Convert.ToInt32(n.Attributes["PMenuId"].Value);
                        bmenu.Name = n.Attributes["Name"].Value;
                        bmenu.Image = n.Attributes["Image"].Value;
                        bmenu.DllName = n.Attributes["DllName"].Value;
                        bmenu.FunName = n.Attributes["FunName"].Value;
                        menulist.Add(bmenu);
                    }
                    frmmain.modules = mdlist;
                    frmmain.menus = menulist;
                    //frmmain.depts = NewObject<Dept>().GetHaveDept(right.EmpId);
                }
                frmmain.showSysMenu();
                ShowWeclomeForm();

                ((System.Windows.Forms.Form)frmmain).ShowIcon = true;
                ((System.Windows.Forms.Form)frmmain).Icon = System.Drawing.Icon.ExtractAssociatedIcon(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + @"images\msn.ico");
            }
            #endregion
        }
        public void GetLoginModuleData_Debug()
        {
            string filepath = AppPluginManage.getbaseinfoDataValue(_pluginName, "menuconfig");
            System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
            xmlDoc.Load(AppGlobal.AppRootPath+filepath);

            XmlNodeList nl = xmlDoc.DocumentElement.SelectNodes("modules/module");
            List<BaseModule> mdlist = new List<BaseModule>();
            foreach (XmlNode n in nl)
            {
                BaseModule bmd = new BaseModule();
                bmd.ModuleId = Convert.ToInt32(n.Attributes["ModuleId"].Value);
                bmd.Name = n.Attributes["Name"].Value;
                mdlist.Add(bmd);
            }

            DataTable dt = ConvertExtend.ToDataTable(mdlist);
            JsonResult = RetSuccess("", JavaScriptConvert.SerializeObject(dt));
        }