Exemplo n.º 1
0
        private void InitParas(string roleMenuID)
        {
            ServiceClient = new PermissionServiceClient();
            //RoleClient = new SysRoleManagementServiceClient();

            ServiceClient.RoleEntityMenuAddCompleted    += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(ServiceClient_RoleEntityMenuAddCompleted);
            ServiceClient.RoleEntityMenuUpdateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(ServiceClient_RoleEntityMenuUpdateCompleted);

            ServiceClient.GetRoleEntityMenuByIDCompleted += new EventHandler <GetRoleEntityMenuByIDCompletedEventArgs>(ServiceClient_GetRoleEntityMenuByIDCompleted);
            //ServiceClient.GetSysMenuByTypeCompleted += new EventHandler<GetSysMenuByTypeCompletedEventArgs>(ServiceClient_GetSysMenuByTypeCompleted);
            ServiceClient.GetSysRoleInfosCompleted += new EventHandler <GetSysRoleInfosCompletedEventArgs>(ServiceClient_GetSysRoleInfosCompleted);

            if (FormType == FormTypes.New)
            {
                RoleMenu = new T_SYS_ROLEENTITYMENU();
                RoleMenu.ROLEENTITYMENUID = Guid.NewGuid().ToString();
                //绑定系统类型
                ServiceClient.GetSysDictionaryByCategoryAsync("SYSTEMTYPE");
            }

            //初始化权限菜单
            if (!string.IsNullOrEmpty(roleMenuID))
            {
                ServiceClient.GetRoleEntityMenuByIDAsync(roleMenuID);
            }
        }
Exemplo n.º 2
0
        private void InitParas(string roleMenuID)
        {
            ServiceClient = new PermissionServiceClient();
            //RoleClient = new SysRoleManagementServiceClient();

            ServiceClient.RoleEntityMenuAddCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(ServiceClient_RoleEntityMenuAddCompleted);            
            ServiceClient.RoleEntityMenuUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(ServiceClient_RoleEntityMenuUpdateCompleted);
            
            ServiceClient.GetRoleEntityMenuByIDCompleted += new EventHandler<GetRoleEntityMenuByIDCompletedEventArgs>(ServiceClient_GetRoleEntityMenuByIDCompleted);
            //ServiceClient.GetSysMenuByTypeCompleted += new EventHandler<GetSysMenuByTypeCompletedEventArgs>(ServiceClient_GetSysMenuByTypeCompleted);
            ServiceClient.GetSysRoleInfosCompleted += new EventHandler<GetSysRoleInfosCompletedEventArgs>(ServiceClient_GetSysRoleInfosCompleted);
            
            if (FormType == FormTypes.New)
            {
                RoleMenu = new T_SYS_ROLEENTITYMENU();
                RoleMenu.ROLEENTITYMENUID = Guid.NewGuid().ToString();
                //绑定系统类型
                ServiceClient.GetSysDictionaryByCategoryAsync("SYSTEMTYPE");
            }

            //初始化权限菜单
            if (!string.IsNullOrEmpty(roleMenuID))
            {
                ServiceClient.GetRoleEntityMenuByIDAsync(roleMenuID);
            }


        }