This commit is contained in:
parent
a2d1075959
commit
226b6cb7a1
|
@ -2130,22 +2130,7 @@ namespace IndianHealthService.ClinicalScheduling
|
||||||
appt.Resource = sResource;
|
appt.Resource = sResource;
|
||||||
appt.HealthRecordNumber = dPat.HealthRecordNumber;
|
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();
|
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
|
//Call Document to add a walkin appointment
|
||||||
int nApptID = this.Document.CreateAppointment(appt, true);
|
int nApptID = this.Document.CreateAppointment(appt, true);
|
||||||
|
|
|
@ -542,7 +542,7 @@ namespace IndianHealthService.ClinicalScheduling
|
||||||
//Datasource the HOSPITAL LOCATION combo box
|
//Datasource the HOSPITAL LOCATION combo box
|
||||||
DataTable dtHospLoc = dsGlobal.Tables["HospitalLocation"];
|
DataTable dtHospLoc = dsGlobal.Tables["HospitalLocation"];
|
||||||
m_dvHospLoc = new DataView(dtHospLoc);
|
m_dvHospLoc = new DataView(dtHospLoc);
|
||||||
m_dvHospLoc.Sort = "HOSPITAL_LOCATION_ID ASC";
|
m_dvHospLoc.Sort = "HOSPITAL_LOCATION_ID ASC";
|
||||||
int nFind = m_dvHospLoc.Find((int) 0);
|
int nFind = m_dvHospLoc.Find((int) 0);
|
||||||
if (nFind < 0)
|
if (nFind < 0)
|
||||||
{
|
{
|
||||||
|
@ -552,6 +552,7 @@ namespace IndianHealthService.ClinicalScheduling
|
||||||
drv["HOSPITAL_LOCATION_ID"]=0;
|
drv["HOSPITAL_LOCATION_ID"]=0;
|
||||||
drv.EndEdit();
|
drv.EndEdit();
|
||||||
}
|
}
|
||||||
|
m_dvHospLoc.Sort = "HOSPITAL_LOCATION ASC";
|
||||||
|
|
||||||
// DataTable dtClinicParams = dsGlobal.Tables["ClinicSetupParameters"];
|
// DataTable dtClinicParams = dsGlobal.Tables["ClinicSetupParameters"];
|
||||||
// m_dvClinicParams = new DataView(dtClinicParams);
|
// m_dvClinicParams = new DataView(dtClinicParams);
|
||||||
|
|
Loading…
Reference in New Issue