Changeset 1186 for Scheduling/trunk
- Timestamp:
- May 16, 2011, 7:31:39 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1176 r1186 2216 2216 Debug.Assert(a.RadiologyExamIEN.HasValue); 2217 2217 2218 //Prior to making expensive db calls, tell the grid nothing is selected anymore so nobody would try to pick it up 2218 //Can we cancel the appointment? 2219 bool _canCancel = CGDocumentManager.Current.DAL.CanCancelRadExam(a.RadiologyExamIEN.Value); 2220 2221 if (!_canCancel) 2222 { 2223 MessageBox.Show(this,"You cannot cancel this request. It has either been discontinued, or registered for an examination"); 2224 return; 2225 } 2226 2227 //Prior to making expensive db calls, tell the grid nothing is selected anymore so nobody would try to pick it up later 2219 2228 this.calendarGrid1.SelectedAppointment = 0; 2220 2229 … … 2228 2237 this.UpdateArrays(); 2229 2238 2239 //Tell other instances that this schedule has been updated 2230 2240 RaiseRPMSEvent("BSDX SCHEDULE", a.Resource); 2231 2241 } … … 3470 3480 return; 3471 3481 } 3482 3483 if (a.RadiologyExamIEN.HasValue) 3484 { 3485 MessageBox.Show("Cannot move a radiology appointment to the clipboard"); 3486 return; 3487 } 3488 3472 3489 m_ClipList.AddAppointment(a); 3473 3490 lstClip.Items.Add(a); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs
r1174 r1186 233 233 return result == "1" ? true : false; 234 234 } 235 236 /// <summary> 237 /// Can we Cancel an Exam appointment? Exams that are discontinued, Active or Complete cannot be discontinued 238 /// </summary> 239 /// <param name="examIEN">IEN of exam in 75.1 (RAD/NUC MED ORDERS) file</param> 240 /// <returns>true or false</returns> 241 public bool CanCancelRadExam(int examIEN) 242 { 243 string result = _thisConnection.bmxNetLib.TransmitRPC("BSDX CAN HOLD RAD EXAM", examIEN.ToString()); 244 return result == "1" ? true : false; 245 } 235 246 236 247 /// <summary>
Note:
See TracChangeset
for help on using the changeset viewer.