internal void SetDAL(Indico.DAL.LabelPatternPriceLevelCostView obj, IndicoEntities context) { // set the Indico.DAL.LabelPatternPriceLevelCostView properties obj.ID = Convert.ToInt32(ID); obj.Price = Convert.ToInt32(Price); obj.PriceLevel = Convert.ToInt32(PriceLevel); obj.FactoryCost = Convert.ToDecimal(FactoryCost); obj.IndimanCost = Convert.ToDecimal(IndimanCost); obj.Label = Convert.ToInt32(Label); obj.Markup = Convert.ToDecimal(Markup); obj.EditedCIFPrice = Convert.ToDecimal(EditedCIFPrice); obj.EditedFOBPrice = Convert.ToDecimal(EditedFOBPrice); obj.ModifiedDate = ModifiedDate; }
internal void SetBO(Indico.DAL.LabelPatternPriceLevelCostView obj) { // set the Indico.BusinessObjects.LabelPatternPriceLevelCostViewBO properties this.ID = obj.ID; this.Price = obj.Price; this.PriceLevel = obj.PriceLevel; this.FactoryCost = obj.FactoryCost; this.IndimanCost = obj.IndimanCost; this.Label = obj.Label; this.Markup = obj.Markup; this.EditedCIFPrice = obj.EditedCIFPrice; this.EditedFOBPrice = obj.EditedFOBPrice; this.ModifiedDate = obj.ModifiedDate; }
/// <summary> /// Creates an instance of the LabelPatternPriceLevelCostViewBO class using the supplied Indico.DAL.LabelPatternPriceLevelCostView. /// </summary> /// <param name="obj">a Indico.DAL.LabelPatternPriceLevelCostView whose properties will be used to initialise the LabelPatternPriceLevelCostViewBO</param> internal LabelPatternPriceLevelCostViewBO(Indico.DAL.LabelPatternPriceLevelCostView obj) { // set the properties from the Indico.DAL.LabelPatternPriceLevelCostView this.ID = obj.ID; this.Price = obj.Price; this.PriceLevel = obj.PriceLevel; this.FactoryCost = obj.FactoryCost; this.IndimanCost = obj.IndimanCost; this.Label = obj.Label; this.Markup = obj.Markup; this.EditedCIFPrice = obj.EditedCIFPrice; this.EditedFOBPrice = obj.EditedFOBPrice; this.ModifiedDate = obj.ModifiedDate; }