Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptTheKho rpt = new rptTheKho();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void ShowTheKho(int maHH, int maKho, DateTime from, DateTime to)
 {
     try
     {
         DataTable     dt  = tTheKho.SetData(maHH, maKho, from, to);
         RPT.rptTheKho rpt = new RPT.rptTheKho();
         rpt.SetDataSource(dt);
         crystalReportViewer1.ReportSource = rpt;
         crystalReportViewer1.Refresh();
         dt.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kiểm tra lại thông tin");
         TLog.WriteErr("frmRptNhap.cs.cs_ShowTheKho", ex.Message + "||" + ex.StackTrace);
     }
 }
Esempio n. 3
0
 private void ShowTheKho(int maHH, int maKho, DateTime from, DateTime to)
 {
     try
     {
         DataTable dt = tTheKho.SetData(maHH, maKho, from, to);
         RPT.rptTheKho rpt = new RPT.rptTheKho();
         rpt.SetDataSource(dt);
         crystalReportViewer1.ReportSource = rpt;
         crystalReportViewer1.Refresh();
         dt.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kiểm tra lại thông tin");
         TLog.WriteErr("frmRptNhap.cs.cs_ShowTheKho", ex.Message + "||" + ex.StackTrace);
     }
 }
Esempio n. 4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptTheKho rpt = new rptTheKho();
     rpt.Site = this.Site;
     return rpt;
 }