4 more hooks

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

4 more hooks

Post by wjstarck » Fri Mar 18, 2011 8:23 am

Towards the bottom of method butSetComplete_Click, after line 3300 on FormProcEdit:

Code: Select all

textNotes.Text+=ProcCodeNotes.GetNote(provNum,ProcCur.CodeNum);
Plugins.HookAddCode(this, "FormProcEdit.butSetComplete_Click_end",ProcCur,ProcOld,textNotes); <-----
listProcStatus.SelectedIndex=-1;

Towards the bottom of method menuItemSetComplete_Click, after line 7328 on ContrChart:

Code: Select all

procCur.ProcStatus=ProcStat.C; 
Plugins.HookAddCode(null, "ContrChart.menuItemSetComplete_Click_end",procCur,procOld); <-----
Procedures.Update(procCur,procOld);  

Towards the bottom of method SetCompleteInAppt, after line 1322 on OpenDentBusiness.Procedures:

Code: Select all

if(oldProc.ProcStatus!=ProcStat.C) {
ProcList[i].Note+=ProcCodeNotes.GetNote(ProcList[i].ProvNum,ProcList[i].CodeNum);
Plugins.HookAddCode(null, "Procedures.SetCompleteInAppt_end", ProcList[i], oldProc); <------
Procedures.Update(ProcList[i],oldProc);
Towards the bottom of method pd_PrintPage , after line 225 (line 222 in 7.9.x) on OpenDental.SheetPrinting:

Code: Select all

/*string fieldHomePhoneName = field.FieldName;
string fieldHomePhoneVal = field.FieldValue;
string fieldWirelessPhoneVal = field.FieldValue; */
Plugins.HookAddCode(null, "SheetPrinting.pd_PrintPage_end", field); <-----
GraphicsHelper.DrawString(g,gfx,field.FieldValue,font,Brushes.Black,field.Bounds);
No need to add to 7.7 or earlier - 7.8 and higher will do just fine.

Thanks.
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

Post Reply