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 Imports DevExpress.ExpressApp.Editors ''' ''' Termék GANTT !!! ''' Public Class ProductsGant Inherits BaseObject Private _CustomersFrom As CustomersFrom Private _G2antt As String Private _Criteria As String Private _PGR As ProductsGantRows Private _DateExecution As DateTime Public Sub New(ByVal session As Session) MyBase.New(session) End Sub Public Overrides Sub AfterConstruction() MyBase.AfterConstruction() DateExecution = GetSQLTime(Session) End Sub Property CustomersFrom As CustomersFrom Get Return _CustomersFrom End Get Set(value As CustomersFrom) SetPropertyValue("CustomersFrom", _CustomersFrom, value) End Set End Property Property Criteria As String Get Return _Criteria End Get Set(value As String) SetPropertyValue("Criteria", _Criteria, value) End Set End Property Public Property ObjectType() As Type Get Return GetType(ProductsGantRows) End Get Set(ByVal value As Type) End Set End Property Public Property DateExecution As DateTime Get Return _DateExecution End Get Set(value As DateTime) SetPropertyValue("DateExecution", _DateExecution, value) End Set End Property Property G2antt As String Get Return _G2antt End Get Set(value As String) SetPropertyValue("G2antt", _G2antt, value) End Set End Property 'ReadOnly ReadOnly Property ProductsGantRows As XPCollection(Of ProductsGantRows) Get Dim _CC As String = " ProductsGant.Oid = '" & Me.Oid.ToString() & "'" 'IDEIGLENES '_CC += " AND Products.Oid ='81ed2085-6bf7-4c77-9906-d7165d0cbb8b'" If String.IsNullOrEmpty(Criteria) = False Then _CC += " AND " & CriteriaOperator.Parse(Criteria).ToString() End If Return New XPCollection(Of ProductsGantRows)(Session, CriteriaOperator.Parse(_CC)) End Get End Property End Class