- Timestamp:
- Apr 12, 2011, 2:13:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/branches/Radiology-Support/cs/bsdx0200GUISourceCode/CGAppointment.cs
r1111 r1140 4 4 using System.Drawing; 5 5 /// <summary> 6 /// Data Structuer to Represent an Appointment 7 /// 6 /// Data Structure to Represent an Appointment 8 7 /// </summary> 9 8 [Serializable] 10 9 public class CGAppointment 11 10 { 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; 11 public int AccessTypeID { get; set; } 12 public string AccessTypeName { get; set; } 13 14 public int AppointmentKey { get; set; } 15 16 public DateTime AuxTime { get; set; } 17 public DateTime CheckInTime { get; set; } 18 public DateTime EndTime { get; set; } 19 public DateTime StartTime { get; set; } 20 21 public int GridColumn { get; set; } 22 public Rectangle GridRectangle { get; set; } 23 24 public bool IsAccessBlock { get; set; } 25 26 public bool NoShow { get; set; } 27 28 public string Note { get; set; } 29 30 public int PatientID { get; set; } 31 public string PatientName { get; set; } 32 public string Resource { get; set; } 33 public string HealthRecordNumber { get; set; } 34 35 public bool Selected { get; set; } 36 37 public int Slots { get; set; } 38 39 public bool WalkIn { get; set; } 40 41 public Patient Patient { get; set; } 42 public Provider Provider { get; set; } 43 44 public int? RadiologyExamIEN { get; set; } 45 46 47 public CGAppointment() 48 { 49 AccessTypeID = -1; 50 Selected = false; 51 HealthRecordNumber = ""; 52 } 32 53 33 54 public void CreateAppointment(DateTime StartTime, DateTime EndTime, string Note, int Key, string sResource) 34 55 { 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; 56 this.StartTime = StartTime; 57 this.EndTime = EndTime; 58 this.Note = Note; 59 this.AppointmentKey = Key; 60 this.Resource = sResource; 61 } 62 63 public int Duration 64 { 65 get 66 { 67 TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime); 68 return (int) span.TotalMinutes; 69 } 40 70 } 41 71 42 72 public override string ToString() 43 73 { 44 //StringFormat sf = new StringFormat();45 //sf.SetDigitSubstitution(System.Threading.Thread.CurrentThread.CurrentCulture.LCID, StringDigitSubstitute.National);46 74 string patientName = ""; 47 if (this. m_bAccessBlock)75 if (this.IsAccessBlock) 48 76 { 49 77 string str2 = (this.Slots == 1) ? " Slot, " : " Slots, "; … … 57 85 return (patientName + " " + this.Note); 58 86 } 59 60 public int AccessTypeID61 {62 get63 {64 return this.m_nAccessTypeID;65 }66 set67 {68 this.m_nAccessTypeID = value;69 }70 }71 72 public string AccessTypeName73 {74 get75 {76 return this.m_sAccessTypeName;77 }78 set79 {80 this.m_sAccessTypeName = value;81 }82 }83 84 public int AppointmentKey85 {86 get87 {88 return this.m_nKey;89 }90 set91 {92 this.m_nKey = value;93 }94 }95 96 public DateTime AuxTime97 {98 get99 {100 return this.m_dAuxTime;101 }102 set103 {104 this.m_dAuxTime = value;105 }106 }107 108 public DateTime CheckInTime109 {110 get111 {112 return this.m_dCheckIn;113 }114 set115 {116 this.m_dCheckIn = value;117 }118 }119 120 public int Duration121 {122 get123 {124 TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime);125 return (int) span.TotalMinutes;126 }127 }128 129 public DateTime EndTime130 {131 get132 {133 return this.m_EndTime;134 }135 set136 {137 this.m_EndTime = value;138 }139 }140 141 public int GridColumn142 {143 get144 {145 return this.m_nColumn;146 }147 set148 {149 this.m_nColumn = value;150 }151 }152 153 public Rectangle GridRectangle154 {155 get156 {157 return this.m_rectangle;158 }159 set160 {161 this.m_rectangle = value;162 }163 }164 165 public string HealthRecordNumber166 {167 get168 {169 return this.m_sHRN;170 }171 set172 {173 this.m_sHRN = value;174 }175 }176 177 public bool IsAccessBlock178 {179 get180 {181 return this.m_bAccessBlock;182 }183 set184 {185 this.m_bAccessBlock = value;186 }187 }188 189 public bool NoShow190 {191 get192 {193 return this.m_bNoShow;194 }195 set196 {197 this.m_bNoShow = value;198 }199 }200 201 public string Note202 {203 get204 {205 return this.m_Note;206 }207 set208 {209 this.m_Note = value;210 }211 }212 213 public int PatientID214 {215 get216 {217 return this.m_nPatientID;218 }219 set220 {221 this.m_nPatientID = value;222 }223 }224 225 public string PatientName226 {227 get228 {229 return this.m_sPatientName;230 }231 set232 {233 this.m_sPatientName = value;234 }235 }236 237 public string Resource238 {239 get240 {241 return this.m_sResource;242 }243 set244 {245 this.m_sResource = value;246 }247 }248 249 public bool Selected250 {251 get252 {253 return this.m_bSelected;254 }255 set256 {257 this.m_bSelected = value;258 }259 }260 261 public int Slots262 {263 get264 {265 return this.m_nSlots;266 }267 set268 {269 this.m_nSlots = value;270 }271 }272 273 public DateTime StartTime274 {275 get276 {277 return this.m_StartTime;278 }279 set280 {281 this.m_StartTime = value;282 }283 }284 285 public string Text286 {287 get288 {289 this.m_Text = this.m_sPatientName;290 return this.m_Text;291 }292 }293 294 public bool WalkIn295 {296 get297 {298 return this.m_bWalkIn;299 }300 set301 {302 this.m_bWalkIn = value;303 }304 }305 306 public Patient Patient { get; set; }307 public Provider Provider { get; set; }308 87 } 309 88 }
Note:
See TracChangeset
for help on using the changeset viewer.