Examples of BusinessAssessmentRow


Examples of org.projectforge.fibu.kost.BusinessAssessmentRow

      int col = 0;
      for (final LabelValueBean<String, BusinessAssessment> lv : businessAssessmentTable.getBusinessAssessmentList()) {
        // So display the row for every BusinessAssessment:
        final String reportId = lv.getLabel();
        final BusinessAssessment businessAssessment = lv.getValue();
        final BusinessAssessmentRow businessAssessmentRow = businessAssessment.getRow(firstBusinessAssessmentRow.getId());
        final WebMarkupContainer item = new WebMarkupContainer(cellRepeater.newChildId());
        cellRepeater.add(item);
        buf = new StringBuffer();
        buf.append("text-align: right; white-space: nowrap;");
        if (col++ == 0) {
          buf.append(" font-weight: bold;");
        }
        final BigDecimal amount = businessAssessmentRow.getAmount();
        if (amount != null && amount.compareTo(BigDecimal.ZERO) < 0) {
          buf.append(" color: red;");
        }
        item.add(AttributeModifier.replace("style", buf.toString()));
        item.add(new PlainLabel("bwaWert", NumberHelper.isNotZero(businessAssessmentRow.getAmount()) == true ? CurrencyFormatter
            .format(businessAssessmentRow.getAmount()) : ""));
        item.add(new SubmitLink("showAccountingRecordsLink") {
          @Override
          public void onSubmit()
          {
            setResponsePage(new AccountingRecordListPage(
                AccountingRecordListPage.getPageParameters(reportId, businessAssessmentRow.getNo())));
          }
        });
      }
    }
  }
View Full Code Here

Examples of org.projectforge.fibu.kost.BusinessAssessmentRow

      final ReportStorage reportStorage = (ReportStorage) getUserPrefEntry(ReportObjectivesPage.KEY_REPORT_STORAGE);
      if (reportStorage != null) {
        report = reportStorage.findById(this.reportId);
        if (report != null) {
          if (this.businessAssessmentRowId != null) {
            final BusinessAssessmentRow row = report.getBusinessAssessment().getRow(businessAssessmentRowId);
            if (row != null) {
              list = row.getAccountRecords();
            } else {
              log.info("Business assessment row "
                  + businessAssessmentRowId
                  + " not found for report with id '"
                  + reportId
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.