Beispiel #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;
        }
Beispiel #2
0
        protected SalesArea CreateSalesArea(DistributionChannel channel, Division division, string SalesOrgCode)
        {
            SalesArea salesArea = new SalesArea();
            salesArea.ID = Guid.NewGuid();
            salesArea.DistributionChannel = channel;
            salesArea.SalesOrganization = CreateSalesOrganization(SalesOrgCode);
            salesArea.Division = division;
            salesArea.Name = "SalesArea1";
            salesArea.Code = "454";
            salesArea.Deleted = false;

            return salesArea;
        }
Beispiel #3
0
        protected DistributionChannel CreateDistributionChannel()
        {
            DistributionChannel channel = new DistributionChannel();
            channel.Name = "DistributionChannel1";
            channel.ID = Guid.NewGuid();
            channel.Deleted = false;
            channel.Code = "1234";

            return channel;
        }