Esempio n. 1
0
        public void AddEnquiryProduct()
        {
            if (!InsertValidation())
            {
                return;
            }

            EnquiryCatalogItem enquiryProduct = new EnquiryCatalogItem();

            enquiryProduct.Item          = _enquiryProduct;
            enquiryProduct.CatalogItemId = _enquiryProduct.Id;

            enquiryProduct.OnRoadPrice       = _enquiryProduct.Price;
            enquiryProduct.AccessoriesAmount = 0;
            enquiryProduct.TotalAmount       = enquiryProduct.OnRoadPrice + enquiryProduct.AccessoriesAmount;

            EnquiryItems.Add(enquiryProduct);
        }
Esempio n. 2
0
        public void AddEnquiryItem()
        {
            if (!InsertValidation())
            {
                return;
            }

            EnquiryCatalogItem enquiryItem = new EnquiryCatalogItem();

            enquiryItem.Item          = _enquiryItem.Item;
            enquiryItem.CatalogItemId = _enquiryItem.Item.Id;

            enquiryItem.OnRoadPrice       = _enquiryItem.Item.Price;
            enquiryItem.AccessoriesAmount = _enquiryItem.AccessoriesAmount;
            enquiryItem.OtherAmount       = _enquiryItem.OtherAmount;
            enquiryItem.TotalAmount       = enquiryItem.OnRoadPrice + enquiryItem.AccessoriesAmount + enquiryItem.OtherAmount;

            EnquiryItems.Add(enquiryItem);
            CurrentEnquiryItem = new EnquiryCatalogItem();
        }