コード例 #1
0
        private static OrderLine CreateOrderLine(FlexCelOrderLineDto dto)
        {
            if (!string.IsNullOrWhiteSpace(dto.InventoryItemId))
            {
                return(new ProductLine(dto));
            }

            return(new FreightLine(dto));
        }
コード例 #2
0
        public void Init()
        {
            _dto = new FlexCelOrderLineDto
            {
                DateShipped      = new DateTime(2014, 6, 30),
                PoNumber         = "15145823",
                OrderNumber      = 388133,
                InventoryItemId  = "7359-FCP",
                LineAmount       = 57.96m,
                TaxAmount        = 0.00m,
                QtyShipped       = 17,
                LineDistribution = "Sales",
                FreightLineCount = 0,
                OrderLineCount   = 1
            };

            var sb = new StringBuilder();

            sb.AppendLine("Q2/3 2014 Texaco Field Communication Guide");
            sb.AppendLine("Shipped to TEXACO #355290, FORT WORTH, TX.");

            _dto.LineDesc = sb.ToString();
        }
コード例 #3
0
 public FreightLine(FlexCelOrderLineDto dto) : base(dto)
 {
     LineAmount = dto.LineAmount;
     TaxAmount  = dto.TaxAmount;
 }
コード例 #4
0
 public ProductLine(FlexCelOrderLineDto dto) : base(dto)
 {
     ShipQty         = dto.QtyShipped;
     InventoryItemId = dto.InventoryItemId;
     Boxes           = 0;
 }