public BOXuLyKhoChiTiet() { XuLyKhoChiTiet = new XULYKHOCHITIET(); MenuMon = new MENUMON(); LoaiBan = new LOAIBAN(); TonKho = new TONKHO(); XuLyKho = new XULYKHO(); }
public BOChiTietChuyenKho() { ChiTietChuyenKho = new CHITIETCHUYENKHO(); MenuMon = new MENUMON(); LoaiBan = new LOAIBAN(); TonKho = new TONKHO(); ChuyenKho = new CHUYENKHO(); }
private void CopyTonKho(TONKHO a, TONKHO b) { a.MonID = b.MonID; a.NgayHetHan = b.NgayHetHan; a.NgaySanXuat = b.NgaySanXuat; a.SoLuongNhap = 0; a.SoLuongPhatSinh = 0; a.SoLuongTon = 0; a.DonViID = b.DonViID; a.DonViTinh = b.DonViTinh; a.KhoID = b.KhoID; a.GiaBan = b.GiaBan; a.GiaNhap = b.GiaNhap; a.LoaiBanID = b.LoaiBanID; a.Visual = true; a.Deleted = false; a.Edit = false; }
/// <summary> /// Create a new TONKHO object. /// </summary> /// <param name="tonKhoID">Initial value of the TonKhoID property.</param> /// <param name="donViTinh">Initial value of the DonViTinh property.</param> /// <param name="soLuongNhap">Initial value of the SoLuongNhap property.</param> /// <param name="soLuongTon">Initial value of the SoLuongTon property.</param> /// <param name="giaBan">Initial value of the GiaBan property.</param> /// <param name="giaNhap">Initial value of the GiaNhap property.</param> /// <param name="loaiPhatSinhID">Initial value of the LoaiPhatSinhID property.</param> /// <param name="soLuongPhatSinh">Initial value of the SoLuongPhatSinh 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 TONKHO CreateTONKHO(global::System.Int32 tonKhoID, global::System.Int32 donViTinh, global::System.Int32 soLuongNhap, global::System.Int32 soLuongTon, global::System.Decimal giaBan, global::System.Decimal giaNhap, global::System.Int32 loaiPhatSinhID, global::System.Int32 soLuongPhatSinh, global::System.Boolean visual, global::System.Boolean deleted, global::System.Boolean edit) { TONKHO tONKHO = new TONKHO(); tONKHO.TonKhoID = tonKhoID; tONKHO.DonViTinh = donViTinh; tONKHO.SoLuongNhap = soLuongNhap; tONKHO.SoLuongTon = soLuongTon; tONKHO.GiaBan = giaBan; tONKHO.GiaNhap = giaNhap; tONKHO.LoaiPhatSinhID = loaiPhatSinhID; tONKHO.SoLuongPhatSinh = soLuongPhatSinh; tONKHO.Visual = visual; tONKHO.Deleted = deleted; tONKHO.Edit = edit; return tONKHO; }
/// <summary> /// Deprecated Method for adding a new object to the TONKHOes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTONKHOes(TONKHO tONKHO) { base.AddObject("TONKHOes", tONKHO); }