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; } } } }
private string GetFacilityIdFromLocation(string location) { string result = null; switch (this.ComboBoxLogLocation.Text) { case "All": result = null; break; case "Billings": YellowstonePathology.Business.Facility.Model.YellowstonePathologistBillings ypBlgs = new Business.Facility.Model.YellowstonePathologistBillings(); result = ypBlgs.FacilityId; break; case "Cody": YellowstonePathology.Business.Facility.Model.YellowstonePathologistCody ypCdy = new Business.Facility.Model.YellowstonePathologistCody(); result = ypCdy.FacilityId; break; } return result; }