private void ComboBoxUser_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.m_IsLoaded == true) { ComboBox comboBox = (ComboBox)sender; YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = (YellowstonePathology.Business.Test.PanelSetOrder)comboBox.Tag; YellowstonePathology.Business.User.SystemUser systemUser = (YellowstonePathology.Business.User.SystemUser)comboBox.SelectedItem; YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypiBLGS = new Business.Facility.Model.YellowstonePathologyInstituteBillings(); YellowstonePathology.Business.Facility.Model.ButtePathology buttePathology = new Business.Facility.Model.ButtePathology(); YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings ypBLGS = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings(); if (systemUser.UserId == 5132 || systemUser.UserId == 5133) //Dr Shannon and Dr Smirnoff { panelSetOrder.TechnicalComponentFacilityId = ypiBLGS.FacilityId; panelSetOrder.TechnicalComponentBillingFacilityId = ypiBLGS.FacilityId; panelSetOrder.ProfessionalComponentFacilityId = buttePathology.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = buttePathology.FacilityId; } else { panelSetOrder.TechnicalComponentFacilityId = ypiBLGS.FacilityId; panelSetOrder.TechnicalComponentBillingFacilityId = ypiBLGS.FacilityId; if (systemUser.UserId == 5061) //Dr Clegg { YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody ypCody = new Business.Facility.Model.YellowstonePathologistCody(); YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody ypiCody = new Business.Facility.Model.YellowstonePathologyInstituteCody(); panelSetOrder.ProfessionalComponentFacilityId = ypCody.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = ypiCody.FacilityId; } else { panelSetOrder.ProfessionalComponentFacilityId = ypBLGS.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = ypiBLGS.FacilityId; } } } }
private void ComboBoxUser_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.m_IsLoaded == true) { ComboBox comboBox = (ComboBox)sender; YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = (YellowstonePathology.Business.Test.PanelSetOrder)comboBox.Tag; YellowstonePathology.Business.User.SystemUser systemUser = (YellowstonePathology.Business.User.SystemUser)comboBox.SelectedItem; YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypiBLGS = new Business.Facility.Model.YellowstonePathologyInstituteBillings(); YellowstonePathology.Business.Facility.Model.ButtePathology buttePathology = new Business.Facility.Model.ButtePathology(); YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings ypBLGS = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings(); if (systemUser.UserId == 5132 || systemUser.UserId == 5133) //Dr Shannon and Dr Smirnoff { panelSetOrder.TechnicalComponentFacilityId = ypiBLGS.FacilityId; panelSetOrder.TechnicalComponentBillingFacilityId = ypiBLGS.FacilityId; panelSetOrder.ProfessionalComponentFacilityId = buttePathology.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = buttePathology.FacilityId; } else { panelSetOrder.TechnicalComponentFacilityId = ypiBLGS.FacilityId; panelSetOrder.TechnicalComponentBillingFacilityId = ypiBLGS.FacilityId; if(systemUser.UserId == 5061) //Dr Clegg { YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody ypCody = new Business.Facility.Model.YellowstonePathologistCody(); YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody ypiCody = new Business.Facility.Model.YellowstonePathologyInstituteCody(); panelSetOrder.ProfessionalComponentFacilityId = ypCody.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = ypiCody.FacilityId; } else { panelSetOrder.ProfessionalComponentFacilityId = ypBLGS.FacilityId; panelSetOrder.ProfessionalComponentBillingFacilityId = ypiBLGS.FacilityId; } } } }
public static FacilityCollection GetAllYPFacilities() { FacilityCollection result = new FacilityCollection(); YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings ypBlgs = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings(); YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypiBlgs = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings(); YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody ypCdy = new YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody(); YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody ypiCdy = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody(); result.Add(ypBlgs); result.Add(ypiBlgs); result.Add(ypCdy); result.Add(ypiCdy); return(result); }