Package com.centraview.common

Examples of com.centraview.common.GlobalMasterLists


      DynaActionForm cf = (DynaActionForm) form;
      module = request.getParameter("module").toString();
      tableName = request.getParameter("table").toString();

      int tableId = 0;
      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      HashMap hmp = (HashMap) gml.get("Tables");

      if (hmp != null)
      {
        Long lngObj = (Long) hmp.get(tableName);
View Full Code Here


  // TODO comment more thoroughly
  private static Logger logger = Logger.getLogger(InvoiceValueListAction.class);
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException {
    String final_Forward = ".view.accounting.invoicelist";
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);

    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");

    long start = 0L;
    if (logger.isDebugEnabled()) {
      start = System.currentTimeMillis();
    }
View Full Code Here

  // TODO comment more thoroughly
  private static Logger logger = Logger.getLogger(TimeslipsValueListAction.class);
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException {
    String final_Forward = ".view.projects.timeslip.list";
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);

    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");

    long start = 0L;
    if (logger.isDebugEnabled()) {
      start = System.currentTimeMillis();
    }
View Full Code Here

          itemLines.calculate();
          proposalListForm.setItemLines(itemLines);
        }   // end if (newItemID != null)
      }
     
      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector salesStatusList = (Vector)gml.get("AllSaleProbability");
      Iterator it = salesStatusList.iterator();
     
      while (it.hasNext()) {
        DDNameValue thisStatus = (DDNameValue) it.next();
        if ((thisStatus.getName()).equalsIgnoreCase("100%")) {
View Full Code Here

      of.setCustomerIdValue(entityID);
      of.setOrderDate(new java.sql.Date(System.currentTimeMillis()));
      of.setJurisdictionID(new Integer(proposallistform.getJurisdictionID()));
      of.setNotes(proposallistform.getProposal() + "-" + proposallistform.getProdescription());
     
      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector statusVector = null;
      statusVector = (Vector)gml.get("AccountingStatus");
     
      for (int i = 0; i < statusVector.size(); i++) {
        if (((DDNameValue) statusVector.get(i)).getName().equals("Pending")) {
          of.setStatusIdValue(((DDNameValue) statusVector.get(i)).getId());
          break;
View Full Code Here

        removed = false;
      //end of while loop (i < sizeOfAvailableList)
      viewForm.setAvailableColumnVec(vecColumn);
      viewForm.setSelectedColumnVec(selectedColumn);

      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector vecViewList = gml.getViewComboData(listPreference);

      // set the user preference as per updated values
      // String userDefaultId = remote.getUserDefaultView(IndividualId, listType);
      if (userDefaultId != null && userDefaultId.equals(viewForm.getViewId())) 
      {
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(servletContext)).getDataSource();

    HttpSession session = request.getSession(true);
    UserObject userObject = (UserObject)session.getAttribute("userobject");

    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    Boolean showAdvancedSearch = (request.getAttribute("showAdvancedSearch") == null) ? new Boolean(true) : ((Boolean)request.getAttribute("showAdvancedSearch"));
    request.setAttribute("showAdvancedSearch", showAdvancedSearch);
    Boolean showSimpleSearch = (request.getAttribute("showSimpleSearch") == null) ? new Boolean(true) : ((Boolean)request.getAttribute("showSimpleSearch"));
    request.setAttribute("showSimpleSearch", showSimpleSearch);
    Boolean showCustomViews = (request.getAttribute("showCustomViews") == null) ? new Boolean(true) : ((Boolean)request.getAttribute("showCustomViews"));
    request.setAttribute("showCustomViews", showCustomViews);
    Boolean showComposeButton = (request.getAttribute("showComposeButton") == null) ? new Boolean(false) : ((Boolean)request.getAttribute("showComposeButton"));
    request.setAttribute("showComposeButton", showComposeButton);
    String searchButtonDescription = (request.getAttribute("searchButtonDescription") == null) ? "" : ((String)request.getAttribute("searchButtonDescription"));
    request.setAttribute("searchButtonDescription", searchButtonDescription);
    Boolean showNewButton = (request.getAttribute("showNewButton") == null) ? new Boolean(true) : ((Boolean)request.getAttribute("showNewButton"));
    request.setAttribute("showNewButton", showNewButton);
    Boolean showPrintButton = (request.getAttribute("showPrintButton") == null) ? new Boolean(true) : ((Boolean)request.getAttribute("showPrintButton"));
    request.setAttribute("showPrintButton", showPrintButton);

    // allow the request to change the text on the new button.
    String newButtonValue = (request.getAttribute("newButtonValue") == null) ? "New" : (String)request.getAttribute("newButtonValue");
    request.setAttribute("newButtonValue", newButtonValue);
    int individualId = userObject.getIndividualID();

    // Hopefully listType and the name of the Module match up.
    String moduleId = (String)request.getAttribute("moduleId");
    if (moduleId == null) {
      moduleId = "0";
    }
    request.setAttribute("moduleId", moduleId);

    // temporary hack to make advanced only show up in the working modules
    if (showAdvancedSearch.booleanValue()) {
      try {
        ArrayList searchList = AdvancedSearchUtil.getSavedSearchList(individualId, (Integer.valueOf(moduleId)).intValue(), dataSource);
        request.setAttribute("searchList", searchList);
      } catch (Exception e) {
        throw new ServletException(e);
      }
    }

    String listType = (String)request.getAttribute("listType");
    request.setAttribute("listType", listType);
    if (showCustomViews != null && showCustomViews.booleanValue()) {
      ListPreference listPreference = userObject.getListPreference(listType);
      if (listPreference != null) {
        Vector viewData = globalMasterLists.getViewComboData(listPreference);
        int sizeOfViewDataVector = viewData.size();
        String viewName = "";
        int userDefaultViewID = 0;
        if (sizeOfViewDataVector > 0) {
          userDefaultViewID = listPreference.getDefaultView();
View Full Code Here

TOP

Related Classes of com.centraview.common.GlobalMasterLists

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.