Package com.centraview.account.accountfacade

Examples of com.centraview.account.accountfacade.AccountFacade


      if(paymentIDStr != null && !paymentIDStr.equals(""))
        paymentID  = Integer.parseInt(paymentIDStr);

        // for getting data from EJB
      AccountFacadeHome yy = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
      AccountFacade remote =(AccountFacade)yy.create();
      remote.setDataSource(dataSource);

      PaymentVO paymentVO = remote.getPaymentVO(paymentID,individualID);
      paymentForm.setReference(paymentVO.getReference());

      paymentForm.setCardNumber(paymentVO.getCardNumber());

      paymentForm.setCardType(paymentVO.getCardType());
View Full Code Here


      if ( paymentID != 0)
      {
        // for getting data from EJB
        AccountFacadeHome hm = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
        AccountFacade remote = (AccountFacade)hm.create();
        remote.setDataSource(dataSource);

        PaymentVO paymentVO = remote.getPaymentVO(paymentID,individualID);

        // ----------set values in the form bean--------------


        paymentForm.setReference(paymentVO.getReference());
View Full Code Here

      {
        typeOfSave = request.getParameter("buttonpress");
      }

      AccountFacadeHome yy = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
      AccountFacade remote = (AccountFacade)yy.create();


      PaymentVOX vox  = new PaymentVOX(paymentForm);
      PaymentVO vo = vox.getVO();

      if (typeOfSave.equals("save"))
      {
        remote.updatePayment(vo,userId);
        paymentForm.setPayment(null);

        FORWARD_final = FORWARD_save;
        request.setAttribute(AccountConstantKeys.TYPEOFOPERATION, AccountConstantKeys.EDIT);
      }
      else if (typeOfSave.equals("savenew"))
      {
        remote.updatePayment(vo,userId);
        FORWARD_final = FORWARD_savenew;
        request.setAttribute("clearform", "true");
        request.setAttribute(AccountConstantKeys.TYPEOFOPERATION, AccountConstantKeys.ADD);
      }
      else if (typeOfSave.equals("saveclose"))
      {
        remote.updatePayment(vo,userId);
        FORWARD_final = FORWARD_saveclose;
        request.setAttribute("body", "list");
      }
      else if (typeOfSave.equals("delete"))
      {
        remote.deletePayment(vo.getPaymentID(),userId);
        FORWARD_final = FORWARD_saveclose;
        request.setAttribute("body", "list");
      }
      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.PAYMENT);
View Full Code Here

        // the int representation for use in the code below
        orderID = formOrderID.intValue();
      }

      AccountFacadeHome home = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
      AccountFacade remote = (AccountFacade)home.create();
      remote.setDataSource(dataSource);
     
      OrderForm cvOrderForm = (OrderForm)remote.getOrderForm(orderID, individualID);

      orderForm.set("entityName", cvOrderForm.getCustomerName());
      orderForm.set("billingAddress", cvOrderForm.getBillToAdd());
      orderForm.set("shippingAddress", cvOrderForm.getShipToAdd());
      orderForm.set("status", cvOrderForm.getStatus());
View Full Code Here

        // the int representation for use in the code below
        invoiceID = formInvoiceID.intValue();
      }
     
      AccountFacadeHome home = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
      AccountFacade remote = (AccountFacade)home.create();
      remote.setDataSource(dataSource);
     
      InvoiceVO invoiceVO = remote.getInvoiceVO(invoiceID, individualID);

      invoiceForm.set("orderID", new Integer(invoiceVO.getOrderId()));

      invoiceForm.set("entityName", invoiceVO.getCustomerName());
      invoiceForm.set("billingAddress", invoiceVO.getBillToAddress());
View Full Code Here

        // the int representation for use in the code below
        paymentID = formPaymentID.intValue();
      }
     
      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()));
View Full Code Here

    proposallistform.setEntityID(opportunityVO.getEntityID());
    proposallistform.setEntity(opportunityVO.getEntityname());
    }
   
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    AccountFacade accountFacade =(AccountFacade)accountFacadeHome.create();
    accountFacade.setDataSource(dataSource);
    Vector taxJurisdiction = accountFacade.getTaxJurisdiction();


      proposallistform = (ProposalListForm) hm.get("dyna");
      proposallistform.setJurisdictionVec(taxJurisdiction);
      proposallistform.setItemLines(itemLines);
