Package com.centraview.common

Examples of com.centraview.common.GlobalMasterLists


      } catch (Exception e) {
        tz = TimeZone.getTimeZone("EST");
      }
      request.setAttribute("TZ", tz);

      GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector timeZoneVec = (Vector) globalMasterLists.get("TimeZone");
      request.setAttribute("timeZoneVec", timeZoneVec);
      String timeZoneID = tz.getID();
      calendardyna.set("timeZone", timeZoneID);

      request.setAttribute("showAdvancedSearch", new Boolean(false));
      request.setAttribute("showCustomViews", new Boolean(false));
      request.setAttribute("showComposeButton", new Boolean(false));
      request.setAttribute("showPrintButton", new Boolean(false));
      request.setAttribute("searchButtonDescription", "Perform a quick search for activities information.");
      request.setAttribute("newButtonValue", "Schedule");
      HashMap moduleList = new HashMap();

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

      String moduleID = (String) moduleList.get("Activities");
      request.setAttribute("moduleId", moduleID);
View Full Code Here


    this.glAccountIDValue = glAccountIDValue;
  }

  public Vector getGlAccountVec(String dataSource)
  {
    GlobalMasterLists gml = null;
    gml = GlobalMasterLists.getGlobalMasterLists(dataSource);

    Vector vec = (Vector)gml.get("GLAccounts");
    glAccountVec = vec;
    return glAccountVec;
  }
View Full Code Here

    if (allErrors != null) {
      saveErrors(request, allErrors);
      session.removeAttribute("listErrorMessage");
    }
   
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");
   
    ListPreference listPreference = userObject.getListPreference("Promotion");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
   
    ValueListParameters listParameters = null;
View Full Code Here

  private static Logger logger = Logger.getLogger(TicketValueListHandler.class);

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException {
    String finalForward = ".view.support.tickets.my.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

    }

    // Check wheather the actionType is it Lookup or not
    String actionType = request.getParameter("actionType");

    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null) {
      moduleList = (HashMap) globalMasterLists.get("moduleList");
    }

    ListPreference listPreference = userObject.getListPreference("File");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

      HttpSession session = request.getSession(true);

      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector vecMOC = (Vector)gml.get("MOC");

      int listid = 0;

      if (session.getAttribute("listid") != null)
      {
View Full Code Here

      profileForm.set("street2", primaryAddress.getStreet2());
      profileForm.set("city", primaryAddress.getCity());
      profileForm.set("zipCode", primaryAddress.getZip());
      profileForm.set("website", primaryAddress.getWebsite());
     
      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector stateList = (Vector)gml.get("States");
      profileForm.set("state", primaryAddress.getStateName());
      Vector countryList = (Vector)gml.get("Country");
      profileForm.set("country", primaryAddress.getCountryName());
     
      Collection mocList = entityVO.getMOC();
      Iterator iterator = mocList.iterator();
      int count = 1;
View Full Code Here

    if (allErrors != null) {
      saveErrors(request, allErrors);
      session.removeAttribute("listErrorMessage");
    }
   
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");
   
    ListPreference listPreference = userObject.getListPreference("EmployeeHandbook");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
   
    ValueListParameters listParameters = null;
View Full Code Here

      int individualID = userobjectd.getIndividualID();

      String messageBody = (String)session.getAttribute("emailmessage");
      DynaActionForm dynaForm = (DynaActionForm)form;

      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);

      StringTokenizer st = new StringTokenizer(messageBody, Constants.EH_HEADER_DELIMETER);

      while (st.hasMoreTokens())
      {
        String fullHeader = st.nextToken();

        String strhead = (fullHeader.substring(0, fullHeader.indexOf(Constants.EH_KEYVALUE_DELEMETER))).trim();
        String strValue = (fullHeader.substring(fullHeader.indexOf(Constants.EH_KEYVALUE_DELEMETER) + 1)).trim();

        if (strhead.equals("street1"))
          dynaForm.set("street1", strValue);
        else if (strhead.equals("street2"))
          dynaForm.set("street2", strValue);
        else if (strhead.equals("city"))
          dynaForm.set("city", strValue);
        else if (strhead.equals("state"))
        {
          Collection stateCol = (Collection)gml.get("States");

          Iterator stateIter = stateCol.iterator();
          while (stateIter.hasNext())
          {
            DDNameValue ddname = (DDNameValue)stateIter.next();

            if ((ddname.getName()).equals(strValue))
            {
              dynaForm.set("state", (new Integer(ddname.getId())).toString());
              break;
            }
          }
        } else if (strhead.equals("zip"))
          dynaForm.set("zip", strValue);
        else if (strhead.equals("country"))
        {
          Collection countryCol = (Collection)gml.get("Country");

          Iterator stateIter = countryCol.iterator();
          while (stateIter.hasNext())
          {
            DDNameValue ddname = (DDNameValue)stateIter.next();

            if ((ddname.getName()).equals(strValue))
              dynaForm.set("country", (new Integer(ddname.getId())).toString());

          }
        } else if (strhead.equals("title"))
          dynaForm.set("title", strValue);
        else if (strhead.equals("source"))
          dynaForm.set("source", strValue);
        else if (strhead.equals("firstname"))
          dynaForm.set("firstname", strValue);
        else if (strhead.equals("lastname"))
          dynaForm.set("lastname", strValue);
        else if (strhead.equals("middlename"))
          dynaForm.set("middlename", strValue);
        else if (strhead.equals("entity"))
          dynaForm.set("entity", strValue);
        else if (strhead.equals("entity1"))
          dynaForm.set("entity1", strValue);
        else if (strhead.equals("Fax"))
        {
          Collection mocFax = (Collection)gml.get("MOC");

          Iterator mocFaxIter = mocFax.iterator();
          while (mocFaxIter.hasNext())
          {
            DDNameValue ddnameFax = (DDNameValue)mocFaxIter.next();

            if ((ddnameFax.getName()).equals(strhead))
            {
              dynaForm.set("mocType1", (new Integer(ddnameFax.getId())).toString());
              dynaForm.set("moc1", strValue);
            }
          }

        } else if (strhead.equals("Phone")) {
          Collection mocPhone = (Collection)gml.get("MOC");

          Iterator mocPhoneIter = mocPhone.iterator();
          while (mocPhoneIter.hasNext())
          {
            DDNameValue ddnamePhone = (DDNameValue)mocPhoneIter.next();

            if ((ddnamePhone.getName()).equals(strhead))
            {
              dynaForm.set("mocType2", (new Integer(ddnamePhone.getId())).toString());
              dynaForm.set("moc2", strValue);
            }
          }
        } else if (strhead.equals("Mobile"))
        {
          Collection mocMobile = (Collection)gml.get("MOC");

          Iterator mocMobileIter = mocMobile.iterator();
          while (mocMobileIter.hasNext())
          {
            DDNameValue ddnameMobile = (DDNameValue)mocMobileIter.next();
View Full Code Here

        request.setAttribute("actionName", "title.contact.task");
      } else if (request.getParameter(ConstantKeys.TYPEOFACTIVITY).equals(ConstantKeys.TODO)) {
        request.setAttribute("actionName", "title.contact.todo");
      }

      GlobalMasterLists grl = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector resourceVec = grl.getAllResources();
      Vector resourceSelected = new Vector();

      if (((ActivityForm)form).getActivityResourcevector() != null) {
        resourceSelected = ((ActivityForm)form).getActivityResourcevector();
      }
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.