private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (Report.Report_Lab f = new Report.Report_Lab())
     {
         f.Tag     = resultid;
         f.isLabo8 = true;
         f.ShowDialog();
     }
 }
Beispiel #2
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     Report.Report_Lab Print = new Report.Report_Lab();
     Print.Tag = FecalysisID.ToString();
     //Print.R_Fecal.Select();
     //Print.R_lab06.Enabled = false; Print.R_lab08.Enabled = false; Print.R_Hema.Enabled = false; Print.R_Chem.Enabled = false; Print.R_Urine.Enabled = false; Print.R_Fecal.Enabled = true;
     //Print.load_Fecal();
     Print.isFecal = true;
     Print.ShowDialog();
 }
        private void cmd_print_Click(object sender, EventArgs e)
        {
            if (ResultType == "SEA")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report_SeaBase_Print print = new Report_SeaBase_Print();
                print.Tag = ResultID.ToString();
                print.Load_mlc();
                print.rb_mlc.Select();
                print.wizard1.SelectedTab = print.tabPage2;
                print.ShowDialog();
            }

            else if (ResultType == "HIV")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_PrintOuts frm_print = new Report.Report_PrintOuts();
                frm_print.Tag = ResultID.ToString();
                frm_print.HIV = true;
                frm_print.ShowDialog();
            }
            else if (ResultType == "LAB")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report_Lab frm_lab_Report = new Report_Lab();
                frm_lab_Report.Tag = ResultID.ToString();
                frm_lab_Report.Load_Lab08();
                frm_lab_Report.R_lab08.Select();
                frm_lab_Report.wizard1.SelectedTab = frm_lab_Report.tabPage2;
                frm_lab_Report.ShowDialog();
            }
            else if (ResultType == "LAND")
            {
                Cursor.Current = Cursors.Default;
                Report_Landbase Print = new Report_Landbase();
                Print.Load_Summary();
                Print.ShowDialog();
            }
            else if (ResultType == "PSYCHO")
            {
                Report.Report_PrintOuts frm_print = new Report.Report_PrintOuts();
                frm_print.Tag       = ResultID.ToString();
                frm_print.PsychEval = true;
                frm_print.ShowDialog();
            }
            else if (ResultType == "UTZ")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_PrintOuts frm_ultraSound = new Report.Report_PrintOuts();
                frm_ultraSound.Tag        = ResultID.ToString();
                frm_ultraSound.Ultrasound = true;
                frm_ultraSound.ShowDialog();
            }
            else if (ResultType == "XRAY")
            {
                Report.Report_PrintOuts frm_print = new Report.Report_PrintOuts();
                frm_print.Tag  = ResultID.ToString();
                frm_print.XRAY = true;
                frm_print.ShowDialog();
            }
            else if (ResultType == "SEAMLC")
            {
                Report.Report_PrintOuts frm_mlc = new Report.Report_PrintOuts();
                frm_mlc.Tag = ResultID.ToString();
                frm_mlc.MLC = true;
                frm_mlc.ShowDialog();
            }
            else if (ResultType == "HEMA(repeat)")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_Lab Print = new Report.Report_Lab();
                Print.Tag = ResultID.ToString();
                Print.R_Hema.Select();
                Print.R_lab06.Enabled = false; Print.R_lab08.Enabled = false; Print.R_Hema.Enabled = true; Print.R_Chem.Enabled = false; Print.R_Urine.Enabled = false; Print.R_Fecal.Enabled = false;
                Print.LoadHema();
                Print.ShowDialog();
            }
            else if (ResultType == "CHEM(repeat)")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_Lab Print = new Report.Report_Lab();
                Print.Tag = ResultID.ToString();
                Print.R_Chem.Select();
                Print.R_lab06.Enabled = false; Print.R_lab08.Enabled = false; Print.R_Hema.Enabled = false; Print.R_Chem.Enabled = true; Print.R_Urine.Enabled = false; Print.R_Fecal.Enabled = false;
                Print.Load_Chem();
                Print.ShowDialog();
            }
            else if (ResultType == "URINE(repeat)")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_Lab Print = new Report.Report_Lab();
                Print.Tag = ResultID.ToString();
                Print.R_Urine.ToString();
                Print.R_lab06.Enabled = false; Print.R_lab08.Enabled = false; Print.R_Hema.Enabled = false; Print.R_Chem.Enabled = false; Print.R_Urine.Enabled = true; Print.R_Fecal.Enabled = false;
                Print.Load_Urine();
                Print.ShowDialog();
            }
            else if (ResultType == "STOOL(repeat)")
            {
                Cursor.Current = Cursors.WaitCursor;
                Report.Report_Lab Print = new Report.Report_Lab();
                Print.Tag = ResultID.ToString();
                Print.R_Fecal.Select();
                Print.R_lab06.Enabled = false; Print.R_lab08.Enabled = false; Print.R_Hema.Enabled = false; Print.R_Chem.Enabled = false; Print.R_Urine.Enabled = false; Print.R_Fecal.Enabled = true;
                Print.load_Fecal();
                Print.ShowDialog();
            }
        }