Thanks,
1. In the FormCreditCardEdit form at very end of FormCreditCardEdit_Load
Code: Select all
Plugins.HookAddCode(this,"FormCreditCardEdit.Load_end",PatCur);
After this line:
Code: Select all
table=CreditCards.GetRecurringChargeList();
Code: Select all
table.Columns.Add("RepeatChargeAmt");
Code: Select all
bool isValid = false;
object[] parameters = { table, isValid };
Plugins.HookAddCode(null, "CreditCards.GetRecurringChargeList_end", parameters);
if ((bool)parameters[1] == true)
{
table = (DataTable)parameters[0];
}
Code: Select all
Plugins.HookAddCode(this, "FormAdjust.Load_end", AdjustmentCur, PatCur);
Code: Select all
bool isValid = true;
object[] parameters = new object[] { isValid, sender, PatCur };
Plugins.HookAddCode(this, "FormAdjust.butOK_Click_beginning", parameters);
if ((bool)parameters[0] == false)
{//Didn't pass plug-in validation
DialogResult = DialogResult.OK;
return;
}
Code: Select all
bool isValid = true;
object[] parameters = new object[] { isValid, sender, PatCur };
Plugins.HookAddCode(this, "FormAdjust.butDelete_Click_beginning", parameters);
if ((bool)parameters[0] == false)
{//Didn't pass plug-in validation
DialogResult = DialogResult.OK;
return;
}
After this line:
Code: Select all
else if(table.Rows[e.Row]["PayPlanNum"].ToString()!="0"){
PayPlan payplan=PayPlans.GetOne(PIn.Long(table.Rows[e.Row]["PayPlanNum"].ToString()));
Code: Select all
FormPayPlan2 = new FormPayPlan(PatCur,payplan);
Code: Select all
bool isValid = false;
object[] parameters = { PatCur, payplan, isValid };
Plugins.HookAddCode(this, "ContrAccount.gridAccount_CellDoubleClick_middle", parameters);
if ((bool)parameters[2] == true)
{
bool isSelectFamily = gridAcctPat.GetSelectedIndex() == this.DataSetMain.Tables["patient"].Rows.Count - 1;
ModuleSelected(PatCur.PatNum, isSelectFamily);
return;
}
After this line:
Code: Select all
if(table.Rows[e.Row]["PayPlanNum"].ToString()!="0") {//Payment plan
PayPlan payplan=PayPlans.GetOne(PIn.Long(table.Rows[e.Row]["PayPlanNum"].ToString()));
Code: Select all
FormPayPlan2 = new FormPayPlan(PatCur,payplan);
Code: Select all
bool isValid = false;
object[] parameters = { PatCur, payplan, isValid };
Plugins.HookAddCode(this, "ContrAccount.gridPayPlan_CellDoubleClick_middle", parameters);
if ((bool)parameters[2] == true)
{
bool isSelectFamily = gridAcctPat.GetSelectedIndex() == this.DataSetMain.Tables["patient"].Rows.Count - 1;
ModuleSelected(PatCur.PatNum, isSelectFamily);
return;
}
After this line:
Code: Select all
PayPlans.Insert(payPlan);
Code: Select all
FormPayPlan FormPP =new FormPayPlan(PatCur,payPlan);
Code: Select all
bool isValid = false;
object[] parameters = { PatCur, payPlan, isValid };
Plugins.HookAddCode(this, "ContrAccount.toolBarButPayPlan_Click_middle", parameters);
if ((bool)parameters[2] == true)
{
ModuleSelected(PatCur.PatNum);
return;
}
Code: Select all
Plugins.HookAddCode(this, "ContrAccount.FillPaymentPlans_end", PatCur, table);