Package com.centraview.common

Examples of com.centraview.common.ProjectList


    return projectVO;
  }

  public ProjectList getProjectList(int userID, HashMap info)
  {
    ProjectList projectList = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectListsLocalHome home = (ProjectListsLocalHome)ic.lookup("local/ProjectLists");
      ProjectListsLocal remote = (ProjectListsLocal)home.create();
      remote.setDataSource(this.dataSource);
View Full Code Here


    ListPreference listpreference = userObject.getListPreference("Project");
    int recordsPerPage = listpreference.getRecordsPerPage();

    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    ProjectList DL = ( ProjectList )lg.getProjectList(userId , 0,0 , "" ,"Name");
    DL.setTotalNoOfRecords( DL.size() );

    String searchStr = req.getParameter("simpleSearch");
    String saveSearchStr = req.getParameter("savedSearch");

    if(searchStr != null && (searchStr.trim()).length() > 0)
    {
      searchStr = searchStr.trim();
      DL.setSearchString("SIMPLE :"+searchStr);
      DL.search();
    }

    DL.setTotalNoOfRecords(DL.size());
    DL.setStartAT(1);
    DL.setEndAT(recordsPerPage);
    DL.setRecordsPerPage(recordsPerPage);

    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    while( it.hasNext() )
    {
      String str = ( String )it.next();
      StringMember sm=null;
      ListElement ele  = ( ListElement )DL.get( str );
      sm = ( StringMember )ele.get("Name" );
      sm.setRequestURL("openPopup('ViewProjectDetail.do?rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");

      sm = ( StringMember )ele.get("Entity" );
      IntMember im = (IntMember) ele.get("EntityID");
      sm.setRequestURL("openPopup('ViewEntityDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
    }

    req.setAttribute("projectlookuplist" , DL );
    session.setAttribute("projectlookuplist", DL);
    req.setAttribute("lookupListName", "projectlookuplist");
View Full Code Here

      UserObject userobjectd =(UserObject) session.getAttribute("userobject");
      ListPreference listpreference = userobjectd.getListPreference("Project");

      DisplayList displaylistSession = (DisplayList) session.getAttribute("displaylist");
      DisplayList displaylist = (DisplayList) request.getAttribute("displaylist");
      ProjectList DL = null;

      if (displaylist == null)
      {
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        DL = (ProjectList) lg.getProjectList(userobjectd.getIndividualID(), 1,
View Full Code Here

TOP

Related Classes of com.centraview.common.ProjectList

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.