mwolfe02
/
how-to-create-a-scheduling-application-which-uses-custom-editing-and-recurrence-dialog-t545486
Public
forked from DevExpress-Examples/wpf-scheduler-specify-custom-edit-and-recurrence-dialogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MedicalAppointment.vb
44 lines (42 loc) · 1.96 KB
/
MedicalAppointment.vb
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
Imports DevExpress.Mvvm.POCO
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Namespace CustomMvvmFormWithRecurrenceExample.Model
Public Class MedicalAppointment
Public Shared Function Create() As MedicalAppointment
Return ViewModelSource.Create(Function() New MedicalAppointment())
End Function
Friend Shared Function Create(ByVal StartTime As Date, ByVal EndTime As Date, ByVal DoctorId As Integer, ByVal Notes As String, ByVal Location As String, ByVal PatientName As String, ByVal InsuranceNumber As String, ByVal FirstVisit As Boolean) As MedicalAppointment
Dim apt As MedicalAppointment = MedicalAppointment.Create()
apt.StartTime = StartTime
apt.EndTime = EndTime
apt.DoctorId = DoctorId
apt.Notes = Notes
apt.Location = Location
apt.PatientName = PatientName
apt.InsuranceNumber = InsuranceNumber
apt.FirstVisit = FirstVisit
Return apt
End Function
Protected Sub New()
End Sub
Public Overridable Property Id() As Integer
Public Overridable Property AllDay() As Boolean
Public Overridable Property StartTime() As Date
Public Overridable Property EndTime() As Date
Public Overridable Property PatientName() As String
Public Overridable Property Notes() As String
Public Overridable Property Subject() As String
Public Property PaymentStateId() As Integer
Public Property IssueId() As Integer
Public Overridable Property Type() As Integer
Public Overridable Property Location() As String
Public Overridable Property RecurrenceInfo() As String
Public Overridable Property ReminderInfo() As String
Public Property DoctorId() As Integer?
Public Property InsuranceNumber() As String
Public Property FirstVisit() As Boolean
End Class
End Namespace