Hook Request
Posted: Sat Jun 09, 2018 5:06 am
Hi OpenDental,
Could I request a hook for AutomationL.cs in function Trigger (public static bool Trigger(AutomationTrigger trigger,List<string> procCodes,long patNum,long aptNum=0)) at line 45 as below:
Could I request a hook for AutomationL.cs in function Trigger (public static bool Trigger(AutomationTrigger trigger,List<string> procCodes,long patNum,long aptNum=0)) at line 45 as below:
Code: Select all
switch (listAutomations[i].AutoAction) {
case AutomationAction.CreateCommlog:
if (Plugins.HookMethod(null, "AutomationL.Trigger_CreateCommlog_start", patNum, aptNum, listAutomations[i].CommType, listAutomations[i].MessageContent))
{
automationHappened = true;
continue;
}
Commlog commlogCur=new Commlog();
commlogCur.PatNum=patNum;
commlogCur.CommDateTime=DateTime.Now;
commlogCur.CommType=listAutomations[i].CommType;
commlogCur.Note=listAutomations[i].MessageContent;
commlogCur.Mode_=CommItemMode.None;
commlogCur.UserNum=Security.CurUser.UserNum;
FormCommItem FormCI=new FormCommItem(commlogCur);
FormCI.IsNew=true;
FormCI.ShowDialog();
automationHappened=true;
continue;