Package com.centraview.account.payment

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


        }
      }
      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

     
      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

  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

        * @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

        * @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

        * @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

TOP

Related Classes of com.centraview.account.payment.PaymentVO

Copyright © 2018 www.massapicom. 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.