Package com.centraview.common

Examples of com.centraview.common.DDNameValue


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

        if (moduleName.equals(Constants.ACTIVITYMODULE)) {
          if ((vecView != null) && vecView.contains(new Integer(individualID))) {
            colview.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecSchedule != null) && vecSchedule.contains(new Integer(individualID))) {
            colschedule.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecAll != null) && vecAll.contains(new Integer(individualID))) {
            colAll.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          }
        } else if (moduleName.equals(Constants.EMAILMODULE)) {
          if ((vecView != null) && vecView.contains(new Integer(individualID))) {
            colview.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecSend != null) && vecSend.contains(new Integer(individualID))) {
            colsend.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecAll != null&& vecAll.contains(new Integer(individualID))) {
            colAll.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          }
        }
       
        IndividualListElement ele = new IndividualListElement(individualID);
        ele.put("IndividualID", individualIDfield);
View Full Code Here


      session.setAttribute("delegatorName", String.valueOf(userID));
      calendardyna.set("delegatorName", session.getAttribute("delegatorName"));

      Vector userColl = Delegator.getCalendarDelegatorIds(individualID, com.centraview.common.Constants.ACTIVITYMODULE,
          com.centraview.common.Constants.VIEW, dataSource);
      DDNameValue mydd = new DDNameValue(String.valueOf(individualID), (userobject.getfirstName() + ' ' + userobject.getlastName()));
      userColl.add(mydd);
      request.setAttribute("delegatorNameVec", userColl);

      // Selected Acitivity Type
      String activityType = request.getParameter("activityType");

      if (session.getAttribute("activityType") == null) {
        session.setAttribute("activityType", "All");
      }

      if (activityType != null) {
        session.setAttribute("activityType", activityType);
      }

      activityType = (String) session.getAttribute("activityType");
      calendardyna.set("activityType", activityType);

      Vector activityTypeVec = new Vector();

      activityTypeVec.add(new DDNameValue("All", "All Activities"));
      activityTypeVec.add(new DDNameValue("Appointment", "Appointment"));
      activityTypeVec.add(new DDNameValue("Meeting", "Meeting"));
      activityTypeVec.add(new DDNameValue("Call", "Call"));
      activityTypeVec.add(new DDNameValue("NextAction", "NextAction"));
      activityTypeVec.add(new DDNameValue("OpportunityInfo", "OpportunityInfo"));
      activityTypeVec.add(new DDNameValue("ProjectInfo", "ProjectInfo"));
      activityTypeVec.add(new DDNameValue("Event", "Event"));
      activityTypeVec.add(new DDNameValue("Task", "Task"));
      request.setAttribute("activityTypeVec", activityTypeVec);

      // What the hell??? what is the purpose of the default values here?
      int timespan = 30;
      TimeZone tz = null;
View Full Code Here

          {
            strId = stid.nextToken();
            strName = stName.nextToken();
            if (!strId.equals("")){
              int id = Integer.parseInt(strId);
              literaturenamevec.add(new DDNameValue(id,strName));
            }
          }
        }
        this.setLiteraturenamevec(literaturenamevec);
        //System.out.println("getLiteraturenamevec "+this.getLiteraturenamevec());
View Full Code Here

        for (int i = 0; i < sizeOfListFile; i++) {
          int indexOfHash = fileListArray[i].indexOf("#");
          String id = fileListArray[i].substring(0, indexOfHash);
          String name = fileListArray[i].substring(indexOfHash + 1, fileListArray[i].length());
          DDNameValue ddFileIdName = new DDNameValue(id + "#" + name, name);

          if (!(fileIdName.equals(ddFileIdName.getStrid()))) {
            fileListVec.add(ddFileIdName);
          }
        }
      }

      ((ActivityForm)form).setActivityFilesListVec(fileListVec);

      int fileListSize = fileListVec.size();
      fileListArray = new String[fileListSize];

      for (int i = 0; i < fileListSize; i++) {
        DDNameValue idName = (DDNameValue)fileListVec.get(i);
        fileListArray[i] = idName.getStrid();
      }

      ((ActivityForm)form).setActivityFilesList(fileListArray);

      // populate form bean for previous sub-activity
