示例#1
0
        public EventChargeModel(EventCharge charge)
        {
            _charge = charge;

            _product = _charge.Product;

        }
示例#2
0
 /// <summary>
 /// Create a new Product object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="typeID">Initial value of the TypeID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="grossPrice">Initial value of the GrossPrice property.</param>
 /// <param name="vATRateID">Initial value of the VATRateID property.</param>
 /// <param name="productGroupID">Initial value of the ProductGroupID property.</param>
 /// <param name="departmentID">Initial value of the DepartmentID property.</param>
 /// <param name="isAvailable">Initial value of the isAvailable property.</param>
 public static Product CreateProduct(global::System.Guid id, global::System.Guid typeID, global::System.String name, global::System.Single grossPrice, global::System.Guid vATRateID, global::System.Guid productGroupID, global::System.Guid departmentID, global::System.Boolean isAvailable)
 {
     Product product = new Product();
     product.ID = id;
     product.TypeID = typeID;
     product.Name = name;
     product.GrossPrice = grossPrice;
     product.VATRateID = vATRateID;
     product.ProductGroupID = productGroupID;
     product.DepartmentID = departmentID;
     product.isAvailable = isAvailable;
     return product;
 }
示例#3
0
        public EventBookedProductModel(EventBookedProduct eventBookedProduct)
        {
            IncVat = true;
            EventBookedProduct = eventBookedProduct;

            _product = eventBookedProduct.Product;

            EventCharge = new EventChargeModel(EventBookedProduct.EventCharge);
        }
示例#4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProducts(Product product)
 {
     base.AddObject("Products", product);
 }
示例#5
0
        public ProductModel(Product product)
        {
            _product = product;

            LoadEventTypes();
            RefreshEventTypesAbbreviations();
        }