Пример #1
0
 /// <summary>
 /// 存储当前角色的自定义权限配置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_SetCutomterPermissionObjCompleted(object sender, SetCutomterPermissionObjCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", Utility.GetResourceStr("CURRENTRECORD", "ROLECUSTOMMENUPERMISSION")));
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
     }
 }
 /// <summary>
 /// 存储当前角色的自定义权限配置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void clientPerm_SetCutomterPermissionObjCompleted(object sender, SetCutomterPermissionObjCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     RefreshUI(RefreshedTypes.AuditInfo);
     
     
     if (IsCheckState)
         RefreshUI(RefreshedTypes.AuditInfo);
     if (e.Error == null)
     {
         
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "设置成功", Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         if (closeFormFlag)
         {
             RefreshUI(RefreshedTypes.CloseAndReloadData);
         }
         else
         {
             RefreshUI(RefreshedTypes.All);
         }
     }
     else
     {
        //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "添加失败");
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "设置失败", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
     
 }
Пример #3
0
 /// <summary>
 /// 存储当前角色的自定义权限配置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_SetCutomterPermissionObjCompleted(object sender, SetCutomterPermissionObjCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", Utility.GetResourceStr("CURRENTRECORD", "ROLECUSTOMMENUPERMISSION")));
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.ToString());
     }
 }