95 lines
2.8 KiB
VB.net
95 lines
2.8 KiB
VB.net
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
|
|
|
|
''' <summary>
|
|
''' Termék GANTT !!!
|
|
''' </summary>
|
|
<DefaultClassOptions(), NavigationItem(False), CreatableItem(False)>
|
|
<Appearance("ProductsGant - CustomersFrom all time", TargetItems:="CustomersFrom", Criteria:="IsNull(CustomersFrom)=False", Enabled:=False, Context:="Any")>
|
|
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
|
|
<CriteriaOptionsAttribute("ObjectType"), Size(-1), ImmediatePostData(True)>
|
|
Property Criteria As String
|
|
Get
|
|
Return _Criteria
|
|
End Get
|
|
Set(value As String)
|
|
SetPropertyValue("Criteria", _Criteria, value)
|
|
End Set
|
|
End Property
|
|
<NonPersistent(), MemberDesignTimeVisibility(False)>
|
|
Public Property ObjectType() As Type
|
|
Get
|
|
Return GetType(ProductsGantRows)
|
|
End Get
|
|
Set(ByVal value As Type)
|
|
|
|
End Set
|
|
End Property
|
|
<NonPersistent>
|
|
Public Property DateExecution As DateTime
|
|
Get
|
|
Return _DateExecution
|
|
End Get
|
|
Set(value As DateTime)
|
|
SetPropertyValue("DateExecution", _DateExecution, value)
|
|
End Set
|
|
End Property
|
|
<Size(-1)>
|
|
Property G2antt As String
|
|
Get
|
|
Return _G2antt
|
|
End Get
|
|
Set(value As String)
|
|
SetPropertyValue("G2antt", _G2antt, value)
|
|
End Set
|
|
End Property
|
|
|
|
'ReadOnly
|
|
<VisibleInListView(False)>
|
|
<VisibleInLookupListView(False)>
|
|
ReadOnly Property ProductsGantRows As XPCollection(Of ProductsGantRows)
|
|
Get
|
|
Dim _CC As String = " ProductsGant.Oid = '" & Me.Oid.ToString() & "'"
|
|
|
|
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
|