public Contact_CustomerSalesOrderContentDTO(CustomerSalesOrderContent CustomerSalesOrderContent)
 {
     this.Id = CustomerSalesOrderContent.Id;
     this.CustomerSalesOrderId = CustomerSalesOrderContent.CustomerSalesOrderId;
     this.ItemId                    = CustomerSalesOrderContent.ItemId;
     this.UnitOfMeasureId           = CustomerSalesOrderContent.UnitOfMeasureId;
     this.Quantity                  = CustomerSalesOrderContent.Quantity;
     this.RequestedQuantity         = CustomerSalesOrderContent.RequestedQuantity;
     this.PrimaryUnitOfMeasureId    = CustomerSalesOrderContent.PrimaryUnitOfMeasureId;
     this.SalePrice                 = CustomerSalesOrderContent.SalePrice;
     this.PrimaryPrice              = CustomerSalesOrderContent.PrimaryPrice;
     this.DiscountPercentage        = CustomerSalesOrderContent.DiscountPercentage;
     this.DiscountAmount            = CustomerSalesOrderContent.DiscountAmount;
     this.GeneralDiscountPercentage = CustomerSalesOrderContent.GeneralDiscountPercentage;
     this.GeneralDiscountAmount     = CustomerSalesOrderContent.GeneralDiscountAmount;
     this.TaxPercentage             = CustomerSalesOrderContent.TaxPercentage;
     this.TaxAmount                 = CustomerSalesOrderContent.TaxAmount;
     this.TaxPercentageOther        = CustomerSalesOrderContent.TaxPercentageOther;
     this.TaxAmountOther            = CustomerSalesOrderContent.TaxAmountOther;
     this.Amount                    = CustomerSalesOrderContent.Amount;
     this.Factor                    = CustomerSalesOrderContent.Factor;
     this.EditedPriceStatusId       = CustomerSalesOrderContent.EditedPriceStatusId;
     this.EditedPriceStatus         = CustomerSalesOrderContent.EditedPriceStatus == null ? null : new Contact_EditedPriceStatusDTO(CustomerSalesOrderContent.EditedPriceStatus);
     this.Item = CustomerSalesOrderContent.Item == null ? null : new Contact_ItemDTO(CustomerSalesOrderContent.Item);
     this.PrimaryUnitOfMeasure = CustomerSalesOrderContent.PrimaryUnitOfMeasure == null ? null : new Contact_UnitOfMeasureDTO(CustomerSalesOrderContent.PrimaryUnitOfMeasure);
     this.UnitOfMeasure        = CustomerSalesOrderContent.UnitOfMeasure == null ? null : new Contact_UnitOfMeasureDTO(CustomerSalesOrderContent.UnitOfMeasure);
     this.Errors = CustomerSalesOrderContent.Errors;
 }
 public Contact_CustomerSalesOrderPromotionDTO(CustomerSalesOrderPromotion CustomerSalesOrderPromotion)
 {
     this.Id = CustomerSalesOrderPromotion.Id;
     this.CustomerSalesOrderId = CustomerSalesOrderPromotion.CustomerSalesOrderId;
     this.ItemId                 = CustomerSalesOrderPromotion.ItemId;
     this.UnitOfMeasureId        = CustomerSalesOrderPromotion.UnitOfMeasureId;
     this.Quantity               = CustomerSalesOrderPromotion.Quantity;
     this.RequestedQuantity      = CustomerSalesOrderPromotion.RequestedQuantity;
     this.PrimaryUnitOfMeasureId = CustomerSalesOrderPromotion.PrimaryUnitOfMeasureId;
     this.Factor                 = CustomerSalesOrderPromotion.Factor;
     this.Note = CustomerSalesOrderPromotion.Note;
     this.Item = CustomerSalesOrderPromotion.Item == null ? null : new Contact_ItemDTO(CustomerSalesOrderPromotion.Item);
     this.PrimaryUnitOfMeasure = CustomerSalesOrderPromotion.PrimaryUnitOfMeasure == null ? null : new Contact_UnitOfMeasureDTO(CustomerSalesOrderPromotion.PrimaryUnitOfMeasure);
     this.UnitOfMeasure        = CustomerSalesOrderPromotion.UnitOfMeasure == null ? null : new Contact_UnitOfMeasureDTO(CustomerSalesOrderPromotion.UnitOfMeasure);
     this.Errors = CustomerSalesOrderPromotion.Errors;
 }