Esempio n. 1
0
        protected Animation CreateAnimation(Division division, DistributionChannel channel, AnimationType animationType, Priority priority)
        {

            Animation animation = new Animation();
            animation.ID = Guid.NewGuid();
            animation.AnimationType = animationType;
            animation.Code = "01234";
            animation.Name = "Animation1";
            animation.DateClosed = null;
            animation.DateSAPOrderCreated = null;
            animation.SAPDespatchCode = "6454";
            animation.DefaultCustomerReference = "1234";
            animation.DistributionChannel = channel;
            animation.Priority = priority;
            animation.SalesDrive = CreateSalesDrive(division);
            animation.Status = 1;
            animation.RequestedDeliveryDate = DateTime.Now;
            animation.OnCounterDate = DateTime.Now;
            animation.PLVDeliveryDate = DateTime.Now;
            animation.PLVComponentDate = DateTime.Now;
            animation.StockDate = DateTime.Now;

            return animation;
        }
Esempio n. 2
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;
        }
Esempio n. 3
0
        protected AnimationType CreateAnimationType(Division division, String name)
        {
            AnimationType animationType = new AnimationType();
            animationType.ID = Guid.NewGuid();
            animationType.Deleted = false;
            animationType.Name = name;
            animationType.Division = division;

            return animationType;
        }