Package com.centraview.account.accountfacade

Examples of com.centraview.account.accountfacade.AccountFacadeHome


  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {

      HttpSession session = request.getSession();
      int userId = ((UserObject)session.getAttribute("userobject")).getIndividualID();

      InvoiceForm invoiceForm = (InvoiceForm) form;
      invoiceForm.convertItemLines();
      invoiceForm.setModifiedBy(userId);

      String typeOfSave = "saveclose";

      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(""))){
View Full Code Here


        }
        buttonList.add(new Button("Select", "select", "lu_selectList('"+itemType+"');", false));
        StringBuffer parameterValues = new StringBuffer();
        if (itemid != 0) {
          if(actionType != null && actionType.equals("lookup")){
            AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
            int parentItemID = 0;
            try {
        AccountFacade remote =(AccountFacade)accountFacadeHome.create();
        remote.setDataSource(dataSource);
        parentItemID = remote.getParentItemID(itemid);
            } catch (CreateException e) {
              logger.error("[execute] Exception thrown.", e);
              throw new ServletException(e);
View Full Code Here

   * @param   key 
   */
  public void  deleteElement( int indvID, String key )throws CommunicationException, NamingException
  {
    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.deleteInvoice(elementID,indvID);
    }
    catch(Exception e)
    {
View Full Code Here

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    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]);
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    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(""))
        {
View Full Code Here

    throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();


    AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
    try
    {
      InvoiceForm invoiceform=(InvoiceForm)form;
      invoiceform.convertItemLines();


      HttpSession session = request.getSession();
      int userId = ((UserObject)session.getAttribute("userobject")).getIndividualID();


      String typeOfSave = "saveclose";

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


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

      InvoiceForm invoiceForm = (InvoiceForm) form;
      InvoiceVOX vox  = new InvoiceVOX(invoiceForm);
      InvoiceVO invoiceVO = vox.getVO();
View Full Code Here

        proposalListForm.setIndividual(oppVO.getIndividualname());
        proposalListForm.setEntityID(oppVO.getEntityID());
        proposalListForm.setEntity(oppVO.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.setJurisdictionVec(taxJurisdiction);
      proposalListForm.convertItemLines();
View Full Code Here

        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    // initialization of required parameter
    SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome",
        "SaleFacade");
    AccountFacadeHome accountFacadeHome = (AccountFacadeHome) CVUtility.getHomeObject(
        "com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    EmailFacadeHome emailFacade = (EmailFacadeHome) CVUtility.getHomeObject(
        "com.centraview.email.emailfacade.EmailFacadeHome", "EmailFacade");
    try {
      Boolean openAddItem = (request.getAttribute("openAddItem") == null) ? new Boolean(false) : (Boolean) request
          .getAttribute("openAddItem");
      request.setAttribute("openAddItem", openAddItem);

      int counter = 0;
      int row = 0;
      ItemLines itemLines = null;
      String viewOperation = (request.getParameter(ProposalConstantKeys.TYPEOFOPERATION) == null) ? "" : request
          .getParameter(ProposalConstantKeys.TYPEOFOPERATION);

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      ProposalListForm proposallistform = (ProposalListForm) form;
      proposallistform.convertItemLines();
      try {
        row = Integer.parseInt(request.getParameter("eventid"));
      } catch (Exception ex) {
        row = Integer.parseInt(proposallistform.getProposalid());
      }

      AccountFacade accountFacade = accountFacadeHome.create();
      accountFacade.setDataSource(dataSource);
      Vector taxJurisdiction = accountFacade.getTaxJurisdiction();
      proposallistform.setJurisdictionVec(taxJurisdiction);

      EmailFacade remoteEmail = emailFacade.create();
View Full Code Here

      entityID = Integer.parseInt(entityid);
    } else {
      entityID = proposallistform.getEntityID();
    }

    AccountFacadeHome afh = (AccountFacadeHomeCVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome", "AccountFacade");
    SaleFacadeHome sfh = (SaleFacadeHome) CVUtility.getHomeObject("com.centraview.sale.salefacade.SaleFacadeHome","SaleFacade");
   
    try  {
      SaleFacade saleRemote =(SaleFacade) sfh.create();
      saleRemote.setDataSource(dataSource);
     
      AccountFacade orderRemote = (AccountFacade) afh.create();
      orderRemote.setDataSource(dataSource);
      HashMap hm  = (HashMap) saleRemote.viewProposal(individualID, proposalID , proposallistform);
      ItemLines itemLines = (ItemLines)hm.get("itemLines");
      proposallistform = (ProposalListForm) hm.get("dyna");
     
View Full Code Here

TOP

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

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.