Hi,
When booking appointments, I’d like a warning if the operator has not completed both the appt type and the room number.
Thanks
frmEditorBaseRec Editor = (Params[0] as frmEditorBaseRec);
cApp app = (Editor.Record as cApp);
string s = "";
if (app.apptype_id == null)
s += "\n No appointment type was entered";
if (app.room_id == null)
s += "\n No room was selected";
if (s != "")
{
if (!PSDevEx.cMessages.QuestionBox("Some information wasn't entered :-\n" + s + "\n\nDo you still want to save this appointment?", "Confirmation Required"))
throw new PSExc.SilentException();
}
Users browsing this forum: No registered users and 1 guest