Package com.centraview.valuelist

Examples of com.centraview.valuelist.ValueListVO


    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList()
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
   
    //  For the searchBar
    String moduleID = (String)moduleList.get("Promotion");
    request.setAttribute("moduleId", moduleID);
View Full Code Here


    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    session.setAttribute("ticketPieChartParams", listParameters);
    session.setAttribute("ticketBarChartParams", listParameters);
    ArrayList buttonList = new ArrayList();
    // For the searchBar
    String moduleID = (String)moduleList.get("Ticket");

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('Ticket');", false));
      buttonList.add(new Button("New Ticket", "new", "c_newButton('Ticket', " + moduleID + ")", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("hideMarketingList", new Boolean(true));
      request.setAttribute("dynamicTitle", "Ticket");
      request.setAttribute("lookupType", "Ticket");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
      logger.debug("[execute] End to End: " + debugTime + " ms");
      listObject.getParameters().setDebugTime(debugTime);
    }
    request.setAttribute("valueList", listObject);
    request.setAttribute("listScope", listScope);
    request.setAttribute(SupportConstantKeys.TYPEOFSUBMODULE, "Ticket");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_submitAddrs();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    displayParameters.setSortable(false);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    listObject.setLookup(true);
    listObject.setLookupType("Email");
    request.setAttribute("valueList", listObject);
    // TODO Fix search, a name module and all that goes with it needs to be created.
    // For the searchBar
    request.setAttribute("lookupType", "Email Address");
    request.setAttribute("listType", "EmailLookup");
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    ValueListDisplay displayParameters = null;

    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('File');", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("dynamicTitle", "File");
      request.setAttribute("lookupType", "File");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    // Add the download file column
    displayParameters.setDownloadIcon(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    // For the searchBar
    String moduleID = (String) moduleList.get("File");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

    ArrayList results = reportResults.getResults();
    ArrayList list = new ArrayList();
    for (int j = 0; j < results.size(); j++) {
      list.add(new ValueListRow(j, (ArrayList)results.get(j)));
    }
    ValueListVO valueList = new ValueListVO(list, parameters);
    ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, false, false, false, false);
    valueList.setDisplay(displayParameters);
    request.setAttribute("valueList", valueList);
    request.setAttribute("reportName", reportResults.getName());
    request.setAttribute("moduleId", String.valueOf(moduleId));
    session.setAttribute("moduleId", String.valueOf(moduleId));
    request.setAttribute("reportId", String.valueOf(reportId));
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList()
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
   
    //  For the searchBar
    String moduleID = (String)moduleList.get("Notes");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

      ListPreference listPrefs = userObject.getListPreference("Ticket");
      String filter = "SELECT t.ticketid FROM ticket t LEFT JOIN entity e ON (t.entityid=e.entityid) LEFT JOIN individual i ON (e.entityid=i.entity) WHERE i.individualid=" + individualID;
      ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPrefs, request, ValueListConstants.CUSTOMER_TICKET_LIST_TYPE, ValueListConstants.customerTicketViewMap, false);
      listParameters.setFilter(filter);
      ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
      ValueListVO listObject = valueList.getValueList(individualID, listParameters);

      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("New Ticket", "new", "c_goTo('/customer/new_ticket.do');", false));

      ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false, true, true, true, true);
      listObject.setDisplay(displayParameters);
      request.setAttribute("valueList", listObject);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      allErrors.add("error.unknownError", new ActionMessage("error.unknownError"));
    }
View Full Code Here

      ListPreference listPrefs = userObject.getListPreference("File");
      String filter = "SELECT FileID FROM cvfile WHERE CustomerView='YES' AND (relateEntity = " + entityID + " OR relateIndividual = " + individualID + ")";
      ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPrefs, request, ValueListConstants.CUSTOMER_FILE_LIST_TYPE, ValueListConstants.customerFileViewMap, false);
      listParameters.setFilter(filter);
      ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
      ValueListVO listObject = valueList.getValueList(individualID, listParameters);
      ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, true, true, true, true);
      listObject.setDisplay(displayParameters);
      request.setAttribute("valueList", listObject);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      allErrors.add("error.unknownError", new ActionMessage("error.unknownError"));
    }
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    // Add the download file column
    displayParameters.setDownloadIcon(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
   
    //  For the searchBar
    String moduleID = (String)moduleList.get("EmployeeHandbook");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

        throw new ServletException(e);
      }

      valueList.setDataSource(dataSource);
      listParameters.setExtraId(eventID);
      ValueListVO listObject = valueList.getValueList(individualId, listParameters);
      listObject.setCurrentPageParameters(ValueListConstants.AMP+"eventid="+eventID);
      ArrayList buttonList = new ArrayList();

      ValueListDisplay displayParameters = null;
     listObject.setMoveTo(false);
       buttonList.add(new Button("Add Attendees", "Add Attendees", "vl_addMembers();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    displayParameters = new ValueListDisplay(buttonList, true, true);

      displayParameters.setSortable(true);
      displayParameters.setPagingBar(true);
      displayParameters.setLink(true);
      listObject.setDisplay(displayParameters);
      // Stick the list on the request and then the custom list tag will handle
      // it.
      if (logger.isDebugEnabled()) {
        long debugTime = (System.currentTimeMillis() - start);
        logger.debug("[execute] End to End: " + debugTime + " ms");
        listObject.getParameters().setDebugTime(debugTime);
      }
      request.setAttribute("valueList", listObject);
      request.setAttribute("listType", "EventAtendees");
  } //end of buildSubList method
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.ValueListVO

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.