public Opportunity_OpportunityItemMappingDTO(OpportunityItemMapping OpportunityItemMapping)
 {
     this.OpportunityId      = OpportunityItemMapping.OpportunityId;
     this.ItemId             = OpportunityItemMapping.ItemId;
     this.UnitOfMeasureId    = OpportunityItemMapping.UnitOfMeasureId;
     this.Quantity           = OpportunityItemMapping.Quantity;
     this.RequestQuantity    = OpportunityItemMapping.RequestQuantity;
     this.PrimaryPrice       = OpportunityItemMapping.PrimaryPrice;
     this.SalePrice          = OpportunityItemMapping.SalePrice;
     this.DiscountPercentage = OpportunityItemMapping.DiscountPercentage;
     this.Discount           = OpportunityItemMapping.Discount;
     this.VAT           = OpportunityItemMapping.VAT;
     this.VATOther      = OpportunityItemMapping.VATOther;
     this.Amount        = OpportunityItemMapping.Amount;
     this.Factor        = OpportunityItemMapping.Factor;
     this.Item          = OpportunityItemMapping.Item == null ? null : new Opportunity_ItemDTO(OpportunityItemMapping.Item);
     this.UnitOfMeasure = OpportunityItemMapping.UnitOfMeasure == null ? null : new Opportunity_UnitOfMeasureDTO(OpportunityItemMapping.UnitOfMeasure);
     this.Errors        = OpportunityItemMapping.Errors;
 }
 public OpportunityReport_OpportunityItemMappingDTO(OpportunityItemMapping OpportunityItemMapping)
 {
     this.OpportunityId      = OpportunityItemMapping.OpportunityId;
     this.ItemId             = OpportunityItemMapping.ItemId;
     this.UnitOfMeasureId    = OpportunityItemMapping.UnitOfMeasureId;
     this.Quantity           = OpportunityItemMapping.Quantity;
     this.DiscountPercentage = OpportunityItemMapping.DiscountPercentage;
     this.RequestQuantity    = OpportunityItemMapping.RequestQuantity;
     this.PrimaryPrice       = OpportunityItemMapping.PrimaryPrice;
     this.SalePrice          = OpportunityItemMapping.SalePrice;
     this.Discount           = OpportunityItemMapping.Discount;
     this.VAT      = OpportunityItemMapping.VAT;
     this.VATOther = OpportunityItemMapping.VATOther;
     this.Amount   = OpportunityItemMapping.Amount;
     this.Factor   = OpportunityItemMapping.Factor;
     //this.Item = OpportunityItemMapping.Item == null ? null : new OpportunityReport_ItemDTO(OpportunityItemMapping.Item);
     //this.UnitOfMeasure = OpportunityItemMapping.UnitOfMeasure == null ? null : new OpportunityReport_UnitOfMeasureDTO(OpportunityItemMapping.UnitOfMeasure);
     //this.TaxType = OpportunityItemMapping.TaxType == null ? null : new OpportunityReport_TaxTypeDTO(OpportunityItemMapping.TaxType);
     //this.OpportunityResult = OpportunityItemMapping.OpportunityResult == null ? null : new OpportunityReport_OpportunityResultDTO(OpportunityItemMapping.OpportunityResult);
 }