var record = this.storeSaisie.getAt(0);
if ((record !== undefined) && (record !== null)) {
this.formSaisie.getForm().loadRecord(record);
- if (record.get('actif') !== false) {
- if (this.ConfigServeur.data.isDirection == true ||
- (this.ConfigServeur.data.isProfPrincipal == true &&
- this.ConfigServeur.data.isDatePublicationBulletinDepassee == false)) {
- this.appreciationTextArea.enable();
- this.banqueAppreciationBoutonEnregistrer.enable();
- this.avisType1ComboBox.enable();
- this.avisType2ComboBox.enable();
- }
+ if (this.ConfigServeur.data.isDirection == true ||
+ (this.ConfigServeur.data.isProfPrincipal == true &&
+ this.ConfigServeur.data.isDatePublicationBulletinDepassee == false)) {
+ this.appreciationTextArea.enable();
+ this.banqueAppreciationBoutonEnregistrer.enable();
+ this.avisType1ComboBox.enable();
+ this.avisType2ComboBox.enable();
}
}
function(store, records) {
if (records.length > 0) {
this.formSaisie.getForm().loadRecord(records[0]);
- if (records[0].get('actif') !== false &&
- (this.ConfigServeur.data.isDirection == true ||
+ if (this.ConfigServeur.data.isDirection == true ||
(this.ConfigServeur.data.isProfPrincipal == true &&
- records[0].get('isDatePublicationBulletinDepassee') == false))) {
+ records[0].get('isDatePublicationBulletinDepassee') == false)) {
this.appreciationTextArea.enable();
this.banqueAppreciationBoutonEnregistrer.enable();
this.banqueAppreciation.enable();