source: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAppointment.cs@ 1011

Last change on this file since 1011 was 900, checked in by Sam Habiel, 14 years ago
  1. Fix bug of not showing appointments in 7 day view if arabic locale on machine.
  2. Fix printing of routing slip (add clinic and fix appointment time and HRN)
  3. Add RTL support for letters printed in Arabic Locale.
File size: 7.0 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 //StringFormat sf = new StringFormat();
45 //sf.SetDigitSubstitution(System.Threading.Thread.CurrentThread.CurrentCulture.LCID, StringDigitSubstitute.National);
46 string patientName = "";
47 if (this.m_bAccessBlock)
48 {
49 string str2 = (this.Slots == 1) ? " Slot, " : " Slots, ";
50 return ((((this.AccessTypeName + ": ") + this.Slots.ToString() + str2) + this.Duration.ToString() + " Minutes. ") + this.Note);
51 }
52 patientName = this.PatientName;
53 if (this.HealthRecordNumber != "")
54 {
55 patientName = patientName + " #" + this.HealthRecordNumber;
56 }
57 return (patientName + " " + this.Note);
58 }
59
60 public int AccessTypeID
61 {
62 get
63 {
64 return this.m_nAccessTypeID;
65 }
66 set
67 {
68 this.m_nAccessTypeID = value;
69 }
70 }
71
72 public string AccessTypeName
73 {
74 get
75 {
76 return this.m_sAccessTypeName;
77 }
78 set
79 {
80 this.m_sAccessTypeName = value;
81 }
82 }
83
84 public int AppointmentKey
85 {
86 get
87 {
88 return this.m_nKey;
89 }
90 set
91 {
92 this.m_nKey = value;
93 }
94 }
95
96 public DateTime AuxTime
97 {
98 get
99 {
100 return this.m_dAuxTime;
101 }
102 set
103 {
104 this.m_dAuxTime = value;
105 }
106 }
107
108 public DateTime CheckInTime
109 {
110 get
111 {
112 return this.m_dCheckIn;
113 }
114 set
115 {
116 this.m_dCheckIn = value;
117 }
118 }
119
120 public int Duration
121 {
122 get
123 {
124 TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime);
125 return (int) span.TotalMinutes;
126 }
127 }
128
129 public DateTime EndTime
130 {
131 get
132 {
133 return this.m_EndTime;
134 }
135 set
136 {
137 this.m_EndTime = value;
138 }
139 }
140
141 public int GridColumn
142 {
143 get
144 {
145 return this.m_nColumn;
146 }
147 set
148 {
149 this.m_nColumn = value;
150 }
151 }
152
153 public Rectangle GridRectangle
154 {
155 get
156 {
157 return this.m_rectangle;
158 }
159 set
160 {
161 this.m_rectangle = value;
162 }
163 }
164
165 public string HealthRecordNumber
166 {
167 get
168 {
169 return this.m_sHRN;
170 }
171 set
172 {
173 this.m_sHRN = value;
174 }
175 }
176
177 public bool IsAccessBlock
178 {
179 get
180 {
181 return this.m_bAccessBlock;
182 }
183 set
184 {
185 this.m_bAccessBlock = value;
186 }
187 }
188
189 public bool NoShow
190 {
191 get
192 {
193 return this.m_bNoShow;
194 }
195 set
196 {
197 this.m_bNoShow = value;
198 }
199 }
200
201 public string Note
202 {
203 get
204 {
205 return this.m_Note;
206 }
207 set
208 {
209 this.m_Note = value;
210 }
211 }
212
213 public int PatientID
214 {
215 get
216 {
217 return this.m_nPatientID;
218 }
219 set
220 {
221 this.m_nPatientID = value;
222 }
223 }
224
225 public string PatientName
226 {
227 get
228 {
229 return this.m_sPatientName;
230 }
231 set
232 {
233 this.m_sPatientName = value;
234 }
235 }
236
237 public string Resource
238 {
239 get
240 {
241 return this.m_sResource;
242 }
243 set
244 {
245 this.m_sResource = value;
246 }
247 }
248
249 public bool Selected
250 {
251 get
252 {
253 return this.m_bSelected;
254 }
255 set
256 {
257 this.m_bSelected = value;
258 }
259 }
260
261 public int Slots
262 {
263 get
264 {
265 return this.m_nSlots;
266 }
267 set
268 {
269 this.m_nSlots = value;
270 }
271 }
272
273 public DateTime StartTime
274 {
275 get
276 {
277 return this.m_StartTime;
278 }
279 set
280 {
281 this.m_StartTime = value;
282 }
283 }
284
285 public string Text
286 {
287 get
288 {
289 this.m_Text = this.m_sPatientName;
290 return this.m_Text;
291 }
292 }
293
294 public bool WalkIn
295 {
296 get
297 {
298 return this.m_bWalkIn;
299 }
300 set
301 {
302 this.m_bWalkIn = value;
303 }
304 }
305 }
306}
307
Note: See TracBrowser for help on using the repository browser.