Changeset 1186 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- May 16, 2011, 7:31:39 AM (13 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.