コード例 #1
0
        public static void CapNhatBaoCao(ChiTietBaoCaoDoanhThu chiTiet, decimal soTien)
        {
            ChiTietBaoCaoDoanhThuDAL.CapNhatBaoCao(chiTiet, soTien);
            DataTable dt = HieuXeBLL.GetHieuXe();

            foreach (DataRow row in dt.Rows)
            {
                ChiTietBaoCaoDoanhThu _chiTiet = new ChiTietBaoCaoDoanhThu();
                _chiTiet.MaBC   = chiTiet.MaBC;
                _chiTiet.HieuXe = row.ItemArray[0].ToString();
                _chiTiet.MaCTBC = ChiTietBaoCaoDoanhThuDAL.GetMaBCDT(_chiTiet.MaBC, _chiTiet.HieuXe);
                ChiTietBaoCaoDoanhThuDAL.CapNhatTiLe(_chiTiet);
            }
        }
コード例 #2
0
ファイル: BaoCaoDoanhThuBLL.cs プロジェクト: huutoan1304/QLGR
        public static void ThemBC(BaoCaoDoanhThu baoCao)
        {
            BaoCaoDoanhThuDAL.ThemBaoCao(baoCao);
            DataTable dt = HieuXeBLL.GetHieuXe();

            foreach (DataRow row in dt.Rows)
            {
                ChiTietBaoCaoDoanhThu chiTiet = new ChiTietBaoCaoDoanhThu();
                chiTiet.MaCTBC = ChiTietBaoCaoDoanhThuBLL.AutoMACTBC();
                chiTiet.MaBC   = baoCao.MaBaoCaoDoanhThu;
                chiTiet.HieuXe = row.ItemArray[0].ToString();

                ChiTietBaoCaoDoanhThuBLL.ThemCTBC(chiTiet);
            }
        }