using System; using System.Collections.Generic; using System.Linq; using System.Text; using DevExpress.ExpressApp.DC; using DevExpress.Persistent.Base; using DevExpress.Persistent.BaseImpl; using DevExpress.Xpo; namespace Nuvolar.Module.BusinessObjects { [DefaultClassOptions] [DevExpress.Persistent.Base.NavigationItemAttribute(false)] [DevExpress.Persistent.Base.CreatableItemAttribute(false)] public partial class CostPlannerRows : DevExpress.Persistent.BaseImpl.BaseObject { private System.Double _priceOutHUF; private System.Double _priceInHUF; private Nuvolar.Module.Units _units; private System.Double _qTT; private System.DateTime _dateExecution; private System.Double _amountOutHUF; private System.Double _amountInHUF; private System.String _groupName4; private System.String _groupName3; private System.String _groupName2; private System.String _groupName1; private Nuvolar.Module.BusinessObjects.CostPlanner _costPlanner; public CostPlannerRows(DevExpress.Xpo.Session session) : base(session) { } [DevExpress.Xpo.AssociationAttribute("CostPlannerRows-CostPlanner")] public Nuvolar.Module.BusinessObjects.CostPlanner CostPlanner { get { return _costPlanner; } set { SetPropertyValue("CostPlanner", ref _costPlanner, value); } } public System.String GroupName1 { get { return _groupName1; } set { SetPropertyValue("GroupName1", ref _groupName1, value); } } public System.String GroupName2 { get { return _groupName2; } set { SetPropertyValue("GroupName2", ref _groupName2, value); } } public System.String GroupName3 { get { return _groupName3; } set { SetPropertyValue("GroupName3", ref _groupName3, value); } } public System.String GroupName4 { get { return _groupName4; } set { SetPropertyValue("GroupName4", ref _groupName4, value); } } public System.Double AmountInHUF { get { return _amountInHUF; } set { SetPropertyValue("AmountInHUF", ref _amountInHUF, value); } } public System.Double AmountOutHUF { get { return _amountOutHUF; } set { SetPropertyValue("AmountOutHUF", ref _amountOutHUF, value); } } public System.DateTime DateExecution { get { return _dateExecution; } set { SetPropertyValue("DateExecution", ref _dateExecution, value); } } public System.Double QTT { get { return _qTT; } set { SetPropertyValue("QTT", ref _qTT, value); } } public Nuvolar.Module.Units Units { get { return _units; } set { SetPropertyValue("Units", ref _units, value); } } public System.Double PriceInHUF { get { return _priceInHUF; } set { SetPropertyValue("PriceInHUF", ref _priceInHUF, value); } } public System.Double PriceOutHUF { get { return _priceOutHUF; } set { SetPropertyValue("PriceOutHUF", ref _priceOutHUF, value); } } protected override void OnChanged(string propertyName, object oldValue, object newValue) { base.OnChanged(propertyName, oldValue, newValue); if (propertyName == "QTT" || propertyName == "PriceInHUF" || propertyName == "PriceOutHUF") { this.AmountInHUF = this.QTT * this.PriceInHUF; this.AmountOutHUF = this.QTT * this.PriceOutHUF; } } } }