Ejemplo n.º 1
0
 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>
 /// Deprecated Method for adding a new object to the LICHSUBANHANGs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLICHSUBANHANGs(LICHSUBANHANG lICHSUBANHANG)
 {
     base.AddObject("LICHSUBANHANGs", lICHSUBANHANG);
 }
Ejemplo n.º 3
0
 private LICHSUBANHANG GetLichSuBanHang()
 {
     LICHSUBANHANG lichsu = new LICHSUBANHANG();
     lichsu.BanHangID = this.BANHANG.BanHangID;
     lichsu.NhanVienID = mTransit.NhanVien.NhanVienID;
     if (lichsu.NhanVienID==0)
     {
         lichsu.NhanVienID = null;
     }
     lichsu.NgayBan = DateTime.Now;
     lichsu.InNhaBep = false;
     return lichsu;
 }
 /// <summary>
 /// Create a new LICHSUBANHANG object.
 /// </summary>
 /// <param name="lichSuBanHangID">Initial value of the LichSuBanHangID property.</param>
 /// <param name="inNhaBep">Initial value of the InNhaBep property.</param>
 public static LICHSUBANHANG CreateLICHSUBANHANG(global::System.Int32 lichSuBanHangID, global::System.Boolean inNhaBep)
 {
     LICHSUBANHANG lICHSUBANHANG = new LICHSUBANHANG();
     lICHSUBANHANG.LichSuBanHangID = lichSuBanHangID;
     lICHSUBANHANG.InNhaBep = inNhaBep;
     return lICHSUBANHANG;
 }