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.ConditionalAppearance ' _ _ _ _ _ _ _ _ _ _ _ _ Public Class RegistryTasks '-- Registryhez task a feladatokhoz Inherits Task Private _RegistryHeader As RegistryHeader 'Iktatás fejléce Private _HRPerson As HRPerson 'Felelős Private _CurrentWorkflowSystemSteps As WorkflowSystemSteps 'A feladat kiadásakor hol állt a rendszer '// Nonpersistent propertyk a számlaigazoláshoz Private _row_RRFC_Controlling As Controlling Private _row_RRFC_CostPlace As CostPlace Private _row_RRFC_CostHolder As CostHolder Private _row_RRFC_Note As String Private _row_RRFC_Amount As Double Private _row_RRFC_Contracts As Contracts Private _row_RRFC_ContractRows As ContractRows Private _row_RRFC_UniqueObjects As UniqueObjects Private _row_RRFC_JobNumberObjects As JobNumberObjects Private _row_RRFC_File As FileData Private _row_RRFC_IsReInvoice As Boolean = False Private _row_RRFC_ReInvoiceReason As Controlling Private _row_RRFC_ReInvoice_Customers As Customers Private _row_RRFC_ReInvoiceMode As eReinvoiceMode Private _row_ConnectInfoAdvanced As String 'Szállítói előleg pontozási azonosító Public Sub New(ByVal session As Session) MyBase.New(session) End Sub Property RegistryHeader As RegistryHeader Get Return _RegistryHeader End Get Set(ByVal value As RegistryHeader) SetPropertyValue("RegistryHeader", _RegistryHeader, value) End Set End Property Property HRPerson As HRPerson Get Return _HRPerson End Get Set(ByVal value As HRPerson) SetPropertyValue("HRPerson", _HRPerson, value) End Set End Property Property CurrentWorkflowSystemSteps As WorkflowSystemSteps Get Return _CurrentWorkflowSystemSteps End Get Set(ByVal value As WorkflowSystemSteps) SetPropertyValue("CurrentWorkflowSystemSteps", _CurrentWorkflowSystemSteps, value) End Set End Property ReadOnly Property CustomersFrom As CustomersFrom Get If Me.RegistryHeader IsNot Nothing Then Return Me.RegistryHeader.CustomersFrom Else Return Nothing End If End Get End Property ReadOnly Property Customers As Customers Get If Me.RegistryHeader IsNot Nothing Then Return Me.RegistryHeader.Customers Else Return Nothing End If End Get End Property '// Nonpersistent propertyk RRFC igazoláshoz _ _ _ Property row_RRFC_Controlling As Controlling Get Return _row_RRFC_Controlling End Get Set(value As Controlling) SetPropertyValue("row_RRFC_Controlling", _row_RRFC_Controlling, value) End Set End Property Property row_RRFC_CostPlace As CostPlace Get Return _row_RRFC_CostPlace End Get Set(value As CostPlace) SetPropertyValue("row_RRFC_CostPlace", _row_RRFC_CostPlace, value) End Set End Property _ _ _ Property row_RRFC_CostHolder As CostHolder Get Return _row_RRFC_CostHolder End Get Set(value As CostHolder) SetPropertyValue("row_RRFC_CostHolder", _row_RRFC_CostHolder, value) End Set End Property _ Property row_RRFC_Note As String Get Return _row_RRFC_Note End Get Set(value As String) SetPropertyValue("row_RRFC_Note", _row_RRFC_Note, value) End Set End Property _ Property row_RRFC_Amount As Double Get Return _row_RRFC_Amount End Get Set(value As Double) SetPropertyValue("row_RRFC_Amount", _row_RRFC_Amount, value) End Set End Property Property row_RRFC_Contracts As Contracts Get Return _row_RRFC_Contracts End Get Set(value As Contracts) SetPropertyValue("row_RRFC_Contracts", _row_RRFC_Contracts, value) End Set End Property Property row_RRFC_ContractRows As ContractRows Get Return _row_RRFC_ContractRows End Get Set(value As ContractRows) SetPropertyValue("row_RRFC_ContractRows", _row_RRFC_ContractRows, value) If Session.IsObjectsLoading = False And Session.IsObjectsSaving = False Then If value IsNot Nothing Then row_RRFC_Controlling = value.Controlling row_RRFC_Note = value.Description row_RRFC_CostHolder = value.CostHolder row_RRFC_CostPlace = value.CostPlace row_RRFC_JobNumberObjects = value.JobNumberObjects row_RRFC_UniqueObjects = value.UniqueObjects If Me.RegistryHeader.F_CurrencyName.ShortName <> "HUF" Then row_RRFC_Amount = Math.Round(value.NettoPriceDEV * Me.RegistryHeader.F_CurrencyRate, 0, MidpointRounding.AwayFromZero) Else Me.row_RRFC_Amount = value.NettoPriceHUF End If End If End If End Set End Property Property row_RRFC_JobNumberObjects As JobNumberObjects Get Return _row_RRFC_JobNumberObjects End Get Set(value As JobNumberObjects) SetPropertyValue("row_RRFC_JobNumberObjects", _row_RRFC_JobNumberObjects, value) End Set End Property Property row_RRFC_UniqueObjects As UniqueObjects Get Return _row_RRFC_UniqueObjects End Get Set(value As UniqueObjects) SetPropertyValue("row_RRFC_UniqueObjects", _row_RRFC_UniqueObjects, value) End Set End Property Property row_RRFC_File As FileData Get Return _row_RRFC_File End Get Set(value As FileData) SetPropertyValue("row_RRFC_File", _row_RRFC_File, value) End Set End Property Property row_RRFC_IsReInvoice As Boolean Get Return _row_RRFC_IsReInvoice End Get Set(value As Boolean) SetPropertyValue("row_RRFC_IsReInvoice", _row_RRFC_IsReInvoice, value) End Set End Property Property row_RRFC_ReInvoiceReason As Controlling Get Return _row_RRFC_ReInvoiceReason End Get Set(value As Controlling) SetPropertyValue("row_RRFC_ReInvoiceReason", _row_RRFC_ReInvoiceReason, value) End Set End Property _ _ _ _ Property row_RRFC_ReInvoice_Customers As Customers Get Return _row_RRFC_ReInvoice_Customers End Get Set(value As Customers) SetPropertyValue("row_RRFC_ReInvoice_Customers", _row_RRFC_ReInvoice_Customers, value) End Set End Property _ _ _ _ _ Property row_RRFC_ReInvoiceMode As eReinvoiceMode Get Return _row_RRFC_ReInvoiceMode End Get Set(value As eReinvoiceMode) SetPropertyValue("row_RRFC_ReInvoiceMode", _row_RRFC_ReInvoiceMode, value) End Set End Property Property row_ConnectInfoAdvanced As String Get Return _row_ConnectInfoAdvanced End Get Set(value As String) SetPropertyValue("row_ConnectInfoAdvanced", _row_ConnectInfoAdvanced, value) End Set End Property '---------------- Readonly property ------------------------------------------------- _ ReadOnly Property FileData_Collection As XPCollection(Of RegistryFileData) Get If Me.RegistryHeader Is Nothing Then Return Nothing Else Return Me.RegistryHeader.RegistryFileData End If End Get End Property _ ReadOnly Property RegistryRowsFinancial As XPCollection(Of RegistryRowsFinancial) Get Return New XPCollection(Of RegistryRowsFinancial)(Session, CriteriaOperator.Parse("RegistryHeader=?", RegistryHeader)) End Get End Property _ ReadOnly Property RegistryRowsFinancialControlling As XPCollection(Of RegistryRowsFinancialControlling) Get Return New XPCollection(Of RegistryRowsFinancialControlling)(Session, CriteriaOperator.Parse("RegistryHeader=?", RegistryHeader)) End Get End Property End Class