1 14 package org.compiere.process; 15 16 import java.sql.*; 17 import java.math.*; 18 import java.util.*; 19 20 import org.compiere.process.*; 21 import org.compiere.model.*; 22 23 24 30 public class PaymentProcess extends SvrProcess 31 { 32 public PaymentProcess() 33 { 34 super(); 35 } 37 private int m_C_Payment_ID = -1; 38 39 42 protected void prepare() 43 { 44 ProcessInfoParameter[] para = getParameter(); 45 for (int i = 0; i < para.length; i++) 46 { 47 String name = para[i].getParameterName(); 48 if (para[i].getParameter() == null) 49 ; 50 else 51 log.error("prepare - Unknown Parameter: " + name); 52 } 53 } 55 60 protected String doIt() throws Exception 61 { 62 log.info("doIt - Record_ID=" + getRecord_ID()); 63 MPayment pp = new MPayment (getCtx(), getRecord_ID()); 65 boolean ok = pp.processOnline(); 67 pp.save(); 68 return ok ? "" : "Error"; 69 } 71 } | Popular Tags |