public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crthongkenhanvienct rpt = new crthongkenhanvienct(); rpt.Site = this.Site; return(rpt); }
public void loadrpnvluong(string sql, string val) { read.Close(); ketNoi(); comd.CommandText = sql; comd.Parameters.Clear(); comd.Parameters.AddWithValue("@mabophan", val); adap = new SqlDataAdapter(); adap.SelectCommand = comd; dt = new DataTable("nhanvien"); adap.Fill(dt); //gắn data src cho rptthongke crthongkenhanvienct thongke = new crthongkenhanvienct(); thongke.SetDataSource(dt); ngatketNoi(); }