public BOChiTietChuyenKho()
 {
     ChiTietChuyenKho = new CHITIETCHUYENKHO();
     MenuMon = new MENUMON();
     LoaiBan = new LOAIBAN();
     TonKho = new TONKHO();
     ChuyenKho = new CHUYENKHO();
 }
Ejemplo n.º 2
0
 public void Chuyen()
 {
     CHUYENKHO chuyenKho = new CHUYENKHO();
     chuyenKho.KhoDiID = TonKho.KhoID;
     chuyenKho.KhoDenID = KhoDenID;
     chuyenKho.NhanVienID = NhanVienID;
     chuyenKho.NgayChuyen = DateTime.Now;
     chuyenKho.Visual = true;
     chuyenKho.Deleted = false;
     
     CHITIETCHUYENKHO chieiet = new CHITIETCHUYENKHO();
     chieiet.MonID = TonKho.MonID;
     chieiet.NgaySanXuat = TonKho.NgaySanXuat;
     chieiet.NgayHetHan = TonKho.NgayHetHan;
     chieiet.SoLuongChuyen = SoLuong;
     chieiet.GiaNhap = TonKho.GiaNhap;
     chieiet.GiaBan = TonKho.GiaBan;
     chuyenKho.CHITIETCHUYENKHOes.Add(chieiet);
     BOTonKho.ChuyenKhoTong(mKaraokeEntities, TonKho, KhoDenID, SoLuong);
     mKaraokeEntities.CHUYENKHOes.AddObject(chuyenKho);
     BOLichSuTonKho.ChuyenKho(mKaraokeEntities, this);
     mKaraokeEntities.SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CHUYENKHOes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCHUYENKHOes(CHUYENKHO cHUYENKHO)
 {
     base.AddObject("CHUYENKHOes", cHUYENKHO);
 }
 /// <summary>
 /// Create a new CHUYENKHO object.
 /// </summary>
 /// <param name="chuyenKhoID">Initial value of the ChuyenKhoID 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 CHUYENKHO CreateCHUYENKHO(global::System.Int32 chuyenKhoID, global::System.Boolean visual, global::System.Boolean deleted, global::System.Boolean edit)
 {
     CHUYENKHO cHUYENKHO = new CHUYENKHO();
     cHUYENKHO.ChuyenKhoID = chuyenKhoID;
     cHUYENKHO.Visual = visual;
     cHUYENKHO.Deleted = deleted;
     cHUYENKHO.Edit = edit;
     return cHUYENKHO;
 }
Ejemplo n.º 5
0
 public BOChuyenKho()
 {            
     ChuyenKho = new CHUYENKHO();            
 }
Ejemplo n.º 6
0
 public BOChuyenKho(Data.Transit transit,KaraokeEntities kara)
 {            
     mKaraokeEntities = kara;
     ChuyenKho = new CHUYENKHO();
 }