Esempio n. 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);
                    }
                }
            }
        }