public void XuliGopBan()
 {
     int banHang = this.BanHang.BANHANG.BanHangID;
     this.BanHang.GopBan(this);
     GOPBAN gopban = new GOPBAN();            
     gopban.BanHangID = this.BanHang.BANHANG.BanHangID;
     gopban.NhanVienID = mTransit.NhanVien.NhanVienID;
     gopban.ThoiGian = DateTime.Now;                                    
     foreach (var item in _ListBan)
     {
         CHITIETGOPBAN chitiet = new CHITIETGOPBAN();                                
         chitiet.BanHangID = item.BANHANG.BanHangID;
         gopban.CHITIETGOPBANs.Add(chitiet);                
     }
     if (banHang>0)
     {
         CHITIETGOPBAN chitiet = new CHITIETGOPBAN();                
         chitiet.BanHangID = banHang;                
         gopban.CHITIETGOPBANs.Add(chitiet);                
     }
     mKaraokeEntities.GOPBANs.AddObject(gopban);
     mKaraokeEntities.SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CHITIETGOPBANs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCHITIETGOPBANs(CHITIETGOPBAN cHITIETGOPBAN)
 {
     base.AddObject("CHITIETGOPBANs", cHITIETGOPBAN);
 }
 /// <summary>
 /// Create a new CHITIETGOPBAN object.
 /// </summary>
 /// <param name="chiTietGopBanID">Initial value of the ChiTietGopBanID property.</param>
 public static CHITIETGOPBAN CreateCHITIETGOPBAN(global::System.Int32 chiTietGopBanID)
 {
     CHITIETGOPBAN cHITIETGOPBAN = new CHITIETGOPBAN();
     cHITIETGOPBAN.ChiTietGopBanID = chiTietGopBanID;
     return cHITIETGOPBAN;
 }