1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using IndianHealthService.BMXNet.Model;
|
---|
5 | using System.Globalization;
|
---|
6 |
|
---|
7 | namespace IndianHealthService.BMXNet.WinForm.Model
|
---|
8 | {
|
---|
9 | internal class WinVisit : WinObject, Visit
|
---|
10 | {
|
---|
11 |
|
---|
12 | private DateTime _dateTime;
|
---|
13 |
|
---|
14 | public DateTime DateTime
|
---|
15 | {
|
---|
16 | get { return _dateTime; }
|
---|
17 | set { _dateTime = value; }
|
---|
18 | }
|
---|
19 |
|
---|
20 |
|
---|
21 | private String _locationName;
|
---|
22 |
|
---|
23 | public String LocationName
|
---|
24 | {
|
---|
25 | get { return _locationName; }
|
---|
26 | set { _locationName = value; }
|
---|
27 | }
|
---|
28 | private String _clinic;
|
---|
29 |
|
---|
30 | public String Clinic
|
---|
31 | {
|
---|
32 | get { return _clinic; }
|
---|
33 | set { _clinic = value; }
|
---|
34 | }
|
---|
35 |
|
---|
36 |
|
---|
37 | private String _visitType = null;
|
---|
38 |
|
---|
39 | public String VisitType
|
---|
40 | {
|
---|
41 | get { return _visitType; }
|
---|
42 | set { _visitType = value; }
|
---|
43 | }
|
---|
44 |
|
---|
45 |
|
---|
46 | private String _providerName;
|
---|
47 |
|
---|
48 | public String ProviderName
|
---|
49 | {
|
---|
50 | get { return _providerName; }
|
---|
51 | set { _providerName = value; }
|
---|
52 | }
|
---|
53 |
|
---|
54 | public override string ToString()
|
---|
55 | {
|
---|
56 | return this.Label;
|
---|
57 | }
|
---|
58 |
|
---|
59 | public String Label
|
---|
60 | {
|
---|
61 |
|
---|
62 | get { return this.DateTime.ToShortDateString() + " " + this.Clinic + ", " + this.ProviderName; }
|
---|
63 | }
|
---|
64 |
|
---|
65 | private String _serviceCategory = null;
|
---|
66 |
|
---|
67 | public String ServiceCategory
|
---|
68 | {
|
---|
69 | get { return _serviceCategory; }
|
---|
70 | set { _serviceCategory = value; }
|
---|
71 | }
|
---|
72 |
|
---|
73 |
|
---|
74 |
|
---|
75 | #region Visit Members
|
---|
76 |
|
---|
77 |
|
---|
78 | public bool IsStub
|
---|
79 | {
|
---|
80 | get
|
---|
81 | {
|
---|
82 | return false;
|
---|
83 | }
|
---|
84 | set
|
---|
85 | {
|
---|
86 |
|
---|
87 | }
|
---|
88 | }
|
---|
89 |
|
---|
90 | public bool Create()
|
---|
91 | {
|
---|
92 | return this.Create(true);
|
---|
93 | }
|
---|
94 |
|
---|
95 | public bool Create(bool showGuiToCreate)
|
---|
96 | {
|
---|
97 | return true;
|
---|
98 | }
|
---|
99 |
|
---|
100 | public bool IsLocked
|
---|
101 | {
|
---|
102 | get
|
---|
103 | {
|
---|
104 | return false;
|
---|
105 | }
|
---|
106 | set
|
---|
107 | {
|
---|
108 | }
|
---|
109 | }
|
---|
110 |
|
---|
111 | public bool IsFutureAppointment
|
---|
112 | {
|
---|
113 | get { return false; }
|
---|
114 | }
|
---|
115 |
|
---|
116 |
|
---|
117 | #endregion
|
---|
118 | }
|
---|
119 | }
|
---|