private void bindModel(FicheStDto ficheStDto) {
if( ficheStDto == null ) {
return;
}
FormBinding binding = new FormBinding(formPanel);
//Auto binding fields
binding.autoBind();
binding.bind(ficheStDto);
//manually binding
binding.addFieldBinding(new FieldBinding(lot, combineProps(FicheStDto.LOT, LotDto.NAME)));
// binding.addFieldBinding(new FieldBinding(societe, combineProps(FicheStDto.SOCIETE, SocieteDto.NOM)));
binding.addFieldBinding(new FieldBinding(chantierName, combineProps(
FicheStDto.LOT, LotDto.CHANTIER, ChantierModel.NOM)));
binding.addFieldBinding(new FieldBinding(chantierNameHidden, combineProps(
FicheStDto.LOT, LotDto.CHANTIER, ChantierModel.NOM)));
binding.addFieldBinding(new FieldBinding(chantierId, combineProps(
FicheStDto.LOT, LotDto.CHANTIER, ChantierModel.ID)));
}