View Full Code Here

  public Vector getStatusVec()
  {
    Vector vec = new Vector();

    vec.add(new DDNameValue(1, "Paid"));
    vec.add(new DDNameValue(2, "Unpaid"));
    vec.add(new DDNameValue(3, "Reimbursed"));

    statusVec = vec;
    return statusVec;
  }
View Full Code Here

        StringMember smName = (StringMember)ile.get("Name");
        String name = (String)smName.getMemberValue();
        IntMember smid = (IntMember)ile.get("IndividualID");
        int id = new Integer(smid.getMemberValue().toString()).intValue();
        // attendeeList.addElement(new DDNameValue(id,name));
        attendeeList.addElement(new DDNameValue("" + id + "#" + name, name));
      }
      put("attendee", attendeeList);
    } else if (listType.equals("allindividual")) {
      IndividualList DL = lg.getIndividualList(individualID, 0, 0, "", "Name");
      DL.setTotalNoOfRecords(DL.size());
      Set s = DL.keySet();
      Iterator it = s.iterator();
      while (it.hasNext()) {
        String lim = (String)it.next();
        ListElement ile = (ListElement)DL.get(lim);
        StringMember smName = (StringMember)ile.get("Name");
        String name = (String)smName.getMemberValue();
        IntMember smid = (IntMember)ile.get("IndividualID");
        int id = new Integer(smid.getMemberValue().toString()).intValue();
        // attendeeList.addElement(new DDNameValue(id,name));
        attendeeList.addElement(new DDNameValue("" + id + "#" + name, name));
      }
      put("allattendee", attendeeList);
    }
  }
View Full Code Here

        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))){
          colmodify.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }else if (vecdelete != null && vecdelete.contains(new Long(individualID))){
          coldelete.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }

        IndividualListElement ele = new IndividualListElement(individualID);
        ele.put("IndividualID", individualIDfield);
        ele.put("Name", nameField);
View Full Code Here

      if (vec != null) {
        Collections.reverse(vec);
        if (scope.equals("ALL")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "All Files"));
        } else if (scope.equals("MY")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_USER")) {
              remove.add(current);
            } else if (current.getName().equals(userObject.getLoginName())) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "My Files"));
        } else if (scope.equals("PUBLIC")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("Public Folders")) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "Public Folders"));
        }
        request.setAttribute("breadCrumbs", vec);
      }
    } catch (Exception e) {
      logger.error("[execute]: Exception", e);
View Full Code Here

      int i = 0;
      while (iter.hasNext()) {
        CvFileVO fileVO = (CvFileVO)iter.next();
        int fileID = fileVO.getFileId();
        String fileName = fileVO.getName();
        attachments.add(new DDNameValue(fileID+"#"+fileName,fileName));
      }

      //Setting the Attachments to form.
      emailForm.set("attachmentList", attachments);
    } catch (Exception e) {
View Full Code Here

          int fieldLen = sFileFieldList.length;
          if (fieldLen == headerLen)
          {
            for (int k = 0; k < sFileFieldList.length; k++)
            {
              DDNameValue ddnamevalue = (DDNameValue)listVector.get(vectorColCounter);
              String name = ddnamevalue.getName() + vectorColCounter;
              String defValue = ddnamevalue.getName() + "DefaultValue" + vectorColCounter;
              String sDBFieldName = (String)request.getParameter(name);
              String defaultValue = (String)request.getParameter(defValue);
              if (sDBFieldName != null && !(sDBFieldName.equals("--- Select ---")))
              {
View Full Code Here

TOP

Related Classes of com.centraview.common.DDNameValue

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.