Package com.centraview.common

Examples of com.centraview.common.StringMember


    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    while( it.hasNext() ) {
      try {
        String str = ( String )it.next();
        StringMember sm = null;
        ListElement ele  = ( ListElement )DL.get( str );
        sm = ( StringMember )ele.get("Title" );
        sm.setRequestURL("goTo('/centraview/ViewFaq.do?"+Constants.TYPEOFOPERATION+"=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");//sets the URL for this member


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


    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
        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

  {
    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);

      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

    Set listkey = list.keySet();
    Iterator iter = listkey.iterator();
    while (iter.hasNext()) {
      String key = (String)iter.next();
      ListElement row = (ListElement)list.get(key);
      StringMember created = (StringMember)row.get("CreatedBy");
      created.setLinkEnabled(false);
    }
    return(list);
  }
View Full Code Here

    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    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");

        if (intIndividualID != null) {
          url = "/customer/ViewIndividualDetail.do?rowId=" + intIndividualID.intValue();
          sm.setRequestURL(url);
        }

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

        if (intIndividualID != null) {
          url = "showExpense(" + expID + ")";
          sm.setRequestURL(url);
        }
        sm.setLinkEnabled(true);
      } catch (Exception e) {
        System.out.println("[Exception][ViewTicketHandler.setExpenseLinks] Exception Thrown: " + e);
      }
    }
    return DL;
View Full Code Here

    while( it.hasNext() )
    {
      try
      {
        String str = ( String )it.next();
        StringMember sm = null;
        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

        String key = (String)iter.next();
        ListElement row = (ListElement)questionList.get(key);

        HashMap questionInfo = new HashMap();
       
        StringMember questionField = (StringMember)row.get("Question");
        StringMember answerField = (StringMember)row.get("Answer");
       
        questionInfo.put("questionID", new Integer(row.getElementID()));
        questionInfo.put("question", (String)questionField.getMemberValue());
        questionInfo.put("answer", (String)answerField.getMemberValue());
        qList.add(questionInfo);
      }

      faqForm.set("questionList", qList);
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

        TimeSlipVO hrtsvo = new TimeSlipVO();
        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);
        String shr = (String) vStime.get(0);
        int hr = Integer.parseInt(shr);
        String smin = (String) vStime.get(1);
        int min = Integer.parseInt(smin);
        hrtsvo.setStart(new java.sql.Time(hr, min, 0));

        //Convert to time
        ptm = (PureTimeMember) ele.get("EndTime");

        String sEndTime = ptm.getDisplayString();

        //Convert to time
        Vector vEtime = getTime(sEndTime);
        String sEhr = (String) vEtime.get(0);
        int iEhr = Integer.parseInt(sEhr);
        String sEmin = (String) vEtime.get(1);
        int iEmin = Integer.parseInt(sEmin);
        hrtsvo.setEnd(new java.sql.Time(iEhr, iEmin, 0));

        //Convert to time
        pdm = (PureDateMember) ele.get("Date");

        String sDate = pdm.getDisplayString();

        //Convert to date
        Vector vecDate = getDate(sDate);
        String sMon = (String) vecDate.get(0);

        int iMon = Integer.parseInt(sMon);
        String sDay = (String) vecDate.get(1);

        int iDay = Integer.parseInt(sDay);
        String sYear = ((String) vecDate.get(2)).trim();

        int iYear = Integer.parseInt(sYear);
        hrtsvo.setDate(new java.sql.Date(iYear, iMon, iDay));

        //Convert to date
        sm = (StringMember) ele.get("Duration");

        String sDuration = sm.getDisplayString();

        try
        {
          HrFacadeHome aa = (HrFacadeHome)
          CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome", "HrFacade");
View Full Code Here

        String key = (String)iter.next();
        ListElement row = (ListElement)kbList.get(key);

        int elementID = row.getElementID();

        StringMember categoryField = (StringMember)row.get("CatKB");
        String type = categoryField.getDisplayString();

        StringMember nameField = (StringMember)row.get("Name");

        if (type.equals(SupportConstantKeys.CATEGORY))
        {
          // if the list element is a category, then we need to link to KBList.do
          nameField.setRequestURL("KBList.do?categoryID=" + elementID);
          categoryField.setRequestURL("KBList.do?categoryID=" + elementID);
        }else if (type.equals(SupportConstantKeys.KBELEMENT)){
          // if the list element is a KB entry, then we need to link to ViewKB.do
          nameField.setRequestURL("ViewKB.do?kbID=" + elementID);
          categoryField.setRequestURL("ViewKB.do?kbID=" + elementID);
        }
      }   // end while(iter.hasNext())

      kbList.setCurrentCategoryID(categoryID);
View Full Code Here

TOP

Related Classes of com.centraview.common.StringMember

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.