View Full Code Here

    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      AccountFacade remote = (AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {
          int elementID = Integer.parseInt(rowId[i]);
          try
          {
      remote.deleteItem(individualId,elementID);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          } catch(RemoteException re) {
            logger.error("[execute] Exception thrown.", re);
View Full Code Here

      request.setAttribute("body",AccountConstantKeys.EDIT );


      // for getting data from EJB
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);
      Vector taxJurisdiction = remote.getTaxJurisdiction();

      if(request.getParameter(AccountConstantKeys.TYPEOFOPERATION) != null)
      if (request.getParameter(AccountConstantKeys.TYPEOFOPERATION).equals("ShowInvoice"))
      {
        int invoiceID = 0;
        String invoiceIDStr = (String)request.getParameter("rowId");
        if(invoiceIDStr != null && !invoiceIDStr.equals(""))
          invoiceID  = Integer.parseInt(invoiceIDStr);

        InvoiceVO vo = remote.getInvoiceVO(invoiceID,individualID);
        invoiceForm.setInvoiceid(vo.getInvoiceId()+"");
        invoiceForm.setOrderid(vo.getOrderId()+"");
        invoiceForm.setCustomerId(vo.getCustomerId()+"");

        if (vo.getBillToAddress() != null){
View Full Code Here

      if (request.getParameter("buttonpress") != null)
        typeOfSave = request.getParameter("buttonpress");


      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(dataSource);

      int jurisdictionID = 0;
      int billingAddressID = 0;
      if(invoiceForm.getJurisdictionID() != null && !((invoiceForm.getJurisdictionID()).equals(""))){
        jurisdictionID = (invoiceForm.getJurisdictionID()).intValue();
      }//end of if(invoiceForm.getJurisdictionID() != null && !((invoiceForm.getJurisdictionID()).equals("")))
      if(invoiceForm.getBilltoID() != null && !((invoiceForm.getBilltoID()).equals(""))){
        billingAddressID = Integer.parseInt(invoiceForm.getBilltoID());
      }//end of if(invoiceForm.getBilltoID() != null && !((invoiceForm.getBilltoID()).equals("")))
      if(billingAddressID != 0 && jurisdictionID != 0){
        remote.setJurisdictionForAddress(billingAddressID,jurisdictionID);
      }//end of if(billingAddressID != 0 && jurisdictionID != 0)

      InvoiceVOX vox  = new InvoiceVOX(invoiceForm);
      InvoiceVO invoiceVO = vox.getVO();
      if (typeOfSave.equals("save"))
      {
        InvoiceForm newinvoiceform = new InvoiceForm();
        remote.updateInvoice(invoiceVO,userId);
        invoiceVO  = remote.getInvoiceVO(invoiceVO.getInvoiceId(),userId);

        newinvoiceform.setInvoiceid(invoiceVO.getInvoiceId()+"");
        newinvoiceform.setOrderid(invoiceVO.getOrderId()+"");
        newinvoiceform.setCustomerId(invoiceVO.getCustomerId()+"");

        newinvoiceform.setBillto(invoiceVO.getBillToAddress()+"");
        newinvoiceform.setBilltoID(invoiceVO.getBillToId()+"");

        newinvoiceform.setShiptoID(invoiceVO.getShipToId()+"");
        newinvoiceform.setShipto(invoiceVO.getShipToAddress()+"");

        newinvoiceform.setStatusid(invoiceVO.getStatusId()+"");
        newinvoiceform.setInvoiceDate(invoiceVO.getInvoiceDate());

        newinvoiceform.setPoid(invoiceVO.getPo());
        newinvoiceform.setTermid(invoiceVO.getTermId()+"");
        newinvoiceform.setAccountmanagerid(invoiceVO.getAccountManagerId()+"");

        newinvoiceform.setProjectid(invoiceVO.getProjectId()+"");
        newinvoiceform.setNotes(invoiceVO.getDescription()+"");
        newinvoiceform.setProjectName(invoiceVO.getProjectName());
        newinvoiceform.setAccountmanagerName(invoiceVO.getAccountManagerName());
        newinvoiceform.setItemLines(invoiceVO.getItemLines());
        newinvoiceform.setOrdername(invoiceVO.getCustomerName());
        newinvoiceform.setExternalid(invoiceVO.getExternalId());
        newinvoiceform.setJurisdictionID(invoiceVO.getJurisdictionID());


        java.sql.Date invDate = invoiceVO.getInvoiceDate();

        if (invDate != null)
        {
          int month = invDate.getMonth();
          month=month+1;
          newinvoiceform.setMonth(month+"");

          int date = invDate.getDate();
          newinvoiceform.setDate(date+"");

          int year= invDate.getYear();
          newinvoiceform.setYear(year+"");
        }// end of if (invDate != null)
        request.setAttribute("newinvoiceform",newinvoiceform);

        form = invoiceForm;

        FORWARD_final = FORWARD_save;
        request.setAttribute(AccountConstantKeys.TYPEOFOPERATION, AccountConstantKeys.EDIT);
      }// end of if (typeOfSave.equals("save"))
      else if (typeOfSave.equals("savenew"))
      {
        remote.updateInvoice(invoiceVO,userId);

        Vector taxJurisdiction = remote.getTaxJurisdiction();
        invoiceForm.setJurisdictionVec(taxJurisdiction);

        FORWARD_final = FORWARD_savenew;
        request.setAttribute(AccountConstantKeys.TYPEOFOPERATION, AccountConstantKeys.ADD);
        request.setAttribute("invoiceform",invoiceForm);
        request.setAttribute("clearform","true");
      }// end of else if (typeOfSave.equals("savenew"))
      else if (typeOfSave.equals("saveclose"))
      {
        remote.updateInvoice(invoiceVO,userId);
        FORWARD_final = FORWARD_saveclose;
        request.setAttribute("body", "list");
      }// end of else if (typeOfSave.equals("saveclose"))
      else if (typeOfSave.equals("delete"))
      {
        remote.deleteInvoice(invoiceVO.getInvoiceId(),userId);
        FORWARD_final = FORWARD_saveclose;
        request.setAttribute("body", "list");
      }// end of else if (typeOfSave.equals("delete"))
      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.INVOICE);
    } // end of try block
View Full Code Here

TOP

Related Classes of com.centraview.account.accountfacade.AccountFacade

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.