예제 #1
0
        public override DataSet Clone()
        {
            dtTKDG cln = ((dtTKDG)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
예제 #2
0
        private void frmRptTKDGMuon_Load(object sender, System.EventArgs e)
        {
            dtTKDG myDataSet = new dtTKDG();

            string         sql     = "select * from docgia";
            SqlConnection  con     = new SqlConnection(SqlHelper.ConnectString);
            SqlDataAdapter adapter = new SqlDataAdapter(sql, con);

            adapter.Fill(myDataSet, "docgia");

            sql = "select * from muonsach where ngaymuon>='" +
                  SqlHelper.dTuNgay + "' and ngaymuon<='" + SqlHelper.dDenNgay + "'";
            con     = new SqlConnection(SqlHelper.ConnectString);
            adapter = new SqlDataAdapter(sql, con);
            adapter.Fill(myDataSet, "muonsach");


            rptTKDGMuon1 = new rptTKDGMuon();


            rptTKDGMuon1.SetDataSource(myDataSet);

            ReportViewer.ReportSource = rptTKDGMuon1;
        }