Package com.structis.fichesst.shared.dto

Examples of com.structis.fichesst.shared.dto.SimpleDto


        List<FicheTransfertppDto> ficheTransfertppDtoList = new ArrayList<FicheTransfertppDto>();
        for( TransfertPpSummaryDto transfertPpSummary : transfertPpSummaryList ) {
          FicheTransfertppDto ficheTransfertppDto = new FicheTransfertppDto();
          ficheTransfertppDto.setObjectif(transfertPpSummary.getObjective());
          ficheTransfertppDto.setChantier(SyntheseMainPanel.this.chantier);
          SimpleDto refTransfertPp = new SimpleDto();
          refTransfertPp.setId(transfertPpSummary.getRefTransfertPpId());
          ficheTransfertppDto.setRefTransfertPp(refTransfertPp);
          ficheTransfertppDtoList.add(ficheTransfertppDto);
        }

        clientFicheStService.updateSynthese(chantier, ficheStList, ficheTransfertppDtoList, callback);
View Full Code Here


   
    NumberField pu = createNumberField(null);
    pu.setName(LigTransfertppModel.PU);
    formPanel.add(pu, new FormData(ANCHOR_SPEC));
    pu.setFieldLabel("PU");
    LigTransfertppModel dataModel = new LigTransfertppModel(new SimpleDto(1, "Obj"), "de");
    storeLigModel = new ListStore<LigTransfertppModel>();
    storeLigModel.add(dataModel);
    formPanel.add(typeBudj, new FormData(ANCHOR_SPEC));
    formBinding = new FormBinding(formPanel);
   
View Full Code Here

    final GestionDto dataModel = new GestionDto();
    dataModel.addChangeListener(new ChangeListener() {
      @Override
      public void modelChanged(ChangeEvent event) {
        SimpleDto m = dataModel.getMarche();
        if( m != null ) {
          dataModel.set(GestionDto.GROUPING, m.getLabel());
        }
      }
    });
    dataModel.initData();
    bindModel(formPanel, dataModel);
View Full Code Here

  protected GridCellRenderer<AbstractDto> createComboBoxRenderer() {
    GridCellRenderer<AbstractDto> comboBoxRenderer = new GridCellRenderer<AbstractDto>() {
      @Override
      public Object render(AbstractDto model, String property, ColumnData config, int rowIndex, int colIndex,
          ListStore<AbstractDto> store, Grid<AbstractDto> grid) {
        SimpleDto value = (SimpleDto) model.get(property);
        if( value == null ) {
          return null;
        }
        else {

          return value.getLabel();
        }
      }
    };

    return comboBoxRenderer;
View Full Code Here

  column.setEditor(editor);
  column.setRenderer(new GridCellRenderer<AbstractDto>() {

      @Override
      public Object render(AbstractDto model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<AbstractDto> store, Grid<AbstractDto> grid) {
    SimpleDto value = (SimpleDto) model.get(property);
    if (value == null) {
        return null;
    } else {
        return value.getLabel();
    }
      }
  });
  configs.add(column);
  column = new ColumnConfig();
View Full Code Here

      public Object execute(Object... inputs) throws Exception {
        RefTransfertPP ref = refTransfertppService.find(id);
        return ref;
      }
    };
    SimpleDto simple = (SimpleDto) callManager(manager, id);
    return simple;
  }
View Full Code Here

  };

  view.setGroupRenderer(new GridGroupRenderer() {
      @Override
      public String render(GroupColumnData data) {
    SimpleDto obj = (SimpleDto) data.gvalue;
    if (obj == null) {
        return "";
    }
    return obj.getLabel();
      }
  });

  view.setShowGroupedColumn(true);
  view.setForceFit(true);
View Full Code Here

    private static List<SimpleDto> createInforModelList(double totalObj, double totalTF, double totalTS, double totalRD) {
  NumberFormat numberFormat = NumberFormat.getFormat(Constants.NUMBER_FORMAT);
  List<SimpleDto> results = new ArrayList<SimpleDto>();

  SimpleDto model = new SimpleDto();
  model.setLabel("<label>" + messages.objective() + "</label>");
  model.setValue("<label>" + numberFormat.format(totalObj) + " &euro;</label>");
  results.add(model);

  model = new SimpleDto();
  model.setLabel("<label>" + messages.transferts() + "</label>");
  model.setValue("<label>" + numberFormat.format(totalTF) + " &euro;</label>");
  results.add(model);

  model = new SimpleDto();
  model.setLabel("<label>" + messages.rd() + "</label>");
  model.setValue("<label>" + numberFormat.format(totalTS) + " &euro;</label>");
  results.add(model);

  model = new SimpleDto();
  model.setLabel("<label>" + messages.ts() + "</label>");
  model.setValue("<label>" + numberFormat.format(totalRD) + " &euro;</label>");
  results.add(model);

  return results;
    }
View Full Code Here

TOP

Related Classes of com.structis.fichesst.shared.dto.SimpleDto

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.