New Hook Request
Posted: Wed May 04, 2016 12:12 pm
Could you please add the following hooks?
Thanks,
1. In the FormCreditCardEdit form at very end of FormCreditCardEdit_Load
2. In the form FormCreditRecurringCharges in the middle of the FillGrid() method.
After this line:
But before this line:
3. In the FormAdjust form at the end of the FormAdjust_Load method
4. In the FormAdjust form at the beginning of the butOK_Click method
5. In the FormAdjust form at the beginning of the butDelete_Click method
6. In the ContrAccount form in the gridAccount_CellDoubleClick method
After this line:
But before this line:
7. In the ContrAccount form in the gridAccount_CellDoubleClick method
After this line:
But before this line:
8. In the ContrAccount form in the toolBarButPayPlan_Click method
After this line:
But before this line:
9. In the ContrAccount form at the end of the FillPaymentPlans method
This is my first attempt at requesting hooks, so if my naming isn't what it should be or anything else needs to be changed, let me know.
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);