public FedexReturnLabelRequest(string shipToName, string shipToPhone, string shipToAddress1, string shipToAddress2, string shipToCity, string shipToState, string shipToZip, FedexAccount fedexAccount)
        {
            this.m_ShipFromFacility = new Facility.Model.YellowstonePathologyInstituteBillings();

            this.m_ShipToName = shipToName;
            this.m_ShipToPhone = shipToPhone;
            this.m_ShipToAddress1 = shipToAddress1;
            this.m_ShipToAddress2 = shipToAddress2;
            this.m_ShipToCity = shipToCity;
            this.m_ShipToState = shipToState;
            this.m_ShipToZip = shipToZip;

            this.m_FedexAccount = fedexAccount;

            this.OpenShipmentRequestFile();
            this.SetShipementRequestData();
        }
        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;
                    }
                }
            }
        }
Example #3
0
        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;
                    }
                }
            }
        }