I would like to have some hook for SMS added to OD source code.
The first hook is in the FormTxtMsgEdit.SendText function. This allow to used other SMS provider.
Code: Select all
public void SendText(long patNum,string wirelessPhone,string message,YN txtMsgOk) {
if (OpenDentBusiness.Plugins.HookMethod(this, "FormTxtMsgEdit.SendText", patNum, wirelessPhone, message, txtMsgOk))
return;
if(wirelessPhone=="") {
MsgBox.Show(this,"Please enter a phone number.");
return;
}
Code: Select all
if (!Programs.IsEnabled(ProgramName.CallFire))
{
butText.Enabled = false;
}
FillMain();
// Minh Test
Plugins.HookAddCode(this, "FormConfirmList.Load_End", butText);
}
Code: Select all
if (grid.Rows.Count == 0)
{
MsgBox.Show(this, "There are no Patients in the table. Must have at least one.");
return;
}
if (!Programs.IsEnabled(ProgramName.CallFire))
{
MsgBox.Show(this, "CallFire must be enabled to send text messages. Go to Setup | Program Links | CallFire, and enable CallFire.");
return;
}
if (PrefC.GetLong(PrefName.ConfirmStatusTextMessaged) == 0)
{
MsgBox.Show(this, "You need to set a status first for confirmation text messages in the Recall Setup window.");
return;
}