this.banqueAppreciation = cfg.banqueAppreciation;
this.periodeModel = cfg.periodeModel;
this.eleveModel = cfg.eleveModel;
- this.graphTdn = cfg.graphTdn;
this.initSaisie();
this.initAffichage();
this.initGraphCompnents();
- this.initGraphTdnWindow();
this.items = [this.getMainItem()];
},
- initGraphTdnWindow: function() {
-
- var view = this;
-
- var graphTdnWindow = new Ext.Window({
- layout:'fit',
- width:800,
- height:500,
- closeAction:'hide',
- plain: true,
- modal: true,
- items: [
- {
- border: false,
- frame: false,
- layout: 'border',
- items: [
- {
- border: false,
- frame: false,
- region: 'center',
- layout: 'fit',
-
- items: this.graphTdn.getItems()
- },
- {
- region: 'east',
- xtype: 'panel',
-
- border: false,
- frame : false,
- layout : 'border',
- split: true,
- width: 200,
- minSize: 20,
- collapseMode: 'mini',
-
- items: [
- {
- cls: 'legendcb',
- region: 'north',
- border: false,
- frame : false,
- height: 100,
- items: []
- },
- {
- region: 'center',
- border: false,
- frame : false,
- layout : 'fit',
- items: [
- this.graphTdn.getLegendItem()
- ]
- }
- ]
- }
- ]
- }
- ],
- buttonAlign: 'left',
- buttons: [
- {
- icon: this.ConfigServeur.icon.graphEtoile,
- tooltip: this.ConfigServeur.libelle.graphEtoile,
- toggleGroup: 'graphTdn',
- allowDepress: false,
- pressed: true,
- handler: function() {
- view.graphTdn.toggleGraphEtoile();
- }
- },
- {
- icon: this.ConfigServeur.icon.graphEleveClasseCompare,
- tooltip: this.ConfigServeur.libelle.graphEleveClasseCompare,
- toggleGroup: 'graphTdn',
- allowDepress: false,
- handler: function() {
- view.graphTdn.toggleGraphEleveClasseCompare();
- }
- },
- '->',
- {
- text: this.ConfigServeur.libelle.fermer,
- handler: function() {
- graphTdnWindow.hide();
- }
- },
- {
- text: this.ConfigServeur.libelle.imprimer,
- handler: function() {
- view.graphTdn.imprime();
- }
- }
- ]
- });
- this.graphTdnWindow = graphTdnWindow;
- },
-
/**
* Initialise la saisie
*/
}
}
- var controller = this.config.controller;
-
// Graph
var graph = new eliot.notes.consultation.commun.graph.Composant({
- onClick: function(event, element, graphConfig) {
- controller.onGraphClick(event, element, graphConfig);
- },
-
dataFilter: function(data) {
if (periodes != null) {
var filter = false;