Exemple #1
0
        private void guna2Button1_Click(object sender, EventArgs e)
        {
            try
            {
                Formx1         f2 = new Formx1();
                ionizedCalcium ui = new ionizedCalcium();



                TextObject text1 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r1"];
                text1.Text = v1.Text.ToString();

                TextObject text2 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r2"];
                text2.Text = v2.Text.ToString();

                TextObject text3 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r3"];
                text3.Text = v3.Text.ToString();

                TextObject text17 = (TextObject)ui.ReportDefinition.Sections["Section4"].ReportObjects["remark"];
                text17.Text = re.Text.ToString();

                //***Patient Details for crystal report***//


                TextObject text11 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtDate"];
                text11.Text = DateTime.Today.ToString();

                TextObject text12 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtReport"];
                text12.Text = global.rReportname;

                TextObject text13 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtMlt"];
                text13.Text = global.UserID;

                TextObject text14 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtPatient"];
                text14.Text = global.rPatientName;

                TextObject text15 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtDob"];
                text15.Text = global.rDob;

                TextObject text16 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtGender"];
                text16.Text = global.rGender;


                //***end***//



                f2.crystalReportViewer1.ReportSource = ui;
                f2.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                Console.WriteLine("Error: \n" + ex);
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                Formx1 f2 = new Formx1();
                vitamineB12SerumReport ui = new vitamineB12SerumReport();

                TextObject text1 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r1"];
                text1.Text = v1.Text.ToString();

                TextObject text2 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r2"];
                text2.Text = v2.Text.ToString();

                TextObject text3 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r3"];
                text3.Text = v3.Text.ToString();

                TextObject text4 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r4"];
                text4.Text = v4.Text.ToString();

                //***Patient Details for crystal report***//


                TextObject text5 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtDate"];
                text5.Text = DateTime.Today.ToString();

                TextObject text6 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtReport"];
                text6.Text = global.rReportname;

                TextObject text7 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtMlt"];
                text7.Text = global.UserID;

                TextObject text8 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtPatient"];
                text8.Text = global.rPatientName;

                TextObject text9 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtDob"];
                text9.Text = global.rDob;

                TextObject text10 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtGender"];
                text10.Text = global.rGender;



                //***end***//

                f2.crystalReportViewer1.ReportSource = ui;
                f2.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                Formx1       f2 = new Formx1();
                lipidProfile ui = new lipidProfile();



                TextObject text1 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["Text1"];
                text1.Text = v1.Text.ToString();

                TextObject text2 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["Text2"];
                text2.Text = v2.Text.ToString();

                TextObject text3 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["Text3"];
                text3.Text = v3.Text.ToString();

                TextObject text4 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["Text4"];
                text4.Text = v4.Text.ToString();

                TextObject text5 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["Text5"];
                text5.Text = v5.Text.ToString();

                TextObject text6 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["ss1"];
                text6.Text = s1.Text.ToString();

                TextObject text7 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["ss2"];
                text7.Text = s2.Text.ToString();

                TextObject text8 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["ss3"];
                text8.Text = s3.Text.ToString();

                TextObject text9 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["ss4"];
                text9.Text = s4.Text.ToString();

                TextObject text10 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["ss5"];
                text10.Text = s5.Text.ToString();

                TextObject text17 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["remark"];
                text17.Text = remark.Text.ToString();

                //***Patient Details for crystal report***//


                TextObject text11 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtDate"];
                text11.Text = DateTime.Today.ToString();

                TextObject text12 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtReport"];
                text12.Text = global.rReportname;

                TextObject text13 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtMlt"];
                text13.Text = global.UserID;

                TextObject text14 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtPatient"];
                text14.Text = global.rPatientName;

                TextObject text15 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtDob"];
                text15.Text = global.rDob;

                TextObject text16 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["txtGender"];
                text16.Text = global.rGender;


                //***end***//



                f2.crystalReportViewer1.ReportSource = ui;
                f2.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        private void guna2Button1_Click(object sender, EventArgs e)
        {
            try
            {
                Formx1     f2 = new Formx1();
                UrineRatio ui = new UrineRatio();



                TextObject text1 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r1"];
                text1.Text = v2.Text.ToString();

                TextObject text2 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r2"];
                text2.Text = v3.Text.ToString();

                TextObject text3 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r3"];
                text3.Text = v4.Text.ToString();

                TextObject text4 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r4"];
                text4.Text = v5.Text.ToString();

                TextObject text5 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r5"];
                text5.Text = v7.Text.ToString();

                TextObject text6 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r6"];
                text6.Text = v8.Text.ToString();

                TextObject text7 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r7"];
                text7.Text = v9.Text.ToString();

                TextObject text8 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r9"];
                text8.Text = v10.Text.ToString();


                TextObject text10 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r10"];
                text10.Text = v11.Text.ToString();

                TextObject text15 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r11"];
                text15.Text = v12.Text.ToString();

                TextObject text16 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r12"];
                text16.Text = v13.Text.ToString();

                TextObject text17 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r13"];
                text17.Text = v14.Text.ToString();

                TextObject text19 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r14"];
                text19.Text = v15.Text.ToString();

                TextObject text20 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r15"];
                text20.Text = v16.Text.ToString();

                TextObject text21 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r16"];
                text21.Text = v17.Text.ToString();


                TextObject text22 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r17"];
                text22.Text = v18.Text.ToString();

                TextObject text23 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r18"];
                text23.Text = v19.Text.ToString();

                TextObject text24 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r19"];
                text24.Text = v20.Text.ToString();

                TextObject text25 = (TextObject)ui.ReportDefinition.Sections["Section3"].ReportObjects["r20"];
                text25.Text = v20.Text.ToString();



                TextObject text18 = (TextObject)ui.ReportDefinition.Sections["Section4"].ReportObjects["re"];
                text18.Text = remark.Text.ToString();
                //***Patient Details for crystal report***//


                TextObject text11 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtDate"];
                text11.Text = DateTime.Today.ToString();

                TextObject text12 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtReport"];
                text12.Text = global.rReportname;

                TextObject text13 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtMlt"];
                text13.Text = global.UserID;

                TextObject text14 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtPatient"];
                text14.Text = global.rPatientName;

                TextObject text55 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtDob"];
                text55.Text = global.rDob;

                TextObject text166 = (TextObject)ui.ReportDefinition.Sections["Section2"].ReportObjects["txtGender"];
                text166.Text = global.rGender;


                //***end***//



                f2.crystalReportViewer1.ReportSource = ui;
                f2.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                Console.WriteLine("Error: " + ex);
            }
        }