private void HyperLinkPhysicianNotFound_Click(object sender, RoutedEventArgs e) { Business.Client.PhysicianClientDistribution physicianClientDistribution = new Business.Client.PhysicianClientDistribution(); physicianClientDistribution.PhysicianId = 2371; physicianClientDistribution.PhysicianName = "*** Physician Not Found *** *** Physician Not Found ***"; physicianClientDistribution.ClientId = 1007; physicianClientDistribution.ClientName = "** Client Not Found **"; this.SetPhysicianClient(physicianClientDistribution); this.SetDistribution(); }
private void ButtonNext_Click(object sender, RoutedEventArgs e) { if (this.listViewPhysicianClient.SelectedItem != null) { Business.Client.PhysicianClientDistribution item = (Business.Client.PhysicianClientDistribution) this.listViewPhysicianClient.SelectedItem; if (this.Next != null) { this.Next(this, new CustomEventArgs.PhysicianClientDistributionReturnEventArgs(item)); } } else { MessageBox.Show("You must select a provider before you can continue."); } }
private void SetPhysicianClient(Business.Client.PhysicianClientDistribution physicianClientDistribution) { if (physicianClientDistribution != null) { this.m_AccessionOrder.SetPhysicianClient(physicianClientDistribution); this.m_AccessionOrder.UpdateColorCode(); if (this.m_AccessionOrder.PanelSetOrderCollection.HasSurgical() == true) { YellowstonePathology.Business.Test.PanelSetOrder surgicalPanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical(); this.m_AccessionOrder.UpdateCaseAssignment(surgicalPanelSetOrder); } this.SetDistribution(); } }
public static Business.Client.PhysicianClientDistributionCollection GetPhysicianClientDistributionByPhysicianLastNameV2(string lastName) { Business.Client.PhysicianClientDistributionCollection result = new Client.PhysicianClientDistributionCollection(); SqlCommand cmd = new SqlCommand(); cmd.CommandText = "Select c.ClientId, c.ClientName, ph.PhysicianId, ph.DisplayName [PhysicianName], c.DistributionType, c.Fax [FaxNumber], c.LongDistance " + "from tblClient c " + "join tblPhysicianClient pp on c.clientid = pp.clientid " + "Join tblPhysician ph on pp.ProviderId = ph.ObjectId " + "where ph.LastName like @LastName + '%' order by ph.LastName, ph.FirstName, c.ClientName"; cmd.CommandType = CommandType.Text; cmd.Parameters.Add("@LastName", SqlDbType.VarChar, 50).Value = lastName; using (SqlConnection cn = new SqlConnection(YellowstonePathology.Business.Properties.Settings.Default.CurrentConnectionString)) { cn.Open(); cmd.Connection = cn; using (SqlDataReader dr = cmd.ExecuteReader()) { while (dr.Read()) { Business.Client.PhysicianClientDistribution physicianClientDistribution = new Business.Client.PhysicianClientDistribution(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(physicianClientDistribution, dr); sqlDataReaderPropertyWriter.WriteProperties(); result.Add(physicianClientDistribution); } } } return result; }
private void HyperLinkPhysicianNotFound_Click(object sender, RoutedEventArgs e) { Business.Client.PhysicianClientDistribution physicianClientDistribution = new Business.Client.PhysicianClientDistribution(); physicianClientDistribution.PhysicianId = 2371; physicianClientDistribution.PhysicianName = "*** Physician Not Found *** *** Physician Not Found ***"; physicianClientDistribution.ClientId = 1007; physicianClientDistribution.ClientName = "** Client Not Found **"; this.SetPhysicianClient(physicianClientDistribution); this.SetDistribution(); }
public PhysicianClientDistributionReturnEventArgs(Business.Client.PhysicianClientDistribution physicianClientDistribution) { this.m_PhysicianClientDistribution = physicianClientDistribution; }
public PhysicianClientDistributionReturnEventArgs(Business.Client.PhysicianClientDistribution physicianClientDistribution) { this.m_PhysicianClientDistribution = physicianClientDistribution; }