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

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
 private void BtnOk_OnClick(object sender, RoutedEventArgs e)
 {
     _cls.ClsConnect();
     try
     {
         #region
         int      thamso = 2;
         string[] bien   = new string[thamso];
         object[] giatri = new object[thamso];
         bien[0]   = "@Ngay";
         bien[1]   = "@Mau";
         giatri[1] = "";
         if (dtpNgay.SelectedDate != null)
         {
             giatri[0] = dtpNgay.SelectedDate.Value.ToString("yyyy-MM-dd");
         }
         _dt = _cls.LoadDataProcPara("usp_QlyGqvlTinh", bien, giatri, thamso);
         rpt_NguonCqlvTinh rpt = new rpt_NguonCqlvTinh();
         RPUtility.ShowRp(rpt, _dt, this, srv.DbSourceSerVer(), srv.DbNameSerVer(), srv.DbUserSerVer(), srv.DbPassSerVer());
         rpt_NguonCqlvTinh1 rpt1 = new rpt_NguonCqlvTinh1();
         RPUtility.ShowRp(rpt1, _dt, this, srv.DbSourceSerVer(), srv.DbNameSerVer(), srv.DbUserSerVer(), srv.DbPassSerVer());
         #endregion
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error" + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     _cls.DongKetNoi();
 }