private void FormCreditCardEdit_Load(object sender, EventArgs e) { CreditCardOld = CreditCardCur.Clone(); FillData(); if (IsXCharge) //Get recurring payment plan information if using X-Charge. { List <PayPlanCharge> chargeList = PayPlanCharges.Refresh(PatCur.PatNum); PayPlanList = PayPlans.GetValidPlansNoIns(PatCur.PatNum); comboPaymentPlans.Items.Add("None"); comboPaymentPlans.SelectedIndex = 0; for (int i = 0; i < PayPlanList.Count; i++) { comboPaymentPlans.Items.Add(PayPlans.GetTotalPrinc(PayPlanList[i].PayPlanNum, chargeList).ToString("F") + " " + Patients.GetPat(PayPlanList[i].PatNum).GetNameFL()); if (PayPlanList[i].PayPlanNum == CreditCardCur.PayPlanNum) { comboPaymentPlans.SelectedIndex = i + 1; } } } else //This will hide the recurring section and change the window size. { groupRecurringCharges.Visible = false; this.ClientSize = new System.Drawing.Size(this.ClientSize.Width, this.ClientSize.Height - 215); } }
private void FormPayPlanSelect_Load(object sender, System.EventArgs e) { for (int i = 0; i < ValidPlans.Count; i++) { listPayPlans.Items.Add(ValidPlans[i].PayPlanDate.ToShortDateString() + " " + PayPlans.GetTotalPrinc(ValidPlans[i].PayPlanNum, ChargeList).ToString("F") + " " + Patients.GetPat(ValidPlans[i].PatNum).GetNameFL()); } }
private void FormCreditCardEdit_Load(object sender, EventArgs e) { _creditCardOld = CreditCardCur.Clone(); FillFrequencyCombos(); FillData(); checkExcludeProcSync.Checked = CreditCardCur.ExcludeProcSync; if ((_isXChargeEnabled || _isPayConnectEnabled || _isPaySimpleEnabled) && (!CreditCardCur.IsXWeb() && !CreditCardCur.IsPayConnectPortal())) { //Get recurring payment plan information if using X-Charge or PayConnect and the card is not from XWeb or PayConnectPortal. PayPlanList = PayPlans.GetValidPlansNoIns(PatCur.PatNum); List <PayPlanCharge> chargeList = PayPlanCharges.GetForPayPlans(PayPlanList.Select(x => x.PayPlanNum).ToList()); comboPaymentPlans.Items.Add("None"); comboPaymentPlans.SelectedIndex = 0; for (int i = 0; i < PayPlanList.Count; i++) { comboPaymentPlans.Items.Add(PayPlans.GetTotalPrinc(PayPlanList[i].PayPlanNum, chargeList).ToString("F") + " " + Patients.GetPat(PayPlanList[i].PatNum).GetNameFL()); if (PayPlanList[i].PayPlanNum == CreditCardCur.PayPlanNum) { comboPaymentPlans.SelectedIndex = i + 1; } } if (PrefC.IsODHQ) { groupProcedures.Visible = true; FillProcs(); } else { this.ClientSize = new System.Drawing.Size(this.ClientSize.Width, this.ClientSize.Height - 144); } UpdateFrequencyText(); EnableFrequencyControls(); } else //This will hide the recurring section and change the window size. { groupRecurringCharges.Visible = false; groupChargeFrequency.Visible = false; this.ClientSize = new System.Drawing.Size(this.ClientSize.Width, this.ClientSize.Height - 486); } if (_isPaySimpleEnabled && !CreditCardCur.IsNew) { labelAcctType.Visible = true; textAccountType.Visible = true; } checkChrgWithNoBal.Checked = CreditCardCur.CanChargeWhenNoBal; //Only visible if preference is on. checkChrgWithNoBal.Visible = PrefC.GetBool(PrefName.RecurringChargesAllowedWhenNoPatBal); Plugins.HookAddCode(this, "FormCreditCardEdit.Load_end", PatCur); }
private void FormCreditCardEdit_Load(object sender, EventArgs e) { _creditCardOld = CreditCardCur.Clone(); FillData(); checkExcludeProcSync.Checked = CreditCardCur.ExcludeProcSync; if ((_isXChargeEnabled || _isPayConnectEnabled || _isPaySimpleEnabled) && !CreditCardCur.IsXWeb()) { //Get recurring payment plan information if using X-Charge or PayConnect and the card is not from XWeb. PayPlanList = PayPlans.GetValidPlansNoIns(PatCur.PatNum); List <PayPlanCharge> chargeList = PayPlanCharges.GetForPayPlans(PayPlanList.Select(x => x.PayPlanNum).ToList()); comboPaymentPlans.Items.Add("None"); comboPaymentPlans.SelectedIndex = 0; for (int i = 0; i < PayPlanList.Count; i++) { comboPaymentPlans.Items.Add(PayPlans.GetTotalPrinc(PayPlanList[i].PayPlanNum, chargeList).ToString("F") + " " + Patients.GetPat(PayPlanList[i].PatNum).GetNameFL()); if (PayPlanList[i].PayPlanNum == CreditCardCur.PayPlanNum) { comboPaymentPlans.SelectedIndex = i + 1; } } if (PrefC.IsODHQ) { groupProcedures.Visible = true; FillProcs(); } else { this.ClientSize = new System.Drawing.Size(this.ClientSize.Width, this.ClientSize.Height - 144); } } else //This will hide the recurring section and change the window size. { groupRecurringCharges.Visible = false; this.ClientSize = new System.Drawing.Size(this.ClientSize.Width, this.ClientSize.Height - 356); } if (_isPaySimpleEnabled && !CreditCardCur.IsNew) { textCardNumber.ReadOnly = true; } Plugins.HookAddCode(this, "FormCreditCardEdit.Load_end", PatCur); }