Package com.centraview.common

Examples of com.centraview.common.DDNameValue


          int indexOfHash = fileKeyName.indexOf("#");
          if (indexOfHash != -1) {
            int lenString = fileKeyName.length();
            String fileID = fileKeyName.substring(0,indexOfHash);
            String fileName = fileKeyName.substring(indexOfHash+1,lenString);
            attachments.add(new DDNameValue(fileID+"#"+fileName,fileName));
            attachmentFileIDs.add(new Integer(fileID));
          }
        }
      }
    }
View Full Code Here


        }
      }

      ArrayList flatList = (ArrayList)remote.getAllCategory(individualID);
      ArrayList categoryList = new ArrayList();
      categoryList.add(new DDNameValue(1, "Knowledgebase"));
      Iterator iter = flatList.iterator();
      while (iter.hasNext()) {
        CategoryVO cVO = (CategoryVO)iter.next();
        if (cVO.getParent() == 1)
          KBUtil.processCategory(flatList, cVO, categoryList, 0);
View Full Code Here

      if (literaturelist != null){
        int size = literaturelist.size();
        int i = 0;
        while (i<size){

          DDNameValue tempListInfo = (DDNameValue) literaturelist.elementAt(i);
          String value = tempListInfo.getName();
          String tempValue = value.toUpperCase();
          String tempSearch = searchStr.toUpperCase();
          int occuranceVALUESearch = (tempValue).indexOf(tempSearch);
          if(occuranceVALUESearch == -1){
            literaturelist.remove(i);
View Full Code Here

        //ignored
      }

      Collection marketList = remote.getAllList();
      Collection marketingList = new ArrayList();
      marketingList.add(new DDNameValue("-1", "New Marketing List"));

      Iterator iterator = marketList.iterator();

      Vector marketingListColumn = new Vector(marketList);

      if (marketingListColumn != null)
      {
        for (Enumeration e = marketingListColumn.elements(); e.hasMoreElements();)
        {
          HashMap hm = (HashMap)e.nextElement();

          String title = (String)hm.get("title").toString();
          String listID = (String)hm.get("ListID").toString();
          marketingList.add(new DDNameValue(listID, title));
          if (addToList && rowStringId.equals(listID))
          {
            existingListName = title;
          }
        } //end for (Enumeration e = col2.elements() ; e.hasMoreElements() ;)
View Full Code Here

          String[] fileList = this.getActivityFilesList();
          int sizeOfListBox = fileList.length;
          for (int i = 0; i < sizeOfListBox; i++) {
            int indexOfHash = fileList[i].indexOf("#");
            String displayName = fileList[i].substring(indexOfHash + 1, fileList[i].length());
            DDNameValue fileListBox = new DDNameValue(fileList[i], displayName);
            fileListVector.add(fileListBox);
          } // end of for (int i=0;i<sizeOfListBox;i++)
          sessionForm.setActivityFilesListVec(fileListVector);
          this.setActivityFilesListVec(fileListVector);
        }// end of (this.getActivityFilesList() != null)
View Full Code Here

          // Populating the ArrayList with the DDNameValue.
          ArrayList attachmentFileIDs = new ArrayList();
          ArrayList tempAttachmentMap = (ArrayList)dynaform.get("attachmentList");
          if (tempAttachmentMap != null && tempAttachmentMap.size() > 0) {
            for (int i = 0; i < tempAttachmentMap.size(); i++) {
              DDNameValue fileKeyInfo = (DDNameValue)tempAttachmentMap.get(i);
              String fileKeyName = fileKeyInfo.getStrid();

              if (fileKeyName != null) {
                int indexOfHash = fileKeyName.indexOf("#");
                if (indexOfHash != -1) {
                  String fileID = fileKeyName.substring(0, indexOfHash);
View Full Code Here

        sessionForm.setActivityRelatedTypeID(previousForm.getActivityRelatedTypeID());
        sessionForm.setActivityRelatedTypeValue(previousForm.getActivityRelatedTypeValue());
      } else if (ConstantKeys.ATTENDEE.equals(previousSubActivity)) {
        String[] attendee = previousForm.getActivityAttendeesRequired();
        Vector attendeeRequired = new Vector();
        DDNameValue attendeeListBox = null;
        String displayName = "";

        if (previousForm.getActivityAttendeesRequired() != null) {
          int sizeOfListBox = attendee.length;
          for (int i = 0; i < sizeOfListBox; i++) {
            int indexOfHash = attendee[i].indexOf("#");
            displayName = attendee[i].substring(indexOfHash + 1, attendee[i].length());
            attendeeListBox = new DDNameValue(attendee[i], displayName);
            attendeeRequired.add(attendeeListBox);
          }
          previousForm.setActivityAttendeeRequiredVector(attendeeRequired);
        }

        String[] optional = previousForm.getActivityAttendeesOptional();
        Vector attendeeOptional = new Vector();
        attendeeListBox = null;
        displayName = "";

        if (previousForm.getActivityAttendeesOptional() != null) {
          int sizeOfListBox = optional.length;
          for (int i = 0; i < sizeOfListBox; i++) {
            int indexOfHash = optional[i].indexOf("#");
            displayName = optional[i].substring(indexOfHash + 1, optional[i].length());
            attendeeListBox = new DDNameValue(optional[i], displayName);
            attendeeOptional.add(attendeeListBox);
          }
          previousForm.setActivityAttendeeOptionalVector(attendeeOptional);
        }

        sessionForm.setActivityAttendeeSearch(previousForm.getActivityAttendeeSearch());
        sessionForm.setActivityAttendeesAll(previousForm.getActivityAttendeesAll());
        sessionForm.setActivityAttendeesRequired(previousForm.getActivityAttendeesRequired());
        sessionForm.setActivityAttendeesOptional(previousForm.getActivityAttendeesOptional());
        sessionForm.setActivityAttendeesType(previousForm.getActivityAttendeesType());
        sessionForm.setActivityAttendeeOptionalVector(previousForm
            .getActivityAttendeeOptionalVector());
        sessionForm.setActivityAttendeeRequiredVector(previousForm
            .getActivityAttendeeRequiredVector());
      } else if (ConstantKeys.RESOURCE.equals(previousSubActivity)) {
        String[] resource = previousForm.getActivityResourceSelected();
        Vector resourceSelected = new Vector();
        DDNameValue resourceListBox = null;
        String displayName = "";

        if (previousForm.getActivityResourceSelected() != null) {
          int sizeOfListBox = resource.length;
          for (int i = 0; i < sizeOfListBox; i++) {
            int indexOfHash = resource[i].indexOf("#");
            displayName = resource[i].substring(indexOfHash + 1, resource[i].length());
            resourceListBox = new DDNameValue(resource[i], displayName);
            resourceSelected.add(resourceListBox);
          }
          previousForm.setActivityResourcevector(resourceSelected);
        }

        sessionForm.setActivityResourceAll(previousForm.getActivityResourceAll());
        sessionForm.setActivityResourceSelected(previousForm.getActivityResourceSelected());
        sessionForm.setActivityResourcevector(previousForm.getActivityResourcevector());
      } else if (ConstantKeys.AVAILABILITY.equals(previousSubActivity)) {
        sessionForm.setActivityStartDate(previousForm.getActivityStartDate());
        sessionForm.setActivityStartTime(previousForm.getActivityStartTime());
        sessionForm.setActivityEndDate(previousForm.getActivityEndDate());
        sessionForm.setActivityEndTime(previousForm.getActivityEndTime());
      } else if (ConstantKeys.RECURRING.equals(previousSubActivity)) {
        sessionForm.setActivityRecurStartDate(previousForm.getActivityRecurStartDate());
        sessionForm.setActivityRecurEndDate(previousForm.getActivityRecurEndDate());
        sessionForm.setActivityRecurringFrequency(previousForm.getActivityRecurringFrequency());
        sessionForm.setActivityRecurringDailyEvery(previousForm.getActivityRecurringDailyEvery());
        sessionForm.setActivityRecurringDailyDays(previousForm.getActivityRecurringDailyDays());
        sessionForm.setActivityRecurringDailyWeekdays(previousForm
            .getActivityRecurringDailyWeekdays());
        sessionForm.setActivityRecurringWeeklyEvery(previousForm.getActivityRecurringWeeklyEvery());
        sessionForm.setActivityRecurringWeeklyOn(previousForm.getActivityRecurringWeeklyOn());
        sessionForm.setActivityFindWeek(previousForm.getActivityFindWeek());
        sessionForm.setActivitySelectedWeek(previousForm.getActivitySelectedWeek());
        sessionForm.setActivityRecurringMonthlyEvery(previousForm
            .getActivityRecurringMonthlyEvery());
        sessionForm.setActivityRecurringMonthlyEveryDay(previousForm
            .getActivityRecurringMonthlyEveryDay());
        sessionForm.setActivityRecurringMonthlyOnDay(previousForm
            .getActivityRecurringMonthlyOnDay());
        sessionForm.setActivityRecurringMonthlyOnWeek(previousForm
            .getActivityRecurringMonthlyOnWeek());
        sessionForm.setActivityRecurringYearlyEvery(previousForm.getActivityRecurringYearlyEvery());
        sessionForm.setActivityRecurringYearlyEveryMonth(previousForm
            .getActivityRecurringYearlyEveryMonth());
        sessionForm.setActivityRecurringYearlyEveryDay(previousForm
            .getActivityRecurringYearlyEveryDay());
        sessionForm.setActivityRecurringYearlyOnDay(previousForm.getActivityRecurringYearlyOnDay());
        sessionForm.setActivityRecurringYearlyOnWeek(previousForm
            .getActivityRecurringYearlyOnWeek());
        sessionForm.setActivityRecurringYearlyOnMonth(previousForm
            .getActivityRecurringYearlyOnMonth());
      } else if (ConstantKeys.ATTACHMENT.equals(previousSubActivity)) {
        Vector fileListVector = new Vector();
        if (previousForm.getActivityFilesList() != null) {
          String[] fileList = previousForm.getActivityFilesList();
          int sizeOfListBox = fileList.length;
          for (int i = 0; i < sizeOfListBox; i++) {
            int indexOfHash = fileList[i].indexOf("#");
            String displayName = fileList[i].substring(indexOfHash + 1, fileList[i].length());
            DDNameValue fileListBox = new DDNameValue(fileList[i], displayName);
            fileListVector.add(fileListBox);
          }
          previousForm.setActivityFilesListVec(fileListVector);
        }
        sessionForm.setActivityAttachedCentraviewFile(previousForm
View Full Code Here

          int indexOfHash = fileKeyName.indexOf("#");
          if (indexOfHash != -1) {
            int lenString = fileKeyName.length();
            String fileID = fileKeyName.substring(0, indexOfHash);
            String fileName = fileKeyName.substring(indexOfHash + 1, lenString);
            attachments.add(new DDNameValue(fileID + "#" + fileName, fileName));
            attachmentFileIDs.add(new Integer(fileID));
          }
        }
      }
    }
View Full Code Here

          }// end of if(fieldValue.equals(""))

          Vector vec = field.getOptionValues();
          if (vec != null) {
            for (int j = 0; j < vec.size(); j++) {
              DDNameValue ddName = (DDNameValue) vec.get(j);
              int compId = Integer.parseInt(fieldValue);
              if (ddName.getId() == compId) {
                customFields += "<TR>\n";
                customFields += "<TD class=\"popupTableText\">" + fieldLabel + "</TD>";
                customFields += "<TD class=\"popupTableText\">" + ddName.getName() + "</TD>";
                customFields += "</TR>";
              }
            }
          } // end if (vec != null)
        } // end if (fieldType.equals("SCALAR"))
      } // end while (it.hasNext())

      // Setting the Values in the Values Map
      TreeMap Values = new TreeMap();
      Values.put("--TicketNumber--", new Integer(tVO.getId()).toString());

      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
      Vector statusVec = gml.getAllStatus();
      if (statusVec != null) {
        for (int j = 0; j < statusVec.size(); j++) {
          DDNameValue ddName = (DDNameValue) statusVec.get(j);
          int compId = tVO.getStatusId();
          if (ddName.getId() == compId) {
            Values.put("--Status--", ddName.getName());
          }
        }
      } // end if (vec != null)

      Vector priorityVec = gml.getAllPriorities();
      if (priorityVec != null) {
        for (int j = 0; j < priorityVec.size(); j++) {
          DDNameValue ddName = (DDNameValue) priorityVec.get(j);
          int compId = tVO.getPriorityId();
          if (ddName.getId() == compId) {

            Values.put("--Priority--", ddName.getName());
          }
        }
      } // end if (priorityVec != null)

      Values.put("--Subject--", tVO.getTitle());
View Full Code Here

        int arrView[] = new int[l1 + l2];
        int arrBlank[] = {};

        if (iterRequired != null) {
          while (iterRequired.hasNext()) {
            DDNameValue nvalue = (DDNameValue)iterRequired.next();
            String strID = nvalue.getStrid();
            String arrStrings[] = strID.split("#");
            strID = arrStrings[0].trim();
            int id = Integer.parseInt(strID);
            arrView[arrIndex++] = id;
          }
        }

        if (iterOptional != null) {
          while (iterOptional.hasNext()) {
            DDNameValue nvalue = (DDNameValue)iterOptional.next();
            String strID = nvalue.getStrid();
            String arrStrings[] = strID.split("#");
            strID = arrStrings[0].trim();
            int id = Integer.parseInt(strID);
            arrView[arrIndex++] = id;
          }
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.