Ejemplo n.º 1
0
        private void BeginRebindSite()
        {
            Globals.IsBusy = true;
            if (this.UserRoleAuths == null || this.UserRoleAuths.Count(i => !i.SiteGroupId.HasValue) > 0)
            {
                DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, true, true, ListSiteCompleted);
            }
            else
            {
                int siteGroupId = this.UserRoleAuths.First(i => i.SiteGroupId.HasValue).SiteGroupId.Value;
                DataServiceHelper.ListSiteBySiteGroupAsync(siteGroupId, true, true, ListSiteCompleted);
            }


            //DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, true, true, ListSiteCompleted);
        }
Ejemplo n.º 2
0
 internal void Init()
 {
     if (ItemsSource == null)
     {
         if (this.UserRoleAuths == null || this.UserRoleAuths.Count(i => !i.SiteGroupId.HasValue) > 0)
         {
             DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, this.ShowLegacy, false, SelectSitesComplete);
         }
         else
         {
             int siteGroupId = this.UserRoleAuths.First(i => i.SiteGroupId.HasValue).SiteGroupId.Value;
             DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, this.ShowLegacy, false, SelectSitesComplete);
         }
     }
     else
     {
         RaiseInitCompleteEvent();
     }
 }
Ejemplo n.º 3
0
 /*  ======================================================================
  *      PAGE FUNCTIONS
  *  ====================================================================== */
 internal void Init(int orgId)
 {
     DataServiceHelper.ListSiteAsync(orgId, null, this.ShowLegacy, false, SelectSitesComplete);
 }