// exemple de constructeur pour une liste (beneficiaire-list, StandardViewTableProxy)
constructor(beneficiaireService : BeneficiaireService, protected msModalService : MsModalService) {
super(beneficiaireService,{headers:MsTableHeaders.ACTIONS,
searchFields:['nomComplet_PersPhysiqueR','prenom_PersPhysiqueR','nom_ParamCommuneR'],
events:[MsTableEvents.ONROWCLICK],
actionsIcons:{TRANSMISSION:'fas fa-paper-plane'},
emptyParams: {message:'app.module.beneficiairelist.aucunedonnee', icon: 'fas fa-users'},
fakeMetas:[{id:'resume',lib:null,aff:MsBool.TRUE,typeHTML:TypeHtml.PARAGRAPH},
{id:'groupe',lib:null,aff:MsBool.TRUE,typeHTML:TypeHtml.PARAGRAPH},
{id:'coordonnees',lib:null,aff:MsBool.TRUE,typeHTML:TypeHtml.PARAGRAPH},
{id:'situation',lib:null,aff:MsBool.TRUE,typeHTML:TypeHtml.PARAGRAPH}],
colWidthParams:{resume:25,groupe:25,coordonnees:25,situation:25},
selectionActive:true,
id:'idAffaire_VueBenefContratR'
},
{libelleEcran:"app.benef.benef"})
}
// utilisation d'une vue de type GET
// on passe un dataSource au lieu de faire appel à un getUpdate ou autre
constructor(coreServicesProvider: CoreServicesProvider, public benefEvalServProv: BeneficiaireEvaluationServicesProvider,
public msFichierService: MsFichierService, private sanitizer : DomSanitizer,
public benefEvalAggirServ: BeneficiaireEvaluationAggirService) {
super(coreServicesProvider, {forms: ['defaultForm'], libelleEcran: 'app.module.evaluationbenef.modification',
horodatage: {codeRessource:'EVALUATION', idRessource: coreServicesProvider.routerGlobals.params.id_EvalPersR},
dataParams: {dataType:ViewDataType.GET,
hasApiParam: false,
dataSource: benefEvalServProv.beneficiaireEvaluationService.getResume(coreServicesProvider.routerGlobals.params.id_EvalPersR),
beanIds: ["id_EvalPersR"]}
}, benefEvalServProv.beneficiaireEvaluationService, benefEvalServProv.msModalService);
}