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 DevExpress.ExpressApp.SystemModule Imports DevExpress.Persistent.Base.Security Imports DevExpress.ExpressApp.ConditionalAppearance Imports DevExpress.ExpressApp.Filtering ' _ ' _ ' _ _ _ _ _ Public Class ContractRowsToFinalInvoice Inherits BaseObject Private _DateCreated As Date = Now ' A számla kiállításának dátuma Private _DateExecution As Date 'Teljesítés dátuma Private _Description As String ' Megjegyzés Private _CurrencyRate As Double = 1 ' Árfolyam Private _ContractRows As ContractRows ' A Deviza típusához kell Private _BankInformation As BankInformation Public Sub New(ByVal session As Session) MyBase.New(session) End Sub ReadOnly Property DateCreated As Date Get Return _DateCreated End Get End Property _ Property DateExecution As Date Get Return _DateExecution End Get Set(ByVal value As Date) SetPropertyValue("DateExecution", _DateExecution, value) End Set End Property _ Property Description As String Get Return _Description End Get Set(ByVal value As String) SetPropertyValue("Description", _Description, value) End Set End Property Property CurrencyRate As Double Get Return _CurrencyRate End Get Set(ByVal value As Double) SetPropertyValue("CurrencyRate", _CurrencyRate, value) End Set End Property Property ContractRows As ContractRows Get Return _ContractRows End Get Set(ByVal value As ContractRows) SetPropertyValue("ContractRows", _ContractRows, value) End Set End Property _ Property BankInformation As BankInformation Get Return (_BankInformation) End Get Set(ByVal value As BankInformation) SetPropertyValue("CustomerBankAccounts", _BankInformation, value) End Set End Property _ ReadOnly Property InvoiceRows As XPCollection(Of InvoiceRows) Get Dim _InvoiceRowsCollection As XPCollection(Of InvoiceRows) = New XPCollection(Of InvoiceRows) _ (Session, CriteriaOperator.Parse("InvoiceHeader.Customers=? And InvoiceHeader.CustomersFrom=? And InvoiceHeader.InvoiceType.InvoiceTypeBase in (0,1) " & _ "And IsNull(InvoiceRowsAdvance)=True And InvoiceHeader.IsEditable=False And InvoiceHeader.IsStorno=False And InvoiceHeader.IsProforma=False AND ContractRows.Contracts=?", Me.ContractRows.Contracts.Customers, Me.ContractRows.Contracts.CustomersFrom, Me.ContractRows.Contracts)) Return _InvoiceRowsCollection End Get End Property End Class