Example #1
0
 public DirectSalesOrder_DirectSalesOrderContentDTO(DirectSalesOrderContent DirectSalesOrderContent)
 {
     this.Id = DirectSalesOrderContent.Id;
     this.DirectSalesOrderId        = DirectSalesOrderContent.DirectSalesOrderId;
     this.ItemId                    = DirectSalesOrderContent.ItemId;
     this.UnitOfMeasureId           = DirectSalesOrderContent.UnitOfMeasureId;
     this.Quantity                  = DirectSalesOrderContent.Quantity;
     this.PrimaryUnitOfMeasureId    = DirectSalesOrderContent.PrimaryUnitOfMeasureId;
     this.RequestedQuantity         = DirectSalesOrderContent.RequestedQuantity;
     this.PrimaryPrice              = DirectSalesOrderContent.PrimaryPrice;
     this.SalePrice                 = DirectSalesOrderContent.SalePrice;
     this.EditedPriceStatusId       = DirectSalesOrderContent.EditedPriceStatusId;
     this.DiscountPercentage        = DirectSalesOrderContent.DiscountPercentage;
     this.DiscountAmount            = DirectSalesOrderContent.DiscountAmount;
     this.GeneralDiscountPercentage = DirectSalesOrderContent.GeneralDiscountPercentage;
     this.GeneralDiscountAmount     = DirectSalesOrderContent.GeneralDiscountAmount;
     this.Amount                    = DirectSalesOrderContent.Amount;
     this.TaxPercentage             = DirectSalesOrderContent.TaxPercentage;
     this.TaxAmount                 = DirectSalesOrderContent.TaxAmount;
     this.Factor                    = DirectSalesOrderContent.Factor;
     this.EditedPriceStatus         = DirectSalesOrderContent.EditedPriceStatus == null ? null : new DirectSalesOrder_EditedPriceStatusDTO(DirectSalesOrderContent.EditedPriceStatus);
     this.Item = DirectSalesOrderContent.Item == null ? null : new DirectSalesOrder_ItemDTO(DirectSalesOrderContent.Item);
     this.PrimaryUnitOfMeasure = DirectSalesOrderContent.PrimaryUnitOfMeasure == null ? null : new DirectSalesOrder_UnitOfMeasureDTO(DirectSalesOrderContent.PrimaryUnitOfMeasure);
     this.UnitOfMeasure        = DirectSalesOrderContent.UnitOfMeasure == null ? null : new DirectSalesOrder_UnitOfMeasureDTO(DirectSalesOrderContent.UnitOfMeasure);
     this.Errors = DirectSalesOrderContent.Errors;
 }
 public DirectSalesOrder_PrintPromotionDTO(DirectSalesOrderPromotion DirectSalesOrderPromotion)
 {
     this.Id                   = DirectSalesOrderPromotion.Id;
     this.Quantity             = DirectSalesOrderPromotion.Quantity;
     this.RequestedQuantity    = DirectSalesOrderPromotion.RequestedQuantity;
     this.Factor               = DirectSalesOrderPromotion.Factor;
     this.Item                 = DirectSalesOrderPromotion.Item == null ? null : new DirectSalesOrder_ItemDTO(DirectSalesOrderPromotion.Item);
     this.PrimaryUnitOfMeasure = DirectSalesOrderPromotion.PrimaryUnitOfMeasure == null ? null : new DirectSalesOrder_UnitOfMeasureDTO(DirectSalesOrderPromotion.PrimaryUnitOfMeasure);
     this.UnitOfMeasure        = DirectSalesOrderPromotion.UnitOfMeasure == null ? null : new DirectSalesOrder_UnitOfMeasureDTO(DirectSalesOrderPromotion.UnitOfMeasure);
     this.Errors               = DirectSalesOrderPromotion.Errors;
 }