1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| Public Class Commande
Public Property Id As Integer
Public Property Fournisseur As Fournisseur
Public Property Details As List(Of CommandeDetail)
Public Sub New(ByVal id As Integer)
Me.Id = id
Me.Details = New List(Of CommandeDetail)
End Sub
End Class
Public Class CommandeDetail
Public Property Id As Integer
Public Property Support As TypeSupport
Public Property RangeStart As Integer
Public Property RangeStop As Integer
Public Property Type As Object
Public Enum TypeSupport As Byte
CRD = 1
CHQ = 2
End Enum
Public Sub New(ByVal id As Integer, ByVal support As TypeSupport, ByVal min As Integer, ByVal max As Integer, ByVal type As Object)
Me.Id = id
Me.Support = support
Me.RangeStart = min
Me.RangeStop = max
Me.Type = type
End Sub
End Class
Public Class CommandeDetailCarte
Inherits CommandeDetail
Public Overloads Property Type As TypeCarte
Public Property Rechargeable As Boolean
Public Sub New(ByVal id As Integer, ByVal support As TypeSupport, ByVal min As Integer, ByVal max As Integer, ByVal type As TypeCarte, ByVal rechargeable As Boolean)
MyBase.New(id, support, min, max, type)
Me.Rechargeable = rechargeable
End Sub
End Class
Public Class CommandeDetailCheque
Inherits CommandeDetail
Public Overloads Property Type As Integer
Public Property Year As Integer
Public Sub New(ByVal id As Integer, ByVal support As TypeSupport, ByVal min As Integer, ByVal max As Integer, ByVal type As Integer, ByVal annee As Integer)
MyBase.New(id, support, min, max, type)
Me.Year = annee
End Sub
End Class |
Partager