Package com.centraview.account.helper

Examples of com.centraview.account.helper.AccountHelperHome


    ActionErrors errors = new ActionErrors();
    convertItemLines();

    //Incase if the Form is having some error then we must have to carry the jurisdiction Vec
    try{
      AccountHelperHome accountHelperHome = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome","AccountHelper");
      AccountHelper accHelper =(AccountHelper)accountHelperHome.create();
      accHelper.setDataSource(dataSource);
      this.jurisdictionVec = accHelper.getTaxJurisdiction();
    }catch(Exception e){
      this.jurisdictionVec = new Vector();
    }
View Full Code Here


  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();
   
    AccountHelperHome accountHelperHome = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome", "AccountHelper");
   
    try {
      HttpSession session = request.getSession();
      UserObject  userobjectd = (UserObject)session.getAttribute( "userobject" );
      int individualID = userobjectd.getIndividualID();

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

      ItemLines itemLines = null;
     
      AccountHelper accHelper = (AccountHelper)accountHelperHome.create();
      accHelper.setDataSource(dataSource);
      Vector taxJurisdiction = accHelper.getTaxJurisdiction();
     
      OrderForm orderForm = (OrderForm)form;
      orderForm.setJurisdictionVec(taxJurisdiction);
View Full Code Here

      String entityIdStr = (String)request.getParameter("SelectedEntityId");     
      if(entityIdStr != null && !entityIdStr.equals(""))
        entityId = Integer.parseInt(entityIdStr);
      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );

      AccountHelperHome hm = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome","AccountHelper");
      AccountHelper remote =(AccountHelper)hm.create();
      remote.setDataSource(dataSource);
      remote.addVendor(entityId,IndividualId);

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.VENDOR);
      request.setAttribute("body", "list");
View Full Code Here

      HashMap hmp = rmt.getTableIdsAndNames();
      this.put("Tables", hmp);

      setSupportLists();

      AccountHelperHome hm = (AccountHelperHome)CVUtility.getHomeObject(
          "com.centraview.account.helper.AccountHelperHome", "AccountHelper");
      AccountHelper accHelper = hm.create();
      accHelper.setDataSource(this.dataSource);

      Vector itemTypesVec = accHelper.getItemTypes();
      this.put("ItemTypes", itemTypesVec);
View Full Code Here

  public Vector getTaxClasses()
  {
    Vector taxClassesVec = new Vector();

    try {
      AccountHelperHome hm = (AccountHelperHome)CVUtility.getHomeObject(
          "com.centraview.account.helper.AccountHelperHome", "AccountHelper");
      AccountHelper remote = hm.create();
      remote.setDataSource(this.dataSource);
      taxClassesVec = remote.getTaxClasses();
    } catch (Exception e) {
      logger.error("[getTaxClasses] Exception thrown.", e);
    }
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
   
    String returnStatus = ".view.contacts.view_related_address";
    DynaActionForm dynaform = (DynaActionForm) form;
    AccountHelperHome home = (AccountHelperHome)
    CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome", "AccountHelper");
   
    try {
      AccountHelper remote = home.create();
      remote.setDataSource(dataSource);
     
      Vector taxJurisdiction = remote.getTaxJurisdiction();
     
      dynaform.set("jurisdictionVec",taxJurisdiction);
View Full Code Here

        entityID = Integer.parseInt(paymentForm.getEntityId());
      }

      if (entityID != 0)
      {
        AccountHelperHome hm1 = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome","AccountHelper");
        AccountHelper accHelper = (AccountHelper)hm1.create();
        accHelper.setDataSource(dataSource);
   
        paymentLines = accHelper.getPaymentInvoices(entityID);   
       
          paymentForm.setPaymentLines(paymentLines);
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    ActionErrors errors = new ActionErrors();
    try {
      try {
        AccountHelperHome accountHelperHome = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome","AccountHelper");
        AccountHelper accHelper = accountHelperHome.create();
        accHelper.setDataSource(dataSource);
        this.jurisdictionVec = accHelper.getTaxJurisdiction();
      } catch (Exception e) {
        this.jurisdictionVec = new Vector();
      }
View Full Code Here

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

    String returnStatus = ".view.error";
    String rowId[] = null;

    AccountHelperHome accountHome = (AccountHelperHome)CVUtility.getHomeObject(
        "com.centraview.account.helper.AccountHelperHome", "AccountHelper");
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

    try {
      if (request.getParameterValues("rowId") != null) {
        rowId = request.getParameterValues("rowId");
      } else {
        rowId[0] = new String(request.getParameter(Constants.PARAMID));
      }

      DynaActionForm dynaForm = (DynaActionForm)form;

      AddressVO avo = null;

      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);

      avo = remote.getAddress(Integer.parseInt(rowId[0]));

      if (avo != null) {
        dynaForm.set("addressid", rowId[0]);

        if (avo.getStreet1() != null) {
          dynaForm.set("street1", avo.getStreet1());
        }

        if (avo.getStreet2() != null) {
          dynaForm.set("street2", avo.getStreet2());
        }

        if (avo.getCity() != null) {
          dynaForm.set("city", avo.getCity());
        }

        if (avo.getStateName() != null) {
          dynaForm.set("state", avo.getStateName());
        }

        if (avo.getZip() != null) {
          dynaForm.set("zipcode", avo.getZip());
        }

        if (avo.getCountryName() != null) {
          dynaForm.set("country", avo.getCountryName());
        }

        if (avo.getIsPrimary() != null) {
          dynaForm.set("isPrimary", avo.getIsPrimary());
        }

        dynaForm.set("jurisdictionID", avo.getJurisdictionID() + "");
      }

      AccountHelper accountRemote = accountHome.create();
      accountRemote.setDataSource(dataSource);

      Vector taxJurisdiction = accountRemote.getTaxJurisdiction();

      dynaForm.set("jurisdictionVec", taxJurisdiction);
View Full Code Here

    request.setAttribute("typeofmodule", AdministrationConstantKeys.MODULESETTINGS);
    request.setAttribute("typeofsubmodule", submodule);
    request.setAttribute("settingfor", setting);
    */

      AccountHelperHome home = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome", "AccountHelper");
      try {
        AccountHelper remote = home.create();
        remote.setDataSource(dataSource);
        Vector taxClass = remote.getTaxClasses();
        Vector taxJurisdiction = remote.getTaxJurisdiction();
        HashMap taxMatrix = remote.getTaxMartix();
        dynaform.set("taxClassVec",taxClass);
View Full Code Here

TOP

Related Classes of com.centraview.account.helper.AccountHelperHome

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.