Package org.projectforge.calendar

Examples of org.projectforge.calendar.DayHolder


  static LiquidityForecast getForecast(final RechnungDao rechnungDao, final EingangsrechnungDao eingangsrechnungDao,
      final LiquidityEntryDao liquidityEntryDao)
  {
    final LiquidityForecast forecast = new LiquidityForecast();
    // Consider only invoices of the last year:
    final java.sql.Date fromDate = new DayHolder().add(Calendar.DAY_OF_YEAR, -365).getSQLDate();
    {
      final List<RechnungDO> paidInvoices = rechnungDao.getList(new RechnungFilter().setShowBezahlt().setFromDate(fromDate));
      forecast.calculateExpectedTimeOfPayments(paidInvoices);
      final List<RechnungDO> invoices = rechnungDao.getList(new RechnungFilter().setShowUnbezahlt());
      forecast.setInvoices(invoices);
View Full Code Here


  public LiquidityEntriesStatistics()
  {
    paid = open = total = BigDecimal.ZERO;
    counter = counterPaid = 0;
    today = new DayHolder().getDate();
  }
View Full Code Here

      buf.append(" ");
      appendCSSTime(buf, timePeriod.getFromDate(), renderType);
      if (timePeriod.getToDate() != null) {
        buf.append("-");
        appendCSSTime(buf, timePeriod.getToDate(), renderType);
        final DayHolder day = new DayHolder(timePeriod.getFromDate());
        if (day.isSameDay(timePeriod.getToDate()) == false) {
          if (multiLines == true) {
            buf.append("<br/>(");
          } else {
            buf.append(" (");
          }
View Full Code Here

TOP

Related Classes of org.projectforge.calendar.DayHolder

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.