public void ChangeQtyChiTietLichSuBanHang(CHITIETLICHSUBANHANG chitiet,int qty)
 {
     chitiet.SoLuong = qty;
     chitiet.ThanhTien = chitiet.SoLuong *chitiet.KichThuocLoaiBan* chitiet.GiaBan/this.MenuKichThuocMon.KichThuocLoaiBan;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CHITIETLICHSUBANHANGs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCHITIETLICHSUBANHANGs(CHITIETLICHSUBANHANG cHITIETLICHSUBANHANG)
 {
     base.AddObject("CHITIETLICHSUBANHANGs", cHITIETLICHSUBANHANG);
 }
 private CHITIETLICHSUBANHANG GetChiTietLichSuBanHang(BOChiTietBanHang item,LICHSUBANHANG lichsu)
 {            
     CHITIETLICHSUBANHANG chitiet = new CHITIETLICHSUBANHANG();
     chitiet.LichSuBanHangID = lichsu.LichSuBanHangID;
     chitiet.KichThuocMonID = item.ChiTietBanHang.KichThuocMonID;            
     chitiet.SoLuong = item.ChiTietBanHang.SoLuongBan;
     chitiet.ThanhTien = item.ChiTietBanHang.ThanhTien;
     chitiet.GiaBan = item.ChiTietBanHang.GiaBan;
     chitiet.GiamGia = item.ChiTietBanHang.GiamGia;
     chitiet.KichThuocLoaiBan = item.ChiTietBanHang.KichThuocLoaiBan;
     chitiet.TrangThai = 0;
     return chitiet;
 }
 /// <summary>
 /// Create a new CHITIETLICHSUBANHANG object.
 /// </summary>
 /// <param name="chiTietLichSuBanHangID">Initial value of the ChiTietLichSuBanHangID property.</param>
 /// <param name="soLuong">Initial value of the SoLuong property.</param>
 /// <param name="kichThuocLoaiBan">Initial value of the KichThuocLoaiBan property.</param>
 /// <param name="giamGia">Initial value of the GiamGia property.</param>
 /// <param name="giaBan">Initial value of the GiaBan property.</param>
 /// <param name="thanhTien">Initial value of the ThanhTien property.</param>
 /// <param name="loaiChiTietBanHang">Initial value of the LoaiChiTietBanHang property.</param>
 public static CHITIETLICHSUBANHANG CreateCHITIETLICHSUBANHANG(global::System.Int32 chiTietLichSuBanHangID, global::System.Int32 soLuong, global::System.Int32 kichThuocLoaiBan, global::System.Int32 giamGia, global::System.Decimal giaBan, global::System.Decimal thanhTien, global::System.Int32 loaiChiTietBanHang)
 {
     CHITIETLICHSUBANHANG cHITIETLICHSUBANHANG = new CHITIETLICHSUBANHANG();
     cHITIETLICHSUBANHANG.ChiTietLichSuBanHangID = chiTietLichSuBanHangID;
     cHITIETLICHSUBANHANG.SoLuong = soLuong;
     cHITIETLICHSUBANHANG.KichThuocLoaiBan = kichThuocLoaiBan;
     cHITIETLICHSUBANHANG.GiamGia = giamGia;
     cHITIETLICHSUBANHANG.GiaBan = giaBan;
     cHITIETLICHSUBANHANG.ThanhTien = thanhTien;
     cHITIETLICHSUBANHANG.LoaiChiTietBanHang = loaiChiTietBanHang;
     return cHITIETLICHSUBANHANG;
 }