Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rpt_01TG rpt = new rpt_01TG();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
 private void btnOk_Click(object sender, RoutedEventArgs e)
 {
     dtNew = dt.Clone();
     foreach (DataRow dr in dt.Rows)
     {
         if ((bool)dr[0] == true)
         {
             dtNew.ImportRow(dr);
         }
     }
     if (dtNew == null || dtNew.Rows.Count == 0)
     {
         MessageBox.Show("Chưa chọn khách hàng nào ", "Mess");
     }
     else
     {
         // dgvTarGet.ItemsSource = dtNew.DefaultView;
         rpt_01TG rpt = new rpt_01TG();
         RPUtility.ShowRp(rpt, dtNew, this, srv.DbSourceSerVer(), srv.DbNameSerVer(), srv.DbUserSerVer(), srv.DbPassSerVer());
     }
     // dtNew.RejectChanges();
     // dtNew = null;
 }