示例#1
0
        void permClient_GetSysCommonPermissionAllCompleted(object sender, GetSysCommonPermissionAllCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Error != null)
                {
                    RefreshUI(RefreshedTypes.HideProgressBar);
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
                    return;
                }
                if (e.Result != null)
                {
                    tmpPermission = e.Result.ToList();
                    DataGridColumnsAdd(DaGr, "HRCellTemplate");//添加不动的列头
                    DataGridColumnsAdd(DaGrHead, "");
                    if (!string.IsNullOrEmpty(tmpRoleID))
                    {
                        //permClient.GetRoleEntityIDListInfosByRoleIDAsync(tmpRoleID);

                        ObservableCollection <T_SYS_ENTITYMENU> listmenu = new ObservableCollection <T_SYS_ENTITYMENU>();
                        permClient.GetRoleEntityIDListInfosByRoleIDNewToUserRoleAppAsync(tmpRoleID, listmenu);
                    }
                }
            }
        }
示例#2
0
 void RoleClient_GetSysCommonPermissionAllCompleted(object sender, GetSysCommonPermissionAllCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error != null)
         {
             RefreshUI(RefreshedTypes.HideProgressBar);
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
             return;
         }
         if (e.Result != null)
         {
             tmpPermission = e.Result.ToList();
         }
     }
     //开始获取HR菜单
     RoleClient.GetHRSysMenuByTypeAsync("0");
 }
 void RoleClient_GetSysCommonPermissionAllCompleted(object sender, GetSysCommonPermissionAllCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error != null)
         {
             RefreshUI(RefreshedTypes.HideProgressBar);
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
             return;
         }
         if (e.Result != null)
         {
             tmpPermission = e.Result.ToList();
                                 
         }
     }
     //开始获取HR菜单
     RoleClient.GetHRSysMenuByTypeAsync("0");
 }
示例#4
0
        void permClient_GetSysCommonPermissionAllCompleted(object sender, GetSysCommonPermissionAllCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Error != null)
                {
                    RefreshUI(RefreshedTypes.HideProgressBar);
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
                    return;
                }
                if (e.Result != null)
                {
                    tmpPermission = e.Result.ToList();
                    DataGridColumnsAdd(DaGr, "HRCellTemplate");//添加不动的列头
                    DataGridColumnsAdd(DaGrHead, "");
                    if (!string.IsNullOrEmpty(tmpRoleID))
                    {
                        //permClient.GetRoleEntityIDListInfosByRoleIDAsync(tmpRoleID);

                        ObservableCollection<T_SYS_ENTITYMENU> listmenu = new ObservableCollection<T_SYS_ENTITYMENU>();
                        permClient.GetRoleEntityIDListInfosByRoleIDNewToUserRoleAppAsync(tmpRoleID, listmenu);
                    }
                }
            }
        }