source: Scheduling/branches/GUI1.2/CGAppointment.cs@ 1044

Last change on this file since 1044 was 622, checked in by Sam Habiel, 15 years ago

This update does the following:

File size: 6.8 KB
Line 
1namespace IndianHealthService.ClinicalScheduling
2{
3 using System;
4 using System.Drawing;
5 /// <summary>
6 /// This class was regenerated from Calendargrid.dll using Reflector.exe
7 /// by Sam Habiel for WorldVista. The original source code is lost.
8 /// </summary>
9 [Serializable]
10 public class CGAppointment
11 {
12 private bool m_bAccessBlock;
13 private bool m_bNoShow;
14 private bool m_bSelected = false;
15 private bool m_bWalkIn;
16 public DateTime m_dAuxTime;
17 public DateTime m_dCheckIn;
18 private DateTime m_EndTime;
19 public int m_nAccessTypeID = -1;
20 private int m_nColumn;
21 public int m_nKey;
22 private string m_Note;
23 public int m_nPatientID;
24 public int m_nSlots;
25 private Rectangle m_rectangle;
26 public string m_sAccessTypeName;
27 private string m_sHRN = "";
28 private string m_sPatientName;
29 public string m_sResource;
30 private DateTime m_StartTime;
31 private string m_Text;
32
33 public void CreateAppointment(DateTime StartTime, DateTime EndTime, string Note, int Key, string sResource)
34 {
35 this.m_StartTime = StartTime;
36 this.m_EndTime = EndTime;
37 this.m_Note = Note;
38 this.m_nKey = Key;
39 this.m_sResource = sResource;
40 }
41
42 public override string ToString()
43 {
44 string patientName = "";
45 if (this.m_bAccessBlock)
46 {
47 string str2 = (this.Slots == 1) ? " Slot, " : " Slots, ";
48 return ((((this.AccessTypeName + ": ") + this.Slots.ToString() + str2) + this.Duration.ToString() + " Minutes. ") + this.Note);
49 }
50 patientName = this.PatientName;
51 if (this.HealthRecordNumber != "")
52 {
53 patientName = patientName + " #" + this.HealthRecordNumber;
54 }
55 return (patientName + " " + this.Note);
56 }
57
58 public int AccessTypeID
59 {
60 get
61 {
62 return this.m_nAccessTypeID;
63 }
64 set
65 {
66 this.m_nAccessTypeID = value;
67 }
68 }
69
70 public string AccessTypeName
71 {
72 get
73 {
74 return this.m_sAccessTypeName;
75 }
76 set
77 {
78 this.m_sAccessTypeName = value;
79 }
80 }
81
82 public int AppointmentKey
83 {
84 get
85 {
86 return this.m_nKey;
87 }
88 set
89 {
90 this.m_nKey = value;
91 }
92 }
93
94 public DateTime AuxTime
95 {
96 get
97 {
98 return this.m_dAuxTime;
99 }
100 set
101 {
102 this.m_dAuxTime = value;
103 }
104 }
105
106 public DateTime CheckInTime
107 {
108 get
109 {
110 return this.m_dCheckIn;
111 }
112 set
113 {
114 this.m_dCheckIn = value;
115 }
116 }
117
118 public int Duration
119 {
120 get
121 {
122 TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime);
123 return (int) span.TotalMinutes;
124 }
125 }
126
127 public DateTime EndTime
128 {
129 get
130 {
131 return this.m_EndTime;
132 }
133 set
134 {
135 this.m_EndTime = value;
136 }
137 }
138
139 public int GridColumn
140 {
141 get
142 {
143 return this.m_nColumn;
144 }
145 set
146 {
147 this.m_nColumn = value;
148 }
149 }
150
151 public Rectangle GridRectangle
152 {
153 get
154 {
155 return this.m_rectangle;
156 }
157 set
158 {
159 this.m_rectangle = value;
160 }
161 }
162
163 public string HealthRecordNumber
164 {
165 get
166 {
167 return this.m_sHRN;
168 }
169 set
170 {
171 this.m_sHRN = value;
172 }
173 }
174
175 public bool IsAccessBlock
176 {
177 get
178 {
179 return this.m_bAccessBlock;
180 }
181 set
182 {
183 this.m_bAccessBlock = value;
184 }
185 }
186
187 public bool NoShow
188 {
189 get
190 {
191 return this.m_bNoShow;
192 }
193 set
194 {
195 this.m_bNoShow = value;
196 }
197 }
198
199 public string Note
200 {
201 get
202 {
203 return this.m_Note;
204 }
205 set
206 {
207 this.m_Note = value;
208 }
209 }
210
211 public int PatientID
212 {
213 get
214 {
215 return this.m_nPatientID;
216 }
217 set
218 {
219 this.m_nPatientID = value;
220 }
221 }
222
223 public string PatientName
224 {
225 get
226 {
227 return this.m_sPatientName;
228 }
229 set
230 {
231 this.m_sPatientName = value;
232 }
233 }
234
235 public string Resource
236 {
237 get
238 {
239 return this.m_sResource;
240 }
241 set
242 {
243 this.m_sResource = value;
244 }
245 }
246
247 public bool Selected
248 {
249 get
250 {
251 return this.m_bSelected;
252 }
253 set
254 {
255 this.m_bSelected = value;
256 }
257 }
258
259 public int Slots
260 {
261 get
262 {
263 return this.m_nSlots;
264 }
265 set
266 {
267 this.m_nSlots = value;
268 }
269 }
270
271 public DateTime StartTime
272 {
273 get
274 {
275 return this.m_StartTime;
276 }
277 set
278 {
279 this.m_StartTime = value;
280 }
281 }
282
283 public string Text
284 {
285 get
286 {
287 this.m_Text = this.m_sPatientName;
288 return this.m_Text;
289 }
290 }
291
292 public bool WalkIn
293 {
294 get
295 {
296 return this.m_bWalkIn;
297 }
298 set
299 {
300 this.m_bWalkIn = value;
301 }
302 }
303 }
304}
305
Note: See TracBrowser for help on using the repository browser.