code
stringlengths
73
34.1k
label
stringclasses
1 value
private void writeAssignmentTimephasedData(ResourceAssignment mpx, Project.Assignments.Assignment xml) { if (m_writeTimphasedData && mpx.getHasTimephasedData()) { List<TimephasedDataType> list = xml.getTimephasedData(); ProjectCalendar calendar = mpx.getCalendar(); BigInteger a...
java
private void writeAssignmentTimephasedData(BigInteger assignmentID, List<TimephasedDataType> list, List<TimephasedWork> data, int type) { for (TimephasedWork mpx : data) { TimephasedDataType xml = m_factory.createTimephasedDataType(); list.add(xml); xml.setStart(mpx.getStart()...
java
private List<AssignmentField> getAllAssignmentExtendedAttributes() { ArrayList<AssignmentField> result = new ArrayList<AssignmentField>(); result.addAll(Arrays.asList(AssignmentFieldLists.CUSTOM_COST)); result.addAll(Arrays.asList(AssignmentFieldLists.CUSTOM_DATE)); result.addAll(Arrays.asLis...
java
private List<TaskField> getAllTaskExtendedAttributes() { ArrayList<TaskField> result = new ArrayList<TaskField>(); result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_TEXT)); result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_START)); result.addAll(Arrays.asList(TaskFieldLists.CUSTOM_FINISH)); ...
java
private List<ResourceField> getAllResourceExtendedAttributes() { ArrayList<ResourceField> result = new ArrayList<ResourceField>(); result.addAll(Arrays.asList(ResourceFieldLists.CUSTOM_TEXT)); result.addAll(Arrays.asList(ResourceFieldLists.CUSTOM_START)); result.addAll(Arrays.asList(ResourceF...
java
private void processUDF(UDFTypeType udf) { FieldTypeClass fieldType = FIELD_TYPE_MAP.get(udf.getSubjectArea()); if (fieldType != null) { UserFieldDataType dataType = UserFieldDataType.getInstanceFromXmlName(udf.getDataType()); String name = udf.getTitle(); FieldType field...
java
private FieldType addUserDefinedField(FieldTypeClass fieldType, UserFieldDataType dataType, String name) { FieldType field = null; try { switch (fieldType) { case TASK: { do { field = m_taskUdfCounters....
java
private Double zeroIsNull(Double value) { if (value != null && value.doubleValue() == 0) { value = null; } return value; }
java
private Duration getDuration(Double duration) { Duration result = null; if (duration != null) { result = Duration.getInstance(NumberHelper.getDouble(duration), TimeUnit.HOURS); } return result; }
java
private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs) { for (UDFAssignmentType udf : udfs) { FieldType fieldType = m_fieldTypeMap.get(Integer.valueOf(udf.getTypeObjectId())); if (fieldType != null) { mpxj.set(fieldType, getUdfValue(udf)); ...
java
private Object getUdfValue(UDFAssignmentType udf) { if (udf.getCostValue() != null) { return udf.getCostValue(); } if (udf.getDoubleValue() != null) { return udf.getDoubleValue(); } if (udf.getFinishDateValue() != null) { return...
java
private Integer mapTaskID(Integer id) { Integer mappedID = m_clashMap.get(id); if (mappedID == null) { mappedID = id; } return (mappedID); }
java
public int evaluate(FieldContainer container) { // // First step - determine the list of criteria we are should use // List<GraphicalIndicatorCriteria> criteria; if (container instanceof Task) { Task task = (Task) container; if (NumberHelper.getInt(task.getUnique...
java
private void writeFileCreationRecord() throws IOException { ProjectProperties properties = m_projectFile.getProjectProperties(); m_buffer.setLength(0); m_buffer.append("MPX"); m_buffer.append(m_delimiter); m_buffer.append(properties.getMpxProgramName()); m_buffer.append(m_delimit...
java
private void writeCalendar(ProjectCalendar record) throws IOException { // // Test used to ensure that we don't write the default calendar used for the "Unassigned" resource // if (record.getParent() == null || record.getResource() != null) { m_buffer.setLength(0); if...
java
private void writeCalendarHours(ProjectCalendar parentCalendar, ProjectCalendarHours record) throws IOException { m_buffer.setLength(0); int recordNumber; if (!parentCalendar.isDerived()) { recordNumber = MPXConstants.BASE_CALENDAR_HOURS_RECORD_NUMBER; } else { ...
java
private void writeResource(Resource record) throws IOException { m_buffer.setLength(0); // // Write the resource record // int[] fields = m_resourceModel.getModel(); m_buffer.append(MPXConstants.RESOURCE_RECORD_NUMBER); for (int loop = 0; loop < fields.length; loop++) ...
java
private void writeNotes(int recordNumber, String text) throws IOException { m_buffer.setLength(0); m_buffer.append(recordNumber); m_buffer.append(m_delimiter); if (text != null) { String note = stripLineBreaks(text, MPXConstants.EOL_PLACEHOLDER_STRING); boolean quote...
java
private void writeResourceAssignment(ResourceAssignment record) throws IOException { m_buffer.setLength(0); m_buffer.append(MPXConstants.RESOURCE_ASSIGNMENT_RECORD_NUMBER); m_buffer.append(m_delimiter); m_buffer.append(formatResource(record.getResource())); m_buffer.append(m_delimiter)...
java
private void writeResourceAssignmentWorkgroupFields(ResourceAssignmentWorkgroupFields record) throws IOException { m_buffer.setLength(0); m_buffer.append(MPXConstants.RESOURCE_ASSIGNMENT_WORKGROUP_FIELDS_RECORD_NUMBER); m_buffer.append(m_delimiter); m_buffer.append(format(record.getMessageUn...
java
private void writeTasks(List<Task> tasks) throws IOException { for (Task task : tasks) { writeTask(task); writeTasks(task.getChildTasks()); } }
java
private Integer getIntegerTimeInMinutes(Date date) { Integer result = null; if (date != null) { Calendar cal = DateHelper.popCalendar(date); int time = cal.get(Calendar.HOUR_OF_DAY) * 60; time += cal.get(Calendar.MINUTE); DateHelper.pushCalendar(cal); re...
java
private String escapeQuotes(String value) { StringBuilder sb = new StringBuilder(); int length = value.length(); char c; sb.append('"'); for (int index = 0; index < length; index++) { c = value.charAt(index); sb.append(c); if (c == '"') { ...
java
private String stripLineBreaks(String text, String replacement) { if (text.indexOf('\r') != -1 || text.indexOf('\n') != -1) { StringBuilder sb = new StringBuilder(text); int index; while ((index = sb.indexOf("\r\n")) != -1) { sb.replace(index, index + 2, ...
java
private String format(Object o) { String result; if (o == null) { result = ""; } else { if (o instanceof Boolean == true) { result = LocaleData.getString(m_locale, (((Boolean) o).booleanValue() == true ? LocaleData.YES : LocaleData.NO)); ...
java
private void stripTrailingDelimiters(StringBuilder buffer) { int index = buffer.length() - 1; while (index > 0 && buffer.charAt(index) == m_delimiter) { --index; } buffer.setLength(index + 1); }
java
private String formatTime(Date value) { return (value == null ? null : m_formats.getTimeFormat().format(value)); }
java
private String formatCurrency(Number value) { return (value == null ? null : m_formats.getCurrencyFormat().format(value)); }
java
private String formatUnits(Number value) { return (value == null ? null : m_formats.getUnitsDecimalFormat().format(value.doubleValue() / 100)); }
java
private String formatDateTimeNull(Date value) { return (value == null ? m_formats.getNullText() : m_formats.getDateTimeFormat().format(value)); }
java
private String formatPercentage(Number value) { return (value == null ? null : m_formats.getPercentageDecimalFormat().format(value) + "%"); }
java
private String formatAccrueType(AccrueType type) { return (type == null ? null : LocaleData.getStringArray(m_locale, LocaleData.ACCRUE_TYPES)[type.getValue() - 1]); }
java
private String formatConstraintType(ConstraintType type) { return (type == null ? null : LocaleData.getStringArray(m_locale, LocaleData.CONSTRAINT_TYPES)[type.getValue()]); }
java
private String formatDuration(Object value) { String result = null; if (value instanceof Duration) { Duration duration = (Duration) value; result = m_formats.getDurationDecimalFormat().format(duration.getDuration()) + formatTimeUnit(duration.getUnits()); } return resul...
java
private String formatRate(Rate value) { String result = null; if (value != null) { StringBuilder buffer = new StringBuilder(m_formats.getCurrencyFormat().format(value.getAmount())); buffer.append("/"); buffer.append(formatTimeUnit(value.getUnits())); result = buf...
java
private String formatPriority(Priority value) { String result = null; if (value != null) { String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES); int priority = value.getValue(); if (priority < Priority.LOWEST) { pri...
java
private String formatTaskType(TaskType value) { return (LocaleData.getString(m_locale, (value == TaskType.FIXED_DURATION ? LocaleData.YES : LocaleData.NO))); }
java
private String formatRelationList(List<Relation> value) { String result = null; if (value != null && value.size() != 0) { StringBuilder sb = new StringBuilder(); for (Relation relation : value) { if (sb.length() != 0) { sb.append(m_...
java
private String formatRelation(Relation relation) { String result = null; if (relation != null) { StringBuilder sb = new StringBuilder(relation.getTargetTask().getID().toString()); Duration duration = relation.getLag(); RelationType type = relation.getType(); do...
java
private String formatTimeUnit(TimeUnit timeUnit) { int units = timeUnit.getValue(); String result; String[][] unitNames = LocaleData.getStringArrays(m_locale, LocaleData.TIME_UNITS_ARRAY); if (units < 0 || units >= unitNames.length) { result = ""; } else { ...
java
@SuppressWarnings("unchecked") private Object formatType(DataType type, Object value) { switch (type) { case DATE: { value = formatDateTime(value); break; } case CURRENCY: { value = formatCurrency((Number) value); ...
java
public final boolean getBoolean(String name) { boolean result = false; Boolean value = (Boolean) getObject(name); if (value != null) { result = BooleanHelper.getBoolean(value); } return result; }
java
public InputStream getInstance(DirectoryEntry directory, String name) throws IOException { DocumentEntry entry = (DocumentEntry) directory.getEntry(name); InputStream stream; if (m_encrypted) { stream = new EncryptedDocumentInputStream(entry, m_encryptionCode); } else ...
java
private TaskField getTaskField(int field) { TaskField result = MPPTaskField14.getInstance(field); if (result != null) { switch (result) { case START_TEXT: { result = TaskField.START; break; } case FINI...
java
public void updateUniqueCounters() { // // Update task unique IDs // for (Task task : m_parent.getTasks()) { int uniqueID = NumberHelper.getInt(task.getUniqueID()); if (uniqueID > m_taskUniqueID) { m_taskUniqueID = uniqueID; } } ...
java
public static Date min(Date d1, Date d2) { Date result; if (d1 == null) { result = d2; } else if (d2 == null) { result = d1; } else { result = (d1.compareTo(d2) < 0) ? d1 : d2; } return result; ...
java
public static Date max(Date d1, Date d2) { Date result; if (d1 == null) { result = d2; } else if (d2 == null) { result = d1; } else { result = (d1.compareTo(d2) > 0) ? d1 : d2; } return result; ...
java
public static Duration getVariance(Task task, Date date1, Date date2, TimeUnit format) { Duration variance = null; if (date1 != null && date2 != null) { ProjectCalendar calendar = task.getEffectiveCalendar(); if (calendar != null) { variance = calendar.getWor...
java
public static Date getDateFromLong(long date) { TimeZone tz = TimeZone.getDefault(); return (new Date(date - tz.getRawOffset())); }
java
public static Date getTimestampFromLong(long timestamp) { TimeZone tz = TimeZone.getDefault(); Date result = new Date(timestamp - tz.getRawOffset()); if (tz.inDaylightTime(result) == true) { int savings; if (HAS_DST_SAVINGS == true) { savings = tz.getD...
java
public static Date getTime(int hour, int minutes) { Calendar cal = popCalendar(); cal.set(Calendar.HOUR_OF_DAY, hour); cal.set(Calendar.MINUTE, minutes); cal.set(Calendar.SECOND, 0); Date result = cal.getTime(); pushCalendar(cal); return result; }
java
public static void setTime(Calendar cal, Date time) { if (time != null) { Calendar startCalendar = popCalendar(time); cal.set(Calendar.HOUR_OF_DAY, startCalendar.get(Calendar.HOUR_OF_DAY)); cal.set(Calendar.MINUTE, startCalendar.get(Calendar.MINUTE)); cal.set(Calendar....
java
public static Date setTime(Date date, Date canonicalTime) { Date result; if (canonicalTime == null) { result = date; } else { // // The original naive implementation of this method generated // the "start of day" date (midnight) for the required...
java
public static Date addDays(Date date, int days) { Calendar cal = popCalendar(date); cal.add(Calendar.DAY_OF_YEAR, days); Date result = cal.getTime(); pushCalendar(cal); return result; }
java
public static Calendar popCalendar() { Calendar result; Deque<Calendar> calendars = CALENDARS.get(); if (calendars.isEmpty()) { result = Calendar.getInstance(); } else { result = calendars.pop(); } return result; }
java
public List<MapRow> read() throws IOException { List<MapRow> result = new ArrayList<MapRow>(); int fileCount = m_stream.readInt(); if (fileCount != 0) { for (int index = 0; index < fileCount; index++) { // We use a LinkedHashMap to preserve insertion order in ite...
java
protected int readByte(InputStream is) throws IOException { byte[] data = new byte[1]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getByte(data, 0)); }
java
protected int readShort(InputStream is) throws IOException { byte[] data = new byte[2]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getShort(data, 0)); }
java
protected int readInt(InputStream is) throws IOException { byte[] data = new byte[4]; if (is.read(data) != data.length) { throw new EOFException(); } return (MPPUtility.getInt(data, 0)); }
java
protected byte[] readByteArray(InputStream is, int size) throws IOException { byte[] buffer = new byte[size]; if (is.read(buffer) != buffer.length) { throw new EOFException(); } return (buffer); }
java
public int blast(InputStream input, OutputStream output) throws IOException { m_input = input; m_output = output; int lit; /* true if literals are coded */ int dict; /* log2(dictionary size) - 6 */ int symbol; /* decoded symbol, extra bits for distance */ int len; /* length for c...
java
private int decode(Huffman h) throws IOException { int len; /* current number of bits in code */ int code; /* len bits being decoded */ int first; /* first code of length len */ int count; /* number of codes of length len */ int index; /* index of first code of length len in symbol tabl...
java
private void validateSameDay(ProjectCalendar calendar, LinkedList<TimephasedWork> list) { for (TimephasedWork assignment : list) { Date assignmentStart = assignment.getStart(); Date calendarStartTime = calendar.getStartTime(assignmentStart); Date assignmentStartTime = DateHelpe...
java
public Table createTable(ProjectFile file, byte[] data, VarMeta varMeta, Var2Data varData) { Table table = new Table(); table.setID(MPPUtility.getInt(data, 0)); table.setResourceFlag(MPPUtility.getShort(data, 108) == 1); table.setName(MPPUtility.removeAmpersands(MPPUtility.getUnicodeString(d...
java
private final boolean parseBoolean(String value) { return value != null && (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("y") || value.equalsIgnoreCase("yes")); }
java
public void processActivityCodes(List<Row> types, List<Row> typeValues, List<Row> assignments) { ActivityCodeContainer container = m_project.getActivityCodes(); Map<Integer, ActivityCode> map = new HashMap<Integer, ActivityCode>(); for (Row row : types) { ActivityCode code = new Act...
java
public void processCalendar(Row row) { ProjectCalendar calendar = m_project.addCalendar(); Integer id = row.getInteger("clndr_id"); m_calMap.put(id, calendar); calendar.setName(row.getString("clndr_name")); try { calendar.setMinutesPerDay(Integer.valueOf((int) NumberHel...
java
private void processCalendarDays(ProjectCalendar calendar, Record root) { // Retrieve working hours ... Record daysOfWeek = root.getChild("DaysOfWeek"); if (daysOfWeek != null) { for (Record dayRecord : daysOfWeek.getChildren()) { processCalendarHours(calendar, d...
java
private void processCalendarHours(ProjectCalendar calendar, Record dayRecord) { // ... for each day of the week Day day = Day.getInstance(Integer.parseInt(dayRecord.getField())); // Get hours List<Record> recHours = dayRecord.getChildren(); if (recHours.size() == 0) { // ...
java
private void addHours(ProjectCalendarDateRanges ranges, Record hoursRecord) { if (hoursRecord.getValue() != null) { String[] wh = hoursRecord.getValue().split("\\|"); try { String startText; String endText; if (wh[0].equals("s")) ...
java
private ProjectCalendar getResourceCalendar(Integer calendarID) { ProjectCalendar result = null; if (calendarID != null) { ProjectCalendar calendar = m_calMap.get(calendarID); if (calendar != null) { // // If the resource is linked to a base calend...
java
private FieldType getActivityIDField(Map<FieldType, String> map) { FieldType result = null; for (Map.Entry<FieldType, String> entry : map.entrySet()) { if (entry.getValue().equals("task_code")) { result = entry.getKey(); break; } } retu...
java
private void addUserDefinedField(FieldTypeClass fieldType, UserFieldDataType dataType, String name) { try { switch (fieldType) { case TASK: TaskField taskField; do { taskField = m_taskUdfCounters.nextField(TaskF...
java
private void addUDFValue(FieldTypeClass fieldType, FieldContainer container, Row row) { Integer fieldId = row.getInteger("udf_type_id"); String fieldName = m_udfFields.get(fieldId); Object value = null; FieldType field = m_project.getCustomFields().getFieldByAlias(fieldType, fieldName); ...
java
private void populateUserDefinedFieldValues(String tableName, FieldTypeClass type, FieldContainer container, Integer uniqueID) { Map<Integer, List<Row>> tableData = m_udfValues.get(tableName); if (tableData != null) { List<Row> udf = tableData.get(uniqueID); if (udf != null) ...
java
public void processDefaultCurrency(Row row) { ProjectProperties properties = m_project.getProjectProperties(); properties.setCurrencySymbol(row.getString("curr_symbol")); properties.setSymbolPosition(CURRENCY_SYMBOL_POSITION_MAP.get(row.getString("pos_curr_fmt_type"))); properties.setCurrency...
java
private void processFields(Map<FieldType, String> map, Row row, FieldContainer container) { for (Map.Entry<FieldType, String> entry : map.entrySet()) { FieldType field = entry.getKey(); String name = entry.getValue(); Object value; switch (field.getDataType()) ...
java
private void applyAliases(Map<FieldType, String> aliases) { CustomFieldContainer fields = m_project.getCustomFields(); for (Map.Entry<FieldType, String> entry : aliases.entrySet()) { fields.getCustomField(entry.getKey()).setAlias(entry.getValue()); } }
java
private Number calculatePercentComplete(Row row) { Number result; switch (PercentCompleteType.getInstance(row.getString("complete_pct_type"))) { case UNITS: { result = calculateUnitsPercentComplete(row); break; } case DURATION: {...
java
private Number calculateUnitsPercentComplete(Row row) { double result = 0; double actualWorkQuantity = NumberHelper.getDouble(row.getDouble("act_work_qty")); double actualEquipmentQuantity = NumberHelper.getDouble(row.getDouble("act_equip_qty")); double numerator = actualWorkQuantity + actua...
java
private Number calculateDurationPercentComplete(Row row) { double result = 0; double targetDuration = row.getDuration("target_drtn_hr_cnt").getDuration(); double remainingDuration = row.getDuration("remain_drtn_hr_cnt").getDuration(); if (targetDuration == 0) { if (remainingDu...
java
public static Map<FieldType, String> getDefaultResourceFieldMap() { Map<FieldType, String> map = new LinkedHashMap<FieldType, String>(); map.put(ResourceField.UNIQUE_ID, "rsrc_id"); map.put(ResourceField.GUID, "guid"); map.put(ResourceField.NAME, "rsrc_name"); map.put(ResourceField.COD...
java
public static Map<FieldType, String> getDefaultWbsFieldMap() { Map<FieldType, String> map = new LinkedHashMap<FieldType, String>(); map.put(TaskField.UNIQUE_ID, "wbs_id"); map.put(TaskField.GUID, "guid"); map.put(TaskField.NAME, "wbs_name"); map.put(TaskField.BASELINE_COST, "orig_cost"...
java
public static Map<FieldType, String> getDefaultTaskFieldMap() { Map<FieldType, String> map = new LinkedHashMap<FieldType, String>(); map.put(TaskField.UNIQUE_ID, "task_id"); map.put(TaskField.GUID, "guid"); map.put(TaskField.NAME, "task_name"); map.put(TaskField.ACTUAL_DURATION, "act_d...
java
public static Map<FieldType, String> getDefaultAssignmentFieldMap() { Map<FieldType, String> map = new LinkedHashMap<FieldType, String>(); map.put(AssignmentField.UNIQUE_ID, "taskrsrc_id"); map.put(AssignmentField.GUID, "guid"); map.put(AssignmentField.REMAINING_WORK, "remain_qty"); ma...
java
public static Map<FieldType, String> getDefaultAliases() { Map<FieldType, String> map = new HashMap<FieldType, String>(); map.put(TaskField.DATE1, "Suspend Date"); map.put(TaskField.DATE2, "Resume Date"); map.put(TaskField.TEXT1, "Code"); map.put(TaskField.TEXT2, "Activity Type"); ...
java
private static void filter(String filename, String filtername) throws Exception { ProjectFile project = new UniversalProjectReader().read(filename); Filter filter = project.getFilters().getFilterByName(filtername); if (filter == null) { displayAvailableFilters(project); } ...
java
private static void displayAvailableFilters(ProjectFile project) { System.out.println("Unknown filter name supplied."); System.out.println("Available task filters:"); for (Filter filter : project.getFilters().getTaskFilters()) { System.out.println(" " + filter.getName()); } ...
java
private static void processTaskFilter(ProjectFile project, Filter filter) { for (Task task : project.getTasks()) { if (filter.evaluate(task, null)) { System.out.println(task.getID() + "," + task.getUniqueID() + "," + task.getName()); } } }
java
private static void processResourceFilter(ProjectFile project, Filter filter) { for (Resource resource : project.getResources()) { if (filter.evaluate(resource, null)) { System.out.println(resource.getID() + "," + resource.getUniqueID() + "," + resource.getName()); ...
java
public void process(String inputFile, String outputFile) throws Exception { System.out.println("Reading input file started."); long start = System.currentTimeMillis(); ProjectFile projectFile = readFile(inputFile); long elapsed = System.currentTimeMillis() - start; System.out.println("R...
java
private ProjectFile readFile(String inputFile) throws MPXJException { ProjectReader reader = new UniversalProjectReader(); ProjectFile projectFile = reader.read(inputFile); if (projectFile == null) { throw new IllegalArgumentException("Unsupported file type"); } return pr...
java
private void readProjectProperties(Settings phoenixSettings, Storepoint storepoint) { ProjectProperties mpxjProperties = m_projectFile.getProjectProperties(); mpxjProperties.setName(phoenixSettings.getTitle()); mpxjProperties.setDefaultDurationUnits(phoenixSettings.getBaseunit()); mpxjPropert...
java
private void readCalendars(Storepoint phoenixProject) { Calendars calendars = phoenixProject.getCalendars(); if (calendars != null) { for (Calendar calendar : calendars.getCalendar()) { readCalendar(calendar); } ProjectCalendar defaultCalendar = m_pr...
java
private void readCalendar(Calendar calendar) { // Create the calendar ProjectCalendar mpxjCalendar = m_projectFile.addCalendar(); mpxjCalendar.setName(calendar.getName()); // Default all days to working for (Day day : Day.values()) { mpxjCalendar.setWorkingDay(day, true)...
java
private void readResources(Storepoint phoenixProject) { Resources resources = phoenixProject.getResources(); if (resources != null) { for (net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource res : resources.getResource()) { Resource resource = ...
java
private Resource readResource(net.sf.mpxj.phoenix.schema.Project.Storepoints.Storepoint.Resources.Resource phoenixResource) { Resource mpxjResource = m_projectFile.addResource(); TimeUnit rateUnits = phoenixResource.getMonetarybase(); if (rateUnits == null) { rateUnits = TimeUnit.HO...
java
private void readTasks(Project phoenixProject, Storepoint storepoint) { processLayouts(phoenixProject); processActivityCodes(storepoint); processActivities(storepoint); updateDates(); }
java
private void processActivityCodes(Storepoint storepoint) { for (Code code : storepoint.getActivityCodes().getCode()) { int sequence = 0; for (Value value : code.getValue()) { UUID uuid = getUUID(value.getUuid(), value.getName()); m_activityCodeValues.put...
java
private void processLayouts(Project phoenixProject) { // // Find the active layout // Layout activeLayout = getActiveLayout(phoenixProject); // // Create a list of the visible codes in the correct order // for (CodeOption option : activeLayout.getCodeOptions().getCode...
java