Examples of Kost2Art


Examples of org.projectforge.reporting.Kost2Art

      final RepeatingView kost2artColsRepeater = new RepeatingView("kost2artCols");
      rowItem.add(kost2artColsRepeater);
      for (int i = 0; i < 2 && it.hasNext() == true; i++) {
        final WebMarkupContainer colItem = new WebMarkupContainer(kost2artColsRepeater.newChildId());
        kost2artColsRepeater.add(colItem);
        final Kost2Art kost2Art = it.next();
        String style = null;
        if (kost2Art.isExistsAlready() == true) {
          if (kost2Art.isProjektStandard() == true) {
            style = "color: green;";
          }
        } else {
          if (kost2Art.isProjektStandard() == true) {
            style = "color: red;";
          }
        }
        final CheckBox checkBox = new CheckBox("kost2artSelect", new PropertyModel<Boolean>(kost2Art, "selected"));
        colItem.add(checkBox);
        final IconPanel image = new IconPanel("acceptImage", IconType.ACCEPT);
        image.setTooltip(new ResourceModel("fibu.projekt.edit.kost2DoesAlreadyExists"));
        colItem.add(image);
        if (kost2Art.isExistsAlready() == true) {
          checkBox.setVisible(false);
        } else {
          image.setVisibilityAllowed(false);
        }
        final Label kost2artNummerLabel = new Label("kost2artNummer", StringHelper.format2DigitNumber(kost2Art.getId()));
        colItem.add(kost2artNummerLabel);
        final Label kost2artNameLabel = new Label("kost2artName", kost2Art.isFakturiert() == true ? kost2Art.getName() : kost2Art.getName()
            + " (nf)");
        colItem.add(kost2artNameLabel);
        if (style != null) {
          kost2artNummerLabel.add(AttributeModifier.replace("style", style));
          kost2artNameLabel.add(AttributeModifier.replace("style", style));
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.