This commit is contained in:
sam 2010-07-21 13:42:23 +00:00
parent a2d1075959
commit 226b6cb7a1
2 changed files with 2 additions and 16 deletions

View File

@ -2130,22 +2130,7 @@ namespace IndianHealthService.ClinicalScheduling
appt.Resource = sResource;
appt.HealthRecordNumber = dPat.HealthRecordNumber;
/*
* 8-10-05 Copied overbook prompt for walkin
* to this position in order to check just prior
* to calling CreateAppointment
*/
this.Document.RefreshDocument();
m_nSlots = m_Document.SlotsAvailable(dStart, dEnd, sResource, out sAccessType, out sAvailabilityMessage);
if (m_nSlots < 1)
{
DialogResult dr = MessageBox.Show(this, "There are no slots available at the selected time. Do you want to overbook this appointment?", "Clinical Scheduling",MessageBoxButtons.YesNo);
if (dr != DialogResult.Yes)
{
return;
}
}
//Call Document to add a walkin appointment
int nApptID = this.Document.CreateAppointment(appt, true);

View File

@ -552,6 +552,7 @@ namespace IndianHealthService.ClinicalScheduling
drv["HOSPITAL_LOCATION_ID"]=0;
drv.EndEdit();
}
m_dvHospLoc.Sort = "HOSPITAL_LOCATION ASC";
// DataTable dtClinicParams = dsGlobal.Tables["ClinicSetupParameters"];
// m_dvClinicParams = new DataView(dtClinicParams);