示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crthongkenhanvienct rpt = new crthongkenhanvienct();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        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();
        }