Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crpt_DailyTotalTestReportDetailVNIO rpt = new crpt_DailyTotalTestReportDetailVNIO();

            rpt.Site = this.Site;
            return(rpt);
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     crpt_DailyTotalTestReportDetailVNIO rpt = new crpt_DailyTotalTestReportDetailVNIO();
     rpt.Site = this.Site;
     return rpt;
 }
Пример #3
0
        /// <summary>
        /// HÀM THỰC HIỆN IN BÁO CÁO
        /// </summary>
        /// <param name="m_dsReport"></param>
        private void INBAOCAO(DataTable m_dsReport)
        {
            //var DT = new ds_dailyDetailTestReport.dtDailyDetailTestReportDataTable();

            string sTungayDenNgay = dtpFromDate.Value.Date != dtpTodate.Value.Date
                                        ? string.Format("{0} --- đến --- {1}", Getsday(dtpFromDate.Value),
                                                        Getsday(dtpTodate.Value))
                                        : Getsday(dtpFromDate.Value);

            if (!InvaliData(m_dtDataReport)) return;
            var crpt = new crpt_DailyTotalTestReportDetailVNIO();
            var objForm = new frmPrintPreview("", crpt, true, true);
            try
            {
                crpt.SetDataSource(m_dsReport);
                crpt.DataDefinition.FormulaFields["Formula_1"].Text = Strings.Chr(34) + "        NHÂN VIÊN                                             TRƯỞNG KHOA                   ".Replace("#$X$#", Strings.Chr(34) + "&Chr(13)&" + Strings.Chr(34)) + Strings.Chr(34);
                crpt.SetParameterValue("ParentBranchName", globalVariables.ParentBranch_Name);
                crpt.SetParameterValue("BranchName", globalVariables.Branch_Name);
                crpt.SetParameterValue("sTungayDenNgay", sTungayDenNgay);
                // crpt.SetParameterValue("TotalTest", intGetTotalTest( DT));
                objForm.crptViewer.ReportSource = crpt;
                objForm.ShowDialog();
                Utility.DefaultNow(this);
            }
            catch (Exception ex)
            {
                Utility.DefaultNow(this);
            }
        }