Exemplo n.º 1
0
 public void ChuyenBan(BAN ban)
 {
     int banHangID = _BanHang.BANHANG.BanHangID;                
     _BanHang.ChuyenBan(ban);
     CHUYENBAN chuyen = new CHUYENBAN();
     chuyen.TuBanHangID = banHangID;
     chuyen.DenBanHangID = _BanHang.BANHANG.BanHangID;
     chuyen.NhanVienID = mTransit.NhanVien.NhanVienID;
     chuyen.ThoiGian = DateTime.Now;
     mKaraokeEntities.CHUYENBANs.AddObject(chuyen);
     mKaraokeEntities.SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CHUYENBANs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCHUYENBANs(CHUYENBAN cHUYENBAN)
 {
     base.AddObject("CHUYENBANs", cHUYENBAN);
 }
 /// <summary>
 /// Create a new CHUYENBAN object.
 /// </summary>
 /// <param name="chuyenBanID">Initial value of the ChuyenBanID property.</param>
 /// <param name="visual">Initial value of the Visual property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 /// <param name="edit">Initial value of the Edit property.</param>
 public static CHUYENBAN CreateCHUYENBAN(global::System.Int32 chuyenBanID, global::System.Boolean visual, global::System.Boolean deleted, global::System.Boolean edit)
 {
     CHUYENBAN cHUYENBAN = new CHUYENBAN();
     cHUYENBAN.ChuyenBanID = chuyenBanID;
     cHUYENBAN.Visual = visual;
     cHUYENBAN.Deleted = deleted;
     cHUYENBAN.Edit = edit;
     return cHUYENBAN;
 }