示例#1
0
        private void btnPrintPreview_Click(object sender, EventArgs e)
        {
            if (radThai.Checked == true)
            {
                List <string> rptCode = new List <string> {
                    "QA301"
                };
                int tprID = 0;

                if (Program.CurrentRegis != null)
                {
                    tprID = Program.CurrentRegis.tpr_id;
                }
                Report.frmPreviewReport frm = new Report.frmPreviewReport(tprID, rptCode);
                frm.previewReport();
            }
            else if (radEng.Checked == true)
            {
                List <string> rptCode = new List <string> {
                    "QA302"
                };
                int tprID = 0;

                if (Program.CurrentRegis != null)
                {
                    tprID = Program.CurrentRegis.tpr_id;
                }
                Report.frmPreviewReport frm = new Report.frmPreviewReport(tprID, rptCode);
                frm.previewReport();
            }
        }
示例#2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            trn_report_vaccine_hdr trvh = (trn_report_vaccine_hdr)bsVaccineHdr.Current;

            Report.frmPreviewReport frm = new Report.frmPreviewReport(trvh.trvh_id, "AV104", Program.CurrentSite.mhs_ename);
            //frm.previewReport();
        }
示例#3
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (_tpr_id != null)
            {
                List <string> rptCode = new List <string>();

                switch (tabCarotidUC1.TabSelected)
                {
                case 0:
                    rptCode = new List <string> {
                        "CD101"
                    };
                    break;

                case 1:
                    rptCode = new List <string> {
                        "CD102"
                    };
                    break;

                default:
                    rptCode = new List <string> {
                        "CD101"
                    };
                    break;
                }
                Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_tpr_id, rptCode);
                frm.previewReport();
            }
        }
示例#4
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            List <string> rptCode = new List <string> {
                "AB101"
            };
            int tprID = (int)_tpr_id;

            //if (Program.CurrentRegis != null) tprID = Program.CurrentRegis.tpr_id;
            Report.frmPreviewReport frm = new Report.frmPreviewReport(tprID, rptCode);
            frm.previewReport();
        }
示例#5
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            List <string> rptCode = new List <string> {
                "QA102"
            };
            int tprID = 0;

            if (Program.CurrentRegis != null)
            {
                tprID = Program.CurrentRegis.tpr_id;
            }
            Report.frmPreviewReport frm = new Report.frmPreviewReport(tprID, rptCode);
            frm.previewReport();
            //ClsReport.previewRpt(new List<string> { "QA102" });
        }
示例#6
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         List <string> rptCode = new List <string> {
             "BK401"
         };
         //Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_tpr_id, rptCode, false, 1, true);
         Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_tpr_id, rptCode);
         frm.previewReport();
     }
     catch (Exception ex)
     {
         Program.MessageError(this.Name, "btnPrint_Click", ex, false);
         lbAlertMsg.Text = "Please Try Again.";
     }
 }
示例#7
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            // String getRtp ="";
            if (_tpr_id != null)
            {
                List <string> rptCode = new List <string>();
                switch (tabPhyExamUC1.TabSelected)
                {
                case 1:
                    rptCode = new List <string> {
                        "QA103"
                    };
                    break;

                case 5:     //off shore
                    rptCode = new List <string> {
                        "PE601"
                    };
                    break;

                case 6:     //fit to fly
                    //rptCode = IsThai ? new List<string> { "PE701" } : new List<string> { "PE702" };
                    rptCode = new List <string> {
                        "AV103"
                    };
                    break;

                case 7:     // occ med
                    rptCode = new List <string> {
                        "PE701"
                    };
                    break;

                default:
                    rptCode = new List <string> {
                        "PE101"
                    };
                    break;
                }
                Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_tpr_id, rptCode);
                frm.previewReport();
            }
        }
示例#8
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            List <string> rptCode = new List <string>();
            int           tprID   = (int)_tpr_id;

            Report.ClsReportDocument cls = new Report.ClsReportDocument();
            string rptCodeEye            = cls.getRptCodeEye(tprID);

            if (rptCodeEye != null)
            {
                rptCode.Add(rptCodeEye);
            }
            List <string> otherRptCode = cls.get_rptCodeEyeAviation(tprID);

            if (otherRptCode != null)
            {
                rptCode.AddRange(otherRptCode);
            }
            Report.frmPreviewReport frm = new Report.frmPreviewReport(tprID, rptCode);
            frm.previewReport();
        }
示例#9
0
        private void btnPrintAllselect_Click(object sender, EventArgs e)
        {
            //previewRpt
            List <string> rptCode = new List <string>();

            for (int i = 0; i <= GridReport.Rows.Count - 1; i++)
            {
                if (Convert1.ToBoolean(GridReport[1, i].Value) == true)
                {
                    string ReportCode = Convert1.ToString(GridReport["ColReportCode", i].Value);
                    rptCode.Add(ReportCode);
                }
            }
            if (rptCode.Count > 0)
            {
                Report.frmPreviewReport frm = new Report.frmPreviewReport(currentRegis.tpr_id, rptCode);
                //Report.frmPreviewReport._propertyReport prop = new Report.frmPreviewReport._propertyReport();
                //prop.tpr_id = currentRegis.tpr_id;
                //prop.reportCode = rptCode;
                //frm.propertyReport = prop;
                frm.previewReport();
            }
            //if (rptCode.Count > 0) ClsReport.previewRpt(currentRegis.tpr_id, rptCode);
        }
示例#10
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (_tpr_id != null)
            {
                List <string> rptCode = new List <string> {
                    "PT101"
                };

                switch (tabObstetricsCKUC1.TabSelected)
                {
                case 0:
                    rptCode = new List <string> {
                        "PT101"
                    };
                    break;

                case 1:
                    rptCode = new List <string> {
                        "PT101"
                    };
                    break;

                case 2:

                    switch (cmbLang.SelectedIndex)
                    {
                    case 0:         //ผลการตรวจมะเร็งปากมดลูก (EN)
                        rptCode = new List <string> {
                            "PT102"
                        };
                        break;

                    case 1:         //ผลการตรวจมะเร็งปากมดลูก (ARB)
                        rptCode = new List <string> {
                            "PT103"
                        };
                        break;

                    case 2:         //ผลการตรวจมะเร็งปากมดลูก (JAP)
                        //rptCode = IsThai ? new List<string> { "PE701" } : new List<string> { "PE702" };
                        rptCode = new List <string> {
                            "PT104"
                        };
                        break;

                    default:
                        rptCode = new List <string> {
                            "PT102"
                        };
                        break;
                    }
                    break;

                default:
                    rptCode = new List <string> {
                        "PT101"
                    };
                    break;
                }
                Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_tpr_id, rptCode);
                frm.previewReport();
            }
        }
示例#11
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            trn_report_aviation_medical tram = (trn_report_aviation_medical)bsAviaMedCer.Current;

            Report.frmPreviewReport frm = new Report.frmPreviewReport(tram.tram_id, "AV103", Program.CurrentSite.mhs_ename);
        }