Exemple #1
0
 private void frmThongKeHangHoatheoDVT_Load_1(object sender, EventArgs e)
 {
     GiaoDienCuaHang.DataLayer.DonViTinhData dvtdata = new GiaoDienCuaHang.DataLayer.DonViTinhData();
     comboBox1.DataSource    = dvtdata.LayDSDonViTinh();
     comboBox1.DisplayMember = "TENDVT";
     comboBox1.ValueMember   = "MADVT";
 }
Exemple #2
0
        private void frmThongKeDonViTinh_Shown(object sender, EventArgs e)
        {
            GiaoDienCuaHang.DataLayer.DonViTinhData dvt = new GiaoDienCuaHang.DataLayer.DonViTinhData();
            DataTable tbl = dvt.LayDSDonViTinh();
            CrystalReportDonviTinh report = new CrystalReportDonviTinh();

            report.SetDataSource(tbl);
            crystalReportViewer1.ReportSource = report;
        }