public int DemDong() { kn.Open_DB(); string sql = "SELECT * FROM tblThannhan"; SqlDataAdapter da = new SqlDataAdapter(sql, kn._sqlConn1); DataTable t = new DataTable(); da.Fill(t); return(t.Rows.Count); }
public void Load_BC_Chucvu(CrystalReportViewer cryView, ReportDocument rp) { kn.Open_DB(); kn.Exe_sp_X("proc_ChucVu_BC"); rp.SetDataSource(kn._dataset.Tables[0]); cryView.ReportSource = rp; }