/// <summary> /// Adding new acquisition site to retrieve the worklist from /// </summary> /// <param name="site">site to retrieve the worklist from</param> public static void AddAcquisitionSite(AcquisitionSiteInfo site) { UserContext.AcquisitionList.Items.Add(site); }
public void InitializeSiteInformation() { // retrieve a list of acquisition sites for the current site // the local site will use these sites to retrieve data from AcquisitionSiteList acquiList = GetAcquisitionSites(UserContext.LocalSite.PrimarySiteStationNUmber); //AcquisitionSiteList acquiList = new AcquisitionSiteList(); // add local site as an acquisition site AcquisitionSiteInfo localSite = new AcquisitionSiteInfo() { Active = true, SiteAbr = UserContext.LocalSite.SiteAbbreviation, SiteName = UserContext.LocalSite.SiteName, SiteStationNumber = UserContext.LocalSite.SiteStationNumber, PrimeSiteAbr = UserContext.LocalSite.SiteAbbreviation, PrimeSiteName = UserContext.LocalSite.SiteName, PrimeSiteStationNumber = UserContext.LocalSite.PrimarySiteStationNUmber, }; // add local site to list of acq sites acquiList.Items.Add(localSite); UserContext.AcquisitionList = acquiList; // get the lab security keys for the user at acquisition sites foreach (AcquisitionSiteInfo acSite in UserContext.AcquisitionList.Items) { GetUserKeys(acSite.PrimeSiteStationNumber); } }