Examples of PaymentVO


Examples of com.centraview.account.payment.PaymentVO

          arrlCVID.add(new Integer(ID));
        }
      }
      else if (modulename.equals("Payment")) {
        Iterator it = arrl.iterator();
        PaymentVO VO = new PaymentVO();
        while (it.hasNext()) {
          VO = (PaymentVO) it.next();
          int ID = VO.getPaymentID();
          arrlCVID.add(new Integer(ID));
        }
      }
      else if (modulename.equals("PaymentMethod")) {
        Iterator it = arrl.iterator();
        PaymentMethodVO VO = new PaymentMethodVO();
        while (it.hasNext()) {
          VO = (PaymentMethodVO) it.next();
          int ID = VO.getMethodID();
          arrlCVID.add(new Integer(ID));
        }
      }
      else if (modulename.equals("GLAccount")) {
        Iterator it = arrl.iterator();
        GLAccountVO VO = new GLAccountVO();
        while (it.hasNext()) {
          VO = (GLAccountVO) it.next();
          int ID = VO.getGlaccountID();
          arrlCVID.add(new Integer(ID));
        }
      }
    }catch(Exception e)
    {
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

        }
      }
      else if (modulename.equals("Payment"))
      {
        Iterator it = arrl.iterator();
        PaymentVO VO = new PaymentVO();
        while (it.hasNext())
        {
          VO = (PaymentVO) it.next();
          String extID = VO.getExternalID();
          arrlExtID.add(extID);
        }
      }
      else if (modulename.equals("PaymentMethod"))
      {
        Iterator it = arrl.iterator();
        PaymentMethodVO VO = new PaymentMethodVO();
        while (it.hasNext())
        {
          VO = (PaymentMethodVO) it.next();
          String extID = VO.getExternalID();
          arrlExtID.add(extID);
        }
      }
      else if (modulename.equals("GLAccount"))
      {
        Iterator it = arrl.iterator();
        GLAccountVO VO = new GLAccountVO();
        while (it.hasNext())
        {
          VO = (GLAccountVO) it.next();
          String extID = VO.getExternalID();
          arrlExtID.add(extID);
        }
      }
    }
    catch(Exception e)
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

     
      AccountFacadeHome home = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
      AccountFacade remote = (AccountFacade)home.create();
      remote.setDataSource(dataSource);
     
      PaymentVO paymentVO = remote.getPaymentVO(paymentID, individualID);

      paymentForm.set("entityName", paymentVO.getEntity());
      paymentForm.set("paymentAmount", new Float(paymentVO.getPaymentAmount()));
      paymentForm.set("reference", paymentVO.getDescription());
      paymentForm.set("paymentMethodID", new Integer(paymentVO.getPaymentMethodID()));
      paymentForm.set("paymentMethodName", "");
      paymentForm.set("cardType", paymentVO.getCardType());
      paymentForm.set("cardNumber", paymentVO.getCardNumber());
      paymentForm.set("cardExpiration", "");
      paymentForm.set("checkNumber", paymentVO.getCheckNumber());

      ArrayList invoiceList = new ArrayList();
      PaymentLines paymentLines = paymentVO.getPaymentLines();
      if (paymentLines != null)
      {
        Set itemSet = paymentLines.keySet();
        Iterator iter = itemSet.iterator();
        while (iter.hasNext())
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

  public PaymentVO getPaymentVO(int paymentID, int userID) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- getPaymentVO");
    PaymentVO paymentVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentID, this.dataSource));
      payment.setDataSource(this.dataSource);
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

        * @param params HashMap operation type + last syncronization date
        * @return ArrayList list with payments
        */
       public ArrayList getPayments(HashMap params, int indId)
       {
         PaymentVO paymentVO = null;
         ArrayList payments = new ArrayList();
         AccountFacadeLocal paymentL = null;

         try
         {
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

        * @param indId int individual id
        * @return boolean status of operation
        */
       public boolean addPayments(ArrayList PVOs, int indId)
       {
         PaymentVO pvo = null;
         AccountFacadeLocal paymentL = null;

         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome)ic.lookup("local/AccountFacade");
           paymentL = home.create();
           paymentL.setDataSource(this.dataSource);

           int size = PVOs.size();

           for ( int i=0;i<size;i++)
           {
             pvo = (PaymentVO) PVOs.get(i);
             pvo = paymentL.createPayment(pvo,indId);
             logger.info("Added " + pvo.getPaymentID() + " payment record");
           }
         }catch(Exception e)
         {
           logger.debug("Error in adding Payments : "+e);
           e.printStackTrace();
View Full Code Here

Examples of com.centraview.account.payment.PaymentVO

        * @param arl ArrayList list with payments
        * @param indId int individual id
        */
       public void deletePayments(String modulename, ArrayList arl, int indId)
       {
         PaymentVO ivo = new PaymentVO();
         String extId = "";
         int intId = 0;

         Iterator it = arl.iterator();

         AccountFacadeLocal helperL = null;
         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountFacadeLocalHome home = (AccountFacadeLocalHome ) ic.lookup("local/AccountFacade");
           helperL = home.create();

           while(it.hasNext())
           {
             ivo = (PaymentVO)it.next();
             extId = ivo.getExternalID();
             intId = this.getCVidForExtid(modulename,extId);
             helperL.deleteInvoice(indId, intId);
             logger.info("Payment " + intId +" object deleted");
           }

View Full Code Here

Examples of org.jallinone.expirations.java.PaymentVO


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    try {
      Object[] pars = (Object[])inputPar;
      PaymentVO vo = (PaymentVO)pars[0];
      ArrayList vos = (ArrayList)pars[1];

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
View Full Code Here

Examples of org.jallinone.expirations.java.PaymentVO

   * Callback method called when the data loading is completed.
   * @param error <code>true</code> if an error occours during data loading, <code>false</code> if data loading is successfully completed
   */
  public void loadDataCompleted(boolean error) {
    if (!error) {
      PaymentVO vo = (PaymentVO)frame.getPayForm().getVOModel().getValueObject();

      frame.getControlValue().setCurrencySymbol(vo.getCurrencySymbolREG03());
      frame.getControlValue().setDecimals(vo.getDecimalsREG03().intValue());
      frame.getControlValue().setValue(vo.getPaymentValueDOC27());

      frame.getGrid().reloadData();
    }
    else
      frame.getGrid().clearData();
View Full Code Here

Examples of org.jallinone.expirations.java.PaymentVO

   * Callback method called by the Form panel when the Form is set to INSERT mode.
   * The method can pre-set some v.o. attributes, so that some input controls will have a predefined value associated.
   * @param persistentObject new value object
   */
  public void createPersistentObject(ValueObject PersistentObject) throws Exception {
    PaymentVO payVO = (PaymentVO)frame.getPayForm().getVOModel().getValueObject();
    payVO.setCompanyCodeSys01DOC27((String)frame.getPayGrid().getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
    payVO.setPaymentDateDOC27(new java.sql.Date(System.currentTimeMillis()));
    payVO.setProgressiveReg04DOC27((BigDecimal)frame.getPayGrid().getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));

    if (frame.getControlCodCustomer().getValue()!=null && !frame.getControlCodCustomer().getValue().equals(""))
      payVO.setCustomerSupplierCodeDOC27((String)frame.getControlCodCustomer().getValue());
    else
      payVO.setCustomerSupplierCodeDOC27((String)frame.getControlCodSupplier().getValue());

    if (frame.getCompVO()!=null &&
        frame.getCompVO().getCurrencyCodeReg03()!=null &&
        !frame.getCompVO().getCurrencyCodeReg03().equals("")) {
      frame.getControlCurrency().setValue(frame.getCompVO().getCurrencyCodeReg03());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.