<?xml version="1.0" encoding="ISO-8859-1"?>
<mx:Application 
	xmlns:mx="http://www.adobe.com/2006/mxml"
	xmlns:cti_control="CTI.technique.controls.*" 
	xmlns="*" 
	creationComplete="creationComplete()" 
	resize="resize()"
	styleName="CTIView"
	paddingTop="0" paddingBottom="0" paddingRight="0" paddingLeft="0"
	creationPolicy="all">

	<mx:Script>
		<![CDATA[
		
			import CTI.events.CTI_Event;
			import CTI.print.CTI_Print;
			import CTI.technique.controls.CTI_ChooseParamBox;
			import CTI.technique.CTI_ArrayCollection;
			import CTI.technique.CTI_ExcelUtilitaires;
			import CTI.technique.CTI_PDFUtilitaires;
			import CTI.technique.CTI_Progress;
			import CTI.technique.CTI_Utilitaires;
			import flash.display.DisplayObject;
			import flash.display.DisplayObjectContainer;
			import flash.events.Event;
			import flash.events.MouseEvent;
			import mx.collections.XMLListCollection;
			import mx.containers.VBox;
			import mx.controls.Alert;
			import mx.controls.DataGrid;
			import mx.controls.DateField;
			import mx.controls.Label;
			import mx.controls.RichTextEditor;
			import mx.controls.TextArea;
			import mx.controls.TextInput;
			import mx.core.IFlexDisplayObject;
			import mx.events.CloseEvent;
			import mx.events.ListEvent;
			import mx.events.ValidationResultEvent;
			import mx.formatters.DateFormatter;
			import mx.managers.PopUpManager;
			
			
			public var buildComplete:Boolean = false;
			
			[Embed(source="../../base/swf/CTI/images/24/print.png")]
			public var button_print24:Class;
			
			[Embed(source="../../base/swf/CTI/images/32/help-browser.png")]
			public static var question_class:Class;
			
			private var currentDisplayObject:DisplayObject;
			
			private var getOption:String;
			private var getParam:String = "";
			
			[Bindable]
			public var title:String = "Tables PMSI";
			public var titlePrint:String = "Tables PMSI";
			
			[Bindable]
			public var hasHelp:Boolean = false;
			
			private var viewName:String;
			private var tableName:String;
			
			
			[Bindable]
			private var has_refsettings:Boolean = false;
			
			
			[Bindable]
			private var tableCode:String;
			private var list_GUI:DataGrid;
			private var detailBox_GUI:VBox;
			private var texte_GUI:TextArea;
			
			[Bindable]
			private var list_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var ref_list_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			
			[Bindable]
            public var EXC_gravite_provider: Array = [
                {label:"Information", data:"0"} ,
				{label:"Avertissement", data:"5"} ,
				{label:"Erreur", data:"9" } ];
				
			[Bindable]
            public var EXC_date_provider: Array = [
                {label:"Année actuelle", data:"0"} ,
				{label:"Année précédente", data:"1"} ,
				{label:"12 mois glissants", data:"2" } ,
				{label:"Personnalisé...", data:"3" } ];
				
				
			[Bindable]
            public var EXC_mode:int = 0;
			
			[Bindable]
            public var qimport:Boolean = false;

			
			[Bindable]
			private var recordUpdated:Boolean = false;
			
			[Bindable]
			private var currendRecordItem:Object = null;
			
			private var DMS_ghm_couples_array:Array;
			private var DMS_ghm_currentImportIndex:int;
			private var DMS_ghm_dms_count:int;
			private var DMS_ghm_import_interval:uint;
			
			[Bindable]
			public var GHM_dms: Array = [ {label:"DMS 1", data:"1"}, {label:"DMS 2", data:"2"} ];
			
			[Bindable]
			public var GHS_types_tarif: Array = [ {label:"Privé", data:"PRIVE"}, {label:"Public", data:"PUBLIC"} ];
			private var GHS_date_tarif:String;
			[Bindable]
			private var GHS_tarifs_prives:CTI_ArrayCollection = new CTI_ArrayCollection;
			[Bindable]
			private var GHS_tarifs_publics:CTI_ArrayCollection = new CTI_ArrayCollection;
			
			
			[Bindable]
			public var UMD_type_ventilation_ca: Array = [ {label:"Par défaut (avec PMS)", data:"0"}, {label:"Uniquement selon durée séjour", data:"1"} ];
			
			[Bindable]
			public var UMD_type_eclatement: Array = [
							{label:"Pas d'éclatement", data:"0"}, 
							{label:"Eclatement selon première UM", data:"1"}, 
							{label:"Eclatement par spécialité médecin", data:"2"}  
							];
			
			[Bindable]
			public var UMD_mode_hospitalisation: Array = [
							{label:"Hospitalisation Complète", data:"C"}, 
							{label:"Hospitalisation Partielle", data:"P"}, 
							{label:"Hospitalisation Mixte", data:"M"}  
							];
						
			[Bindable]
			public var UMD_type_sejour: Array = [
							{label:"Pas de forçage", data:""}, 
							{label:"Externe", data:"3"}, 
							{label:"Ignorer (fil de l'eau)", data:"9"}  
							];
							
			private var searchText:String;
			private var searchtext_delay:uint;
			
			private var progressBar:CTI_Progress;
			
			private var exportExcel_xml:XML;
			private var exportExcel_dataNode:XML;
			private var exportExcel_currentIndex:Number;
			private var exportExcel_interval:uint;
			
			private var objectsToValidate:int = 0;
			private var validObjects:int = 0;
			private var invalidObjects:int = 0;
			
			/**
			 * Initialise l'interface graphique en fonction de la table passée en paramètre
			 * 
			 * @param	tableCode	Nom de la table à rendre
			 */
			public function setupGUI(tableCode:String):void {
				
				var mainBox:DisplayObject = mainBox.getChildByName(tableCode + "_mainBox");
				list_GUI = findChild(mainBox as DisplayObjectContainer, tableCode + "_list_GUI") as DataGrid;
				detailBox_GUI = findChild(mainBox as DisplayObjectContainer, tableCode + "_detailBox_GUI") as VBox;
				texte_GUI = findChild(detailBox_GUI as DisplayObjectContainer, tableCode + "_texte_GUI") as TextArea;
				mainBox.visible = true;
			}
			
			/**
			 * Fonction qui cherche un displayObject par son nom dans toute l'arboresence d'un
			 * container. Cette fonction supplante la fonction getChildByName dans le sens où elle
			 * ne se cantonne pas au premier niveau de l'arboresence mais inspecte tous les niveaux
			 * 
			 * @param	container	Container dans lequel chercher l'enfant
			 * @param	childname	Nom de l'enfant à chercher
			 * @return	L'élement trouvé dans l'arborescence
			 */
			private function findChild(container:DisplayObjectContainer, childname:String ):DisplayObject {
				if (container == null) {
					container = this;
				}
				
				for (var j:int = 0; j < container.numChildren; ++j) { 
					
					var obj:DisplayObject = container.getChildAt(j) as DisplayObject;
					if (obj.name == childname) {
						return obj;
					}
					if (obj is DisplayObjectContainer) {
						var doc:DisplayObjectContainer = obj as DisplayObjectContainer;
						if (doc.numChildren > 0) {
							var ret:DisplayObject = findChild( doc, childname );
							if (ret != null) {
								return ret;
							}
						}
					} 
				}
				return null;
			}
			
			
			public function creationComplete():void {
				
				currentDisplayObject = this;
				
				if (application.currentHelpFile != "" || (application.currentHelpDokuWIkiDir != "" && application.currentHelpDokuWIkiFile != "")) {
					hasHelp = true;
				}
				
				if (application.name == "CTI") {
				}
				if (application.name == "CTI_1") {
					GUI_titleBar.height = 0;
				}
				
				viewName = application.currentViewName;
				tableCode = application.currentSwfData;
				getParam = application.currentOption;
				
				switch (tableCode) {
					case "ETS" :
						tableName = "t_finess";
						title = "Gestion Finess";
						titlePrint = "Finess";
						break;
					case "SPE" :
						tableName = "t_specialites_medecin";
						title = "Interrogation Spécialités des médecins";
						titlePrint = "Spécialités des médecins";
						break;
					case "SPI" :
						tableName = "t_specialites_internes_medecin";
						title = "Gestion Spécialités internes des médecins";
						titlePrint = "Spécialités internes des médecins";
						break;
					case "MED" :
						tableName = "t_medecins";
						title = "Gestion Médecins";
						titlePrint = "Médecins";
						break;
					case "TAG" :
						tableName = "t_tranches_ages";
						title = "Gestion Tranches d'age";
						titlePrint = "Tranches d'age";
						break;
					case "UMD" :
						tableName = "t_unites_medicales";
						title = "Gestion Unites médicales";
						titlePrint = "Unites médicales";
						break;
					case "UFC" :
						tableName = "t_unites_fonctionnelles";
						title = "Gestion Unites fonctionnelles";
						titlePrint = "Unites fonctionnelles";
						break;
					case "DMS" :
						tableName = "t_ghm_dms";
						title = "Gestion DMS";
						titlePrint = "DMS";
						break;
					case "CMD" :
						tableName = "t_cmd";
						title = "Interrogation CMD";
						titlePrint = "CMD";
						break;
					case "ASO" :
						tableName = "t_mco";
						title = "Interrogation Codes ASO";
						titlePrint = "Codes ASO";
						break;
					case "GHV" :
						tableName = "t_severites_ghm";
						title = "Interrogation Codes sévérité GHM";
						titlePrint = "Codes sévérité GHM";
						break;
					case "POA" :
						tableName = "t_poles_oap";
						title = "Interrogation Poles OAP";
						titlePrint = "Poles OAP";
						break;
					case "LOA" :
						tableName = "t_lignes_oap";
						title = "Interrogation Lignes OAP";
						titlePrint = "Lignes OAP";
						break;
					case "GAC" :
						tableName = "t_groupes_activite";
						title = "Interrogation Groupes d'activité";
						titlePrint = "Groupes d'activité";
						break;
					case "GHM" :
						tableName = "t_ghm";
						title = "Interrogation GHM";
						titlePrint = "GHM";
						break;
					case "GHS" :
						tableName = "t_ghs";
						title = "Interrogation GHS";
						titlePrint = "GHS";
						
						var date:Date = new Date();
						var day:String = date.date.toString();
						if (day.length == 1) {
							day = "0" + day;
						}
						var month:String = (date.month + 1).toString();
						if (month.length == 1) {
							month = "0" + month;
						}
						GHS_date_tarif_GUI.text = day + "/" + month + "/" + date.fullYear ;
						
						GHS_type_tarif_GUI.selectedIndex = 0;
						
						var item:Object;
						var $i:int = 0;
						while ($i < 9 ) {
							item = new Object();
							GHS_tarifs_prives.addItem(item);
							item = new Object();
							GHS_tarifs_publics.addItem(item);
							$i++;
						}
						break;
					case "PRE" :
						tableName = "t_prestations";
						title = "Gestion Prestations";
						titlePrint = "Prestations";
						break;
					case "LPP" :
						tableName = "t_lpp";
						title = "Gestion LPP";
						titlePrint = "LPP";
						break;
					case "UCD" :
						tableName = "t_ucd";
						title = "Gestion UCD";
						titlePrint = "UCD";
						break;
					case "CMM" :
						tableName = "t_comites_medicaux";
						title = "Gestion comités médicaux";
						titlePrint = "Comités médicaux";
						break;
					case "DIA" :
						tableName = "t_diagnostics";
						title = "Interrogation Diagnostics";
						titlePrint = "Diagnostics";
						break;
					case "CCR" :
						tableName = "t_ccam_regroupements";
						title = "Interrogation Regroupements CCAM";
						titlePrint = "Regroupements CCAM";
						break;
					case "GMA" :
						// Demande l'ouverture d'une fenêtre qui permettra de choisir quelle liste
						// de gestes marqueurs il faut afficher
						showChooseBox("select oid, code, texte from pmsi.t_classes where texte ilike '%marqueur%' " + 
							"union select -1, 'code', 'Sélectionnez une valeur...' order by oid",
							"Veuillez sélectionner la liste des gestes marqueurs à visualiser",
							"Gestes Marqueurs");
						return;
						break;
					case "ACT" :
						tableName = "t_actes";
						title = "Interrogation Actes";
						titlePrint = "Actes";
						break;
					case "TAU" :
						tableName = "t_types_autorisations";
						title = "Interrogation types autorisations";
						titlePrint = "Types autorisations";
						break;
					case "MEN" :
						tableName = "t_modes_entree";
						title = "Interrogation Modes entrée";
						titlePrint = "Modes entrée";
						break;
					case "MSO" :
						tableName = "t_modes_sortie";
						title = "Interrogation Modes sortie";
						titlePrint = "Modes sortie";
						break;
					case "MEP" :
						tableName = "t_provenances_entree";
						title = "Interrogation Provenances entrée";
						titlePrint = "Provenances entrée";
						break;
					case "MSD" :
						tableName = "t_destinations_sortie";
						title = "Interrogation Destinations sortie";
						titlePrint = "Destinations sortie";
						break;
					case "DEP" :
						tableName = "t_departements";
						title = "Gestion Départements";
						titlePrint = "Départements";
						break;
					case "CPO" :
						tableName = "t_codes_postaux";
						title = "Gestion Codes postaux";
						titlePrint = "Codes postaux";
						break;
					case "SGE" :
						tableName = "t_secteurs_geographiques";
						title = "Gestion Secteurs géographiques";
						titlePrint = "Secteurs géographiques";
						break;
					case "CGP" :
						tableName = "t_codes_geographiques_pmsi";
						title = "Affichage Codes géographiques PMSI";
						titlePrint = "Codes géographiques PMSI";
						break;
					case "ED1" :
						tableName = "t_etude_1";
						title = "Gestion couples GHM (analyse ambulatoire)";
						titlePrint = "Couples GHM (analyse ambulatoire)";
						break;
					// ED2 deprecated. Ancienne version des seuils de cancérologie
					case "ED2" :
						tableName = "t_etude_2";
						title = "Cancérologie (activité soumise à seuil)";
						titlePrint = "Cancérologie (activité soumise à seuil)";
						break;
					// ED4 deprecated
					/*
					case "ED4" :
						tableName = "t_etude_4";
						title = "Gestes marqueurs 2009";
						titlePrint = "Gestes marqueurs 2009";
						list_GUI = ED4_list_GUI;
						detailBox_GUI = ED4_detailBox_GUI;
						texte_GUI = ED4_texte_GUI;
						ED4_mainBox.visible = true;
						break;
					*/
					case "ED5" :
						if (getParam == "") {
							showChooseBox("select sequence, code, texte from pmsi.t_classes where texte ilike '%marqueur%' " + 
							"and texte ilike '%geste%' " +
							"union select -1, 'code', 'Sélectionnez une valeur...' order by sequence",
							"Veuillez sélectionner la liste des gestes marqueurs à visualiser",
							"Gestes Marqueurs");
							return;
						}
						else {
							tableName = "t_etude_5";
							title = "Gestes marqueurs";
							titlePrint = "Gestes marqueurs";
						}
						break;
					// Nouvelle version de l'étude sur les seuils cancérologie
					case "ED6" :
						if (getParam == "") {
							showChooseBox("select min(oid), annee::text, 'Cahier des charges ' || annee from pmsi.t_etude_6 group by annee " + 
							"union select -1, 'code', 'Sélectionnez une valeur...' order by 1",
							"Veuillez sélectionner le cahier des charges à visualiser",
							"Cancérologie soumise à seuil");
							return;
						}
						else {
							tableName = "t_etude_6";
							title = "Cancérologie (activité soumise à seuil). Cahier des charges " + getParam;
							titlePrint = "Seuils cancérologie. CdC " + getParam;
						}
						break;
					case "EXC" :
						tableName = "t_expert_controle";
						title = "Gestion Controles Expert";
						titlePrint = "Controles Expert";
						break;
					case "XDC" :
						tableName = "t_datim_ccaminfo";
						title = "Datim : CCAMINFO";
						titlePrint = "Datim. CCAMINFO";
						break;
					case "XDD" :
						tableName = "t_datim_diaginfo";
						title = "Datim : DIAGINFO";
						titlePrint = "Datim. DIAGINFO";
						break;
					case "XDG" :
						tableName = "t_datim_ghminfo";
						title = "Datim : GHMINFO";
						titlePrint = "Datim. GHMINFO";
						break;
					case "DIV" :
						tableName = "t_divers";
						title = "Paramètres divers";
						titlePrint = "Paramètres divers";
						break;
					case "DG5" :
						if (getParam == "") {
							showChooseBox("select min(oid), annee::text, 'Seuils ' || annee from pmsi.t_etude_7 group by annee " + 
							"union select -1, 'code', 'Sélectionnez une valeur...' order by 1",
							"Veuillez sélectionner une année",
							"Dégressivité tarifaire");
							return;
						}
						else {
							tableName = "t_etude_7";
							title = "Dégressivité tarifaire " + getParam;
							titlePrint = "Dégressivité tarifaire " + getParam;
							if (!isNaN(Number(getParam))) {
								var old:String = String((Number(getParam) - 2));
								var previous:String = String((Number(getParam) - 1));
								var current:String = getParam;
								DG5_formItem_taux_correction_avant_mars_GUI.label = "Taux correction " + old + "/" + previous + " (en %)";
								DG5_formItem_taux_correction_pres_mars_GUI.label = "Taux correction " + previous + "/" + current + " (en %)";
								DG5_taux_correction_avant_mars_GUI.toolTip = "Taux correction " + old + "/" + previous + " propre à chaque établissement";
								DG5_taux_correction_apres_mars_GUI.toolTip = "Taux correction " + previous + "/" + current + " propre à chaque établissement";
							}
						}						
						break;
				}
				
				// Initialise les éléments de l'interface si aucune boîte de dialogue de choix de liste n'a été ouverte
				if (tableName != "") {
					setupGUI(tableCode);
				}
				
				getOption = "initialize";
				
				getData();
			}
			
			private function showChooseBox(pQuery:String, pInfo:String, pTitle:String):void {
				
				var chooseParamBox:CTI_ChooseParamBox = new CTI_ChooseParamBox(pQuery, pInfo, pTitle);
				chooseParamBox.getChoices();
				PopUpManager.addPopUp(chooseParamBox, this, true);
				PopUpManager.centerPopUp(chooseParamBox);
				chooseParamBox.addEventListener(CloseEvent.CLOSE, chooseParamBox_handler);
				chooseParamBox.addEventListener(CTI_Event.SELECT, chooseParamBox_handler);
			}
			
			/**
			 * Ferme la boîte de dialogue de sélection d'option et traite le résultat
			 * 
			 * @param	event	Fermeture de la boîte de dialogue ou sélection d'une option
			 */
			private function chooseParamBox_handler(event:Event):void {
				
				getParam = "";
				
				// Supprime les écouteurs
				event.target.removeEventListener(CTI_Event.SELECT, chooseParamBox_handler);
				event.target.removeEventListener(CloseEvent.CLOSE, chooseParamBox_handler);
				
				// Dégage la boîte de dialogue
				PopUpManager.removePopUp(event.target as IFlexDisplayObject);
				CTI_ChooseParamBox(event.target).cleanUp();
				
				// Si une valeur a été sélectionnée, stocke son code dans la variable getParam;
				if (event.type == CTI_Event.SELECT) {
					getParam = CTI_Event(event).arg["code"];
					if (tableCode == "ED5" || tableCode == "GMA") {
						title = CTI_Event(event).arg["texte"];
						if (tableCode == "ED5") {
							getParam = CTI_Event(event).arg["oid"];
						}
					}
					else if (tableCode == "ED6") {
						title = "Cancérologie soumise à seuil. " + CTI_Event(event).arg["texte"];
					}
					else if (tableCode == "DG5") {
						title = CTI_Event(event).arg["texte"];
					}
				}
				// Aucune valeur sélectionnée (fermeture de la boite de dialogue) = fonctionnement
				// ancien 
				else {
					if (tableCode == "ED5" || tableCode == "GMA") {
						title = "Gestes marqueurs";
					}
					else if (tableCode == "ED6") {
						title = "Cancérologie soumise à seuil";
					}
					else if (tableCode == "DG5") {
						title = "Dégressivité tarifaire";
					}
				}
				
				if (tableCode == "GMA") {
					tableName = "t_gestes_marqueurs";
					titlePrint = getParam != "" ? getParam : "Gestes marqueurs";
				}
				else if (tableCode == "ED5") {
					tableName = "t_etude_5";
					titlePrint = "Gestes marqueurs";
				}
				else if (tableCode == "ED6") {
					tableName = "t_etude_6";
					titlePrint = getParam != "" ? "Seuils cancéro. CdC " + getParam : "Seuils cancérologie";
				}
				else if (tableCode == "DG5") {
					tableName = "t_etude_7";
					titlePrint = getParam != "" ? "Dégressivité tarifaire " + getParam : "Dégressivité tarifaire";
					title = getParam != "" ? "Dégressivité tarifaire " + getParam : "Dégressivité tarifaire";
					if (!isNaN(Number(getParam))) {
						var old:String = String((Number(getParam) - 2));
						var previous:String = String((Number(getParam) - 1));
						var current:String = getParam;
						DG5_formItem_taux_correction_avant_mars_GUI.label = "Taux correction " + old + "/" + previous + " (en %)";
						DG5_formItem_taux_correction_pres_mars_GUI.label = "Taux correction " + previous + "/" + current + " (en %)";
						DG5_taux_correction_avant_mars_GUI.toolTip = "Taux correction " + old + "/" + previous + " propre à chaque établissement";
						DG5_taux_correction_apres_mars_GUI.toolTip = "Taux correction " + previous + "/" + current + " propre à chaque établissement";
					}
				}
				// Initialise les éléments de l'interface si aucune boîte de dialogue de choix de liste n'a été ouverte
				if (tableName != "") {
					setupGUI(tableCode);
				}
				
				// Lance la récupération des données
				getOption = "initialize";
				getData();
				
			}
			
			public function eventDispatcher(eventCode:String):Boolean {
				return true;
			}
			
			private function refreshData():void {
				
				if (tableCode == "GMA") {
					// Demande l'ouverture d'une fenêtre qui permettra de choisir quelle liste
					// de gestes marqueurs il faut afficher
					showChooseBox("select oid, code, texte from pmsi.t_classes where texte ilike '%marqueur%' " + 
						"union select -1, 'code', 'Sélectionnez une valeur...' order by oid",
						"Veuillez sélectionner la liste des gestes marqueurs à visualiser",
						"Gestes Marqueurs");
				}
				else if (tableCode == "ED5") {
					showChooseBox("select sequence, code, texte from pmsi.t_classes where texte ilike '%marqueur%' " + 
						"union select -1, 'code', 'Sélectionnez une valeur...' order by sequence",
						"Veuillez sélectionner la liste des gestes marqueurs à visualiser",
						"Gestes Marqueurs");
				}
				else if (tableCode == "ED6") {
					showChooseBox("select min(oid), annee::text, 'Cahier des charges ' || annee from pmsi.t_etude_6 group by annee " + 
						"union select -1, 'code', 'Sélectionnez une valeur...' order by 1",
						"Veuillez sélectionner le cahier des charges à visualiser",
						"Cancérologie soumise à seuil");
				}
				else if (tableCode == "DG5") {
					showChooseBox("select min(oid), annee::text, 'Seuils ' || annee from pmsi.t_etude_7 group by annee " + 
							"union select -1, 'code', 'Sélectionnez une valeur...' order by 1",
							"Veuillez sélectionner une année",
							"Dégressivité tarifaire");
				}
				else {
					getData();
				}
			}
			
			public function getData():void {
				/*
				if (tableCode == "MEP") {
					tableName = "t_provenances_entree";
					title = "Interrogation Provenances entrée"
					titlePrint = "Provenances entrée"
					list_GUI = MEP_list_GUI
					detailBox_GUI = MEP_detailBox_GUI
					texte_GUI = MEP_texte_GUI
					MEP_mainBox.visible = true;
				}
				*/
				
				
				has_refsettings = false
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.getOption = getOption;
				urlVariables.getParam = getParam;
				
				if (tableCode == "GHS") {
					urlVariables.GHS_date_tarif = GHS_date_tarif_GUI.text.substr(6, 4) + "-" + GHS_date_tarif_GUI.text.substr(3, 2) + "-" + GHS_date_tarif_GUI.text.substr(0, 2);
					urlVariables.GHS_type_tarif = GHS_type_tarif_GUI.selectedItem.data;
				}
				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/PMSI_getTableRecords.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (list_collection != null) {
						list_collection.filterFunction = null;
						list_collection.refresh();
					}
					if (MED_medecins_a_regrouper_GUI.dataProvider != null) {
						MED_medecins_a_regrouper_GUI.dataProvider.filterFunction = null;
						MED_medecins_a_regrouper_GUI.dataProvider.refresh();
					}
					if (SGE_codes_a_regrouper_GUI.dataProvider != null) {
						SGE_codes_a_regrouper_GUI.dataProvider.filterFunction = null;
						SGE_codes_a_regrouper_GUI.dataProvider.refresh();
					}
					
					list_collection.loadXMLList(resultatService.RECORD);
					
					if (tableCode == "MED") {
						MED_specialite_GUI.dataProvider = new CTI_ArrayCollection();
						MED_specialite_GUI.dataProvider.loadXMLList(resultatService.COMBO_SPI.RECORD);
						
						MED_medecins_a_regrouper_GUI.dataProvider = new CTI_ArrayCollection();
						MED_medecins_a_regrouper_GUI.dataProvider.loadXMLList(resultatService.LIST_MEDA.RECORD);
						
						MED_medecins_regroupes_GUI.dataProvider = new CTI_ArrayCollection();
						for each (var item:Object in list_collection) {
							item.medecins_regroupes = "";
							for each (var item2:Object in list_collection) {
								if (item2.medecin_reference_id.toString() == item.oid.toString()) {
									if (item.medecins_regroupes != "") {
										item.medecins_regroupes = item.medecins_regroupes + ",";
									}
									item.medecins_regroupes = item.medecins_regroupes + " " + item2.oid.toString() + " ";
								}
							}
						}
						
						MED_medecins_a_regrouper_searchChange();
					}
					
					if (tableCode == "DMS") {
						if (DMS_ghm_list_GUI.dataProvider == null) {
							DMS_ghm_list_GUI.dataProvider = new CTI_ArrayCollection();
							DMS_ghm_list_GUI.dataProvider.loadXMLList(resultatService.LIST_GHM.RECORD);
							DMS_ghm_list_GUI.dataProvider.filterFunction = DMS_ghm_list_filterFunction;
							DMS_ghm_list_GUI.dataProvider.refresh();
						}
					}
					
					if (tableCode == "UMD") {
						UMD_type_autorisation_GUI.dataProvider = new CTI_ArrayCollection();
						UMD_type_autorisation_GUI.dataProvider.loadXMLList(resultatService.COMBO_TAU.RECORD);
						UMD_medecin_par_defaut_id_GUI.dataProvider = new CTI_ArrayCollection();
						UMD_medecin_par_defaut_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_MED.RECORD);
						UMD_um_expedition_id_GUI.dataProvider = new CTI_ArrayCollection();
						UMD_um_expedition_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_UM.RECORD);
					}
					
					if (tableCode == "CPO") {
						CPO_departement_GUI.dataProvider = new CTI_ArrayCollection();
						CPO_departement_GUI.dataProvider.loadXMLList(resultatService.COMBO_DEP.RECORD);
					}
					
					if (tableCode == "SGE") {
						
						SGE_codes_a_regrouper_GUI.dataProvider = new CTI_ArrayCollection();
						SGE_codes_a_regrouper_GUI.dataProvider.loadXMLList(resultatService.LIST_CPO.RECORD);
						
						SGE_codes_regroupes_GUI.dataProvider = new CTI_ArrayCollection();
						
						
						SGE_codes_a_regrouper_searchChange();
					}
					
					if (tableCode == "EXC") {
						if (resultatService.GENERAL_SETTINGS[0].@EXPERT_ACTIVE == "1") {
							EXC_EXPERT_ACTIVE_GUI.selected = true;
						}
						else {
							EXC_EXPERT_ACTIVE_GUI.selected = false;
						}
						// Positionnement du choix de mode de sélection de la date de début de contrôle et traitement de cette date
						EXC_EXPERT_DATE_DEBUT_GUI.text = resultatService.GENERAL_SETTINGS[0].@EXPERT_DATE_DEBUT.toString();
						setSelectedIndex(EXC_date_GUI, resultatService.GENERAL_SETTINGS[0].@EXPERT_DATE_SELECT.toString());
						EXC_date_change();
						
						if (resultatService.GENERAL_SETTINGS[0].@autorisation_neuro == "1") {
							EXC_autorisation_neuro_GUI.selected = true;
						}
						else {
							EXC_autorisation_neuro_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@autorisation_cardio == "1") {
							EXC_autorisation_cardio_GUI.selected = true;
						}
						else {
							EXC_autorisation_cardio_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@autorisation_rea == "1") {
							EXC_autorisation_rea_GUI.selected = true;
						}
						else {
							EXC_autorisation_rea_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@autorisation_rep == "1") {
							EXC_autorisation_rep_GUI.selected = true;
						}
						else {
							EXC_autorisation_rep_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@autorisation_nn == "1") {
							EXC_autorisation_nn_GUI.selected = true;
						}
						else {
							EXC_autorisation_nn_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@service_urgence == "1") {
							EXC_service_urgence_GUI.selected = true;
						}
						else {
							EXC_service_urgence_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@service_ssr == "1") {
							EXC_service_ssr_GUI.selected = true;
						}
						else {
							EXC_service_ssr_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@service_sld == "1") {
							EXC_service_sld_GUI.selected = true;
						}
						else {
							EXC_service_sld_GUI.selected = false;
						}
						if (resultatService.GENERAL_SETTINGS[0].@service_psy == "1") {
							EXC_service_psy_GUI.selected = true;
						}
						else {
							EXC_service_psy_GUI.selected = false;
						}
						
						ref_list_collection.loadXMLList(resultatService.REFRECORD);
						
						if (ref_list_collection.length > 0) {
							has_refsettings = true
						}
						
					}
					
					searchChange();
					
					getOption = "refresh";
					setTimeout(setBuildComplete, 1000);
				}
				
			}
			
			private function setBuildComplete():void {
				buildComplete = true;
			}
				
			private function resize():void {
			}
			
			private function searchChange():void {
				
				searchText = searchText_GUI.text.toUpperCase();
				
				if (list_collection.filterFunction == null) {
					list_collection.filterFunction = filterFunction;
				}
				
				clearTimeout(searchtext_delay);
				searchtext_delay = setTimeout(list_collection.refresh, 1000);
				
			}
			
			// Filter function 
			public function filterFunction(item:Object):Boolean { 
				
				var result:Boolean = true; 
				
				switch(tableCode) {
					case "TAG" :
						return result;
					case "TAU" :
						return result;
					case "CCR" :
						return result;
					case "GMA" :
						return result;
					case "MEN" :
						return result;
					case "MSO" :
						return result;
					case "MEP" :
						return result;
					case "MSD" :
						return result;
					case "ED1" :
						return result;
					// ED2 déprécié, remplacé par ED6
					case "ED2" :
						return result;
					/* deprecated
					case "ED4" :
						return result;
					*/
					case "ED5" :
						return result;
					case "ED6" :
						return result;
				}
				
				if (Number(item.oid) >= 0) {
					if (refSearch_GUI.selected == true) {
						if (item.hasOwnProperty("nbref")) {
							if (Number(item.nbref.toString()) <= 0) {
								if (item.hasOwnProperty("nbref2")) {
									if (Number(item.nbref.toString()) <= 0) {
										result = false;
									}
								}
								else {
									result = false;
								}	
							}
						}
					}
					
					if (result == true) {
						if (searchText_GUI.text != "") {
							result = false;
							
							for each (var attributeName:String in list_collection.attributesArray) {
								if (item[attributeName].toString().toUpperCase().indexOf(searchText) >= 0) {
									result = true;
									break;
								}
							}
						}
					}
				}
				return result; 
			}
			
			private function MED_medecins_a_regrouper_searchChange():void {
				
				if (MED_medecins_a_regrouper_GUI.dataProvider.filterFunction == null) {
					MED_medecins_a_regrouper_GUI.dataProvider.filterFunction = MED_medecins_a_regrouper_filterFunction;
				}
				
				MED_medecins_a_regrouper_GUI.dataProvider.refresh();
			}
			
			
			// Filter function 
			public function MED_medecins_a_regrouper_filterFunction(item:Object):Boolean { 
				var result:Boolean = true; 
				
				if (MED_medecins_a_regrouper_searchText_GUI.text != "") {
					result = false;
					if (item.texte.toString().toUpperCase().indexOf(MED_medecins_a_regrouper_searchText_GUI.text.toUpperCase()) >= 0) {
						result = true;
					}
				}
				if (result == true && currendRecordItem != null) {
					if (item.oid.toString() == currendRecordItem.oid.toString()) {
						result = false;
					}
				}
				if (result == true) {
					if (MED_medecins_regroupes_oids_GUI.text.indexOf(" " + item.oid.toString() + " ") >= 0) {
						result = false; 
					}
				}
				
				return result; 
			} 
			
			// Ajout dans regroupes
			private function MED_medecins_regroupes_add():void {
				
				for each (var item:Object in MED_medecins_a_regrouper_GUI.selectedItems) {
					MED_medecins_regroupes_GUI.dataProvider.addItem(item);
				}
				MED_medecins_regroupes_set_oids();
				MED_medecins_a_regrouper_searchChange();
				
				recordUpdated = true;
			}
			
			// enlever dans regroupes
			private function MED_medecins_regroupes_remove():void {
				
				for each (var item:Object in MED_medecins_regroupes_GUI.selectedItems) {
					var i:int = -1;
					for each (var item2:Object in MED_medecins_regroupes_GUI.dataProvider) {
						i++;
						if (item2 == item) {
							MED_medecins_regroupes_GUI.dataProvider.removeItemAt(i);
							break;
						}
					}
				}
				MED_medecins_regroupes_set_oids();
				MED_medecins_a_regrouper_searchChange();
				
				recordUpdated = true;
			}
			
			private function MED_medecins_regroupes_set_oids():void {
				
				MED_medecins_regroupes_oids_GUI.text = "";
				for each (var item:Object in MED_medecins_regroupes_GUI.dataProvider) {
					if (MED_medecins_regroupes_oids_GUI.text != "") {
						MED_medecins_regroupes_oids_GUI.text = MED_medecins_regroupes_oids_GUI.text + ",";
					}
					MED_medecins_regroupes_oids_GUI.text = MED_medecins_regroupes_oids_GUI.text + " " + item.oid.toString() + " ";
				}
			}
			
			private function DMS_ghm_list_searchChange():void {
						
				if (DMS_ghm_list_GUI.dataProvider.filterFunction == null) {
					DMS_ghm_list_GUI.dataProvider.filterFunction = DMS_ghm_list_filterFunction;
				}
				
				DMS_ghm_list_GUI.dataProvider.refresh();
			}
			
			
			// Filter function 
			public function DMS_ghm_list_filterFunction(item:Object):Boolean { 
				var result:Boolean = true; 
				
				if (DMS_ghm_saisies_GUI.selected == true) {
					if (item.dms > 0) {
						return true;
					}
					else {
						return false;
					}
				}
				
				return result; 
			} 
			
			// Filter function 
			public function GHS_tarifs_filterFunction(item:Object):Boolean { 
				var result:Boolean = true; 
				
				if (item.hasOwnProperty("date_debut")) {
					if (item.date_debut == "2099-12-31" || item.date_debut == "") {
						result = false;
					}
				}
				else {
					result = false;
				}
				
				return result; 
			} 
			
			private function SGE_codes_a_regrouper_searchChange():void {
				
				if (SGE_codes_a_regrouper_GUI.dataProvider.filterFunction == null) {
					SGE_codes_a_regrouper_GUI.dataProvider.filterFunction = SGE_codes_a_regrouper_filterFunction;
				}
				
				SGE_codes_a_regrouper_GUI.dataProvider.refresh();
			}
			
			// Filter function 
			public function SGE_codes_a_regrouper_filterFunction(item:Object):Boolean { 
				var result:Boolean = true; 
				
				if (SGE_codes_a_regrouper_searchText_GUI.text != "") {
					result = false;
					if (item.texte.toString().toUpperCase().indexOf(SGE_codes_a_regrouper_searchText_GUI.text.toUpperCase()) >= 0) {
						result = true;
					}
				}
				if (result == true && currendRecordItem != null) {
					if (item.oid.toString() == currendRecordItem.oid.toString()) {
						result = false;
					}
				}
				if (result == true) {
					if (SGE_codes_regroupes_oids_GUI.text.indexOf(" " + item.oid.toString() + " ") >= 0) {
						result = false;
					}
				}
				
				return result; 
			} 
			
			// Ajout dans regroupes
			private function SGE_codes_regroupes_add():void {
				
				for each (var item:Object in SGE_codes_a_regrouper_GUI.selectedItems) {
					SGE_codes_regroupes_GUI.dataProvider.addItem(item);
				}
				SGE_codes_regroupes_set_oids();
				SGE_codes_a_regrouper_searchChange();
				
				recordUpdated = true;
			}
			
			// enlever dans regroupes
			private function SGE_codes_regroupes_remove():void {
				
				for each (var item:Object in SGE_codes_regroupes_GUI.selectedItems) {
					var i:int = -1;
					for each (var item2:Object in SGE_codes_regroupes_GUI.dataProvider) {
						i++;
						if (item2 == item) {
							SGE_codes_regroupes_GUI.dataProvider.removeItemAt(i);
							break;
						}
					}
				}
				SGE_codes_regroupes_set_oids();
				SGE_codes_a_regrouper_searchChange();
				
				recordUpdated = true;
			}
			
			private function SGE_codes_regroupes_set_oids():void {
			
				SGE_codes_regroupes_oids_GUI.text = "";
				for each (var item:Object in SGE_codes_regroupes_GUI.dataProvider) {
					if (SGE_codes_regroupes_oids_GUI.text != "") {
						SGE_codes_regroupes_oids_GUI.text = SGE_codes_regroupes_oids_GUI.text + ",";
					}
					SGE_codes_regroupes_oids_GUI.text = SGE_codes_regroupes_oids_GUI.text + " " + item.oid.toString() + " ";
				}
			}
			
			public function DMS_ghm_import():void {
				CTI_Utilitaires.inputBox(this, "DMS","Copier les DMS depuis Excel",responseFunction)
				
				function responseFunction(value:String):void {
					
					value = value.replace(",", ".");
					DMS_ghm_couples_array = value.split(String.fromCharCode(13));
					DMS_ghm_currentImportIndex = 0;
					DMS_ghm_dms_count = 0;
					
					if (DMS_ghm_couples_array.length > 0) {
					
						progressBar = CTI_Progress(PopUpManager.createPopUp(currentDisplayObject, CTI_Progress, true));
						progressBar.title = "Import des DMS";
						progressBar.progBar.label = "0 %";
						PopUpManager.centerPopUp(progressBar);
						
						DMS_ghm_list_GUI.dataProvider.filterFunction = null;
						DMS_ghm_list_GUI.dataProvider.refresh();
						
						DMS_ghm_import_interval = setInterval(DMS_ghm_import_process, 0) ;
					}
				}
			}
			
			
			private function DMS_ghm_import_process():void {
				
				for (var i:Number = 0; i < 10; i++) { 
					if (DMS_ghm_currentImportIndex < DMS_ghm_couples_array.length) {
						var DMS_ghm_couple_array:Array = DMS_ghm_couples_array[DMS_ghm_currentImportIndex].split(String.fromCharCode(9));
						
						if (DMS_ghm_couple_array.length == 2) {
							var dms:Number = Number(DMS_ghm_couple_array[1].toString().replace(",", "."));
							if (! isNaN(dms)) {
								for each (var item:Object in DMS_ghm_list_GUI.dataProvider) {
									if (DMS_ghm_couple_array[0].toString().toUpperCase().indexOf(item.code.toUpperCase()) >= 0) {
										item.dms = dms;
										DMS_ghm_dms_count = DMS_ghm_dms_count + 1;
										recordUpdated = true;
										break;
									}
								}
							}
						}
						DMS_ghm_currentImportIndex = DMS_ghm_currentImportIndex + 1;
					}
				} 
				
				if (DMS_ghm_currentImportIndex >= DMS_ghm_couples_array.length) {
					
					clearInterval(DMS_ghm_import_interval);
					PopUpManager.removePopUp(progressBar);
					
					DMS_ghm_list_GUI.dataProvider.filterFunction = DMS_ghm_list_filterFunction;
					DMS_ghm_list_GUI.dataProvider.refresh();
					
					CTI_Utilitaires.alert_info("Import des DMS", "DMS importées pour " + DMS_ghm_dms_count + " GHM");
				}
				else {
					var percent:int = DMS_ghm_currentImportIndex / DMS_ghm_couples_array.length * 100;
					progressBar.progBar.label = percent.toString() + " % (" + DMS_ghm_dms_count + ')';
				}
			}
			
			
			public function DMS_ghm_erase():void {
				
				CTI_Utilitaires.question_yesNo("DMS", "Confirmez vous l'effacement des DMS ?", responseFunction);
				
				function responseFunction(event:CloseEvent):void {
					
					if (event.detail != Alert.YES) {
						return;
					}
					
					DMS_ghm_list_GUI.dataProvider.filterFunction = null;
					DMS_ghm_list_GUI.dataProvider.refresh();
					
					for each (var item:Object in DMS_ghm_list_GUI.dataProvider) {
						item.dms = 0;
					}
					
					DMS_ghm_list_GUI.dataProvider.filterFunction = DMS_ghm_list_filterFunction;
					DMS_ghm_list_GUI.dataProvider.refresh();
				}
			}
			
			
			public function getRecord(event:ListEvent = null):void {
				
				// Spécial Controles Expert
				
				if (tableCode == "EXC") {
					if (event.columnIndex == 0) {
						return;
					}
					if (qimport) {
						return;
					}
				}
				
				if (recordUpdated == true) {
					return;
				}
				if (list_GUI.selectedIndex < 0) {
					return;
				}
				
				currendRecordItem = list_GUI.selectedItem as Object;
				showDetail();
			}
			
			
			private function fillFields(fields:Array):void {
				var dobj:DisplayObject;
				var field:String;
				for each (field in fields) {
					dobj = findChild(detailBox_GUI, tableCode + "_" + field + "_GUI");
					if (dobj is RichTextEditor) {
						if (currendRecordItem[field].toString() != "") {
							(dobj as RichTextEditor).htmlText = CTI_Utilitaires.uncompress64(currendRecordItem[field].toString());
						}
						else {
							(dobj as RichTextEditor).htmlText = ""
						}
					}
					if (dobj is TextArea) {
						(dobj as TextArea).text = currendRecordItem[field].toString();
					}
					else if (dobj is DateField) {
						(dobj as DateField).selectedDate = DateField.stringToDate(currendRecordItem[field].toString(), 'DD/MM/YYYY');
					}
					else if (dobj is TextInput) {
						(dobj as TextInput).text = currendRecordItem[field].toString();
					}
					else if (dobj is Label) {
						(dobj as Label).text = currendRecordItem[field].toString();
					}
                    else if (dobj is CheckBox) {
                        (dobj as CheckBox).selected = currendRecordItem[field].toString() == "1" ? true : false;
                    }
				}
			}
			
			private function fillGHS(type:String, number:int): void {
				
				var id:int = 9 - number;
				var letter:String;
				var ac:CTI_ArrayCollection = new CTI_ArrayCollection();
				
				if (type == "prive") {
					ac = GHS_tarifs_prives;
					letter = "r";
				}
				else {
					ac = GHS_tarifs_publics;
					letter = "p";
				}
				ac[id].date_debut = currendRecordItem["ddp" + letter + String(number)].toString();
				ac[id].date_fin = currendRecordItem["dfp" + letter + String(number)].toString();
				ac[id].borne_basse = Number(currendRecordItem["bbp" + letter + String(number)].toString());
				ac[id].borne_haute = Number(currendRecordItem["bhp" + letter + String(number)].toString());
				ac[id].dms_nationale = Number(currendRecordItem["dmp" + letter + String(number)].toString());
				ac[id].tarif_ghs = Number(currendRecordItem["tgp" + letter + String(number)].toString());
				ac[id].tarif_exh = Number(currendRecordItem["txp" + letter + String(number)].toString());
				ac[id].tarif_exb = Number(currendRecordItem["tbp" + letter + String(number)].toString());
				ac[id].forfait_exb = Number(currendRecordItem["fbp" + letter + String(number)].toString());
			}
			
			
			public function showDetail():void {
				var i:Number;
				var item:Object;
				
				if (currendRecordItem == null) {
					return;
				}
				
				switch (tableCode) {
					case "ETS" :
						fillFields(new Array("oid", "nbref", "code", "texte",
									"date_debut_coefficient_mco_1", "coefficient_mco_1", "coefficient_transition_1", "coefficient_ht_1", "coefficient_geo_1", 
									"date_debut_coefficient_mco_2",	"coefficient_mco_2", "coefficient_transition_2", "coefficient_ht_2", "coefficient_geo_2",
									"date_debut_coefficient_mco_3",	"coefficient_mco_3", "coefficient_transition_3", "coefficient_ht_3", "coefficient_geo_3",
									"date_debut_coefficient_mco_4",	"coefficient_mco_4", "coefficient_transition_4", "coefficient_ht_4", "coefficient_geo_4",
									"date_debut_coefficient_mco_5",	"coefficient_mco_5", "coefficient_transition_5", "coefficient_ht_5", "coefficient_geo_5",
									"date_debut_coefficient_mco_6",	"coefficient_mco_6", "coefficient_transition_6", "coefficient_ht_6", "coefficient_geo_6",
									"date_debut_coefficient_mco_7",	"coefficient_mco_7", "coefficient_transition_7", "coefficient_ht_7", "coefficient_geo_7",
									"date_debut_coefficient_mco_8",	"coefficient_mco_8", "coefficient_transition_8", "coefficient_ht_8", "coefficient_geo_8",
									"date_debut_coefficient_mco_9",	"coefficient_mco_9", "coefficient_transition_9", "coefficient_ht_9", "coefficient_geo_9",
									"coefficient_mco_simulation_fg11", "tersante_id", "tersante_code", "tersante_texte",
                                    "date_debut_coefficient_pacte_resp_1", "coefficient_pacte_resp_1",
                                    "date_debut_coefficient_pacte_resp_2", "coefficient_pacte_resp_2",
                                    "date_debut_coefficient_pacte_resp_3", "coefficient_pacte_resp_3",
                                    "date_debut_coefficient_pacte_resp_4", "coefficient_pacte_resp_4",
                                    "date_debut_coefficient_pacte_resp_5", "coefficient_pacte_resp_5",
                                    "date_debut_coefficient_pacte_resp_6", "coefficient_pacte_resp_6",
                                    "date_debut_coefficient_pacte_resp_7", "coefficient_pacte_resp_7",
                                    "date_debut_coefficient_pacte_resp_8", "coefficient_pacte_resp_8",
                                    "date_debut_coefficient_pacte_resp_9", "coefficient_pacte_resp_9"
                                    ));
						break;
					case "SPE" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "SPI" :
						fillFields(new Array("oid", "nbref", "code", "texte", "specialite_defaut_code_1", "specialite_defaut_code_2",
									"specialite_defaut_code_3", "specialite_defaut_code_4", "specialite_defaut_code_5"));
						break;
					case "MED" :
						fillFields(new Array("oid", "nbref", "code", "nom", "identifiant_annuaire", "prenom",
									"specialite", "medecin_reference_id", "medecin_reference"));
						
						MED_specialite_GUI.selectedIndex = 0;
						i = -1;
						for each (item in MED_specialite_GUI.dataProvider) {
							i++;
							if (item.oid == currendRecordItem.specialite_id.toString()) {
								MED_specialite_GUI.selectedIndex = i;
							}
						}
						
						if (MED_medecins_a_regrouper_GUI.dataProvider != null) {
							MED_medecins_a_regrouper_GUI.dataProvider.filterFunction = null;
							MED_medecins_a_regrouper_GUI.dataProvider.refresh();
						}
						MED_medecins_regroupes_GUI.dataProvider.removeAll();
						if (currendRecordItem.medecins_regroupes.toString() != "") {
							for each (item in MED_medecins_a_regrouper_GUI.dataProvider) {
								if (currendRecordItem.medecins_regroupes.toString().indexOf(" " + item.oid.toString() + " ") >= 0) {
									MED_medecins_regroupes_GUI.dataProvider.addItem(item);
								}
							}
						}
						MED_medecins_regroupes_set_oids();
						MED_medecins_a_regrouper_searchText_GUI.text = MED_nom_GUI.text.substr(0,5);
						
						MED_medecins_a_regrouper_searchChange();
						break;
					case "TAG" :
						fillFields(new Array("oid", "code", "texte", "texte_court", "age_min", "age_max"));
						break;
					case "UMD" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						UMD_type_autorisation_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_type_autorisation_GUI.dataProvider) {
							i++;
							if (item.oid == currendRecordItem.type_autorisation_code.toString()) {
								UMD_type_autorisation_GUI.selectedIndex = i;
							}
						}
						UMD_medecin_par_defaut_id_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_medecin_par_defaut_id_GUI.dataProvider) {
							i++;
							if (item.oid == currendRecordItem.medecin_par_defaut_id.toString()) {
								UMD_medecin_par_defaut_id_GUI.selectedIndex = i;
							}
						}
						UMD_um_expedition_id_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_um_expedition_id_GUI.dataProvider) {
							i++;
							if (item.oid == currendRecordItem.um_expedition_id.toString()) {
								UMD_um_expedition_id_GUI.selectedIndex = i;
							}
						}
						UMD_type_ventilation_ca_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_type_ventilation_ca) {
							i++;
							if (item.data == currendRecordItem.type_ventilation_ca.toString()) {
								UMD_type_ventilation_ca_GUI.selectedIndex = i;
							}
						}
						UMD_type_eclatement_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_type_eclatement) {
							i++;
							if (item.data == currendRecordItem.type_eclatement.toString()) {
								UMD_type_eclatement_GUI.selectedIndex = i;
							}
						}
						UMD_type_sejour_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_type_sejour) {
							i++;
							if (item.data == currendRecordItem.type_sejour.toString()) {
								UMD_type_sejour_GUI.selectedIndex = i;
							}
						}
						UMD_mode_hospitalisation_GUI.selectedIndex = 0;
						i = -1;
						for each (item in UMD_mode_hospitalisation) {
							i++;
							if (item.data == currendRecordItem.mode_hospitalisation.toString()) {
								UMD_mode_hospitalisation_GUI.selectedIndex = i;
							}
						}
						UMD_nb_lits_GUI.data = null;
						if (currendRecordItem.nb_lits != null && currendRecordItem.nb_lits != "") {
							UMD_nb_lits_GUI.data = currendRecordItem.nb_lits.toString();
						}
						UMD_date_effet_autorisation_GUI.selectedDate = null;
						if (currendRecordItem.date_effet_autorisation != null && currendRecordItem.date_effet_autorisation != "") {
							UMD_date_effet_autorisation_GUI.selectedDate = new Date(currendRecordItem.date_effet_autorisation.substr(0, 4), Number(currendRecordItem.date_effet_autorisation.substr(5, 2)) - 1, currendRecordItem.date_effet_autorisation.substr(8, 2));
						}
						break;
					case "UFC" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "DMS" :
						fillFields(new Array("oid", "code", "texte"));
						
						DMS_ghm_list_GUI.dataProvider.filterFunction = null;
						DMS_ghm_list_GUI.dataProvider.refresh();
						
						for each (item in DMS_ghm_list_GUI.dataProvider) {
							item.dms = 0;
						}
						
						var DMS_ghm_couples_array:Array = currendRecordItem.dms.toString().split(";");
						for each (var DMS_ghm_couple:String in DMS_ghm_couples_array) {
							
							var DMS_ghm_couple_array:Array = DMS_ghm_couple.split("=")
							if (DMS_ghm_couple_array.length == 2) {
								
								for each (item in DMS_ghm_list_GUI.dataProvider) {
									if (item.oid.toString() == DMS_ghm_couple_array[0]) {
										item.dms = Number(DMS_ghm_couple_array[1]);
										break;
									}
								}
							}
						}
						
						DMS_ghm_list_GUI.dataProvider.filterFunction = DMS_ghm_list_filterFunction;
						DMS_ghm_list_GUI.dataProvider.refresh();
						break;
					case "ASO" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "GHV" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "CMD" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
					case "POA" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
					case "LOA" :
						fillFields(new Array("oid", "nbref", "code", "texte", "pole_oap"));
						break;
					case "GAC" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
					case "GHM" :
						fillFields(new Array("oid", "nbref", "code", "texte", "aso", "cas", "pole_oap", "ligne_oap", "groupe_activite"));
						break;
					case "GHS" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						
						GHS_tarifs_prives.filterFunction = null;
						GHS_tarifs_publics.filterFunction = null;
						GHS_tarifs_prives.refresh();
						GHS_tarifs_publics.refresh();
						
						for each (var tarif_item:Object in GHS_tarifs_prives) {
							tarif_item.date_debut = "2099-12-31";
						}
						for each (tarif_item in GHS_tarifs_publics) {
							tarif_item.date_debut = "2099-12-31";
						}
						
						if (currendRecordItem.hasOwnProperty("ddpr9")) {
							fillGHS("prive", 9);
						}
						if (currendRecordItem.hasOwnProperty("ddpr8")) {
							fillGHS("prive", 8);
						}
						if (currendRecordItem.hasOwnProperty("ddpr7")) {
							fillGHS("prive", 7);
						}
						if (currendRecordItem.hasOwnProperty("ddpr6")) {
							fillGHS("prive", 6);
						}
						if (currendRecordItem.hasOwnProperty("ddpr5")) {
							fillGHS("prive", 5);
						}
						if (currendRecordItem.hasOwnProperty("ddpr4")) {
							fillGHS("prive", 4);
						}
						if (currendRecordItem.hasOwnProperty("ddpr3")) {
							fillGHS("prive", 3);
						}
						if (currendRecordItem.hasOwnProperty("ddpr2")) {
							fillGHS("prive", 2);
						}
						if (currendRecordItem.hasOwnProperty("ddpr1")) {
							fillGHS("prive", 1);
						}
						if (currendRecordItem.hasOwnProperty("ddpp9")) {
							fillGHS("public", 9);
						}
						if (currendRecordItem.hasOwnProperty("ddpp8")) {
							fillGHS("public", 8);
						}
						if (currendRecordItem.hasOwnProperty("ddpp7")) {
							fillGHS("public", 7);
						}
						if (currendRecordItem.hasOwnProperty("ddpp6")) {
							fillGHS("public", 6);
						}
						if (currendRecordItem.hasOwnProperty("ddpp5")) {
							fillGHS("public", 5);
						}
						if (currendRecordItem.hasOwnProperty("ddpp4")) {
							fillGHS("public", 4);
						}
						if (currendRecordItem.hasOwnProperty("ddpp3")) {
							fillGHS("public", 3);
						}
						if (currendRecordItem.hasOwnProperty("ddpp2")) {
							fillGHS("public", 2);
						}
						if (currendRecordItem.hasOwnProperty("ddpp1")) {
							fillGHS("public", 1);
						}
						
						GHS_tarifs_prives.filterFunction = GHS_tarifs_filterFunction;
						GHS_tarifs_publics.filterFunction = GHS_tarifs_filterFunction;
						GHS_tarifs_prives.refresh();
						GHS_tarifs_publics.refresh();
						break;
					case "DIA" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "CCR" :
						fillFields(new Array("oid", "code", "texte", "texte_court"));
						break;
					case "GMA" :
						fillFields(new Array("oid", "code", "texte", "texte_court", "actes_codes"));
						break;
					case "ACT" :
						fillFields(new Array("oid", "nbref", "code", "texte", "classant", "icr_1", "icr_4",
									"regroupement_1", "regroupement_4", "geste_marqueur"));
						break;
					case "LPP" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						if (currendRecordItem.code_fg11.toString() == "1") {
							LPP_code_fg11_GUI.selected = true;
						}
						else {
							LPP_code_fg11_GUI.selected = false;
						}
						break;
					case "UCD" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "laboratoire_texte"));
						break;
					case "CMM" :
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
					case "PRE" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
					case "ED1" :
						fillFields(new Array("oid", "code", "texte", "texte_court",
									"ghm_1_texte", "ghm_2_texte", "ghm_3_texte",
									"taux_cible_2008", "taux_cible_2009", "taux_cible_2010", "taux_cible_2011"));
						break;
					// ED2 déprécié, remplacé par ED6
					case "ED2" :
						fillFields(new Array("oid", "code", "texte", "texte_court",
									"seuil_2008", "seuil_2009", "seuil_2010", "seuil_2011"));
						break;
					/* deprecated 
					case "ED4" :
						fillFields(new Array("oid", "code", "texte", "texte_court",
									"seuil_regional_2012", "seuil_regional_2009", "seuil_regional_2010", "seuil_regional_2011",
									"seuil_national_2012", "seuil_national_2009", "seuil_national_2010", "seuil_national_2011"));
						break;
					*/
					case "ED5" :
						fillFields(new Array("oid", "code", "texte", "liste", "taux_moyen_regional", "taux_moyen_national", "taux_cible_ars", "taux_cible_ets"));
						break;
					case "ED6" :
						fillFields(new Array("oid", "code", "texte", "annee", "moy_region", "moy_nat", "seuil_ets", "seuil_ars"));
						break;
					case "TAU" :
						fillFields(new Array("code", "texte", "texte_court"));
						break;
					case "MEN" :
						fillFields(new Array("code", "texte", "texte_court"));
						break;
					case "MSO" :
						fillFields(new Array("code", "texte", "texte_court"));
						break;
					case "MEP" :
						fillFields(new Array("code", "texte", "texte_court"));
						break;
					case "MSD" :
						fillFields(new Array("code", "texte", "texte_court"));
						break;
					case "DEP" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
					case "CPO" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_geo_pmsi", "population"));
						CPO_departement_GUI.selectedIndex = 0;
						i = -1;
						for each (item in CPO_departement_GUI.dataProvider) {
							i++;
							if (item.oid == currendRecordItem.departement_id.toString()) {
								CPO_departement_GUI.selectedIndex = i;
							}
						}
						break;
					case "SGE" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						SGE_codes_regroupes_oids_GUI.text = currendRecordItem.codes.toString();
						
						if (SGE_codes_a_regrouper_GUI.dataProvider != null) {
							SGE_codes_a_regrouper_GUI.dataProvider.filterFunction = null;
							SGE_codes_a_regrouper_GUI.dataProvider.refresh();
						}
						SGE_codes_regroupes_GUI.dataProvider.removeAll();
						if (currendRecordItem.codes.toString() != "") {
							for each (item in SGE_codes_a_regrouper_GUI.dataProvider) {
								if (currendRecordItem.codes.toString().indexOf(" " + item.oid.toString() + " ") >= 0) {
									SGE_codes_regroupes_GUI.dataProvider.addItem(item);
								}
							}
						}
						SGE_codes_regroupes_set_oids();
						SGE_codes_a_regrouper_searchText_GUI.text = "";
						
						SGE_codes_a_regrouper_searchChange();
						break;
					case "CGP" :
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "population", "codes"));
						break;
					case "EXC" :
						fillFields(new Array("oid", "code", "texte", "texte_court", "texte_abrege", "description", 
							"rule_oid1", "sqlcmd_where1", "sqlcmd_justificatif1", 
							"rule_oid2", "sqlcmd_where2", "sqlcmd_justificatif2", 
							"rule_oid3", "sqlcmd_where3", "sqlcmd_justificatif3"
							));
					/*	if (currendRecordItem.is_datim.toString() == "1") {
							EXC_is_datim_GUI.selected = true;
						}
						else {
							EXC_is_datim_GUI.selected = false;
						} */
						if (currendRecordItem.is_hide.toString() == "1") {
							EXC_is_hide_GUI.selected = true;
						}
						else {
							EXC_is_hide_GUI.selected = false;
						}
					/*	if (currendRecordItem.is_global.toString() == "1") {
							EXC_is_global_GUI.selected = true;
						}
						else {
							EXC_is_global_GUI.selected = false;
						} */
						if (currendRecordItem.is_cti.toString() == "1") {
							EXC_is_cti_GUI.selected = true;
						}
						else {
							EXC_is_cti_GUI.selected = false;
						}
						if (currendRecordItem.hasOwnProperty("is_alert") && currendRecordItem.is_alert.toString() == "1") {
							EXC_alerte_GUI.selected = true;
						}
						else {
							EXC_alerte_GUI.selected = false;
						}
						
						setSelectedIndex(EXC_gravite_GUI, currendRecordItem.gravite_id.toString());
						
						EXC_sqlcmd_where1_GUI.setStyle("backgroundColor", null)
						EXC_sqlcmd_justificatif1_GUI.setStyle("backgroundColor", null)
						EXC_sqlcmd_where2_GUI.setStyle("backgroundColor", null)
						EXC_sqlcmd_justificatif2_GUI.setStyle("backgroundColor", null)
						EXC_sqlcmd_where3_GUI.setStyle("backgroundColor", null)
						EXC_sqlcmd_justificatif3_GUI.setStyle("backgroundColor", null)
						
						
						if (currendRecordItem.last_execution_ok1.toString() == "0") {
							EXC_sqlcmd_where1_GUI.setStyle("backgroundColor", 0xD63E00)
							if (EXC_sqlcmd_justificatif1_GUI.text != "") {
								EXC_sqlcmd_justificatif1_GUI.setStyle("backgroundColor", 0xD63E00)
							}
						}
						if (currendRecordItem.last_execution_ok2.toString() == "0") {
							EXC_sqlcmd_where2_GUI.setStyle("backgroundColor", 0xD63E00)
							if (EXC_sqlcmd_justificatif2_GUI.text != "") {
								EXC_sqlcmd_justificatif2_GUI.setStyle("backgroundColor", 0xD63E00)
							}
						}
						if (currendRecordItem.last_execution_ok3.toString() == "0") {
							EXC_sqlcmd_where3_GUI.setStyle("backgroundColor", 0xD63E00)
							if (EXC_sqlcmd_justificatif3_GUI.text != "") {
								EXC_sqlcmd_justificatif3_GUI.setStyle("backgroundColor", 0xD63E00)
							}
						}
						
						break;
					case "XDC" :
						fillFields(new Array("oid", "nbref", "code", "texte", "datim"));
						break;
					case "XDD" :
						fillFields(new Array("oid", "nbref", "code", "texte", "datim"));
						break;
					case "XDG" :
						fillFields(new Array("oid", "nbref", "code", "texte", "datim"));
						break;
					case "DIV" :
						fillFields(new Array("oid", "code", "texte", "valeur", "description", "show_info_module"));
						break;
					case "DG5" :
						hideExcelImport_DG5();
						fillFields(new Array("oid", "code", "texte", "annee", "seuil_degressivite", "taux_correction_avant_mars", "taux_correction_apres_mars"));
						break;
				}
				
				recordUpdated = false;
				if (detailBox_GUI.height == 0) {
					detailBox_GUI.height = (tableCode == "ED5" || tableCode == "ED6") ? 230 : 300;
				}
				detailBox_GUI.visible = true
				detailBox_GUI.includeInLayout = true
			}
			
			
			private function askCancel():void {
				
				if (recordUpdated == false) {
					hideRecord();
					return;
				}
				
				Alert.yesLabel = "OUI";
				Alert.noLabel = "NON";
				var alert:Alert = Alert.show("Les données ont été changées, désirez vous les annuler ?", title, 3, this, alertClickHandler, question_class);
				
				function alertClickHandler(event:CloseEvent):void {
					if (event.detail==Alert.YES) {
						hideRecord();
					}
				}
			}
			
			
			private function hideRecord():void {
				
				// Pour Expert, remettre en mode normal
				if (EXC_mode == 2) {
					EXC_mode = 0
				}
				
				// Ne plus afficher le détail
				detailBox_GUI.visible = false
				detailBox_GUI.includeInLayout = false
				currendRecordItem = null;
				recordUpdated = false;
			}
			
			
			private function askDelete():void {
				
				Alert.yesLabel = "OUI";
				Alert.noLabel = "NON";
				var alert:Alert = Alert.show("Désirez vous vraiment supprimer " + texte_GUI.text + " ?", title, 3, this, alertClickHandler, question_class);
				
				function alertClickHandler(event:CloseEvent):void {
					if (event.detail == Alert.YES) {
						deleteRecord();
					}
				}
			}
			
			
			public function deleteRecord():void {
				
				updateRecord("delete");
				
			}
			
			
			private function askPurge():void {
				
				Alert.yesLabel = "OUI";
				Alert.noLabel = "NON";
				var alert:Alert = Alert.show("Désirez vous vraiment supprimer l'historique de " + texte_GUI.text + " ?", title, 3, this, alertClickHandler, question_class);
				
				function alertClickHandler(event:CloseEvent):void {
					if (event.detail == Alert.YES) {
						purgeHistory();
					}
				}
			}
			
			public function purgeHistory():void {
				
				updateRecord("purge_history");
				
			}
			
			
			public function copyRecord():void {
				
				updateRecord("copy");
				
			}
			
			
			public function saveRecord():void {
				
				// Cas particulier des tables où les saises sont soumises à validation
				switch (tableCode) {
					case "ED5" :
						validateInputs(new Array(ED5_taux_cible_ars_GUI, ED5_taux_cible_ets_GUI));
						break;
					case "ED6" :
						validateInputs(new Array(ED6_seuil_ets_GUI, ED6_seuil_ars_GUI));
						break;
					// Dans tous les autres cas, on demande la sauvegarde des données modifiées
					default :
						updateRecord("save");
				}
			}
			
			
			private function readFields(fields:Array, recordNode:XML):XML {
				
				var dobj:DisplayObject;
				var field:String;
				for each (field in fields) {
					
					dobj = findChild(detailBox_GUI, tableCode + "_" + field + "_GUI");
					if (dobj is RichTextEditor) {
						if ((dobj as RichTextEditor).text != "") {
							recordNode.@[field] = CTI_Utilitaires.compress64((dobj as RichTextEditor).htmlText);
						}
						else {
							recordNode.@[field] = "";
						}
					}
					if (dobj is TextArea) {
						recordNode.@[field] = (dobj as TextArea).text;
					}
					else if (dobj is DateField) {
						recordNode.@[field] = DateField.dateToString((dobj as DateField).selectedDate, 'DD/MM/YYYY');
					}
					else if (dobj is TextInput) {
						recordNode.@[field] = (dobj as TextInput).text;
					}
					else if (dobj is Label) {
						recordNode.@[field] = (dobj as Label).text;
					}
                    else if (dobj is CheckBox) {
                        recordNode.@[field] = (dobj as CheckBox).selected ? "1" : "0";
                    }
				}
				return recordNode;
			}
			
			public function addRecord():void {
				
				
				if (currendRecordItem == null) {
				
					if (tableCode == "EXC") {
						currendRecordItem = new Object()
						currendRecordItem.oid = "-1"
						currendRecordItem.nbref = 0;
						currendRecordItem.code = "";
						currendRecordItem.texte = "";
						currendRecordItem.texte_court = "";
						currendRecordItem.texte_abrege = "";
						currendRecordItem.description = "";
						currendRecordItem.is_datim = "0";
						currendRecordItem.is_hide = "0";
						currendRecordItem.is_global = "0";
						currendRecordItem.is_cti = "0";
						currendRecordItem.gravite_id = "0";
						currendRecordItem.gravite_texte = "";
						currendRecordItem.complement = "";
						currendRecordItem.rule_oid1="0"
						currendRecordItem.sqlcmd_where1=""
						currendRecordItem.sqlcmd_justificatif1=""
						currendRecordItem.last_execution_date1=""
						currendRecordItem.last_execution_ok1=""
						currendRecordItem.rule_oid2="0"
						currendRecordItem.sqlcmd_where2=""
						currendRecordItem.sqlcmd_justificatif2=""
						currendRecordItem.last_execution_date2=""
						currendRecordItem.last_execution_ok2=""
						currendRecordItem.rule_oid3="0"
						currendRecordItem.sqlcmd_where3=""
						currendRecordItem.sqlcmd_justificatif3=""
						currendRecordItem.last_execution_date3=""
						currendRecordItem.last_execution_ok3=""
						currendRecordItem.last_execution_date=""
						currendRecordItem.last_execution_ok=""
						currendRecordItem.is_alert = "0";
						showDetail()
					}
					
					if (tableCode == "LPP") {
						currendRecordItem = new Object()
						currendRecordItem.oid = "-1"
						currendRecordItem.nbref = 0;
						currendRecordItem.code = "";
						currendRecordItem.texte = "";
						currendRecordItem.texte_court = "";
						currendRecordItem.code_fg11 = "";
						currendRecordItem.code_fg11_label = "";
						showDetail()
					}
					
					if (tableCode == "UCD") {
						currendRecordItem = new Object()
						currendRecordItem.oid = "-1"
						currendRecordItem.nbref = 0;
						currendRecordItem.code = "";
						currendRecordItem.texte = "";
						currendRecordItem.texte_court = "";
						currendRecordItem.laboratoire_texte = "";
						showDetail()
					}
				}
				
			}
			
			
			public function updateRecord(action:String):void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.action = action;
				var recordNode:XML = new XML(<RECORD />);
				
				switch (tableCode) {
					case "ETS" :
						recordNode = readFields(new Array("oid", "code", "texte", "tersante_id",
									"date_debut_coefficient_mco_1", "coefficient_mco_1", "coefficient_transition_1", "coefficient_ht_1", "coefficient_geo_1", 
									"date_debut_coefficient_mco_2",	"coefficient_mco_2", "coefficient_transition_2", "coefficient_ht_2", "coefficient_geo_2",
									"date_debut_coefficient_mco_3",	"coefficient_mco_3", "coefficient_transition_3", "coefficient_ht_3", "coefficient_geo_3",
									"date_debut_coefficient_mco_4",	"coefficient_mco_4", "coefficient_transition_4", "coefficient_ht_4", "coefficient_geo_4",
									"date_debut_coefficient_mco_5",	"coefficient_mco_5", "coefficient_transition_5", "coefficient_ht_5", "coefficient_geo_5",
									"date_debut_coefficient_mco_6",	"coefficient_mco_6", "coefficient_transition_6", "coefficient_ht_6", "coefficient_geo_6",
									"date_debut_coefficient_mco_7",	"coefficient_mco_7", "coefficient_transition_7", "coefficient_ht_7", "coefficient_geo_7",
									"date_debut_coefficient_mco_8",	"coefficient_mco_8", "coefficient_transition_8", "coefficient_ht_8", "coefficient_geo_8",
									"date_debut_coefficient_mco_9",	"coefficient_mco_9", "coefficient_transition_9", "coefficient_ht_9", "coefficient_geo_9",
									"coefficient_mco_simulation_fg11",

                                    "date_debut_coefficient_pacte_resp_1", "coefficient_pacte_resp_1",
                                    "date_debut_coefficient_pacte_resp_2", "coefficient_pacte_resp_2",
                                    "date_debut_coefficient_pacte_resp_3", "coefficient_pacte_resp_3",
                                    "date_debut_coefficient_pacte_resp_4", "coefficient_pacte_resp_4",
                                    "date_debut_coefficient_pacte_resp_5", "coefficient_pacte_resp_5",
                                    "date_debut_coefficient_pacte_resp_6", "coefficient_pacte_resp_6",
                                    "date_debut_coefficient_pacte_resp_7", "coefficient_pacte_resp_7",
                                    "date_debut_coefficient_pacte_resp_8", "coefficient_pacte_resp_8",
                                    "date_debut_coefficient_pacte_resp_9", "coefficient_pacte_resp_9"

                                    ), recordNode);
						var regexp:RegExp = /,/gi
						recordNode.@coefficient_mco_simulation_fg11 = ETS_coefficient_mco_simulation_fg11_GUI.text.replace(regexp, "."); 
						break;
					case "SPI" :
						recordNode = readFields(new Array("oid", "code", "texte", "specialite_defaut_code_1", "specialite_defaut_code_2",
									"specialite_defaut_code_3", "specialite_defaut_code_4", "specialite_defaut_code_5"), recordNode);
						break;
					case "MED" :
						recordNode = readFields(new Array("oid", "code", "nom", "identifiant_annuaire", "prenom",
									"medecins_regroupes_oids", "medecin_reference_id"), recordNode);
						recordNode.@specialite_id = MED_specialite_GUI.selectedItem.oid;
						break;
					case "TAG" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "age_min", "age_max"), recordNode);
						break;
					case "UMD" :
						recordNode = readFields(new Array("oid", "code", "texte"), recordNode);
						recordNode.@type_ventilation_ca = UMD_type_ventilation_ca_GUI.selectedItem.data;
						recordNode.@type_eclatement = UMD_type_eclatement_GUI.selectedItem.data;
						recordNode.@type_sejour = UMD_type_sejour_GUI.selectedItem.data;
						recordNode.@type_autorisation = UMD_type_autorisation_GUI.selectedItem.oid;
						recordNode.@medecin_par_defaut_id = UMD_medecin_par_defaut_id_GUI.selectedItem.oid;
						recordNode.@um_expedition_id = UMD_um_expedition_id_GUI.selectedItem.oid;
						if (UMD_date_effet_autorisation_GUI.selectedDate != null && UMD_type_autorisation_GUI.selectedItem.oid != 0) {
							recordNode.@date_effet_autorisation = UMD_date_effet_autorisation_GUI.selectedDate.toDateString();
						} else {
							recordNode.@date_effet_autorisation = "null";
						}
						if (UMD_type_autorisation_GUI.selectedItem.oid != 0) {
							recordNode.@nb_lits = UMD_nb_lits_GUI.data;
						} else {
							recordNode.@nb_lits = null;
						}
						if (UMD_type_autorisation_GUI.selectedItem.oid != 0) {
							recordNode.@mode_hospitalisation = UMD_mode_hospitalisation_GUI.selectedItem.data;
						} else {
							recordNode.@mode_hospitalisation = null;
						}
						break;
					case "UFC" :
						recordNode = readFields(new Array("oid", "code", "texte"), recordNode);
						break;
					case "DMS" :
						recordNode = readFields(new Array("oid", "code", "texte"), recordNode);
						
						recordNode.@dms = "";
						for each (var item:Object in DMS_ghm_list_GUI.dataProvider) {
							recordNode.@dms = recordNode.@dms + item.oid + "=" + item.dms.toString() + ";"
						}
						break;
					case "PRE" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
					case "ED1" :
						recordNode = readFields(new Array("oid", "taux_cible_2008", "taux_cible_2009", "taux_cible_2010", "taux_cible_2011"), recordNode);
						break;
					case "ED2" :
						recordNode = readFields(new Array("oid", "seuil_2008", "seuil_2009", "seuil_2010", "seuil_2011"), recordNode);
						break;
					/* deprecated*/
					case "ED4" :
						recordNode = readFields(new Array("oid", "seuil_regional_2009", "seuil_regional_2010", "seuil_regional_2011", "seuil_regional_2012",
									"seuil_national_2009", "seuil_national_2010", "seuil_national_2011", "seuil_national_2012"), recordNode);
						break;
					case "ED5" :
						recordNode = readFields(new Array("oid", "taux_cible_ars", "taux_cible_ets"), recordNode);
						break;
					case "ED6" :
						recordNode = readFields(new Array("oid", "seuil_ars", "seuil_ets"), recordNode);
						break;
					case "LPP" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						if (LPP_code_fg11_GUI.selected == true) {
							recordNode.@code_fg11 = "1";
						}
						else {
							recordNode.@code_fg11 = "0";
						}
						break;
					case "UCD" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "laboratoire_texte"), recordNode);
						break;
					case "CMM" :
						recordNode = readFields(new Array("oid", "code", "texte"), recordNode);
						break;
					case "DEP" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
					case "CPO" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_geo_pmsi", "population"), recordNode);
						recordNode.@departement_id = CPO_departement_GUI.selectedItem.oid;
						break;
					case "SGE" :
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						recordNode.@codes = SGE_codes_regroupes_oids_GUI.text;
						break;
					case "MEN" :
						recordNode = readFields(new Array("code", "texte", "texte_court"), recordNode);
						break;
					case "MSO" :
						recordNode = readFields(new Array("code", "texte", "texte_court"), recordNode);
						break;
					case "MEP" :
						recordNode = readFields(new Array("code", "texte", "texte_court"), recordNode);
						break;
					case "MSD" :
						recordNode = readFields(new Array("code", "texte", "texte_court"), recordNode);
						break;
					case "DIA" :
						recordNode = readFields(new Array("oid", "code", "texte"), recordNode);
						break;
					case "EXC" :
						// Controles normaux
						if (EXC_mode == 0) {
							recordNode.@mode = EXC_mode
							recordNode = readFields(new Array(
								"oid", "code", "texte", "texte_court", "texte_abrege", "description", 
								"rule_oid1", "sqlcmd_where1", "sqlcmd_justificatif1", 
								"rule_oid2", "sqlcmd_where2", "sqlcmd_justificatif2", 
								"rule_oid3", "sqlcmd_where3", "sqlcmd_justificatif3"
								), recordNode);
						/*	if (EXC_is_datim_GUI.selected == true) {
								recordNode.@is_datim = "1";
							}
							else {
								recordNode.@is_datim = "0";
							} */
							if (EXC_is_hide_GUI.selected == true) {
								recordNode.@is_hide = "1";
							}
							else {
								recordNode.@is_hide = "0";
							}
						/*	if (EXC_is_global_GUI.selected == true) {
								recordNode.@is_global = "1";
							}
							else {
								recordNode.@is_global = "0";
							} */
							if (EXC_is_cti_GUI.selected == true) {
								recordNode.@is_cti = "1";
							}
							else {
								recordNode.@is_cti = "0";
							}
							if (EXC_alerte_GUI.selected == true) {
								recordNode.@is_alert = "1";
							}
							else {
								recordNode.@is_alert = "0";
							}

							recordNode.@gravite_id = EXC_gravite_GUI.selectedItem.data;
						}
						// Paramètres généraux
						if (EXC_mode == 2) {
							recordNode.@mode = EXC_mode
							if (EXC_EXPERT_ACTIVE_GUI.selected == true) {
								recordNode.@EXPERT_ACTIVE = "1";
							}
							else {
								recordNode.@EXPERT_ACTIVE = "0";
							}
							recordNode.@EXPERT_DATE_SELECT = EXC_date_GUI.selectedItem.data;
							recordNode.@EXPERT_DATE_DEBUT = EXC_EXPERT_DATE_DEBUT_GUI.text;
							if (EXC_autorisation_neuro_GUI.selected == true) {
								recordNode.@autorisation_neuro = "1";
							}
							else {
								recordNode.@autorisation_neuro = "0";
							}
							if (EXC_autorisation_cardio_GUI.selected == true) {
								recordNode.@autorisation_cardio = "1";
							}
							else {
								recordNode.@autorisation_cardio = "0";
							}
							if (EXC_autorisation_rea_GUI.selected == true) {
								recordNode.@autorisation_rea = "1";
							}
							else {
								recordNode.@autorisation_rea = "0";
							}
							if (EXC_autorisation_rep_GUI.selected == true) {
								recordNode.@autorisation_rep = "1";
							}
							else {
								recordNode.@autorisation_rep = "0";
							}
							if (EXC_autorisation_nn_GUI.selected == true) {
								recordNode.@autorisation_nn = "1";
							}
							else {
								recordNode.@autorisation_nn = "0";
							}
							if (EXC_service_urgence_GUI.selected == true) {
								recordNode.@service_urgence = "1";
							}
							else {
								recordNode.@service_urgence = "0";
							}
							if (EXC_service_ssr_GUI.selected == true) {
								recordNode.@service_ssr = "1";
							}
							else {
								recordNode.@service_ssr = "0";
							}
							if (EXC_service_sld_GUI.selected == true) {
								recordNode.@service_sld = "1";
							}
							else {
								recordNode.@service_sld = "0";
							}
							if (EXC_service_psy_GUI.selected == true) {
								recordNode.@service_psy = "1";
							}
							else {
								recordNode.@service_psy = "0";
							}
						}
						break;
					case "DIV" :
						recordNode = readFields(new Array("oid", "code", "valeur", "show_info_module"), recordNode);
						break;
					case "DG5" :
						if (action == "import") {
							recordNode = new XML(<EMPTY />);
							urlVariables.importString = DG5_excel_textarea.text;
						}
						else {
							recordNode = readFields(new Array("oid", "taux_correction_avant_mars", "taux_correction_apres_mars", "annee"), recordNode);
						}
						break;

				}
				
				urlVariables.recordNode = recordNode.toXMLString();
				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/PMSI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (EXC_mode == 2) {
						EXC_mode = 0
					}
					
					getData();
					
					detailBox_GUI.visible = false
					detailBox_GUI.includeInLayout = false
					currendRecordItem = null;
					recordUpdated = false;
				}
			}
			
			public function EXC_show_generalSettings():void {
			
				EXC_mode = 2
				detailBox_GUI.visible = true
				detailBox_GUI.includeInLayout = true
			}
			
			public function EXC_execute_rules(controle_id:String=null):void {
			
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'execute_rules';
				
				if (controle_id != null) {
					urlVariables.oids = controle_id
				}
				else {
					urlVariables.oids = "";
					//for each (var item:Object in list_collection) {
					//	if (item.selected == "1") {
					//		if (urlVariables.oids != "") {
					//			urlVariables.oids = urlVariables.oids + ", "
					//		}
					//		urlVariables.oids = urlVariables.oids + item.oid
					//	}
					//}
					
				}

				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/PMSI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
							
				function exec(resultatService:XML):void {
					
					if (resultatService.RETURN.@code.toString() != "KO") {
						CTI_Utilitaires.alert_info("Exécution règles Expert", "Exécution terminée : " + resultatService.RETURN.@message.toString());
					}
					else {
						CTI_Utilitaires.alert_error("Exécution règles Expert", "Exécution terminée avec ERREURS : " + resultatService.RETURN.@message.toString());
					}
			
					
					getData();
					
					detailBox_GUI.visible = false
					detailBox_GUI.includeInLayout = false
					currendRecordItem = null;
					recordUpdated = false;
				}
			}
			
			public function EXC_getSQL(controle_id:String=null):void {

				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				if (controle_id != null) {
					urlVariables.oids = controle_id
				}
				else {
					urlVariables.oids = "";
					for each (var item:Object in list_collection) {
						if (item.selected == "1") {
							if (urlVariables.oids != "") {
								urlVariables.oids = urlVariables.oids + ", "
							}
							urlVariables.oids = urlVariables.oids + item.oid
						}
					}
					
				}
				
				if (urlVariables.oids == "") {
					CTI_Utilitaires.alert_error("Export SQL", "Vous devez d'abord choisir les contrôles à exporter");
					return;
				}
								
				CTI_Utilitaires.openURL("modules/pmsi/php/httpService_PMSI_tableManager_getSqlScript.php",urlVariables,"iCTI_expert_controle.SQL")
			
			}
			
			private function EXC_date_change(event:ListEvent=null):void {
				if (event is ListEvent) {
					recordUpdated = true;
				}
				
				var now:Date = new Date();
				var currentYear:Number = now.getFullYear();
				
				switch (EXC_date_GUI.selectedItem.data) {
					case '0' :	// année courante
						EXC_EXPERT_DATE_DEBUT_GUI.selectedDate = new Date(currentYear, 0, 1);
						break;
					case '1' :	// année précédente
						var previousYear:Number = currentYear - 1;
						EXC_EXPERT_DATE_DEBUT_GUI.selectedDate = new Date(previousYear, 0, 1);
						break;
					case '2' :	// 12 mois glissants
						var millisecondesParJour:int = 1000 * 60 * 60 * 24;
						var tweveMonthBefore:Date = new Date(now.getTime() - (365 * millisecondesParJour));
						EXC_EXPERT_DATE_DEBUT_GUI.selectedDate = new Date(tweveMonthBefore.getFullYear(), tweveMonthBefore.getMonth(), 1);
						break;
				}
				
				var jourAAfficher:int = EXC_EXPERT_DATE_DEBUT_GUI.selectedDate.getDate();
				var moisAAfficher:int = EXC_EXPERT_DATE_DEBUT_GUI.selectedDate.getMonth() + 1;
				EXC_label_GUI.text = 'Séjours sortis depuis le ' 
					+ ((jourAAfficher < 10 ) ? '0' + jourAAfficher.toString() : jourAAfficher.toString()) + '/'
					+ ((moisAAfficher < 10 ) ? '0' + moisAAfficher.toString() : moisAAfficher.toString()) + '/'
					+ EXC_EXPERT_DATE_DEBUT_GUI.selectedDate.getFullYear().toString();
			}
			
			public function getRefSettings():void {
				detailBox_GUI.visible = false
				detailBox_GUI.includeInLayout = false
				qimport = true
				
			}
			
			
			public function hideRefSettings():void {
				detailBox_GUI.visible = true
				detailBox_GUI.includeInLayout = true
				qimport = false
				
			}
			
			
			public function copyRefSettings():void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.oids = "";
				for each (var item:Object in ref_list_collection) {
					if (item.selected == "1") {
						if (urlVariables.oids != "") {
							urlVariables.oids = urlVariables.oids + ", "
						}
						urlVariables.oids = urlVariables.oids + item.oid
					}
				}
				
				if (urlVariables.oids == "") {
					CTI_Utilitaires.alert_error("Import de données", "Vous devez d'abord choisir les données à récupérer");
					return
				}
				
				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/httpService_PMSI_tableManager_copyRef.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					
					getData();
					
					detailBox_GUI.visible = false
					detailBox_GUI.includeInLayout = false
					currendRecordItem = null;
					recordUpdated = false;
				}
				
			}
			
			
			
			
			
			public function print():void {
				
				var printReport:CTI_Print = new CTI_Print();
				
				if (printReport.start("PMSI_TablesManager", titlePrint) == false) {
					return;
				}
				
				printReport.addDataGrid(list_GUI);
				
				printReport.print();
			}
			
			
			public function exportExcel():void {
				
				exportExcel_xml = new XML(<EXCELEXPORT />);
				
				var ongletNode:XML;
				var similiTabNode:XML;
				var selectionsNode:XML;
				var datagridNode:XML;
				var columnNode:XML;
				var rowNode:XML;
				
				exportExcel_xml.@viewName = this.viewName;
				exportExcel_xml.@title = this.title;
				
				selectionsNode = new XML(<SELECTIONS />);
				selectionsNode.displayText = "";
				if (tableCode == 'GHS') {
					selectionsNode.@displayText = "Tarifs " + GHS_type_tarif_GUI.selectedItem.label + " au " + GHS_date_tarif_GUI.text + ".  ";
				}
				if (refSearch_GUI.selected == true) {
					selectionsNode.@displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (searchText_GUI.text != "") {
					selectionsNode.@displayText = selectionsNode.displayText + "(Filtre : " + searchText_GUI.text + ")  ";
				}
				
				exportExcel_xml.appendChild(selectionsNode);
				
				ongletNode = new XML(<ONGLET />);
				ongletNode.@excelLabel = tableCode;
				exportExcel_xml.appendChild(ongletNode);
				
				similiTabNode = new XML(<SIMILITAB />);
				similiTabNode.@excelLabel = "Liste";
				ongletNode.appendChild(similiTabNode);
				
				datagridNode = new XML(<DATAGRID />);
				datagridNode.@total = "false";
				ongletNode.appendChild(datagridNode);
				
				for each (var column:DataGridColumn in list_GUI.columns) {
					columnNode = new XML(<COLUMN />);
					columnNode.@dataField = column.dataField;
					columnNode.@headerText = column.headerText;
					if (column.getStyle("textAlign") != "right") {
						columnNode.@type = "Char";
					}
					else {
						columnNode.@type = "Number";
						columnNode.@outputFormat = "";
						columnNode.@currency = "";
					}
					columnNode.@textAlign = column.getStyle("textAlign");
					datagridNode.appendChild(columnNode);
				}
				
				exportExcel_dataNode = new XML(<DATA />);
				similiTabNode.appendChild(exportExcel_dataNode);
				
				if (list_collection.length > 1000) {
					progressBar = CTI_Progress(PopUpManager.createPopUp(this, CTI_Progress, true));
					progressBar.title = "Préparation export Excel";
					progressBar.progBar.label = "0 %";
					PopUpManager.centerPopUp(progressBar);
				}
				
				exportExcel_currentIndex = 0;
				
				exportExcel_interval = setInterval(exportExcel_createXML, 0);
			}
			
			
			private function exportExcel_createXML():void {
				
				for (var i:Number = 0; i < 100; i++) { 
					if (exportExcel_currentIndex < list_collection.length) {
						var itemNode:Object = list_collection[exportExcel_currentIndex];
						if (itemNode.oid != "-1") {
							var rowNode:XML = new XML(<ROW />);
							var c:int = 0;
							for each (var column:DataGridColumn in list_GUI.columns) {
								c++;
								rowNode.@["c" + c.toString()] = itemNode[column.dataField];
							}
							exportExcel_dataNode.appendChild(rowNode);
						}
						exportExcel_currentIndex = exportExcel_currentIndex + 1;
					}
				} 
				
				if (exportExcel_currentIndex >= list_collection.length) {
					clearInterval(exportExcel_interval);
					CTI_ExcelUtilitaires.exportExcel(exportExcel_xml);
					if (list_collection.length > 1000) {
						PopUpManager.removePopUp(progressBar);
					}
				}
				else {
					if (list_collection.length > 1000) {
						var percent:int = exportExcel_currentIndex / list_collection.length * 100;
						progressBar.progBar.label = percent.toString() + " %";
					}
				}
			}
			
			
			public function exportPDF():void {
				
				var xml:XML = new XML(<PDFEXPORT />);
				
				var ongletNode:XML;
				var similiTabNode:XML;
				var selectionsNode:XML;
				var datagridNode:XML;
				var columnNode:XML;
				var dataNode:XML;
				var rowNode:XML;
				
				xml.@viewName = this.viewName;
				xml.@title = this.title;
				
				selectionsNode = new XML(<SELECTIONS />);
				selectionsNode.displayText = "";
				if (tableCode == 'GHS') {
					selectionsNode.displayText = "Tarifs " + GHS_type_tarif_GUI.selectedItem.label + " au " + GHS_date_tarif_GUI.text + ".  ";
				}
				if (refSearch_GUI.selected == true) {
					selectionsNode.displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (searchText_GUI.text != "") {
					selectionsNode.displayText = selectionsNode.displayText + "(Filtre : " + searchText_GUI.text + ")  ";
				}
				
				xml.appendChild(selectionsNode);
				
				ongletNode = new XML(<ONGLET />);
				ongletNode.@excelLabel = tableCode;
				xml.appendChild(ongletNode);
				
				similiTabNode = new XML(<SIMILITAB />);
				similiTabNode.@excelLabel = "Liste";
				ongletNode.appendChild(similiTabNode);
				
				datagridNode = new XML(<DATAGRID />);
				datagridNode.@total = "false";
				ongletNode.appendChild(datagridNode);
				
				for each (var column:DataGridColumn in list_GUI.columns) {
					columnNode = new XML(<COLUMN />);
					columnNode.@dataField = column.dataField;
					columnNode.@headerText = column.headerText;
					columnNode.@type = "Char";
					columnNode.@textAlign = column.getStyle("textAlign");
					datagridNode.appendChild(columnNode);
				}
				
				dataNode = new XML(<DATA />);
				similiTabNode.appendChild(dataNode);
				
				for each (var itemNode:Object in list_collection) {
					if (itemNode.oid != "-1") {
						rowNode = new XML(<ROW />);
						var c:int = 0;
						for each (column in list_GUI.columns) {
							c++;
							rowNode.@["c" + c.toString()] = itemNode[column.dataField];
						}
						dataNode.appendChild(rowNode);
					}
				}
				
				CTI_PDFUtilitaires.exportPDF(xml);
				
				xml = null;
			}
			
			/**
			 * Lance la sauvegarde si toutes les validations ont été réalisées avec succès
			 * 
			 * @param	event	Résultat (valide) d'une validation de saisie texte
			 */
			private function valueIsValid(event:ValidationResultEvent):void {
				
				validObjects++;
				
				// Tous les éléments à valider ont été vérifiés
				if (invalidObjects + validObjects == objectsToValidate) {
					// Si aucune erreur de validation, on lance la sauvegarde
					if (invalidObjects == 0) {
						updateRecord("save");
					}
					// Remise à zéro des paramètres de validation
					realValidator.source = null;
					validObjects = 0;
					objectsToValidate = 0;
					invalidObjects = 0;
				}
			}
			
			/**
			 * Affiche une erreur en cas d'échec de validation
			 * 
			 * @param	event	Résultat (invalide) d'une validation de saisie texte
			 */
			private function valueIsInvalid(event:ValidationResultEvent):void {
				
				invalidObjects++;
				
				// Affiche un message indiquant quelle saisie texte n'est pas valide et pourquoi
				Alert.show(event.message, realValidator.source["toolTip"]);
				// Si tous les éléments à valider ont été vérifiés, on RAZ les paramètres de validation
				if (invalidObjects + validObjects == objectsToValidate) {
					realValidator.source = null;
					objectsToValidate = 0;
					invalidObjects = 0;
					validObjects = 0;
				}
			}
			
			/**
			 * Lance la validation d'une liste de zones de texte
			 * 
			 * @param	inputs	La liste de zones de texte à valider
			 */
			private function validateInputs(inputs:Array):void {
				
				// Initialise le nombre d'objets validés à 0
				validObjects = 0;
				// Initialise le nombre d'objets à valider
				objectsToValidate = inputs.length;
				
				// Ajuste les paramètres du validator selon les tables traitées
				switch (tableCode) {
					case "ED5" :
						realValidator.precision = 2;
						realValidator.maxValue = 100;
						break;
					case "ED6" :
						realValidator.precision = 0;
						realValidator.maxValue = NaN;
						break;
				}
				
				var input:Object;
				// Lance la validation de chaque entrée présente dans la liste à vérifier
				for each (input in inputs) {
					realValidator.source = input;
					realValidator.validate();
				}
			}
			
			/**
			 * Ouvre une boîte de dialogue qui permettra de choisir le territoire de santé
			 * du finess sélectionné
			 */
			private function chooseTersante():void {
				var query:String = "SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri " +
									" FROM base.t_territoires_sante " + 
									" UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, '  Sélectionnez une valeur...' as tri ORDER BY 3";
				var info:String = "Veuillez sélectionner le territoire de santé de l'établissement";
				var title:String = ETS_texte_GUI.text + " : Territoire de santé";
				var chooseParamBox:CTI_ChooseParamBox = new CTI_ChooseParamBox(query, info, title);
				chooseParamBox.getChoices();
				PopUpManager.addPopUp(chooseParamBox, this, true);
				PopUpManager.centerPopUp(chooseParamBox);
				chooseParamBox.addEventListener(CloseEvent.CLOSE, chooseTersante_handler);
				chooseParamBox.addEventListener(CTI_Event.SELECT, chooseTersante_handler);
				chooseParamBox.addEventListener(CTI_Event.READY, chooseTersante_handler);
			}
			
			/**
			 * Gère les évènements provenant de la boîte de dialogue de choix du territoire de santé d'un finess.
			 * 
			 * @param	event	Evènement provenant de la boîte de dialogue de choix du territoire de santé d'un finess
			 */
			private function chooseTersante_handler(event:Event):void {
				
				// Les données sont disponibles, on recentre uniquement la boite de dialogue
				if (event.type == CTI_Event.READY) {
					PopUpManager.centerPopUp(event.target as IFlexDisplayObject);
				}
				// Choix d'une donnée ou fermeture de la boîte de dialogue
				else {
					// Supprime les écouteurs
					event.target.removeEventListener(CTI_Event.SELECT, chooseTersante_handler);
					event.target.removeEventListener(CTI_Event.READY, chooseTersante_handler);
					event.target.removeEventListener(CloseEvent.CLOSE, chooseTersante_handler);
					
					// Dégage la boîte de dialogue
					PopUpManager.removePopUp(event.target as IFlexDisplayObject);
					CTI_ChooseParamBox(event.target).cleanUp();
					
					// Si une valeur a été sélectionnée, met à jour les infos du territoire de santé du finess
					if (event.type == CTI_Event.SELECT) {
						ETS_tersante_texte_GUI.text = CTI_Event(event).arg["texte"];
						ETS_tersante_id_GUI.text = CTI_Event(event).arg["oid"];
						recordUpdated = true;
					}
				}
			}
			
			
			private function setSelectedIndex(cb:Object, str:String):void {
				for (var idx:int = 0, len:int = cb.dataProvider.length; idx < len; idx++){
					if (cb.dataProvider.getItemAt(idx).data == str){
						cb.selectedIndex = idx;
					}
				}
			}
			
			public function dateFormat1(pDate:Date): String {
				var lDf : DateFormatter=new DateFormatter();
				lDf.formatString="DD/MM/YYYY";
				var lDateFormatee : String=lDf.format(pDate); 
				return lDateFormatee;
			}
			
			protected function dateLabelFunction(item:Object,column:DataGridColumn):String  {      
			   if (item.date_effet_autorisation != null && item.date_effet_autorisation != "") {
				   return dateFormat1(new Date(item.date_effet_autorisation.substr(0, 4), Number(item.date_effet_autorisation.substr(5, 2)) - 1, item.date_effet_autorisation.substr(8, 2)));
			   } else {
				   return "";
			   }
		    }
			
			protected function pourcentLabelFunction(item:Object, column:DataGridColumn):String  {    
				var a:String = "";
				switch (column.dataField) {
					case "seuil_degressivite" :
						a = Number(item.seuil_degressivite) + 0 == 0 ? "" : item.seuil_degressivite + " %";
						break;
					case "taux_correction_avant_mars" :
						a = Number(item.taux_correction_avant_mars) + 0 == 0 ? "" : item.taux_correction_avant_mars + " %";
						break;
					case "taux_correction_apres_mars" :
						a = Number(item.taux_correction_apres_mars) + 0 == 0 ? "" : item.taux_correction_apres_mars + " %";
						break;
					default :
						a = "N/A";
				}
				return a;
		    }
			
			private function importExcel_DG5():void {
				if (DG5_excel_textarea.length > 0) {
					updateRecord("import");
					hideExcelImport_DG5();
				}
			}
			
			private function hideExcelImport_DG5():void {
				DG5_excel_box.width = 0;
				DG5_excel_box.visible = false;
				DG5_excel_box.includeInLayout = false;
				DG5_excel_textarea.text = "";
			}
			
			private function showExcelImport_DG5():void {
				DG5_excel_box.width = 300;
				DG5_excel_box.visible = true;
				DG5_excel_box.includeInLayout = true;
			}
		]]>
	</mx:Script>
	
	<mx:NumberValidator id="realValidator" allowNegative="false" property="text" minValue="0" 
		precisionError="Trop de décimales après la virgule" 
		negativeError="Valeurs négatives non autorisées" 
		lowerThanMinError="Valeur trop petite" 
		exceedsMaxError="Valeur trop élevée"
		requiredFieldError="Valeur requise. Mettre 0 si indécis"
		valid="valueIsValid(event)" 
		invalid="valueIsInvalid(event)" />
	
	<mx:VBox width="100%" height="100%">
	
		<cti_control:CTIViewTitle id="GUI_titleBar" label="{title}" width="100%" height="25" />
		
		<mx:Canvas width="100%" height="28" >
			<mx:HBox id="GUI_buttonBar" width="100%">
				<mx:Button height="28" width="28" toolTip="Imprimer" icon="@Embed('../../base/swf/CTI/images/24/print.png')" labelPlacement="right" click="print()" visible="{currendRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Réafficher" icon="@Embed('../../base/swf/CTI/images/24/view-refresh.png')" labelPlacement="right" click="refreshData()" visible="{currendRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Exporter vers Excel" icon="@Embed('../../base/swf/CTI/images/24/excel.png')" labelPlacement="right" click="exportExcel()" visible="{currendRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Importer depuis l'environnement de référence" icon="@Embed('../../base/swf/CTI/images/24/document-save.png')" labelPlacement="right" click="getRefSettings()" visible="{has_refsettings &amp;&amp; tableCode == 'EXC' &amp;&amp; recordUpdated == false &amp;&amp; EXC_mode != 2}" includeInLayout="{has_refsettings &amp;&amp; tableCode == 'EXC'}"  />
				<mx:Button height="28" width="28" toolTip="Importer des données Excel" icon="@Embed('../../base/swf/CTI/images/24/document-import.png')" click="showExcelImport_DG5()" visible="{tableCode == 'DG5' &amp;&amp; currendRecordItem == null}" includeInLayout="{tableCode == 'DG5'}" />
				<mx:Spacer />
				<mx:Button height="28" width="28" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/24/list-add.png')" labelPlacement="right" click="addRecord()" visible="{tableCode == 'EXC' || tableCode == 'LPP' || tableCode == 'UCD'}" />
				<mx:Button height="28" width="130" label="Préférences" toolTip="Préférences" icon="@Embed('../../base/swf/CTI/images/24/preferences-desktop.png')" labelPlacement="right" click="EXC_show_generalSettings()" enabled="{!recordUpdated &amp;&amp; currendRecordItem == null}" visible="{tableCode == 'EXC' &amp;&amp; EXC_mode != 2}" includeInLayout="{tableCode == 'EXC' &amp;&amp; EXC_mode != 2}" />
				<mx:Spacer />
				<mx:Button height="28" width="130" label="Exécuter" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-upgrade.png')" labelPlacement="right" click="EXC_execute_rules()" enabled="{!recordUpdated &amp;&amp; currendRecordItem == null}" visible="{tableCode == 'EXC'}" includeInLayout="{tableCode == 'EXC'}" />
				<mx:Button height="28" width="28" toolTip="Script SQL" icon="@Embed('../../base/swf/CTI/images/sql24.png')" labelPlacement="right" click="EXC_getSQL()"  visible="{tableCode == 'EXC' &amp;&amp; recordUpdated == false}" includeInLayout="{tableCode == 'EXC'}"  />
				<mx:Spacer />
				<mx:Button height="28" width="28" toolTip="Aide" icon="@Embed('../../base/swf/CTI/images/24/help.png')" labelPlacement="right" click="application.displayHelp()" visible="{hasHelp}" />
				<mx:Button height="28" width="28" toolTip="A propos" icon="@Embed('../../base/swf/CTI/images/24/information.png')" labelPlacement="right" click="application.showApropos_view()" />
				<mx:Spacer width="100%" />
				<mx:HBox visible="{tableCode != 'TAG' &amp;&amp; tableCode != 'TAU' &amp;&amp; tableCode != 'MEN' &amp;&amp; tableCode != 'MSO' &amp;&amp; tableCode != 'MEP' &amp;&amp; tableCode != 'MSD' &amp;&amp; tableCode != 'GMA' &amp;&amp; tableCode != 'CCR' &amp;&amp; tableCode != 'ED1' &amp;&amp; tableCode != 'ED2' &amp;&amp; tableCode != 'ED5' }" >
					<mx:Canvas >
						<mx:HBox visible="{tableCode == 'GHS'}" includeInLayout="{tableCode == 'GHS'}" >
							<mx:Label text="Tarif" />
							<mx:ComboBox id="GHS_type_tarif_GUI" dataProvider="{GHS_types_tarif}" change="getData()" />
							<mx:Label text="au" />
							<mx:DateField width="100" id="GHS_date_tarif_GUI"
															formatString="DD/MM/YYYY" 
															editable="true"
															dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
															firstDayOfWeek="1"
															monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
															yearNavigationEnabled="true"
															change="getData()"
														/>		
						</mx:HBox>
					</mx:Canvas>
					<mx:Label text="Filtre" />
					<mx:TextArea width="100%" height="18" id="searchText_GUI" change="searchChange()" />
					<mx:Spacer width="10" />
					<mx:Label text="Référencés" />
					<mx:CheckBox id="refSearch_GUI" change="searchChange()" toolTip="Choisir tous les codes ou uniquement les codes utilisés" />
				</mx:HBox>
			</mx:HBox>
		</mx:Canvas>
		
		<mx:Canvas width="100%" height="100%" id="mainBox">
		
			<mx:VDividedBox id="SPE_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SPE_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (médecins)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SPE_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>

					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SPE_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="SPE_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SPE_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="SPE_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ETS_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ETS_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ETS_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="200" text="Finess" />
						<mx:TextArea width="100" height="18" id="ETS_code_GUI" change="recordUpdated = true" fontWeight="bold" borderStyle="none" editable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="Intitulé" />
						<mx:TextArea width="300" height="18" id="ETS_texte_GUI" change="recordUpdated = true" fontWeight="bold" borderStyle="none" editable="false" />
					</mx:HBox>
					<mx:HBox verticalAlign="middle">
						<mx:Label width="200" text="Territoire de santé" />
						<mx:TextArea width="250" height="18" id="ETS_tersante_texte_GUI" change="recordUpdated = true" fontWeight="bold" borderStyle="none" editable="false" />
						<mx:Button label="Choisir..." click="chooseTersante()" />
						<mx:TextArea id="ETS_tersante_id_GUI" change="recordUpdated = true" visible="false" />
						<mx:Spacer width="100%" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="Historique Coefficients MCO" />
						
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_1_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_2_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
							
						/>	
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_3_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>	
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_4_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>	
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_5_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>	
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_6_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>	
						<mx:DateField width="100" id="ETS_date_debut_coefficient_mco_7_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
						/>	
						<mx:DateField width="0" id="ETS_date_debut_coefficient_mco_8_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
							visible="false"
						/>	
						<mx:DateField width="0" id="ETS_date_debut_coefficient_mco_9_GUI"
							formatString="DD/MM/YYYY" 
							editable="true"
							dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
							firstDayOfWeek="1"
							monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
							yearNavigationEnabled="true"
							change="recordUpdated = true" 
							visible="false"
						/>	
						
					</mx:HBox>


					<mx:HBox>
						<mx:Label width="200" text="Coefficients MCO" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_1_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_1_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_2_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_2_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_3_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_3_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_4_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_4_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_5_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_5_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_6_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_6_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_7_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_mco_7_GUI.text != ''}" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_mco_8_GUI" change="recordUpdated = true" visible="false" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_mco_9_GUI" change="recordUpdated = true" visible="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="- Transition" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_1_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_1_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_1_GUI.text != '' }" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_2_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_2_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_2_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_3_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_3_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_3_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_4_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_4_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_4_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_5_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_5_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_5_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_6_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_6_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_6_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_transition_7_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_7_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_7_GUI.text != ''}" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_transition_8_GUI" change="recordUpdated = true" visible="false" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_transition_9_GUI" change="recordUpdated = true" visible="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="- Haute technicité" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_1_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_1_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_1_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_2_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_2_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_2_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_3_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_3_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_3_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_4_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_4_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_4_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_5_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_5_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_5_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_6_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_6_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_6_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_ht_7_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_7_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_7_GUI.text != ''}" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_ht_8_GUI" change="recordUpdated = true" visible="false" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_ht_9_GUI" change="recordUpdated = true" visible="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="- Géographique" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_1_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_1_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_1_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_2_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_2_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_2_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_3_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_3_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_3_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_4_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_4_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_4_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_5_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_5_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_5_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_6_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_6_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_6_GUI.text != ''}" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_geo_7_GUI" change="recordUpdated = true" visible="{ETS_coefficient_mco_7_GUI.text != '0' &amp;&amp; ETS_date_debut_coefficient_mco_7_GUI.text != ''}" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_geo_8_GUI" change="recordUpdated = true" visible="false" />
						<mx:TextArea width="0" height="18" id="ETS_coefficient_geo_9_GUI" change="recordUpdated = true" visible="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="Coefficient MCO simulation FG11" />
						<mx:TextArea width="100" height="18" id="ETS_coefficient_mco_simulation_fg11_GUI" change="recordUpdated = true" />
					</mx:HBox>


                    <mx:HBox>
                        <mx:Label width="200" text="Historique Coefficients pacte responsabilité + CITS" />
                        
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_1_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_2_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                            
                        />  
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_3_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />  
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_4_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />  
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_5_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />  
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_6_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />  
                        <mx:DateField width="100" id="ETS_date_debut_coefficient_pacte_resp_7_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                        />  
                        <mx:DateField width="0" id="ETS_date_debut_coefficient_pacte_resp_8_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                            visible="false"
                        />  
                        <mx:DateField width="0" id="ETS_date_debut_coefficient_pacte_resp_9_GUI"
                            formatString="DD/MM/YYYY" 
                            editable="true"
                            dayNames="['D', 'L', 'M', 'M', 'J', 'V', 'S']"
                            firstDayOfWeek="1"
                            monthNames="['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']"
                            yearNavigationEnabled="true"
                            change="recordUpdated = true" 
                            visible="false"
                        />  
                        
                    </mx:HBox>

                    <mx:HBox>
                        <mx:Label width="200" text="Coefficients pacte de responsabilité + CITS ou CICE" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_1_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_1_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_2_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_2_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_3_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_3_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_4_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_4_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_5_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_5_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_6_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_6_GUI.text != ''}" />
                        <mx:TextArea width="100" height="18" id="ETS_coefficient_pacte_resp_7_GUI" change="recordUpdated = true" visible="{ETS_date_debut_coefficient_pacte_resp_7_GUI.text != ''}" />
                        <mx:TextArea width="0" height="18" id="ETS_coefficient_pacte_resp_8_GUI" change="recordUpdated = true" visible="false" />
                        <mx:TextArea width="0" height="18" id="ETS_coefficient_pacte_resp_9_GUI" change="recordUpdated = true" visible="false" />
                    </mx:HBox>                    
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="200" text="Oid" />
						<mx:TextArea width="300" height="18" id="ETS_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="200" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="ETS_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="SPI_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SPI_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="specialite_defaut_codes" headerText="Spécialités (défaut)" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (médecins)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SPI_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; SPI_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier la spécialité" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; SPI_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la spécialité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(SPI_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; SPI_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SPI_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="SPI_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Spécialité officielles par défaut" />
						<mx:TextArea width="50" height="18" id="SPI_specialite_defaut_code_1_GUI" change="recordUpdated = true" />
						<mx:TextArea width="50" height="18" id="SPI_specialite_defaut_code_2_GUI" change="recordUpdated = true" />
						<mx:TextArea width="50" height="18" id="SPI_specialite_defaut_code_3_GUI" change="recordUpdated = true" />
						<mx:TextArea width="50" height="18" id="SPI_specialite_defaut_code_4_GUI" change="recordUpdated = true" />
						<mx:TextArea width="50" height="18" id="SPI_specialite_defaut_code_5_GUI" change="recordUpdated = true" />
					</mx:HBox>
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SPI_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="SPI_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="MED_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MED_list_GUI" rowHeight="40" headerHeight="60"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" />
						<mx:DataGridColumn dataField="nom" headerText="Nom" width="300" editable="false" />
						<mx:DataGridColumn dataField="prenom" headerText="Prénom" width="100" editable="false" />
						<mx:DataGridColumn dataField="no_adeli" headerText="N° ADELI" width="100" editable="false" />
						<mx:DataGridColumn dataField="specialite" headerText="Spécialité" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="medecin_reference" headerText="Médecin référence" width="200"  editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références RSS" width="100" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="nbref2" headerText="Nombre Références Actes" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="MED_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; MED_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%">
						<mx:VBox width="100%" height="100%">
							
							<mx:HBox>
								<mx:Label width="120" text="Code" />
								<mx:TextArea width="100" height="18" id="MED_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Nom" />
								<mx:TextArea width="500" height="18" id="MED_nom_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Prénom" />
								<mx:TextArea width="500" height="18" id="MED_prenom_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Identifiant annuaire" />
								<mx:TextArea width="500" height="18" id="MED_identifiant_annuaire_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Médecin référence" />
								<mx:TextArea width="500" height="18" id="MED_medecin_reference_GUI" editable="false" fontWeight="bold" selectable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Spécialité" />
								<mx:ComboBox id="MED_specialite_GUI" width="300" labelField="texte" change="recordUpdated = true" />
							</mx:HBox>
							<mx:HBox visible="false" height="0">
								<mx:Label width="120" text="Oid" />
								<mx:TextArea width="300" height="18" id="MED_oid_GUI" change="recordUpdated = true" editable="false" />
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="120" text="Nombre références RSS" />
								<mx:TextArea width="300" height="18" id="MED_nbref_GUI" change="recordUpdated = true" editable="false" />
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="120" text="Nombre références Actes" />
								<mx:TextArea width="300" height="18" id="MED_nbref2_GUI" change="recordUpdated = true" editable="false" />
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="120" text="Médecins regroupés" />
								<mx:TextArea id="MED_medecins_regroupes_oids_GUI" width="300" editable="false" />
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="120" text="Médecin référence" />
								<mx:TextArea width="300" height="18" id="MED_medecin_reference_id_GUI" editable="false" />
							</mx:HBox>
						</mx:VBox>
						
						<mx:VBox width="100%" height="100%" visible="false" includeInLayout="false">
							<mx:Label width="150" text="Médecins à regrouper" />
							<mx:DataGrid id="MED_medecins_regroupes_GUI" rowHeight="20" 
								height="50%" width="100%" allowMultipleSelection="true" doubleClickEnabled="true" 
								wordWrap="false" doubleClick="MED_medecins_regroupes_remove()"
								fontFamily="tahoma" fontSize="11">
								<mx:columns>
									<mx:DataGridColumn dataField="texte" headerText="Médecins regroupés" width="100" editable="false" />
								</mx:columns>
							</mx:DataGrid>
							<mx:HBox width="100%" >
								<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/go-up.png')" labelPlacement="right" click="MED_medecins_regroupes_add()" />
								<mx:Button height="20" width="20" label="Enlever" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/go-down.png')" labelPlacement="right" click="MED_medecins_regroupes_remove()" />
								<mx:Spacer width="20" />
								<mx:HBox width="100%">
									<mx:Label text="Recherche" width="70" />
									<mx:TextArea id="MED_medecins_a_regrouper_searchText_GUI" width="100%" height="18" change="MED_medecins_a_regrouper_searchChange()" />
								</mx:HBox>
							</mx:HBox>
							<mx:DataGrid id="MED_medecins_a_regrouper_GUI" rowHeight="20" 
								height="50%" width="100%" allowMultipleSelection="true" doubleClickEnabled="true" 
								wordWrap="false" doubleClick="MED_medecins_regroupes_add()"
								fontFamily="tahoma">
								<mx:columns>
									<mx:DataGridColumn dataField="texte" headerText="Médecins à regrouper" width="100" editable="false" />
								</mx:columns>
							</mx:DataGrid>
						</mx:VBox>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="TAG_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="TAG_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="age_min" headerText="Age minimum" width="100" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="age_max" headerText="Age maximum" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="TAG_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; TAG_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier la tranche" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; TAG_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la tranche" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" visible="{recordUpdated == false &amp;&amp; TAG_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="TAG_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="TAG_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="300" height="18" id="TAG_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Age minimum" />
						<mx:TextArea width="50" height="18" id="TAG_age_min_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Age maximum" />
						<mx:TextArea width="50" height="18" id="TAG_age_max_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="TAG_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="UMD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="UMD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="type_autorisation" headerText="Autorisation" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_effet_autorisation" headerText="Date d'effet" width="100" editable="false" labelFunction="{dateLabelFunction}" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nb_lits" headerText="Nombre de lits" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="mode_hospitalisation" headerText="Mode d'hospitalisation" width="150" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="um_expedition_codetexte" headerText="UM Expédition" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RUM)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="UMD_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; UMD_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'unité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(UMD_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; UMD_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="UMD_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="UMD_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type autorisation" />
						<mx:ComboBox id="UMD_type_autorisation_GUI" width="400" labelField="texte" change="recordUpdated = true" rowCount="10" />
						<mx:Label width="100" text="Date d'effet" />
						<mx:DateField id="UMD_date_effet_autorisation_GUI"
							enabled="{UMD_type_autorisation_GUI.selectedItem.oid != 0}"
							width="200"
							yearNavigationEnabled="true"
							firstDayOfWeek="1"
							dayNames="['D','L','M','M','J','V','S']"
							monthNames="['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre']"
							formatString="DD/MM/YYYY"
							change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Nombre de lits" />
						<mx:NumericStepper id="UMD_nb_lits_GUI" width="200" minimum="0" maximum="999" stepSize="1" change="recordUpdated = true" enabled="{UMD_type_autorisation_GUI.selectedItem.oid != 0}" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Mode d'hospitalisation" />
						<mx:ComboBox id="UMD_mode_hospitalisation_GUI" width="400" dataProvider="{UMD_mode_hospitalisation}" change="recordUpdated = true" enabled="{UMD_type_autorisation_GUI.selectedItem.oid != 0}" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type éclatement" />
						<mx:ComboBox id="UMD_type_eclatement_GUI" width="400" dataProvider="{UMD_type_eclatement}" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type séjour" />
						<mx:ComboBox id="UMD_type_sejour_GUI" width="400" dataProvider="{UMD_type_sejour}" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type ventilation C.A." />
						<mx:ComboBox id="UMD_type_ventilation_ca_GUI" width="400" dataProvider="{UMD_type_ventilation_ca}" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="UM expédition" />
						<mx:ComboBox id="UMD_um_expedition_id_GUI" width="400" labelField="codetexte" change="recordUpdated = true" rowCount="10" />
						<mx:Label text="Unité médicale sur laquelle est regoupée cette UM avant envoi ePMSI" fontStyle="italic" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Médecin par défaut" />
						<mx:ComboBox id="UMD_medecin_par_defaut_id_GUI" width="400" labelField="texte" change="recordUpdated = true" rowCount="10" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="UMD_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="UMD_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="UFC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="UFC_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Actes)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="UFC_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; UFC_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'unité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(UFC_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; UFC_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:Label width="100" height="18" id="UFC_code_GUI" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="UFC_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="UFC_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="UFC_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="DMS_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="DMS_list_GUI" rowHeight="20" headerHeight="20"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="DMS_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; DMS_texte_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'unité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" visible="{recordUpdated == false &amp;&amp; DMS_oid_GUI.text != '-1' &amp;&amp; DMS_list_GUI.selectedIndex == 0}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>

					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="DMS_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="DMS_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="{DMS_list_GUI.selectedIndex == 0}" selectable="{DMS_list_GUI.selectedIndex == 0}" />
					</mx:HBox>

					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="DMS_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Button height="20" label="Import DMS" toolTip="Importer des DMS" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="DMS_ghm_import()" visible="{DMS_list_GUI.selectedIndex == 0}" />
						<mx:Button height="20" label="Effacer DMS" toolTip="Effacer les DMS" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="DMS_ghm_erase()" visible="{DMS_list_GUI.selectedIndex == 0}" />
						<mx:Spacer width="100%" />
						<mx:Label text="Uniquement DMS renseignées" />
						<mx:CheckBox id="DMS_ghm_saisies_GUI" change="DMS_ghm_list_searchChange()" toolTip="Choisir tous les codes ou uniquement les codes utilisés" />
					</mx:HBox>

					<mx:DataGrid rowHeight="20" 
						id="DMS_ghm_list_GUI" 
						height="100%" width="100%"
						wordWrap="false" 
						fontFamily="tahoma">
						<mx:columns>
							<mx:DataGridColumn dataField="code" headerText="Code" width="70" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="texte" headerText="Texte" width="300" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="dms" headerText="DMS" width="50" editable="false" headerWordWrap="true" textAlign="right" />
						</mx:columns>
					</mx:DataGrid>
							
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ASO_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ASO_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ASO_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ASO_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="ASO_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ASO_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="ASO_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="GHV_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="GHV_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GHV_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="GHV_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="GHV_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="GHV_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="GHV_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="CMD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CMD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CMD_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CMD_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="CMD_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="CMD_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CMD_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CMD_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="POA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="POA_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="POA_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="POA_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="POA_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="POA_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="POA_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="POA_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="LOA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="LOA_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="pole_oap" headerText="Pole OAP" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="LOA_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="LOA_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="LOA_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Pole OAP" />
						<mx:TextArea width="100%" height="18" id="LOA_pole_oap_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="LOA_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="LOA_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="GAC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="GAC_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GAC_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="GAC_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="GAC_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="GAC_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="GAC_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="GAC_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="GHM_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="GHM_list_GUI" rowHeight="40" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="aso" headerText="Aso" width="40" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="cas" headerText="C.A.S." width="40" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="pole_oap" headerText="Pole OAP" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GHM_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="GHM_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="GHM_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Aso" />
						<mx:TextArea width="50" height="18" id="GHM_aso_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />	
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="C.A.S." />
						<mx:TextArea width="300" height="18" id="GHM_cas_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />	
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Pole OAP" />
						<mx:TextArea width="100%" height="18" id="GHM_pole_oap_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Ligne OAP" />
						<mx:TextArea width="100%" height="18" id="GHM_ligne_oap_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Groupe d'activité" />
						<mx:TextArea width="100%" height="18" id="GHM_groupe_activite_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="GHM_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="GHM_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="GHS_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="GHS_list_GUI" rowHeight="40" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="60" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="borne_basse" headerText="Borne basse" width="50" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="borne_haute" headerText="Borne haute" width="50" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="dms_nationale" headerText="Dms nat." width="50" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="tarif_ghs" headerText="Tarif GHS" width="80" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="forfait_exb" headerText="Forfait EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="tarif_exb" headerText="Tarif EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="tarif_exh" headerText="Tarif EXH" width="80" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="60" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GHS_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="GHS_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="GHS_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
				
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="GHS_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="GHS_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
					<mx:TabNavigator width="100%" height="100%">
						<mx:Canvas width="100%" height="100%" label="Tarifs Privé">
							<mx:DataGrid rowHeight="20" 
								dataProvider="{GHS_tarifs_prives}"
								height="100%" width="100%"
								wordWrap="false" 
								fontFamily="tahoma">
								<mx:columns>
									<mx:DataGridColumn dataField="date_debut" headerText="Date début" width="70" editable="false" headerWordWrap="true" />
									<mx:DataGridColumn dataField="date_fin" headerText="Date fin" width="70" editable="false" headerWordWrap="true" />
									<mx:DataGridColumn dataField="borne_basse" headerText="Borne basse" width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="borne_haute" headerText="Borne haute" width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="dms_nationale" headerText="Dms nat." width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_ghs" headerText="Tarif GHS" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="forfait_exb" headerText="Forfait EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_exb" headerText="Tarif EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_exh" headerText="Tarif EXH" width="80" editable="false" headerWordWrap="true" textAlign="right" />
								</mx:columns>
							</mx:DataGrid>
						</mx:Canvas>
						<mx:Canvas width="100%" height="100%" label="Tarifs Public">
							<mx:DataGrid rowHeight="20" 
								dataProvider="{GHS_tarifs_publics}"
								height="100%" width="100%"
								wordWrap="false" 
								fontFamily="tahoma">
								<mx:columns>
									<mx:DataGridColumn dataField="date_debut" headerText="Date début" width="70" editable="false" headerWordWrap="true" />
									<mx:DataGridColumn dataField="date_fin" headerText="Date fin" width="70" editable="false" headerWordWrap="true" />
									<mx:DataGridColumn dataField="borne_basse" headerText="Borne basse" width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="borne_haute" headerText="Borne haute" width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="dms_nationale" headerText="Dms nat." width="50" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_ghs" headerText="Tarif GHS" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="forfait_exb" headerText="Forfait EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_exb" headerText="Tarif EXB" width="80" editable="false" headerWordWrap="true" textAlign="right" />
									<mx:DataGridColumn dataField="tarif_exh" headerText="Tarif EXH" width="80" editable="false" headerWordWrap="true" textAlign="right" />
								</mx:columns>
							</mx:DataGrid>
						</mx:Canvas>
					</mx:TabNavigator>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="DIA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="DIA_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev1311d" headerText="CMA 2012" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev1311e" headerText="CMA 2013" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev1311f" headerText="CMA 2014" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev1311g" headerText="CMA 2015" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev2016" headerText="CMA 2016" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev2017" headerText="CMA 2017" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="sev2018" headerText="CMA 2018" width="30" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Diagnostics)" width="100" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="DIA_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>							
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; DIA_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="DIA_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="DIA_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="DIA_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="DIA_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>
				
			</mx:VDividedBox>
			
			<mx:VDividedBox id="CCR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CCR_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CCR_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CCR_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="CCR_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="CCR_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CCR_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="GMA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="GMA_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GMA_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="GMA_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="GMA_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="GMA_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Actes associés" />
						<mx:TextArea width="100%" height="60" id="GMA_actes_codes_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="GMA_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ACT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ACT_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="classant" headerText="Classant" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="regroupement_1" headerText="Regroupement" width="120" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="geste_marqueur" headerText="Geste marqueur MSAP 2015" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="icr_1" headerText="ICR" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="icr_4" headerText="ICR A" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Actes)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ACT_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ACT_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="ACT_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Classant" />
						<mx:TextArea width="100" height="18" id="ACT_classant_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Geste marqueur" />
						<mx:TextArea width="300" height="18" id="ACT_geste_marqueur_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Regroupements" />
						<mx:TextArea width="50" height="18" id="ACT_regroupement_1_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
						<mx:TextArea width="50" height="18" id="ACT_regroupement_4_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="ICR" />
						<mx:TextArea width="50" height="18" id="ACT_icr_1_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
						<mx:TextArea width="50" height="18" id="ACT_icr_4_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
				
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ACT_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="ACT_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="PRE_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="PRE_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Préstations)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="PRE_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; PRE_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="PRE_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="PRE_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="36" id="PRE_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="PRE_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="PRE_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="LPP_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="LPP_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="code_fg11_label" headerText="En sus FG11 ?" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (LPP)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="LPP_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; LPP_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier le code LPP" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; LPP_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer le code LPP" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(LPP_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; LPP_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="LPP_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="LPP_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="36" id="LPP_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="En sus du GHS en FG11 ?" />
						<mx:CheckBox id="LPP_code_fg11_GUI" change="recordUpdated = true" />
					</mx:HBox>

					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="LPP_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="LPP_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="UCD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="UCD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="laboratoire_texte" headerText="Laboratoire" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (UCD)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="UCD_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; UCD_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier le code UCD" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; UCD_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer le code UCD" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(UCD_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; UCD_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="UCD_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="UCD_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="36" id="UCD_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Laboratoire" />
						<mx:TextArea width="100%" height="36" id="UCD_laboratoire_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="UCD_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="UCD_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="CMM_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CMM_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CMM_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; CMM_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier le code CMM" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; CMM_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer le code CMM" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(CMM_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; CMM_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CMM_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="CMM_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CMM_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CMM_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="TAU_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="TAU_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="TAU_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="TAU_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="TAU_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="TAU_texte_court_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					
					
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="MEN_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MEN_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte_court" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="MEN_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>							
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; MEN_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MEN_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="MEN_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="MEN_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
				</mx:VBox>
				
			</mx:VDividedBox>
			
			<mx:VDividedBox id="MSO_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MSO_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte_court" headerText="Abrégé" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="MSO_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>							
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; MSO_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MSO_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="MSO_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="MSO_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
				</mx:VBox>
				
			</mx:VDividedBox>
			
			<mx:VDividedBox id="MEP_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MEP_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%" 
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte_court" headerText="Abrégé" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="MEP_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>							
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; MEP_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MEP_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="MEP_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="MEP_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
				</mx:VBox>
				
			</mx:VDividedBox>
			
			<mx:VDividedBox id="MSD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MSD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%" 
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte_court" headerText="Abrégé" width="400" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="MSD_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>							
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; MSD_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MSD_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="MSD_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="100%" height="18" id="MSD_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
				</mx:VBox>
				
			</mx:VDividedBox>
			
			<mx:VDividedBox id="DEP_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="DEP_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="DEP_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; DEP_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'unité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(DEP_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; DEP_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="DEP_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="DEP_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="300" height="18" id="DEP_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="DEP_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="DEP_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="CPO_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CPO_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="departement" headerText="Département" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="code_geo_pmsi" headerText="Code géo PMSI" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CPO_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; CPO_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'unité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(CPO_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; CPO_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CPO_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="CPO_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="300" height="18" id="CPO_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Département" />
						<mx:ComboBox id="CPO_departement_GUI" width="400" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code géo PMSI" />
						<mx:TextArea width="100" height="18" id="CPO_code_geo_pmsi_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Population" />
						<mx:TextArea width="100" height="18" id="CPO_population_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CPO_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CPO_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="SGE_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SGE_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (codes postaux)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SGE_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; SGE_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier la spécialité" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; SGE_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la spécialité" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{Number(SGE_nbref_GUI.text) == 0}" visible="{recordUpdated == false &amp;&amp; SGE_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SGE_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="SGE_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="300" height="18" id="SGE_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%" >
						<mx:VBox width="50%" height="100%" >
							<mx:DataGrid id="SGE_codes_regroupes_GUI" rowHeight="20" 
								height="100%" width="100%" allowMultipleSelection="true" doubleClickEnabled="true" 
								wordWrap="false" doubleClick="SGE_codes_regroupes_remove()"
								fontFamily="tahoma">
								<mx:columns>
									<mx:DataGridColumn dataField="texte" headerText="Codes postaux du secteur" width="300" editable="false" />
								</mx:columns>
							</mx:DataGrid>
						</mx:VBox>
						<mx:VBox height="100%" >
							<mx:Spacer height="50%" />
							<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="SGE_codes_regroupes_add()" />
							<mx:Button height="20" width="20" label="Enlever" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="SGE_codes_regroupes_remove()" />
							<mx:Spacer height="50%" />
						</mx:VBox>
						<mx:VBox width="50%" height="100%" >
							<mx:HBox width="100%">
								<mx:Label text="Recherche" width="70" />
								<mx:TextArea id="SGE_codes_a_regrouper_searchText_GUI" width="100%" height="18" change="SGE_codes_a_regrouper_searchChange()" />
							</mx:HBox>
							<mx:DataGrid id="SGE_codes_a_regrouper_GUI" rowHeight="20" 
								height="100%" width="100%" allowMultipleSelection="true" doubleClickEnabled="true" 
								wordWrap="false" doubleClick="SGE_codes_regroupes_add()"
								fontFamily="tahoma">
								<mx:columns>
									<mx:DataGridColumn dataField="texte" headerText="Codes postaux disponibles" width="300" editable="false" />
								</mx:columns>
							</mx:DataGrid>
						</mx:VBox>
					</mx:HBox>
					
					<mx:HBox visible="false" height="0" width="100%">
						<mx:Label width="120" text="Codes regroupés" />
						<mx:TextArea id="SGE_codes_regroupes_oids_GUI" width="100%" editable="false" />
					</mx:HBox>
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SGE_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="SGE_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
					

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="CGP_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CGP_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="codes" headerText="Codes postaux" width="200" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (RSS)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CGP_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>

					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CGP_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="CGP_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Abrégé" />
						<mx:TextArea width="300" height="18" id="CGP_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Population" />
						<mx:TextArea width="100" height="18" id="CGP_population_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Codes postaux" />
						<mx:TextArea width="300" height="18" id="CGP_codes_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CGP_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CGP_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ED1_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ED1_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="ghm_1_code" headerText="GHM 1" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="ghm_2_code" headerText="GHM 2" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="ghm_3_code" headerText="GHM 3" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_2008" headerText="Taux cible 2008" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_2009" headerText="Taux cible 2009" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_2010" headerText="Taux cible 2010" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_2011" headerText="Taux cible 2011" width="100" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ED1_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; ED1_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ED1_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="ED1_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="18" id="ED1_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:Spacer />
					<mx:HBox width="100%">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="18" id="ED1_ghm_1_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="" />
						<mx:TextArea width="100%" height="18" id="ED1_ghm_2_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="" />
						<mx:TextArea width="100%" height="18" id="ED1_ghm_3_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:Spacer />
					<mx:HBox width="100%">
						<mx:Label width="150" text="Taux cibles (2008-2011)" />
						<mx:TextArea width="80" height="18" id="ED1_taux_cible_2008_GUI" change="recordUpdated = true" fontWeight="bold" />
						<mx:TextArea width="80" height="18" id="ED1_taux_cible_2009_GUI" change="recordUpdated = true" fontWeight="bold" />
						<mx:TextArea width="80" height="18" id="ED1_taux_cible_2010_GUI" change="recordUpdated = true" fontWeight="bold" />
						<mx:TextArea width="80" height="18" id="ED1_taux_cible_2011_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ED1_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
				</mx:VBox>

			</mx:VDividedBox>
			
			<!-- ED2 deprécié. Remplacé par ED6 -->
			<mx:VDividedBox id="ED2_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ED2_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_2008" headerText="Seuil 2008" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_2009" headerText="Seuil 2009" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_2010" headerText="Seuil 2010" width="100" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ED2_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; ED2_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ED2_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>

					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="ED2_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="18" id="ED2_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:Spacer />
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil 2008" />
						<mx:TextArea width="80" height="18" id="ED2_seuil_2008_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil 2009" />
						<mx:TextArea width="80" height="18" id="ED2_seuil_2009_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil 2010" />
						<mx:TextArea width="80" height="18" id="ED2_seuil_2010_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil 2011" />
						<mx:TextArea width="80" height="18" id="ED2_seuil_2011_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ED2_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					
				</mx:VBox>
			</mx:VDividedBox>
			
			<!-- ED4 deprecated
			<mx:VDividedBox id="ED4_mainBox" width="100%" height="100%" visible="false">
				<mx:DataGrid id="ED4_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_regional_2009" headerText="Seuil Rég. 2009" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_regional_2010" headerText="Seuil Rég. 2010" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_regional_2011" headerText="Seuil Rég. 2011" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_regional_2012" headerText="Seuil Rég. 2012" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_national_2009" headerText="Seuil Nat. 2009" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_national_2010" headerText="Seuil Nat. 2010" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_national_2011" headerText="Seuil Nat. 2011" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_national_2012" headerText="Seuil Nat. 2012" width="100" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				<mx:VBox id="ED4_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; ED4_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ED4_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="ED4_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="100%" height="18" id="ED4_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" />
					</mx:HBox>
					<mx:Spacer />
					<mx:HBox width="100%">
						<mx:VBox width="100%">
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil regional 2009" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_regional_2009_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil regional 2010" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_regional_2010_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil regional 2011" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_regional_2011_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil regional 2012" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_regional_2012_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
						</mx:VBox>
						<mx:VBox width="100%">
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil national 2009" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_national_2009_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil national 2010" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_national_2010_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil national 2011" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_national_2011_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Seuil national 2012" />
								<mx:TextArea width="80" height="18" id="ED4_seuil_national_2012_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
						</mx:VBox>
						<mx:HBox visible="false" height="0">
							<mx:Label width="150" text="Oid" />
							<mx:TextArea width="300" height="18" id="ED4_oid_GUI" change="recordUpdated = true" editable="false" />
						</mx:HBox>
					</mx:HBox>
				</mx:VBox>
			</mx:VDividedBox>
			-->
			
			<mx:VDividedBox id="ED5_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ED5_list_GUI" rowHeight="20" headerHeight="60"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="60" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_ets" headerText="Taux cible Etablissement" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_cible_ars" headerText="Taux cible ARS" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_moyen_regional" headerText="Taux moyen régional (calculé)" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="taux_moyen_national" headerText="Taux moyen national (calculé)" width="80" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				<mx:VBox id="ED5_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; ED5_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ED5_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" borderStyle="none" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="ED5_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" borderStyle="none" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Liste" />
						<mx:TextArea width="100%" height="18" id="ED5_liste_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" selectable="false" borderStyle="none" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Taux cible Etablissement" />
						<mx:TextArea width="50" height="18" id="ED5_taux_cible_ets_GUI" toolTip="Taux cible Etablissement" change="recordUpdated = true" fontWeight="bold" maxChars="6" restrict="0-9." />
						<mx:Label text="%" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Taux cible ARS" />
						<mx:TextArea width="50" height="18" id="ED5_taux_cible_ars_GUI" toolTip="Taux cible ARS" change="recordUpdated = true" fontWeight="bold" maxChars="6" restrict="0-9." />
						<mx:Label text="%" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Taux moyen régional" />
						<mx:TextArea width="50" height="18" id="ED5_taux_moyen_regional_GUI" toolTip="Taux moyen régional" editable="false" selectable="false" borderStyle="none" fontWeight="bold" />
						<mx:Label text="%" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Taux moyen national" />
						<mx:TextArea width="50" height="18" id="ED5_taux_moyen_national_GUI" toolTip="Taux moyen national" editable="false" selectable="false" borderStyle="none" fontWeight="bold" maxChars="6" />
						<mx:Label text="%" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="55" height="18" id="ED5_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>
			</mx:VDividedBox>
			
			<mx:VDividedBox id="DG5_mainBox" width="100%" height="100%" visible="false">
				
				<mx:HDividedBox width="100%" height="100%" verticalAlign="middle">
					<mx:DataGrid id="DG5_list_GUI" rowHeight="20" headerHeight="60"
						rowCount="{list_collection.length + 1}" height="100%" width="100%"
						wordWrap="false" dataProvider="{list_collection}" 
						fontFamily="tahoma"
						itemClick="getRecord()" 
						selectable="{!recordUpdated}">
						<mx:columns>
							<mx:DataGridColumn dataField="code" headerText="Code" width="60" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="seuil_degressivite" headerText="Seuil déclenchement racine" labelFunction="{pourcentLabelFunction}" width="80" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="taux_correction_avant_mars" headerText="Taux correction avant mars" labelFunction="{pourcentLabelFunction}" width="80" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="taux_correction_apres_mars" headerText="Taux correction après mars" labelFunction="{pourcentLabelFunction}" width="80" editable="false" headerWordWrap="true" />
						</mx:columns>
					</mx:DataGrid>
					<mx:VBox id="DG5_excel_box" width="0" visible="false" includeInLayout="false" horizontalAlign="center">
						<mx:Label id="DG5_excel_label" text="Coller ici les données issues d'un tableau Excel" />
						<mx:Label text="1ère colonne : racines GHM" />
						<mx:Label text="2ème colonne : tx correction avant mars" />
						<mx:Label text="3ème colonne : tx correction après mars" />
						<mx:TextArea id="DG5_excel_textarea" height="400" width="100%" />
						<mx:HBox>
							<mx:Button id="DG5_excel_cancel" label="Annuler" click="hideExcelImport_DG5()" />
							<mx:Button id="DG5_excel_button" label="Importer" click="importExcel_DG5()" />
						</mx:HBox>
					</mx:VBox>
				</mx:HDividedBox>
				<mx:VBox id="DG5_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; DG5_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					<mx:Form>
						<mx:FormItem label="Code" direction="horizontal">
							<mx:Label id="DG5_code_GUI" fontWeight="bold" />
						</mx:FormItem>
						<mx:FormItem label="Texte" direction="horizontal">
							<mx:Label id="DG5_texte_GUI" fontWeight="bold" />
						</mx:FormItem>
						<mx:FormItem label="Seuil déclenchement racine (en %)" direction="horizontal">
							<mx:Label id="DG5_seuil_degressivite_GUI" fontWeight="bold" toolTip="Seuil déclenchement racine donné par l'ATIH commun à tous les établissements" />
						</mx:FormItem>
						<mx:FormItem id="DG5_formItem_taux_correction_avant_mars_GUI" label="Taux correction 2013/2014 (en %)" direction="horizontal">
							<mx:TextInput id="DG5_taux_correction_avant_mars_GUI" toolTip="Taux correction 2013/2014 propre à chaque établissement" change="recordUpdated = true" fontWeight="bold" maxChars="6" restrict="0-9.\-" />
						</mx:FormItem>
						<mx:FormItem id="DG5_formItem_taux_correction_pres_mars_GUI" label="Taux correction 2014/2015 (en %)" direction="horizontal">
							<mx:TextInput id="DG5_taux_correction_apres_mars_GUI" toolTip="Taux correction 2014/2015 propre à chaque établissement" change="recordUpdated = true" fontWeight="bold" maxChars="6" restrict="0-9.\-" />
						</mx:FormItem>
						<mx:FormItem label="Oid" direction="horizontal" visible="false" includeInLayout="false">
							<mx:Label id="DG5_oid_GUI" />
						</mx:FormItem>
						<mx:FormItem label="Annee" direction="horizontal" visible="false" includeInLayout="false">
							<mx:Label id="DG5_annee_GUI" />
						</mx:FormItem>
					</mx:Form>
				</mx:VBox>
			</mx:VDividedBox>
			
			<mx:VDividedBox id="ED6_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ED6_list_GUI" rowHeight="20" headerHeight="60"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="60" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_ets" headerText="Seuil Etablissement" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="seuil_ars" headerText="Seuil ARS" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="moy_region" headerText="Moyenne régionale (calculée)" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="moy_nat" headerText="Moyenne nationale (calculée)" width="80" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="ED6_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; ED6_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ED6_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" borderStyle="none" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="ED6_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" borderStyle="none" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Cahier des charges" />
						<mx:TextArea width="100%" height="18" id="ED6_annee_GUI" change="recordUpdated = true" toolTip="Cahier des charges" fontWeight="bold" editable="false" selectable="false" borderStyle="none" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil Etablissement" />
						<mx:TextArea width="50" height="18" id="ED6_seuil_ets_GUI" change="recordUpdated = true" toolTip="Seuil Etablissement" fontWeight="bold" maxChars="6" restrict="0-9." />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Seuil ARS" />
						<mx:TextArea width="50" height="18" id="ED6_seuil_ars_GUI" change="recordUpdated = true" toolTip="Seuil ARS" fontWeight="bold" maxChars="6" restrict="0-9." />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Moyenne régionale" />
						<mx:TextArea width="50" height="18" id="ED6_moy_region_GUI" editable="false" toolTip="Moyenne régionale" selectable="false" borderStyle="none" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Moyenne nationale" />
						<mx:TextArea width="50" height="18" id="ED6_moy_nat_GUI" editable="false" toolTip="Moyenne nationale" selectable="false" borderStyle="none" fontWeight="bold" maxChars="6" />
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="55" height="18" id="ED6_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
				</mx:VBox>
			</mx:VDividedBox>
			
			<mx:VDividedBox id="EXC_mainBox" width="100%" height="100%" visible="false">

				<mx:DataGrid id="EXC_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord(event)" 
					selectable="{!recordUpdated}"
					visible="{EXC_mode == 0}" includeInLayout="{EXC_mode == 0}"
					editable="true" >
					<mx:columns>
						<mx:DataGridColumn resizable="false" sortable="false" dataField="selected" headerText="" width="15" textAlign="center"  editable="true" headerWordWrap="true"
								rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
						<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte_abrege" headerText="Abrégé" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="complement" headerText="Complément" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="gravite_texte" headerText="Gravité" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="last_execution_date" headerText="Date exécution" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="last_execution_ok" headerText="OK ?" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références" width="100" editable="false" headerWordWrap="true" textAlign="right" />
						<mx:DataGridColumn dataField="nbref0" headerText="dont Actives" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
				<mx:VBox id="EXC_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:VBox width="100%" height="100%" backgroundColor="0xF0F0F0" visible="{EXC_mode == 0 &amp;&amp; !qimport }" includeInLayout="{EXC_mode == 0 &amp;&amp; !qimport}" >
						<mx:HBox>
							<mx:Canvas>
								<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
								<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
							</mx:Canvas>
							<mx:Canvas>
								<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; EXC_code_GUI.text != ''}" />
								<mx:HBox>
									<mx:Button height="28" label="Copier" toolTip="Copier le controle" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; EXC_oid_GUI.text != '-1'}" />
									<mx:Button height="28" label="Supprimer" toolTip="Supprimer le controle" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()"  visible="{recordUpdated == false &amp;&amp; EXC_oid_GUI.text != '-1'}" />
									<mx:Button height="28" label="Exécuter" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-upgrade.png')" labelPlacement="right" click="EXC_execute_rules(EXC_oid_GUI.text)" visible="{recordUpdated == false &amp;&amp; EXC_code_GUI.text != '' &amp;&amp; EXC_oid_GUI.text != '-1'}"  />
									<mx:Button height="28" label="Effacer historique" toolTip="Effacer historique" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askPurge()"  visible="{recordUpdated == false &amp;&amp; EXC_code_GUI.text != '' &amp;&amp; EXC_oid_GUI.text != '-1'}"  />
									<mx:Button height="28" label="Script SQL" toolTip="Script SQL" icon="@Embed('../../base/swf/CTI/images/sql24.png')" labelPlacement="right" click="EXC_getSQL(EXC_oid_GUI.text)"  visible="{recordUpdated == false &amp;&amp; EXC_code_GUI.text != '' &amp;&amp; EXC_oid_GUI.text != '-1'}"  />
								</mx:HBox>
							</mx:Canvas>
						</mx:HBox>
						
						
						<mx:HBox width="100%">
							<mx:Label width="150" text="Code" />
							<mx:TextArea width="200" height="18" id="EXC_code_GUI" change="recordUpdated = true" fontWeight="bold" />
							<mx:Spacer width="100" />
							<mx:Label text="CTI ?" />
							<mx:CheckBox id="EXC_is_cti_GUI" change="recordUpdated = true" />
						</mx:HBox>

						<mx:TabNavigator width="100%" height="100%">
							<mx:VBox label="Définition" width="100%" height="100%">
								<mx:HBox width="100%">
									<mx:Label width="150" text="Texte" />
									<mx:TextArea width="100%" height="36" id="EXC_texte_GUI" change="recordUpdated = true" fontWeight="bold"
										 />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="150" text="Texte affiché" />
									<mx:TextArea width="100%" height="20" id="EXC_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="150" text="Texte abrégé" />
									<mx:TextArea width="100%" height="20" id="EXC_texte_abrege_GUI" change="recordUpdated = true" fontWeight="bold" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Gravité" />
									<mx:ComboBox id="EXC_gravite_GUI" dataProvider="{EXC_gravite_provider}"  change="recordUpdated = true" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="DATIM ?" />
									<mx:CheckBox id="EXC_is_datim_GUI" change="recordUpdated = true" enabled="false" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Contrôle en masse" />
									<mx:CheckBox id="EXC_is_global_GUI" change="recordUpdated = true" 
										enabled="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Alerte ?" />
									<mx:CheckBox id="EXC_alerte_GUI" change="recordUpdated = true" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Masqué ?" />
									<mx:CheckBox id="EXC_is_hide_GUI" change="recordUpdated = true" />
								</mx:HBox>


								<mx:HBox visible="false" includeInLayout="false">
									<mx:Label width="150" text="Oid" />
									<mx:TextArea width="300" height="18" id="EXC_oid_GUI" change="recordUpdated = true" editable="false" />
								</mx:HBox>
							</mx:VBox>
							<mx:VBox label="Description" width="100%" height="100%">
									<mx:RichTextEditor width="100%" height="100%" id="EXC_description_GUI" change="recordUpdated = true"  />
							</mx:VBox>
							<mx:VBox label="Règle SQL 1" width="100%" height="100%" 
								enabled="{EXC_is_datim_GUI.selected == false || EXC_sqlcmd_where1_GUI.text != ''  || application.environmentProperties.properties.CTIDVP == '1'}">
								<mx:HBox width="100%" height="100%">
									<mx:Label width="150" text="Sélection" />
									<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where1_GUI" change="recordUpdated = true" fontWeight="bold" 
									editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />
								
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="150" text="Justificatif" />
									<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif1_GUI" change="recordUpdated = true" fontWeight="bold" 
									editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />									
										 
								</mx:HBox>
								<mx:TextArea id="EXC_rule_oid1_GUI" visible="false" includeInLayout="false" />
							</mx:VBox>
							<mx:VBox label="Règle SQL 2" width="100%" height="100%" 
								enabled="{EXC_is_datim_GUI.selected == false || EXC_sqlcmd_where2_GUI.text != ''  || application.environmentProperties.properties.CTIDVP == '1'}">
								<mx:HBox width="100%" height="100%">
									<mx:Label width="150" text="Sélection" />
									<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where2_GUI" change="recordUpdated = true" fontWeight="bold" 
									editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />
										
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="150" text="Justificatif" />
									<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif2_GUI" change="recordUpdated = true" fontWeight="bold"
									editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />									
										
								</mx:HBox>
								<mx:TextArea id="EXC_rule_oid2_GUI" visible="false" includeInLayout="false" />
							</mx:VBox>
							<mx:VBox label="Règle SQL 3" width="100%" height="100%" 
								enabled="{EXC_is_datim_GUI.selected == false || EXC_sqlcmd_where3_GUI.text != ''  || application.environmentProperties.properties.CTIDVP == '1'}">
								<mx:HBox width="100%" height="100%">
									<mx:Label width="150" text="Sélection" />
									<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where3_GUI" change="recordUpdated = true" fontWeight="bold"
							editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />									
										 
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="150" text="Justificatif" />
									<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif3_GUI" change="recordUpdated = true" fontWeight="bold" 
									editable="{EXC_is_datim_GUI.selected == false || application.environmentProperties.properties.CTIDVP == '1'}" />									
										
								</mx:HBox>
								<mx:TextArea id="EXC_rule_oid3_GUI" visible="false" includeInLayout="false" />
							</mx:VBox>
						</mx:TabNavigator>
					</mx:VBox>
				
					<mx:VBox width="100%" height="100%" backgroundColor="0xF0F0F0" visible="{EXC_mode == 2 &amp;&amp; !qimport}" includeInLayout="{EXC_mode == 2 &amp;&amp; !qimport}">
						<mx:HBox>
							<mx:Canvas>
								<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
								<mx:Button height="28" label="Masquer" toolTip="Masquer" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
							</mx:Canvas>
							<mx:Canvas>
								<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true}" />
							</mx:Canvas>
						</mx:HBox>
						
						<mx:VBox label="PMSI" width="100%" height="100%" backgroundColor="0xf0f0f0">
						
							<mx:Form>
								<mx:FormItem label="Module EXPERT activé ?" direction="horizontal">
									<mx:CheckBox id="EXC_EXPERT_ACTIVE_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Période à contrôler" direction="horizontal">
									<mx:ComboBox id="EXC_date_GUI" dataProvider="{EXC_date_provider}" change="EXC_date_change(event)" />
									<mx:DateField 
										id="EXC_EXPERT_DATE_DEBUT_GUI" 
										change="recordUpdated = true" fontWeight="bold"
										formatString = "DD/MM/YYYY"
										firstDayOfWeek="1"
										visible="{EXC_date_GUI.selectedItem.data == '3'}"
										includeInLayout="{EXC_date_GUI.selectedItem.data == '3'}"
										dayNames="['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa']"
										monthNames="['Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai',
										'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre',
										'Decembre']"
										/>
									<mx:Label id="EXC_label_GUI" text="" fontStyle="italic" />
								</mx:FormItem>
								<mx:FormItem label="Autorisation Neurochirurgie" direction="horizontal">
									<mx:CheckBox id="EXC_autorisation_neuro_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Autorisation Chirurgie Cardiaque" direction="horizontal">
									<mx:CheckBox id="EXC_autorisation_cardio_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Autorisation Réanimation Adulte (REA)" direction="horizontal">
									<mx:CheckBox id="EXC_autorisation_rea_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Autorisation Réanimation Pédiatrique (REP)" direction="horizontal">
									<mx:CheckBox id="EXC_autorisation_rep_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Autorisation Néonatalogie" direction="horizontal">
									<mx:CheckBox id="EXC_autorisation_nn_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Service d'Urgences" direction="horizontal">
									<mx:CheckBox id="EXC_service_urgence_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Service SSR" direction="horizontal">
									<mx:CheckBox id="EXC_service_ssr_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Service SLD" direction="horizontal">
									<mx:CheckBox id="EXC_service_sld_GUI" change="recordUpdated = true" />
								</mx:FormItem>
								<mx:FormItem label="Service PSY" direction="horizontal">
									<mx:CheckBox id="EXC_service_psy_GUI" change="recordUpdated = true" />
								</mx:FormItem>
							</mx:Form>
							
						</mx:VBox>
						
						<!--
						<mx:HBox >
							<mx:Label width="200" text="Module EXPERT activé ?" />
							<mx:CheckBox id="EXC_EXPERT_ACTIVE_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox>
							<mx:Label width="200" text="Date sortie" />
							<mx:DateField width="100" 
								id="EXC_EXPERT_DATE_DEBUT_GUI" 
								change="recordUpdated = true" fontWeight="bold"
								formatString = "DD/MM/YYYY"
								firstDayOfWeek="1"
								dayNames="['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa']"
								monthNames="['Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai',
								'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre',
								'Decembre']"
								/>
							<mx:Label width="100%" text="Date de sortie minimale des séjours à contrôler" />
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Autorisation Neurochirurgie" />
							<mx:CheckBox id="EXC_autorisation_neuro_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Autorisation Chirurgie Cardiaque" />
							<mx:CheckBox id="EXC_autorisation_cardio_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Autorisation Réanimation Adulte (REA)" />
							<mx:CheckBox id="EXC_autorisation_rea_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Autorisation Réanimation Pédiatrique (REP)" />
							<mx:CheckBox id="EXC_autorisation_rep_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Autorisation Néonatalogie" />
							<mx:CheckBox id="EXC_autorisation_nn_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Service d'Urgences" />
							<mx:CheckBox id="EXC_service_urgence_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Service SSR" />
							<mx:CheckBox id="EXC_service_ssr_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Service SLD" />
							<mx:CheckBox id="EXC_service_sld_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						<mx:HBox >
							<mx:Label width="200" text="Service PSY" />
							<mx:CheckBox id="EXC_service_psy_GUI" width="100" change="recordUpdated = true" 
								/>
						</mx:HBox>
						-->
					</mx:VBox>
				
				</mx:VBox>
				
				<mx:VBox label="Import depuis l'environnement de référence" 
					width="100%" height="100%" visible="{EXC_mode == 0 &amp;&amp; qimport}" includeInLayout="{EXC_mode == 0 &amp;&amp; qimport}">
					<mx:Label text="Import depuis l'environnement de référence" fontWeight="bold" fontSize="14" />
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Masquer" toolTip="Masquer les références" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRefSettings()" />
						</mx:Canvas>
						<mx:Button height="28" label="Importer" toolTip="Importer la sélection" icon="@Embed('../../base/swf/CTI/images/24/edit-copy.png')" labelPlacement="right" click="copyRefSettings()"  />
					</mx:HBox>
					<mx:DataGrid id="EXC_reflist_GUI" rowHeight="20" headerHeight="40"
						rowCount="{list_collection.length + 1}" height="100%" width="100%"
						wordWrap="false" dataProvider="{ref_list_collection}" 
						fontFamily="tahoma" editable="true" 
						>
						<mx:columns>
							<mx:DataGridColumn resizable="false" sortable="false" dataField="selected" headerText="" width="15" textAlign="center"  editable="true" headerWordWrap="true"
									rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
							<mx:DataGridColumn dataField="code" headerText="Code" width="100" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="texte" headerText="Texte" width="400" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="texte_abrege" headerText="Abrégé" width="100" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="complement" headerText="Complément" width="100" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="gravite_texte" headerText="Gravité" width="50" editable="false" headerWordWrap="true" />
							<mx:DataGridColumn dataField="ok" headerText="Différence" width="100" editable="false" headerWordWrap="true" />
						</mx:columns>
					</mx:DataGrid>
				</mx:VBox>
			</mx:VDividedBox>
			
			<mx:VDividedBox id="XDC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="XDC_list_GUI" variableRowHeight="true" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="datim" headerText="Datim" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_debut" headerText="Début" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_fin" headerText="Fin" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Actes)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="XDC_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="XDC_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="XDC_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Datim" />
						<mx:TextArea width="100%" height="36" id="XDC_datim_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
				
					
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="XDC_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="XDC_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="XDD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="XDD_list_GUI" variableRowHeight="true" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="datim" headerText="Datim" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_debut" headerText="Début" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_fin" headerText="Fin" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Actes)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="XDD_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="XDD_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="XDD_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Datim" />
						<mx:TextArea width="100%" height="36" id="XDD_datim_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
				
					
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="XDD_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="XDD_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="XDG_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="XDG_list_GUI" variableRowHeight="true" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="true" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="300" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="datim" headerText="Datim" width="400" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_debut" headerText="Début" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="date_fin" headerText="Fin" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (Actes)" width="100" editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="XDG_detailBox_GUI" width="100%" height="0" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="XDG_code_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="36" id="XDG_texte_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Datim" />
						<mx:TextArea width="100%" height="36" id="XDG_datim_GUI" change="recordUpdated = true" editable="false" fontWeight="bold" selectable="false" />
					</mx:HBox>
				
					
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="XDG_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="XDG_nbref_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="DIV_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="DIV_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="150"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="valeur" headerText="Valeur" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="description" headerText="Description" minWidth="300"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="show_info_module" headerText="Info Module" width="100"  editable="false" headerWordWrap="true" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="DIV_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/annuler24.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/up24.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/valider24.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; DIV_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="200" height="18" id="DIV_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="DIV_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Valeur" />
						<mx:TextArea width="100" height="18" id="DIV_valeur_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Description" />
						<mx:TextArea width="100%" height="36" id="DIV_description_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
                   <mx:FormItem label="Info Module" width="100%">
                        <mx:CheckBox id="DIV_show_info_module_GUI" change="recordUpdated = true" />
                    </mx:FormItem>
					
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="DIV_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="DIV_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
		</mx:Canvas>
	</mx:VBox>
</mx:Application>