private void FormPaySimple_Load(object sender, EventArgs e) { _progCur = Programs.GetCur(ProgramName.PaySimple); if (_progCur == null) { MsgBox.Show(this, "PaySimple does not exist in the database."); DialogResult = DialogResult.Cancel; return; } if (_patCur == null || _patCur.PatNum == 0) //Prepaid card { radioAuthorization.Enabled = false; checkOneTimePayment.Checked = true; checkOneTimePayment.Enabled = false; tabControl.TabPages.Remove(tabACH); } else { checkOneTimePayment.Checked = !PrefC.GetBool(PrefName.StoreCCtokens); checkOneTimePaymentACH.Checked = !PrefC.GetBool(PrefName.StoreCCtokens); textZipCode.Text = _patCur.Zip; textNameOnCard.Text = _patCur.GetNameFL(); if (_creditCardCur != null) { FillFieldsFromCard(); } } if (_isAddingCard) { radioAuthorization.Checked = true; _trantype = PaySimple.TransType.AUTH; groupTransType.Enabled = false; labelAmount.Visible = false; textAmount.Visible = false; labelAmountACH.Visible = false; textAmountACH.Visible = false; checkOneTimePayment.Checked = false; checkOneTimePayment.Enabled = false; checkOneTimePaymentACH.Checked = false; checkOneTimePaymentACH.Enabled = false; } if (_creditCardCur == null || _creditCardCur.CCSource != CreditCardSource.PaySimpleACH) { textCardNumber.Select(); } else { tabControl.SelectedTab = tabACH; textRoutingNumber.Select(); } if (PIn.Bool(ProgramProperties.GetPropVal(_progCur.ProgramNum, PaySimple.PropertyDescs.PaySimplePreventSavingNewCC, _clinicNum))) { textCardNumber.ReadOnly = true; textRoutingNumber.ReadOnly = true; textCheckSaveNumber.ReadOnly = true; textBankName.ReadOnly = true; } }
private void radioAuthorization_Click(object sender, EventArgs e) { radioSale.Checked = false; radioAuthorization.Checked = true; radioVoid.Checked = false; radioReturn.Checked = false; textRefNumber.Visible = false; labelRefNumber.Visible = false; textAmount.Visible = false; _trantype = PaySimple.TransType.AUTH; textCardNumber.Focus(); //Usually transaction type is chosen before card number is entered, but textCardNumber box must be selected in order for card swipe to work. }
private void FormPaySimple_Load(object sender, EventArgs e) { _progCur = Programs.GetCur(ProgramName.PaySimple); if (_progCur == null) { MsgBox.Show(this, "PaySimple does not exist in the database."); DialogResult = DialogResult.Cancel; return; } if (_patCur == null || _patCur.PatNum == 0) //Prepaid card { radioAuthorization.Enabled = false; checkOneTimePayment.Checked = true; checkOneTimePayment.Enabled = false; } else { checkOneTimePayment.Checked = !PrefC.GetBool(PrefName.StoreCCtokens); textZipCode.Text = _patCur.Zip; textNameOnCard.Text = _patCur.GetNameFL(); if (_creditCardCur != null) { FillFieldsFromCard(); } } if (_isAddingCard) { radioAuthorization.Checked = true; _trantype = PaySimple.TransType.AUTH; groupTransType.Enabled = false; labelAmount.Visible = false; textAmount.Visible = false; checkOneTimePayment.Checked = false; checkOneTimePayment.Enabled = false; } textCardNumber.Select(); }