Package com.centraview.common

Examples of com.centraview.common.ListGenerator


      HttpSession session = request.getSession(true);
      com.centraview.common.UserObject userobjectd = (com.centraview.common.UserObject)session.getAttribute("userobject"); //get the user object
      int individualId = userobjectd.getIndividualID();

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);

      String moduleName = "";
      typeofModule = (String)request.getParameter("TYPEOFMODULE");

      if (typeofModule == null) {
View Full Code Here


      HttpSession session = req.getSession();
      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();
     
      System.out.println("san-OrderLookupHandler-getting OrderList from LG ...");
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      OrderList DL = ( OrderList )lg.getOrderList(individualID , 0,0 , "" ,"OrderID");


      /* Commented - by Sandeep
         Search Related Code to be Added afterwords*/
      /*
 
View Full Code Here

      else if ( typeOfOperation != null && typeOfOperation.equals("ADDITEM") )
      {

        String newItemID = request.getParameter("theitemid");
        ItemList IL = null ;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);//get the List Generator object for Listing
        IL = (ItemList )lg.getItemList( individualID , 1, 10 , "" , "ItemID");//called when the request for the list is for first time

        StringTokenizer st;
        String token, nextItr;

        if (newItemID != null)
View Full Code Here

    {
      returnStatus = "successandnew";
    }

    // this.updateGroup(form , status);
    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    lg.makeListDirty("Marketing");
    dynaForm.initialize(mapping);

    return (mapping.findForward(returnStatus));
  }
View Full Code Here

           "ContactFacade");
       ContactFacade remote = (ContactFacade) cfh.create();
       remote.setDataSource(dataSource);
       //System.out.println("GOT HOME IN HANDLER");
      // listid = remote.updateList( userID , form );
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Marketing");
    }
    catch (Exception e)
    {
      System.out.println("[Exception] EditListHandler.updateList: " + e.toString());
      //System.out.println(e);
View Full Code Here

     
      if (newIndividualID > 0)
      {
        // we need to make the IndividualList dirty, so that the next time
        // it is viewed, it is refreshed and contains the record we just added
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        lg.makeListDirty("Individual");
        lg.makeListDirty("Entity");
      }else{
    // TODO: create an ActionError message..
        forward = "errorOccurred";
      }
    }catch(Exception e){
View Full Code Here

  long idd = 0;
  if(listId != null)
    idd = Long.parseLong( listId  );

  ListGenerator lg = ListGenerator.getListGenerator(dataSource);
  RuleList DL = ( RuleList )lg.getDisplayList(idd );
 
  //added by sameer
  DisplayList displaylistSession = ( DisplayList )session.getAttribute( "displaylist") ;
  if((displaylistSession!=null)&&(displaylistSession.getListID()==idd))
      displaylistSession.setDirtyFlag(true);
View Full Code Here

      DisplayList displaylist = ( DisplayList )request.getAttribute( "displaylist") ;

      TimeSlipList DL= null;
      if( displaylist == null  )
      {
         ListGenerator lg = ListGenerator.getListGenerator(dataSource);

         DL = ( TimeSlipList )lg.getTimeSlipList( userobjectd.getIndividualID() , 1,listpreference.getRecordsPerPage() , "" ,listpreference.getSortElement());

      }
      else
      {

        String searchSession = displaylistSession.getSearchString();
        String searchrequest = displaylist.getSearchString();


        if(searchSession == null)
          searchSession = "";
        if(searchrequest == null)
          searchrequest = "";

        //if ( (displaylistSession.getListID() == displaylist.getListID() ) && ( displaylist.getDirtyFlag() == false ) && ( displaylist.getStartAT() >= displaylistSession.getBeginIndex() ) && ( displaylist.getEndAT()<=displaylistSession.getEndIndex() ) && (displaylist.getSortMember().equals(displaylistSession.getSortMember()) && (displaylist.getSortType()==(displaylistSession.getSortType()) ) ))
        if (( (displaylistSession.getListID() == displaylist.getListID() ) && ( displaylist.getDirtyFlag() == false ) && ( displaylist.getStartAT() >= displaylistSession.getBeginIndex() ) && ( displaylist.getEndAT()<=displaylistSession.getEndIndex() ) && (displaylist.getSortMember().equals(displaylistSession.getSortMember()) && (displaylist.getSortType()==(displaylistSession.getSortType())) && (searchSession.equals(searchrequest)) ))|| displaylist.getAdvanceSearchFlag() == true)
         {
          DL = (TimeSlipList)displaylistSession;
          request.setAttribute("displaylist" , displaylistSession );
         }
         else
         {

          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          DL = ( TimeSlipList )lg.getTimeSlipList( userobjectd.getIndividualID(),displaylist );
         }

      }

      setLinks(DL);
View Full Code Here

        DisplayList displaylistSession = ( DisplayList )session.getAttribute( "displaylist") ;

        DisplayList displaylist = ( DisplayList )request.getAttribute( "displaylist") ;

        EntityList DL = new EntityList();
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        if( displaylist == null  )
        {

          String searchString = "ADVANCE:SELECT entityid FROM vendor  ";
          DL = ( EntityList )lg.getEntityList( userobjectd.getIndividualID(), 1,listpreference.getRecordsPerPage() , searchString ,listpreference.getSortElement());
          if (DL == null)
          {
            DL = new EntityList();
          }

          DisplayList DL1 = lg.getDisplayList(DL.getListID() );
          DL1.setListType("Vendor");
          DL.setListType("Vendor");
          DL.setPrimaryTable("vendor");
          DL1.setTotalNoOfRecords(DL.size());
          DL.setTotalNoOfRecords(DL.size());
        }
        else
        {
          String searchSession = displaylistSession.getSearchString();
          String searchrequest = displaylist.getSearchString();

          if(searchSession == null)
            searchSession = "";
          if(searchrequest == null)
            searchrequest = "";

          if (( (displaylistSession.getListID() == displaylist.getListID() ) &&
                ( displaylist.getDirtyFlag() == false ) &&
                ( displaylist.getStartAT() >= displaylistSession.getBeginIndex() ) &&
                ( displaylist.getEndAT()<=displaylistSession.getEndIndex() ) &&
                (displaylist.getSortMember().equals(displaylistSession.getSortMember()) &&
                (displaylist.getSortType()==(displaylistSession.getSortType())) &&
                (searchSession.equals(searchrequest)) )) ||
                displaylist.getAdvanceSearchFlag() == true)
          {
            DL = (EntityList)displaylistSession;
            DL.setListType("Vendor");
            DL.setPrimaryTable("vendor");
            DL.setTotalNoOfRecords(DL.size());
            request.setAttribute("displaylist" , displaylistSession );
          }
          else
          {
            DL = ( EntityList )lg.getEntityList( displaylist );
            DisplayList DL1 = lg.getDisplayList(DL.getListID() );
            DL1.setListType("Vendor");
            DL.setListType("Vendor");
            DL.setPrimaryTable("vendor");
            DL1.setTotalNoOfRecords(DL.size());
            DL.setTotalNoOfRecords(DL.size());
View Full Code Here

      }
     
      if (typeOfOperation != null && typeOfOperation.equals("ADDITEM")) {
        String newItemID = request.getParameter("theitemid");
        ItemList IL = null;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        IL = (ItemList)lg.getItemList(individualID, 1, 10, "", "ItemID");
       
        OrderForm orderForm = (OrderForm)form;
        orderForm.convertArrayToItemLines();
        orderForm.convertFormbeanToValueObject("edit");
       
View Full Code Here

TOP

Related Classes of com.centraview.common.ListGenerator

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.