Ticket #1001503: Credit Cards Online - fix credit card online processing process

This commit is contained in:
Elaine Tan 2012-10-15 18:35:21 +08:00
parent d10b7a631e
commit e65ca5425b
3 changed files with 15 additions and 12 deletions

View File

@ -155,14 +155,6 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
Clients.response(new AuEcho(window, "runProcessOnline", null)); Clients.response(new AuEcho(window, "runProcessOnline", null));
} }
} }
public void runProcessOnline() {
try {
processOnline();
} finally {
window.unlockUI();
}
}
@Override @Override
public boolean checkMandatory() { public boolean checkMandatory() {
@ -186,10 +178,8 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
return true; return true;
} }
/************************************************************************** @Override
* Process Online (sales only) - if approved - exit public void processOnline()
*/
private void processOnline()
{ {
log.config(""); log.config("");
if (!checkMandatory()) if (!checkMandatory())

View File

@ -95,6 +95,14 @@ public class WPaymentFormWindow extends Window implements EventListener<Event>,
} // actionPerformed } // actionPerformed
public void runProcessOnline() {
try {
paymentForm.processOnline();
} finally {
unlockUI();
}
}
public void unlockUI() { public void unlockUI() {
if (!m_isLocked) return; if (!m_isLocked) return;

View File

@ -275,6 +275,11 @@ public abstract class PaymentForm implements IPaymentForm {
return retValue; return retValue;
} // getInvoiceID } // getInvoiceID
public void processOnline()
{
}
public GridTab getGridTab() public GridTab getGridTab()
{ {
return m_mTab; return m_mTab;