public ClientEntry(YellowstonePathology.Business.Client.Model.Client client) { this.m_Client = client; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_ClientPhysicianView = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientPhysicianViewByClientIdV2(this.m_Client.ClientId); if (this.m_ClientPhysicianView == null) { this.m_ClientPhysicianView = new Business.View.ClientPhysicianView(); } this.m_InsuranceTypeCollection = new Business.Billing.Model.InsuranceTypeCollection(true); this.m_FacilityTypes = new List<string>(); this.m_FacilityTypes.Add("Hospital"); this.m_FacilityTypes.Add("Hospital Owned Clinic"); this.m_FacilityTypes.Add("Non-Grandfathered Hospital"); this.m_FacilityTypes.Add("Non-Hospital"); this.m_DistributionTypeList = new YellowstonePathology.Business.ReportDistribution.Model.DistributionTypeList(); this.m_BillingRuleSetCollection = YellowstonePathology.Business.Billing.Model.BillingRuleSetCollection.GetAllRuleSets(); this.m_ClientSupplyOrderCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientSupplyOrderCollectionByClientId(this.m_Client.ClientId); InitializeComponent(); this.DataContext = this; Closing += ClientEntry_Closing; }
public ClientEntryV2(YellowstonePathology.Business.Client.Model.Client client, bool isNewClient) { this.m_Client = client; this.m_IsNewClient = isNewClient; if (this.m_IsNewClient == true) { YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(this.m_Client, this); } else { YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClient(client, this); } this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_ClientPhysicianView = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientPhysicianViewByClientIdV2(this.m_Client.ClientId); if (this.m_ClientPhysicianView == null) { this.m_ClientPhysicianView = new Business.View.ClientPhysicianView(); } this.m_InsuranceTypeCollection = new Business.Billing.InsuranceTypeCollection(true); this.m_FacilityTypes = new List <string>(); this.m_FacilityTypes.Add("Hospital"); this.m_FacilityTypes.Add("Hospital Owned Clinic"); this.m_FacilityTypes.Add("Non-Grandfathered Hospital"); this.m_FacilityTypes.Add("Non-Hospital"); this.m_DistributionTypeList = new YellowstonePathology.Business.ReportDistribution.Model.DistributionTypeList(); this.m_BillingRuleSetCollection = YellowstonePathology.Business.Billing.Model.BillingRuleSetCollection.GetAllRuleSets(); this.m_ClientSupplyOrderCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientSupplyOrderCollectionByClientId(this.m_Client.ClientId); InitializeComponent(); this.DataContext = this; Closing += ClientEntry_Closing; }