Package com.centraview.account.accountfacade

Examples of com.centraview.account.accountfacade.AccountFacade


      String invoiceIDStr = (String)request.getParameter("rowId");
      if(invoiceIDStr != null && !invoiceIDStr.equals(""))
        invoiceID  = Integer.parseInt(invoiceIDStr);

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

      Vector taxJurisdiction = remote.getTaxJurisdiction();

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

      invoiceForm.setBillto(vo.getBillToAddress()+"");
View Full Code Here


  {
    int elementID = Integer.parseInt(key);
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deletePurchaseOrder(elementID,indvID);
    }
    catch(Exception e)
    {
      logger.error("[Exception] PurchaseOrderList.deleteElement( int indvID, String key)", e);
    }
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      //call to EJB server
      AccountFacade remote =(AccountFacade)accountFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deletePurchaseOrder(elementID,individualID);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

        if(purchaseIDStr != null && !purchaseIDStr.equals(""))
          purchaseID  = Integer.parseInt(purchaseIDStr);

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

        PurchaseOrderVO vo = remote.getPurchaseOrderVO(purchaseID,individualID);

        purchaseForm.setPurchaseOrderid(vo.getPurchaseOrderId()+"");
        purchaseForm.setVendorId(vo.getVendorId()+"");
        //      purchaseForm.setCustomerId(vo.getCustomerId()+"");
View Full Code Here

      String typeOfSave = "saveclose";

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

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

      PurchaseOrderVOX vox  = new PurchaseOrderVOX(purchaseForm);
      PurchaseOrderVO vo = vox.getVO();

      vo = remote.createPurchaseOrder(vo,IndividualId);

      if (typeOfSave != null && typeOfSave.equals("save"))
      {
        FORWARD_final = FORWARD_save;
        request.setAttribute(AccountConstantKeys.TYPEOFOPERATION, AccountConstantKeys.EDIT);
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.deletePurchaseOrder(elementID,individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          } catch(RemoteException re) {
            logger.error("[execute] Exception thrown.", re);
View Full Code Here

  {
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)
        CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    try
    {
        AccountFacade remote = (AccountFacade) accountFacadeHome.create();
        remote.setDataSource(dataSource);
      int jurisdictionID = 0;
      int billingAddressID = 0;
      if(of.getJurisdictionID() != null && !((of.getJurisdictionID()).equals(""))){
        jurisdictionID = (of.getJurisdictionID()).intValue();
      }//end of if(of.getJurisdictionID() != null && !((of.getJurisdictionID()).equals("")))
      billingAddressID = of.getBillToAddIdValue();
      if(billingAddressID != 0 && jurisdictionID != 0){
        remote.setJurisdictionForAddress(billingAddressID,jurisdictionID);
      }//end of if(billingAddressID != 0 && jurisdictionID != 0)

      return (remote.createOrder(of, individualID)); // public OrderForm createOrder(...
    }
    catch (Exception e)
    {
    logger.error("[Exception] SaveNewOrderHandler.Execute Handler ", e);
      return of;
View Full Code Here

      session.setAttribute("highlightmodule", "account");

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

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

      Vector taxJurisdiction = remote.getTaxJurisdiction();

      // ItemList Handling start
      String typeOfOperation = (String)request.getParameter(AccountConstantKeys.TYPEOFOPERATION);
     
      if (typeOfOperation == null) {
        typeOfOperation = (String)request.getAttribute(AccountConstantKeys.TYPEOFOPERATION);
      }
     
      if (typeOfOperation != null && typeOfOperation.equals("ShowOrder")) {
        String rowId = request.getParameter("rowId");
        int orderId = 0;
        OrderForm of;
        if (rowId == null) {
          rowId = (String)request.getAttribute("rowId");
        }
        if (rowId != null) {
          orderId = Integer.parseInt(rowId);
        }else{
          of = (OrderForm) request.getAttribute("orderform");
          orderId = of.getOrderIdValue();
        }

        of = remote.getOrderForm(orderId, individualID);
        of.convertValueObjectToFormbean();
        form = (ActionForm)of;
        of.setJurisdictionVec(taxJurisdiction);

        request.setAttribute("orderform",of);
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.deleteOrder(elementID,individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          } catch(RemoteException re) {
            logger.error("[execute] Exception thrown.", re);
View Full Code Here

    {
      int  expID = Integer.parseInt(key);
      AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
      try
      {
        AccountFacade remote =(AccountFacade)accountFacadeHome.create();
        remote.setDataSource(this.dataSource);

        remote.deleteExpense(expID,indvID);
      } catch (Exception e)
      {
        logger.error("[Exception] ExpenseList.deleteElement( int indvID, String key )", e);
      }
    }
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.