Imports System Imports System.ComponentModel Imports DevExpress.Xpo Imports DevExpress.Data.Filtering Imports DevExpress.ExpressApp Imports DevExpress.Persistent.Base Imports DevExpress.Persistent.BaseImpl Imports DevExpress.Persistent.Validation Imports System.Drawing Imports DevExpress.ExpressApp.Utils _ _ _ Public Class RateDiffView Inherits XPLiteObject Public Sub New(ByVal session As Session) MyBase.New(session) End Sub Public Oid As Guid Public CustomersFrom As CustomersFrom Public PartnerType As ePartnerType Public Customers As Customers Public ConnectInfo As String Public DateExecution_Account As Date Public CurrencyName_Account As CurrencyName Public AmountDEV_Account As Double Public BallanceDEV_Account As Double Public CurrencyRate_Account As Double Public LiquidAssets As LiquidAssets Public DateExecution As Date Public InAmountDEV As Double Public OutAmountDEV As Double Public InAmountDEV2 As Double Public OutAmountDEV2 As Double Public CurrencyRate As Double Public InAmountHUF As Double Public OutAmountHUF As Double Public InAmountHUF_Account As Double Public OutAmountHUF_Account As Double Public InAmountHUF_Diff As Double Public OutAmountHUF_Diff As Double Public GLRowsRatediff As Double Public RateDiffState As Long _ ReadOnly Property BallanceRateDiffImage As Image Get If PartnerType = ePartnerType.eReceivables Then If RateDiffState = -1 Then 'Árfolyam veszteség Return ImageLoader.Instance.GetImageInfo("nav_down_red").Image Else 'Árfolyam nyereség Return ImageLoader.Instance.GetImageInfo("nav_up_green").Image End If ElseIf PartnerType = ePartnerType.ePayabels Then If RateDiffState = 1 Then 'Árfolyam nyereség Return ImageLoader.Instance.GetImageInfo("nav_up_green").Image Else 'Árfolyam veszteség Return ImageLoader.Instance.GetImageInfo("nav_down_red").Image End If Else Return ImageLoader.Instance.GetImageInfo("bullet_ball_glass_blue").Image End If End Get End Property End Class