Esempio n. 1
0
 void orgClient_GetPostActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result != null)
         {
             allPositions = e.Result.ToList();
         }
         UICache.CreateCache("SYS_PostInfo", allPositions);
         BindPosition();
     }
 }
Esempio n. 2
0
 void orgClient_GetPostActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         loadbar.Stop();//有错误停止转圈
         SMT.SAAS.Main.CurrentContext.AppContext.logAndShow("Views/SysUserManagement--GetDepartmentActived");
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         return;
     }
     else
     {
         if (e.Result != null)
         {
             allPositions = e.Result.ToList();
         }
         UICache.CreateCache("SYS_PostInfo", allPositions);
     }
 }