예제 #1
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_AccessionOrder.ClientName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                DateTime timeToSchedule = DateTime.Parse(DateTime.Today.ToShortDateString() + " 13:00");
                if (DateTime.Now >= timeToSchedule)
                {
                    timeToSchedule = timeToSchedule.AddDays(1);
                }

                YellowstonePathology.Business.ReportDistribution.Model.ScheduledFaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", @"C:\\Program Files\\Yellowstone Pathology Institute\\ClientMissingInformationLetter.xml", timeToSchedule);
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
        }
예제 #2
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;

            if (this.m_ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_ProviderName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                YellowstonePathology.Business.ReportDistribution.Model.FaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", YellowstonePathology.UI.Properties.Settings.Default.ClientMissingInformationLetterFileName);

                if (string.IsNullOrEmpty(this.m_InfoEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                                                                                  this.m_InfoEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingInformation);
                }

                if (string.IsNullOrEmpty(this.m_AbnEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                                                                                  this.m_AbnEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingABN);
                }
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
            this.Close();
        }
예제 #3
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_AccessionOrder.ClientName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                DateTime timeToSchedule = DateTime.Parse(DateTime.Today.ToShortDateString() + " 13:00");
                if(DateTime.Now >= timeToSchedule)
                {
                    timeToSchedule = timeToSchedule.AddDays(1);
                }

                YellowstonePathology.Business.ReportDistribution.Model.ScheduledFaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", @"C:\\Program Files\\Yellowstone Pathology Institute\\ClientMissingInformationLetter.xml", timeToSchedule);
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
        }
예제 #4
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;

            if (this.m_ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_ProviderName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                YellowstonePathology.Business.ReportDistribution.Model.FaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", YellowstonePathology.Properties.Settings.Default.ClientMissingInformationLetterFileName);

                if (string.IsNullOrEmpty(this.m_InfoEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                        this.m_InfoEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingInformation);
                }

                if (string.IsNullOrEmpty(this.m_AbnEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                        this.m_AbnEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingABN);
                }
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
            this.Close();
        }