* un lovCombo classes et un boutons de recherche
* @param config.lovComboStore le store de lovComboBox
*/
- constructor: function(config) {
+ constructor:function (config) {
// Variables
this.NameSpace = eliot.absences.statistique.tableaudebord;
this.Modele = this.NameSpace.Modele;
this.addEvents(
- /**
- * @event actionRechercher est déclenché quand on clique sur bouton chercher
- */
+ /**
+ * @event actionRechercher est déclenché quand on clique sur bouton chercher
+ */
this.NameSpace.Constantes.eventId.actionRechercher
- );
+ );
/*************************** Dates *******************************/
- // Date début view
+ // Date début view
this.dateDebutView = new eliot.absences.commons.DateView({
- date : config.dateDebut,
- anneeScolaire : this.Modele.data.anneeScolaire,
- fieldLabel : this.Modele.libelle.dateDebut,
- champObligatoir : false
+ date:config.dateDebut,
+ anneeScolaire:this.Modele.data.anneeScolaire,
+ fieldLabel:this.Modele.libelle.dateDebut,
+ champObligatoir:false
});
// Date fin view
this.dateFinView = new eliot.absences.commons.DateView({
- date : config.dateFin.format('d/m/Y'),
- anneeScolaire : this.Modele.data.anneeScolaire,
- fieldLabel : this.Modele.libelle.dateFin,
- champObligatoir : false
+ date:config.dateFin.format('d/m/Y'),
+ anneeScolaire:this.Modele.data.anneeScolaire,
+ fieldLabel:this.Modele.libelle.dateFin,
+ champObligatoir:false
});
/*************************** Classes *****************************/
- // LovCombo view
+ // LovCombo view
this.classeView = new eliot.absences.commons.LovComboView({
- ajoutItemTous : true,
- store : config.lovComboStore,
- fieldLabel : this.Modele.libelle.classes,
- width : 200,
- valeurInitiale : '-1'
+ ajoutItemTous:true,
+ store:config.lovComboStore,
+ fieldLabel:this.Modele.libelle.classes,
+ width:200,
+ valeurInitiale:'-1'
});
/*************************** Sélecteur de seuil ****************/
this.selectionView = new this.NameSpace.SelectionSeuilView({
- typeAbsenceStore: config.typeAbsenceStore
+ typeAbsenceStore:config.typeAbsenceStore
});
/***************************Affichage en heures*******************/
}
this.absencesEnHeuresView = new eliot.absences.commons.CheckBoxView({
- isEntiteEffectuee : undefined,
- libelle : this.Modele.libelle.enHeure,
- invisible : this.invisible
+ isEntiteEffectuee:undefined,
+ libelle:this.Modele.libelle.enHeure,
+ invisible:this.invisible
});
/**
* Construction du toolbar
*/
- getConfigToolBar : function(config) {
+ getConfigToolBar:function (config) {
return {
frame:true,
- labelAlign : 'right',
+ labelAlign:'right',
bodyStyle:'padding:5px 5px 5px',
- items : [
+ items:[
{
- layout : 'column',
- items : [
+ layout:'column',
+ items:[
{
- width : 310,
- layout: 'form',
- labelWidth: 100,
- items : [
+ width:310,
+ layout:'form',
+ labelWidth:100,
+ items:[
this.dateDebutView.dateField,
this.classeView.lovCombo
]
},
{
- width : 380,
- layout: 'form',
- labelWidth: 80,
- items : [
+ width:350,
+ layout:'form',
+ labelWidth:80,
+ items:[
this.dateFinView.dateField,
this.selectionView.selector
]
},
{
- width:200,
- items : [
+ width:240,
+ items:[
{
- layout : 'column',
- items : [
+ layout:'column',
+ items:[
{
xtype:'button',
- width : 100,
- text: this.Modele.libelle.chercher,
- icon: this.Modele.icon.urlImageRechercher,
- handler : function () {
+ width:80,
+ text:this.Modele.libelle.chercher,
+ icon:this.Modele.icon.urlImageRechercher,
+ handler:function () {
this.fireEvent(
this.NameSpace.Constantes.eventId.actionRechercher
- );
+ );
},
- scope : this
+ scope:this
},
{
- bodyStyle : 'paddingLeft:30px;',
- items : config.boutonExportCsv
+ bodyStyle:'paddingLeft:20px;',
+ items:config.boutonImprimer
+ },
+ {
+ bodyStyle:'paddingLeft:20px;',
+ items:config.boutonExportCsv
}
]
},
{
- style: {
- marginTop: '5px'
+ style:{
+ marginTop:'5px'
},
- items: this.absencesEnHeuresView.checkBox
+ items:this.absencesEnHeuresView.checkBox
}
]
}