Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string selectedReference = listBox1.SelectedItem.ToString();

            if (File.Exists(archiveDirectory + selectedReference))
            {
                string[] fileNameParts = selectedReference.Split('_');
                string   clientDir     = Settings.Default["programFilesDirectory"].ToString() + "\\Exported\\" + fileNameParts[0] + "_" + fileNameParts[1] + "_Documents\\" + fileNameParts[2] + "_" + fileNameParts[3] + "_" + fileNameParts[4] + "_" + fileNameParts[5].Replace(".txt", "");
                Console.WriteLine(clientDir);
                if (Directory.Exists(clientDir))
                {
                    Console.WriteLine("Archive enter");
                    Settings.Default["msrIntroduction"]           = File.ReadAllText(clientDir + "\\archiveData\\msrIntroduction.txt");
                    Settings.Default["msrRecordsReviewed"]        = File.ReadAllText(clientDir + "\\archiveData\\msrRecordsReviewed.txt");
                    Settings.Default["msrHistory"]                = File.ReadAllText(clientDir + "\\archiveData\\msrHistory.txt");
                    Settings.Default["msrReviewOfRecords"]        = File.ReadAllText(clientDir + "\\archiveData\\msrReviewOfRecords.txt");
                    Settings.Default["msrOngoingMedicalProblems"] = File.ReadAllText(clientDir + "\\archiveData\\msrOngoingMedicalProblems.txt");
                    Settings.Default["msrMedicalChargesToDate"]   = File.ReadAllText(clientDir + "\\archiveData\\msrMedicalChargesToDate.txt");
                    Settings.Default["msrDiscussion"]             = File.ReadAllText(clientDir + "\\archiveData\\msrDiscussion.txt");
                    Settings.Default["msrFutureCareAndCosts"]     = File.ReadAllText(clientDir + "\\archiveData\\msrFutureCareAndCosts.txt");
                    Settings.Default["msrSummary"]                = File.ReadAllText(clientDir + "\\archiveData\\msrSummary.txt");
                    Settings.Default["msrReferences"]             = File.ReadAllText(clientDir + "\\archiveData\\msrReferences.txt");

                    Settings.Default["imerHPI"]                 = File.ReadAllText(clientDir + "\\archiveData\\imerHPI.txt");
                    Settings.Default["imerCurrentSymptoms"]     = File.ReadAllText(clientDir + "\\archiveData\\imerCurrentSymptoms.txt");
                    Settings.Default["imerMedicalRecordReview"] = File.ReadAllText(clientDir + "\\archiveData\\imerMedicalRecordReview.txt");
                    Settings.Default["imerPhysicalExamination"] = File.ReadAllText(clientDir + "\\archiveData\\imerPhysicalExamination.txt");
                    Settings.Default["imerAssessment"]          = File.ReadAllText(clientDir + "\\archiveData\\imerAssessment.txt");
                    Settings.Default["imerReferences"]          = File.ReadAllText(clientDir + "\\archiveData\\imerReferences.txt");

                    Settings.Default["socBriefHistoryOfEvents"]      = File.ReadAllText(clientDir + "\\archiveData\\socBriefHistoryOfEvents.txt");
                    Settings.Default["socQuestionOfSubstandardCare"] = File.ReadAllText(clientDir + "\\archiveData\\socQuestionOfSubstandardCare.txt");
                    Settings.Default["socReferences"] = File.ReadAllText(clientDir + "\\archiveData\\socReferences.txt");

                    Settings.Default["rqrMainPage"]   = File.ReadAllText(clientDir + "\\archiveData\\rqrMainPage.txt");
                    Settings.Default["rqrReferences"] = File.ReadAllText(clientDir + "\\archiveData\\rqrReferences.txt");

                    Settings.Default["msrIsNew"]  = false;
                    Settings.Default["imerIsNew"] = false;
                    Settings.Default["socIsNew"]  = false;
                    Settings.Default["rqrIsNew"]  = false;

                    WorkForm wkfrm = new WorkForm(Settings.Default.msrIsNew);

                    wkfrm.Location = this.Location;

                    wkfrm.FormClosed += (s, args) => this.Close();
                    wkfrm.Show();

                    this.Hide();
                }
            }
        }
Пример #2
0
        //Continue Document button
        private void button2_Click(object sender, EventArgs e)
        {
            bool isNewDocument = false;

            Settings.Default.imerIsNew = false;
            Settings.Default.msrIsNew  = false;

            WorkForm wkfrm = new WorkForm(isNewDocument);

            wkfrm.Location = this.Location;

            wkfrm.FormClosed += (s, args) => this.Close();
            wkfrm.Show();

            this.Hide();
        }
Пример #3
0
        //Go to medical report button
        private void button3_Click(object sender, EventArgs e)
        {
            if (rlfrm != null)
            {
                rlfrm.Close();
            }

            SaveTextBoxes();
            WorkForm wkfrm = new WorkForm(Settings.Default.msrIsNew);

            wkfrm.Location = this.Location;

            wkfrm.FormClosed += (s, args) => this.Close();
            wkfrm.Show();

            this.Hide();
        }
Пример #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex != -1 || listBox2.SelectedIndex != -1)
            {
                Settings.Default["attorneyFirstName"]  = listBox1.SelectedItem.ToString().Split(' ')[0];
                Settings.Default["attorneyLastName"]   = listBox1.SelectedItem.ToString().Split(' ')[1];
                Settings.Default["clientFirstName"]    = textBox4.Text;
                Settings.Default["clientLastName"]     = textBox3.Text;
                Settings.Default["attorneyAddress"]    = File.ReadAllText(Settings.Default["programFilesDirectory"].ToString() + "\\attorney_data\\" + listBox1.SelectedItem.ToString() + ".txt");
                Settings.Default["physicianSignature"] = File.ReadAllText(Settings.Default["programFilesDirectory"].ToString() + "\\physician_data\\" + listBox2.SelectedItem.ToString() + ".txt");
                Settings.Default.Save();

                bool isNewDocument = true;

                Settings.Default["msrIsNew"]  = true;
                Settings.Default["imerIsNew"] = true;
                Settings.Default["socIsNew"]  = true;
                Settings.Default["rqrIsNew"]  = true;
                Settings.Default.Save();
                if (radioButton1.Checked)
                {
                    WorkForm wkfrm = new WorkForm(Settings.Default.msrIsNew);

                    wkfrm.Location = this.Location;

                    wkfrm.FormClosed += (s, args) => this.Close();
                    wkfrm.Show();

                    this.Hide();
                }
                else if (radioButton2.Checked)
                {
                    WorkForm2 wkfrm2 = new WorkForm2(Settings.Default.imerIsNew);

                    wkfrm2.Location = this.Location;

                    wkfrm2.FormClosed += (s, args) => this.Close();
                    wkfrm2.Show();

                    this.Hide();
                }
                else if (radioButton3.Checked)
                {
                    WorkForm3 wkfrm3 = new WorkForm3(Settings.Default.socIsNew);

                    wkfrm3.Location = this.Location;

                    wkfrm3.FormClosed += (s, args) => this.Close();
                    wkfrm3.Show();

                    this.Hide();
                }
                else if (radioButton4.Checked)
                {
                    WorkForm4 wkfrm4 = new WorkForm4(Settings.Default.rqrIsNew);

                    wkfrm4.Location = this.Location;

                    wkfrm4.FormClosed += (s, args) => this.Close();
                    wkfrm4.Show();

                    this.Hide();
                }
            }
            else
            {
                MessageBox.Show("Please SELECT an attorney and a Physician");
            }
        }