Package org.projectforge.fibu.kost

Examples of org.projectforge.fibu.kost.BusinessAssessmentTable


        });
      }
    }
    rowRepeater.removeAll();
    int row = 0;
    final BusinessAssessmentTable businessAssessmentTable = currentReport.getChildBusinessAssessmentTable(true);
    final BusinessAssessment firstBusinessAssessment = businessAssessmentTable.getBusinessAssessmentList().get(0).getValue();
    for (final BusinessAssessmentRow firstBusinessAssessmentRow : firstBusinessAssessment.getRows()) { // First BusinessAssessment for
      // getting meta data of
      // BusinessAssessment.
      if (priority.ordinal() > firstBusinessAssessmentRow.getPriority().ordinal()) {
        // Don't show all business assessment rows (priority is here a kind of verbose level).
        continue;
      }
      final WebMarkupContainer rowContainer = new WebMarkupContainer(rowRepeater.newChildId());
      rowRepeater.add(rowContainer);
      rowContainer.add(AttributeModifier.replace("class", (row++ % 2 == 0) ? "even" : "odd"));
      rowContainer.add(new Label("zeileNo", firstBusinessAssessmentRow.getNo()));
      StringBuffer buf = new StringBuffer();
      for (int i = 0; i < firstBusinessAssessmentRow.getIndent(); i++) {
        buf.append("&nbsp;&nbsp;");
      }
      buf.append(HtmlHelper.escapeXml(firstBusinessAssessmentRow.getTitle()));
      rowContainer.add(new Label("description", buf.toString()).setEscapeModelStrings(false));
      final RepeatingView cellRepeater = new RepeatingView("cellRepeater");
      rowContainer.add(cellRepeater);
      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());
View Full Code Here


  {
    if (businessAssessmentTable == null) {
      if (prependThisReport == false && hasChilds() == false) {
        return null;
      }
      businessAssessmentTable = new BusinessAssessmentTable();
      if (prependThisReport == true) {
        businessAssessmentTable.addBusinessAssessment(this.getId(), this.getBusinessAssessment());
      }
      if (hasChilds() == true) {
        for (final Report child : getChilds()) {
View Full Code Here

TOP

Related Classes of org.projectforge.fibu.kost.BusinessAssessmentTable

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.