Example #1
0
        private void btnPrintPreview_Click(object sender, EventArgs e)
        {
            DisableBtnAll();
            List <string> rptCode = new List <string>();

            Report.ClsReportDocument cls = new Report.ClsReportDocument();
            string rptCodeEye            = cls.getRptCodeEye((int)this.tpr_id);

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

            if (otherRptCode != null)
            {
                rptCode.AddRange(otherRptCode);
            }
            Report.frmPreviewReport frm = new Report.frmPreviewReport((int)this.tpr_id, rptCode);
            frm.previewReport();
            //ClsReport.previewRptEye();
            if (this.FormStatus == formStatus.isFooter)
            {
                StatusFooter();
            }
            else
            {
                StatusWK();
            }
        }
Example #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DisableBtnAll();
            List <string> rptCode = new List <string> {
                "CD101"
            };

            Report.frmPreviewReport frm = new Report.frmPreviewReport((int)this.tpr_id, rptCode);
            frm.printReport();
            if (this.FormStatus == formStatus.isFooter)
            {
                StatusFooter();
            }
            else
            {
                StatusWK();
            }
        }
Example #3
0
        private void btnPrintPreview_Click(object sender, EventArgs e)
        {
            List <string> rptCode = new List <string>();

            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;
            }
            // List<string> rptCode = new List<string> { "PT102" };

            Report.ClsReportDocument cls = new Report.ClsReportDocument();
            string otherRptCode          = cls.getRptCodeBySite((int)_Current_tpr_id);

            if (!string.IsNullOrEmpty(otherRptCode))
            {
                rptCode.Add(cls.getRptCodeBySite((int)_Current_tpr_id));
            }
            Report.frmPreviewReport frm = new Report.frmPreviewReport((int)_Current_tpr_id, rptCode);
            frm.previewReport();
        }