Package net.sf.mpxj.primavera.schema

Examples of net.sf.mpxj.primavera.schema.GlobalPreferencesType


      header.setStartDate(project.getPlannedStartDate());
     
      List<GlobalPreferencesType> list = apibo.getGlobalPreferences();
      if (!list.isEmpty())
      {
         GlobalPreferencesType prefs = list.get(0);

         header.setCreationDate(getValue(prefs.getCreateDate()));
         header.setLastSaved(getValue(prefs.getLastUpdateDate()));
         header.setMinutesPerDay(Integer.valueOf((int) (NumberUtility.getDouble(prefs.getHoursPerDay()) * 60)));
         header.setMinutesPerWeek(Integer.valueOf((int) (NumberUtility.getDouble(prefs.getHoursPerWeek()) * 60)));
         header.setWeekStartDay(Day.getInstance(NumberUtility.getInt(prefs.getStartDayOfWeek())));

         List<CurrencyType> currencyList = apibo.getCurrency();
         for (CurrencyType currency : currencyList)
         {
            if (currency.getObjectId().equals(prefs.getBaseCurrencyObjectId()))
            {
               header.setCurrencySymbol(currency.getSymbol());
               break;
            }
         }
View Full Code Here

TOP

Related Classes of net.sf.mpxj.primavera.schema.GlobalPreferencesType

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.