Package com.centraview.common

Examples of com.centraview.common.IntMember


        HashMap sqlRow = (HashMap)iter.next();

        String individualName = (String)sqlRow.get("Name");
        int individualID  = ((Number)sqlRow.get("IndividualID")).intValue();

        IntMember individualIDfield = new IntMember("IndividualID", individualID, 10, "", 'T', false, 10);
        StringMember nameField  = new StringMember("Name", individualName, 10, "/centraview/ViewHandler.do?" + Constants.TYPEOFCONTACT + "=" + Constants.INDIVIDUAL  + "&rowId=" + individualID, 'T', true);

        if (vecview != null && vecview.contains(new Long(individualID))) {
          colview.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }else if (vecmodify != null && vecmodify.contains(new Long(individualID))){
View Full Code Here


        String str = ( String )it.next();

        StringMember sm = null;
        ListElement ele  = ( ListElement )DL.get( str );

        IntMember intExpenseID = (IntMember)ele.get("ExpenseID");
        int expID = 0;

        if(intExpenseID != null)
        expID = ((Integer)intExpenseID.getMemberValue()).intValue();

        //sets the URL for this member
        url = "goTo('/centraview/DisplayExpense.do?action=edit&expenseid="+expID+"')";
        intExpenseID.setRequestURL(url);

        Integer intIndividualID = (Integer)((IntMember)ele.get("IndividualID")).getMemberValue();
        //sets the URL for this member
        sm = ( StringMember )ele.get("Creator");
View Full Code Here

        ListElement ele = (ListElement)DL.get(str);
        sm = (StringMember)ele.get("Title");
        sm.setRequestURL("/customer/view_thread.do?rowId=" + ele.getElementID() + "&listId=" + DL.getListID()); //sets the URL for this member
        sm = (StringMember)ele.get("CreatedBy");

        IntMember im = (IntMember)ele.get("IndividualID");
        Integer value = (Integer)im.getMemberValue();
        int IndividualID = value.intValue();
        sm.setLinkEnabled(false);
      } catch (Exception e) {
        System.out.println("[Exception][ViewTicketHandler.setLinksfunction] Exception Thrown: " + e);
        e.printStackTrace();
View Full Code Here

    while (it.hasNext()) {
      String str = (String)it.next();
      StringMember sm = null;
      ListElement ele = (ListElement)DL.get(str);

      IntMember im = (IntMember)ele.get("ID");
      im.setRequestURL("openWindow('/centraview/customer/ViewTimeSlipDetail.do?rowId=" + ((Integer)im.getMemberValue()).intValue()
          + "&listId="
          + DL.getListID()
          + "'"
          + ",'', 740,  335,'scrollbars=yes')");

      sm = (StringMember)ele.get("CreatedBy");
      if (sm != null) {
        im = (IntMember)ele.get("Creator");
        sm.setRequestURL("/customer/ViewIndividualDetail.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "&listId=" + DL.getListID());
      }
      sm = (StringMember)ele.get("Description");
      sm.setLinkEnabled(true);
      if (sm != null) {
        im = (IntMember)ele.get("ID");
        sm.setRequestURL(
          "openPopup('/centraview/customer/ViewTimeslip.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "&listId=" + DL.getListID() + "&ticketId=" + ticketId + "')");
      }
    }
    return DL;
  }
View Full Code Here

    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
        ListElement ele = (ListElement)DL.get(str);
        IntMember intExpenseID = (IntMember)ele.get("ExpenseID");
        int expID = 0;

        if (intExpenseID != null) {
          expID = ((Integer)intExpenseID.getMemberValue()).intValue();
        }

        Integer intIndividualID = (Integer) ((IntMember)ele.get("IndividualID")).getMemberValue();
        sm = (StringMember)ele.get("Creator");
View Full Code Here

        ListElement ele  = ( ListElement )DL.get( str );
        sm = ( StringMember )ele.get("Title" );
        sm.setRequestURL("goTo('/centraview/ViewNote.do?TYPEOFOPERATION=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");//sets the URL for this member
        sm = ( StringMember )ele.get("CreatedBy" );

        IntMember im = ( IntMember )ele.get("IndividualID" );
        Integer value = (Integer)im.getMemberValue();
        int IndividualID = value.intValue();
        sm.setRequestURL( "openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");//sets the URL for this member

      }catch(Exception e )
      {
        System.out.println( "NoteList:setLinksfunction"+ e );
      }
View Full Code Here

        try
        {
          String str = ( String )it.next();
              ListElement ele  = ( ListElement )DL.get( str );
          StringMember sm  = ( StringMember )ele.get("title" );
          IntMember im     = ( IntMember )ele.get("promotionid" );
          int promotionID   = (( Integer )im.getMemberValue()).intValue();


           sm.setRequestURL("goTo('ViewPromotion.do?promotionid="+ (( Integer )im.getMemberValue()).intValue() +"')");

          sm   = ( StringMember )ele.get("ownername");
          im  = ( IntMember )ele.get("ownerid" );
          sm.setRequestURL("goTo('ViewIndividualDetail.do?rowid="+ (( Integer )im.getMemberValue()).intValue() +"')");
          }catch(Exception e )
        {
          System.out.println( "PromotionList:setLinksfunction"+ e );
        }
      }
View Full Code Here

        hrtsvo.setTimesheetID(timeslipID);

        String str = (String) it.next();

        StringMember sm = null;
        IntMember im = null;
        PureDateMember pdm = null;
        PureTimeMember ptm = null;

        ListElement ele = (ListElement) DL.get(str);
        sm = (StringMember) ele.get("Description");

        String sDescription = sm.getDisplayString();
        hrtsvo.setDescription(sDescription);
        im = (IntMember) ele.get("ID");

        String id = im.getDisplayString();
        ptm = (PureTimeMember) ele.get("StartTime");

        String sStartTime = ptm.getDisplayString();

        Vector vStime = getTime(sStartTime);
View Full Code Here

      sm = ( StringMember )ele.get("Name" );

      int fol=1;//delete afterwards

      IntMember im = ( IntMember )ele.get("FolderID" );

      if ((smFF.getDisplayString()).equals(FileConstantKeys.FILE))
      {
        sm.setRequestURL("ViewFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
        //smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);
        smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);

      }
      else if ((smFF.getDisplayString()).equals(FileConstantKeys.FOLDER))
      {
        //sm.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);
        //smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);

        sm.setRequestURL("ListFile.do?folderId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
        smFF.setRequestURL("ListFile.do?folderId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
      }

      sm = ( StringMember )ele.get("CreatedBy" );

      IntMember imIndvID = ( IntMember )ele.get("IndividualID" );

      sm.setRequestURL( "javascript:openPopup('ViewIndividualDetail.do?rowId="+((Integer)imIndvID.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");


      Integer value = (Integer)im.getMemberValue();
      int IndividualID = value.intValue();
View Full Code Here

        ListElement ele = (ListElement)DL.get(str);
        sm = (StringMember)ele.get("Title");
        sm.setRequestURL("c_openWindow('/support/view_thread.do?rowId=" + ele.getElementID() + "', 'view_thread', 715, 445, '');");
        sm = (StringMember)ele.get("CreatedBy");

        IntMember im = (IntMember)ele.get("IndividualID");
        Integer value = (Integer)im.getMemberValue();
        int IndividualID = value.intValue();
        sm.setRequestURL("c_openPopup('/contacts/view_individual.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "');");

        // Set default date format not to print seconds
        DateMember dm = (DateMember)ele.get("Created");
        dm.setDateFormat("MMM d, yyyy hh:mm a");
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.centraview.common.IntMember

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.