private void HyperLinkPhysicianNotFound_Click(object sender, RoutedEventArgs e)
        {
            Business.Client.Model.PhysicianClientDistributionListItem physicianClientDistribution = new Business.Client.Model.PhysicianClientDistributionListItem();
            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 SetPhysicianClient(Business.Client.Model.PhysicianClientDistributionListItem 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);
                }
            }
        }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.listViewPhysicianClient.SelectedItem != null)
     {
         Business.Client.Model.PhysicianClientDistributionListItem item = (Business.Client.Model.PhysicianClientDistributionListItem) 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.");
     }
 }
예제 #4
0
 public PhysicianClientDistributionReturnEventArgs(Business.Client.Model.PhysicianClientDistributionListItem physicianClientDistribution)
 {
     this.m_PhysicianClientDistribution = physicianClientDistribution;
 }
        private void HyperLinkPhysicianNotFound_Click(object sender, RoutedEventArgs e)
        {
            Business.Client.Model.PhysicianClientDistributionListItem physicianClientDistribution = new Business.Client.Model.PhysicianClientDistributionListItem();
            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.Model.PhysicianClientDistributionListItem physicianClientDistribution)
 {
     this.m_PhysicianClientDistribution = physicianClientDistribution;
 }
예제 #7
0
        public static Business.Client.Model.PhysicianClientDistributionList GetPhysicianClientDistributionByPhysicianFirstLastNameV2(string firstName, string lastName)
        {
            Business.Client.Model.PhysicianClientDistributionList result = new Client.Model.PhysicianClientDistributionList();
            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.FirstName like @FirstName + '%' and ph.LastName like @LastName + '%' order by ph.LastName, ph.FirstName, c.ClientName";
            cmd.CommandType = CommandType.Text;
            cmd.Parameters.Add("@FirstName", SqlDbType.VarChar, 50).Value = firstName;
            cmd.Parameters.Add("@LastName", SqlDbType.VarChar, 50).Value = lastName;

            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        Business.Client.Model.PhysicianClientDistributionListItem physicianClientDistribution = new Business.Client.Model.PhysicianClientDistributionListItem();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(physicianClientDistribution, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(physicianClientDistribution);
                    }
                }
            }
            return result;
        }