internal void SetDAL(Indico.DAL.ReturnOrderQuantitiesAndAmount obj, IndicoEntities context) { // set the Indico.DAL.ReturnOrderQuantitiesAndAmount properties obj.MonthAndYear = MonthAndYear; obj.ID = Convert.ToInt32(ID); obj.Name = Name; obj.Quantity = Convert.ToInt32(Quantity); obj.QuantityPercentage = Convert.ToDecimal(QuantityPercentage); obj.Value = Convert.ToDecimal(Value); obj.ValuePercentage = Convert.ToDecimal(ValuePercentage); obj.AvgPrice = Convert.ToDecimal(AvgPrice); }
internal void SetBO(Indico.DAL.ReturnOrderQuantitiesAndAmount obj) { // set the Indico.BusinessObjects.ReturnOrderQuantitiesAndAmountBO properties this.MonthAndYear = obj.MonthAndYear; this.ID = obj.ID; this.Name = obj.Name; this.Quantity = obj.Quantity; this.QuantityPercentage = obj.QuantityPercentage; this.Value = obj.Value; this.ValuePercentage = obj.ValuePercentage; this.AvgPrice = obj.AvgPrice; }
/// <summary> /// Creates an instance of the ReturnOrderQuantitiesAndAmountBO class using the supplied Indico.DAL.ReturnOrderQuantitiesAndAmount. /// </summary> /// <param name="obj">a Indico.DAL.ReturnOrderQuantitiesAndAmount whose properties will be used to initialise the ReturnOrderQuantitiesAndAmountBO</param> internal ReturnOrderQuantitiesAndAmountBO(Indico.DAL.ReturnOrderQuantitiesAndAmount obj) { // set the properties from the Indico.DAL.ReturnOrderQuantitiesAndAmount this.MonthAndYear = obj.MonthAndYear; this.ID = obj.ID; this.Name = obj.Name; this.Quantity = obj.Quantity; this.QuantityPercentage = obj.QuantityPercentage; this.Value = obj.Value; this.ValuePercentage = obj.ValuePercentage; this.AvgPrice = obj.AvgPrice; }