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

<DefaultClassOptions()> _
<NavigationItem(False), CreatableItem(False)> _
<Appearance("Disable OrderOutHeader", AppearanceItemType.ViewItem, "1=1", TargetItems:="OrderOutHeader", Enabled:=False)> _
Public Class DeliveryNoteInFromOrderOutRowsHeader
    Inherits BaseObject
    Private _OrderOutHeader As OrderOutHeader ' Kimenő megrendelés fejléc
    Private _DeliveryNoteInType As DeliveryNoteInType

    Public Sub New(ByVal session As Session)
        MyBase.New(session)
    End Sub
    Public Overrides Sub AfterConstruction()
        MyBase.AfterConstruction()
    End Sub
    <Association("DeliveryNoteInFromOrderOutRowsHeader-DeliveryNoteInFromOrderOutRowsRows", GetType(DeliveryNoteInFromOrderOutRowsRows)), VisibleInListView(False)> _
    ReadOnly Property DeliveryNoteInFromOrderOutRowsRows As XPCollection(Of DeliveryNoteInFromOrderOutRowsRows)
        Get
            Return GetCollection(Of DeliveryNoteInFromOrderOutRowsRows)("DeliveryNoteInFromOrderOutRowsRows")
        End Get
    End Property
    Property OrderOutHeader As OrderOutHeader
        Get
            Return _OrderOutHeader
        End Get
        Set(value As OrderOutHeader)
            SetPropertyValue("OrderOutHeader", _OrderOutHeader, value)
        End Set
    End Property
    <RuleRequiredField("DeliveryNoteInFromOrderOutRowsHeader.DeliveryNoteInType", DefaultContexts.Save)> _
    Property DeliveryNoteInType As DeliveryNoteInType
        Get
            Return _DeliveryNoteInType
        End Get
        Set(value As DeliveryNoteInType)
            SetPropertyValue("DeliveryNoteInType", _DeliveryNoteInType, value)
        End Set
    End Property
End Class
