meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| certif:procedure:develop:angular:validator [2026/05/21 11:36] – [Les différents dx-validator] nicolas | certif:procedure:develop:angular:validator [2026/05/21 11:50] (Version actuelle) – [Tests "manuels"] nicolas | ||
|---|---|---|---|
| Ligne 18: | Ligne 18: | ||
| * les validateurs " | * les validateurs " | ||
| * [[certif: | * [[certif: | ||
| - | |||
| - | ==== Test manuelle ==== | ||
| - | < | ||
| - | test_warning(){ | ||
| - | this.Notification.videWarning(); | ||
| - | if (this.personne.dateFinConservation) { | ||
| - | const aujourdhui = new Date(); aujourdhui.setHours(0, | ||
| - | if (this.personne.dateFinConservation && new Date(this.personne.dateFinConservation) < aujourdhui) { | ||
| - | this.Notification.ajouteWarning(' | ||
| - | else { | ||
| - | const bientot = new Date(); aujourdhui.setHours(0, | ||
| - | if (this.personne.dateFinConservation && new Date(this.personne.dateFinConservation) < bientot) { | ||
| - | this.Notification.ajouteWarning(' | ||
| - | } | ||
| - | } | ||
| - | } else {this.Notification.ajouteWarning(' | ||
| - | } | ||
| - | </ | ||
| - | |||
| ===== L' | ===== L' | ||
| Ligne 59: | Ligne 40: | ||
| } | } | ||
| </ | </ | ||
| + | | ||
| + | ==== Tests " | ||
| + | < | ||
| + | test_warning(){ | ||
| + | this.Notification.videWarning(); | ||
| + | if (this.personne.dateFinConservation) { | ||
| + | const aujourdhui = new Date(); aujourdhui.setHours(0, | ||
| + | if (this.personne.dateFinConservation && new Date(this.personne.dateFinConservation) < aujourdhui) { | ||
| + | this.Notification.ajouteWarning(' | ||
| + | else { | ||
| + | const bientot = new Date(); aujourdhui.setHours(0, | ||
| + | if (this.personne.dateFinConservation && new Date(this.personne.dateFinConservation) < bientot) { | ||
| + | this.Notification.ajouteWarning(' | ||
| + | } | ||
| + | } | ||
| + | } else {this.Notification.ajouteWarning(' | ||
| + | } | ||
| + | </ | ||
| + | \\ | ||
| + | < | ||
| + | private triggerValidation() { | ||
| + | this.Notification.analyseStockValidation(" | ||
| + | if ((this.SIREN=="" | ||
| + | this.Notification.ajouteErreur(" | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ==== Le service " | ==== Le service " | ||
| Il publie plusieurs fonctions : | Il publie plusieurs fonctions : | ||
| |analyseStockValidation(validateGroup: | |analyseStockValidation(validateGroup: | ||