Changeset 1186 for Scheduling


Ignore:
Timestamp:
May 16, 2011, 7:31:39 AM (14 years ago)
Author:
Sam Habiel
Message:

CGView:

  1. Check to see if Radiology Appointment is cancellable. Check made when cancelling radiology appointment.
  2. Prevent user from copying radiology appointment to clipboard.

DAL:

  1. Added CanCancelRadExam entry point to support change in CGView above.

Updated exes and dlls.

Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r1176 r1186  
    22162216            Debug.Assert(a.RadiologyExamIEN.HasValue);
    22172217
    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
    22192228            this.calendarGrid1.SelectedAppointment = 0;
    22202229
     
    22282237            this.UpdateArrays();
    22292238
     2239            //Tell other instances that this schedule has been updated
    22302240            RaiseRPMSEvent("BSDX SCHEDULE", a.Resource);
    22312241        }
     
    34703480                                        return;
    34713481                                }
     3482
     3483                if (a.RadiologyExamIEN.HasValue)
     3484                {
     3485                    MessageBox.Show("Cannot move a radiology appointment to the clipboard");
     3486                    return;
     3487                }
     3488
    34723489                                m_ClipList.AddAppointment(a);
    34733490                                lstClip.Items.Add(a);
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs

    r1174 r1186  
    233233            return result == "1" ? true : false;
    234234        }
     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        }
    235246
    236247        /// <summary>
Note: See TracChangeset for help on using the changeset viewer.