Exemple #1
0
        protected CustomerCapacity CreateCustomerCapacity(Customer customer, AnimationType animationType, Priority priority, ItemType itemType, int capacity)
        {
            CustomerCapacity cusCapacity = new CustomerCapacity();
            cusCapacity.ID = Guid.NewGuid();
            cusCapacity.Customer = customer;
            cusCapacity.AnimationType = animationType;
            cusCapacity.Priority = priority;
            cusCapacity.ItemType = itemType;
            cusCapacity.Capacity = capacity;

            return cusCapacity;
        }
Exemple #2
0
        protected CustomerGroupItemType CreateCustomerGroupItemType(CustomerGroup group, ItemType itemType, bool isWarehouse)
        {
            CustomerGroupItemType customerGroupItemType = new CustomerGroupItemType();
            customerGroupItemType.CustomerGroup = group;
            customerGroupItemType.ItemType = itemType;
            customerGroupItemType.WarehouseAllocation = isWarehouse;

            return customerGroupItemType;
        }
Exemple #3
0
        protected AnimationProduct CreateAnimationProduct(Division division, Animation animation, int normalMultiple, int warehouseMultiple, ItemType itemType)
        {
            AnimationProduct animationProduct = new AnimationProduct();
            animationProduct.ID = Guid.NewGuid();
            animationProduct.Animation = animation;
            animationProduct.ItemType = itemType;
            animationProduct.ItemGroup = CreateItemGroup(division);
            animationProduct.Product = CreateProduct(division);
            animationProduct.Signature = CreateSignature(division);
            animationProduct.BrandAxe = CreateBrandAxe(animationProduct.Signature);
            if (normalMultiple == warehouseMultiple)
            {
                Multiple multiple = CreateMultiple(animationProduct.Product, normalMultiple);
                animationProduct.Multiple = multiple;
                animationProduct.Multiple1 = multiple;
            }
            else
            {
                animationProduct.Multiple = CreateMultiple(animationProduct.Product, normalMultiple);
                animationProduct.Multiple1 = CreateMultiple(animationProduct.Product, warehouseMultiple);
            }
            animationProduct.OnCAS = true;
            animationProduct.ConfirmedMADMonth = DateTime.Now;
            animationProduct.StockRisk = true;
            animationProduct.DeliveryRisk = true;
            animationProduct.SortOrder = 1;

            return animationProduct;
        }
Exemple #4
0
        protected CustomerGroupItemType CreateCustomerGroupItemType(CustomerGroup group, ItemType itemType, Customer customer)
        {
            CustomerGroupItemType customerGroupItemType = new CustomerGroupItemType();
            customerGroupItemType.ID = Guid.NewGuid();
            customerGroupItemType.CustomerGroup = group;
            customerGroupItemType.ItemType = itemType;
            customerGroupItemType.IDCustomer = customer.ID;
            customerGroupItemType.IncludeInSAPOrders = true;
            customerGroupItemType.WarehouseAllocation = true;

            return customerGroupItemType;
        }
Exemple #5
0
        protected ItemType CreateItemType(Division division)
        {
            ItemType itemType = new ItemType();
            itemType.ID = Guid.NewGuid();
            itemType.Name = "ItemType1";
            itemType.Division = division;
            itemType.IncludeInSAPOrders = true;
            itemType.RRPAvailable = true;

            return itemType;

        }