<?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.print.CTI_Print;
			import CTI.technique.CTI_ArrayCollection;
			import CTI.technique.CTI_ExcelUtilitaires;
			import CTI.technique.CTI_PDFUtilitaires;
			import CTI.technique.CTI_Utilitaires;
			import CTI.technique.controls.CTI_FormItem;
			import flash.display.DisplayObject;
			import flash.display.DisplayObjectContainer;
			import flash.events.Event;
			import mx.collections.ArrayCollection;
			import mx.containers.VBox;
			import mx.controls.Alert;
			import mx.controls.CheckBox;
			import mx.controls.ComboBox;
			import mx.controls.DataGrid;
			import mx.controls.DateField;
			import mx.controls.RichTextEditor;
			import mx.controls.TextArea;
			import mx.events.CloseEvent;
			import mx.events.CollectionEvent;
			import mx.events.ListEvent;
			
			
			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/dialog-question.png")]
            public static var question_class:Class;
			

			[Bindable]
			public var title:String = "Tables Activité";
			public var titlePrint:String = "Tables Activité";
			
			[Bindable]
			public var hasHelp:Boolean = false;
			
			private var viewName:String;
			private var tableName:String;
			
			[Bindable]
			private var tableCode:String;
			private var list_GUI:DataGrid;
			private var detailBox_GUI:VBox;
			private var texte_GUI:TextArea;
			
			[Bindable]
			private var _prestataire_collection:CTI_ArrayCollection;
			
			[Bindable]
			private var list_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
			private var list1_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
			private var list2_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
			private var list3_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
			private var list4_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
            private var list5_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
            [Bindable]
			private var list8_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var ref_list_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
            public var EXC_cible_provider: Array = [
				{label:"Tous", data:"0" } ,
                {label:"Présents", data:"1"} ,
				{label:"Non facturés", data:"2"} ];
			
			[Bindable]
            public var EXC_gravite_provider: Array = [
                {label:"Information", data:"0"} ,
				{label:"Avertissement", data:"5"} ,
				{label:"Erreur", data:"9" } ];
			
			[Bindable]
            public var EXC_table_provider: Array = [
                {label:"Séjours", data:"0"} ,
				{label:"Mouvements", data:"1" } ,
				{label:"Factures", data:"2"} ,
				{label:"Lignes Factures Honoraires", data:"3"} ,
				{label:"SQL brut", data:"99"} ];
				
			[Bindable]
            public var PRC_type_valorisation_non_facture_provider: Array = [
				{label:"", data:"" } ,
                {label:"Prix de journée", data:"PJ"},
				{label:"Chambre particulière", data:"CP"},
                {label:"Forfait à l'entrée", data:"ENT"},
				{label:"Moyenne par journée de présence service", data:"*AVGJOUSER"},
                {label:"Uniquement prestations saisies", data:"*SAISIE"} ];
				
			[Bindable]
            public var PRC_type_ventilation_jour_provider: Array = [
				{label:"Ventilation par défaut", data:"" } ,
                {label:"Forcer ventilation quotidienne", data:"1"}  ];
				
			[Bindable]
            public var FSJ_type_sejour_provider: Array = [
				{label:"Pas de forçage", data:"0"} ,
                {label:"Hospitalisé", data:"1"} ,
				{label:"Ambulatoire", data:"2" } ,
				{label:"Séance", data:"5"} ,
				{label:"Bébé", data:"6"} ,
				{label:"Externe", data:"3"} ,
				{label:"Fictif", data:"9"} ];
				
			[Bindable]
            public var EXC_mode:int = 0;
            
            [Bindable]
            public var ENC_type_parametre_provider: Array = [
                {label:"Paramètres généraux", data:"1" } ,
                {label:"Paramètres Prestations", data:"2" } ,
				{label:"Moyenne et PU calculés", data:"3" } ,
                {label:"Valorisation GHS", data:"4"} ];
                
            [Bindable]
            public var ENC_type_valorisation_provider: Array = [
				{label:"", data:"" } ,
                {label:"Prix de journée", data:"PJ"},
				{label:"Chambre particulière", data:"CP"},
                {label:"Forfait à l'entrée", data:"ENT"},
				{label:"Moyenne par journée de présence service", data:"*AVGJOUSER"},
                {label:"Uniquement prestations saisies", data:"*SAISIE"} ];
			
			[Bindable]
            public var qimport:Boolean = false;
			
			[Bindable]
			private var ETA_histo:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var ETA_lits:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var LIT_etages:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			public var LIT_etages_etages_provider:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var SER_histo:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var UFT_histo:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var UMD_histo:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
			private var BUD_indicateurs:CTI_ArrayCollection = new CTI_ArrayCollection();

			[Bindable]
			public var BUD_indicateur_id_dataProvider:Array
			
			[Bindable]
			public var BUD_indicateur_id_dataProvider_oids:Array
			
			[Bindable]
			private var BUI_indicateurs:XMLList = new XMLList();
            
            [Bindable]
            private var FAR_updatable:Boolean = true;
			
			[Bindable]
            private var FSR_updatable:Boolean = true;
			
			[Bindable]
			private var recordUpdated:Boolean = false;
			
			[Bindable]
			private var currendRecordItem:Object = null;
			
			[Bindable]
			private var has_refsettings:Boolean = false;
			
			private static const PLACESREF_PROVIDER:Array = [ 
				{texte:"Etage", valeur:"ETA", valeur2:"ETAGE"}, 
				{texte:"Unité fonctionnelle", valeur:"UF", valeur2:"UF"}, 
				{texte:"Unité médicale", valeur:"UM", valeur2:"UM"}, 
				{texte:"Service", valeur:"SER", valeur2:"SERVICE_F"}
				];
			
			private static const OPTADM_DAYOUT_PROVIDER:Array = [ 
				{texte:"Jour de sortie non inclus sauf hospits avec DE=DS", valeur:"0", valeur2:"Jour de sortie non inclus sauf séjours hospitalisés avec DE = DS"}, 
				{texte:"Jour de sortie non inclus", valeur:"1", valeur2:"Jour de sortie non inclus"}, 
				{texte:"Jour de sortie inclus", valeur:"2", valeur2:"Jour de sortie inclus"}
				];
			
			[Bindable]
            public var SER_type_sejour_provider: Array = [ 
				{label:"Selon mode de traitement et séjour", data:"0"}, 
				{label:"Selon mode de traitement et séjour (sauf séance)", data:"0sauf5"}, 
				{label:"Hospitalisé", data:"1"}, 
				{label:"Ambulatoire", data:"2"}, 
				{label:"Externe", data:"3" },
				{label:"Externe si durée <= 1n, Hospitalisé sinon)", data:"31"},
				{label:"Séance", data:"5"},
				{label:"Bébé", data:"6"},
				{label:"Ignorer ce service", data:"9"}
				];
				
			[Bindable]
            public var SER_type_t2a_provider: Array = [ 
				{label:"", data:"0"}, 
				{label:"PMSI MCO", data:"1"}, 
				{label:"PMSI SSR", data:"2"}, 
				{label:"PMSI PSY", data:"3"}, 
				{label:"PMSI HAD", data:"4"}
				];
				
			[Bindable]
            public var SER_est_sans_facturation_provider: Array = [ 
				{label:"Avec facturation", data:"0"}, 
				{label:"Sans facturation", data:"1"}, 
				{label:"Facturation facultative si budget global expédié MAT2A", data:"2"}
				];
            
            [Bindable]   
            private var SER_mode_calcul_journees_provider:Array = [ 
				{label:"Valeur système par défaut", data:""}, 
                {label:"Jour de sortie non inclus sauf hospits avec DE=DS", data:"0"}, 
				{label:"Jour de sortie non inclus", data:"1"}, 
				{label:"Jour de sortie inclus", data:"2"}
				];
				
			[Bindable]
            public var UFT_est_sans_facturation_provider: Array = [ 
				{label:"Avec facturation", data:"0"}, 
				{label:"Sans facturation", data:"1"}, 
				{label:"Facturation facultative si budget global expédié MAT2A", data:"2"}
				];
                
            [Bindable]
            public var DTG_annee_provider: Array = [ 
                {label:"2018", data:"2018"}, 
				{label:"2017", data:"2017"}, 
				{label:"2016", data:"2016"}, 
                {label:"2015", data:"2015"}
				];
				
			[Bindable]
			public var ETA_lits_enabled:Boolean = true
			;
                
            
				
			private var FSJ_ARRAY_SEJ_XML:XML;
			
			public var textSearch_Array:Array = new Array()
			
			
			
			public function creationComplete():void {
			
				if (application.currentHelpFile != "") {
					hasHelp = true;
				}
				
				if (application.name == "CTI") {
				}
				if (application.name == "CTI_1") {
					GUI_titleBar.height = 0;
				}
				
				viewName = application.currentViewName;
				tableCode = application.currentSwfData;
				
				if (tableCode == 'ETAPLC') {
					tableCode = 'ETA'
					ETA_lits_enabled = false
				}
				
				switch (tableCode) {
					
					case "SER" :
						tableName = "t_services_facturation";
						title = "Gestion Services facturation";
						titlePrint = "Services facturation";
						break;
						
					case "ACF" :
						tableName = "t_activites";
						title = "Gestion Activités facturation";
						titlePrint = "Activités facturation";
						break;
						
					case "DIV" :
						tableName = "t_divers";
						title = "Gestion Paramètres divers";
						titlePrint = "Paramètres diversn";
						break;
						
					case "UMD" :
						tableName = "t_unites_medicales";
						title = "Gestion Unités Médicales";
						titlePrint = "Unités Médicales";
						break;
						
					case "UFT" :
						tableName = "t_unites_fonctionnelles";
						title = "Gestion Unités Fonctionnelles";
						titlePrint = "Unités Fonctionnelles";
						break;
						
					case "ETA" :
						tableName = "t_etages";
						title = "Gestion Etages";
						titlePrint = "Etages";
						break;
						
					case "LIT" :
						tableName = "t_lits";
						title = "Gestion Lits";
						titlePrint = "Lits";
						break;
						
					case "CPT" :
						tableName = "t_compte";
						title = "Gestion Comptes produits";
						titlePrint = "Comptes produits";
						break;	
						
					case "SRU" :
						tableName = "t_service_rubrique";
						title = "Gestion Comptes produits par rubrique";
						titlePrint = "Comptes produits par rubrique";
						break;
                        
                    case "DTG" :
						tableName = "t_service_rubrique_dotation";
						title = "Gestion Dotation globale";
						titlePrint = "Dotation globale";
						break;
						
					case "PRC" :
						tableName = "t_prestations_c";
						title = "Gestion Prestations Clinique";
						titlePrint = "Prestations Clinique";
						break;
						
					case "PRH" :
						tableName = "t_prestations_h";
						title = "Gestion Prestations Honoraire";
						titlePrint = "Prestations Honoraite";
						break;
						
					case "RUB" :
						tableName = "t_rubriques_facturation";
						title = "Gestion Rubriques_facturation";
						titlePrint = "Rubriques_facturation";
						break;
						
					case "TTP" :
						tableName = "t_types_tiers_payant";
						title = "Gestion Types Tiers Payant";
						titlePrint = "Types Tiers Payant";
						break;
						
					case "TPY" :
						tableName = "t_tiers_payant";
						title = "Gestion Tiers Payant";
						titlePrint = "Tiers Payant";
						break;
						
					case "CCR" :
						tableName = "t_ccam_regroupements";
						title = "Interrogation Regroupements CCAM";
						titlePrint = "Regroupements CCAM";
						break;
						
					case "ACT" :
						tableName = "t_actes";
						title = "Interrogation Actes";
						titlePrint = "Actes";
						break;

					case "GHS" :
						tableName = "t_ghs";
						title = "Interrogation GHS";
						titlePrint = "GHS";
						break;
						
					case "SPI" :
						tableName = "t_specialites_medecin";
						title = "Gestion Spécialités internes des médecins";
						titlePrint = "Spécialités internes des médecins";
						break;
						
					case "MDA" :
						tableName = "t_medecins_administratifs";
						title = "Gestion Médecins administratifs";
						titlePrint = "Médecins administratifs";
						break;
						
					case "MED" :
						tableName = "t_medecins";
						title = "Gestion Référentiel Médecins";
						titlePrint = "Référentiel Médecins";
						break;
						
					case "MET" :
						tableName = "t_medecins_traitants_administratifs";
						title = "Gestion Médecins traitants administratifs";
						titlePrint = "Médecins traitant administratifs";
						break;
						
					case "FSJ" :
						tableName = "t_sejour";
						title = "Forcages Séjours";
						titlePrint = "Forcages Séjours";
						break;
						
					case "BUD" :
						tableName = "t_budget";
						title = "Gestion Budgets";
						titlePrint = "Budgets";
						break;
						
					case "BUC" :
						tableName = "t_budget_cle";
						title = "Gestion Clés budgétaires";
						titlePrint = "Clés budgétaires";
						break;
						
					case "BUR" :
						tableName = "t_budget_cle_rule";
						title = "Gestion Règles d'affectation aux Clés budgétaires";
						titlePrint = "Règles d'affectation aux Clés budgétaires";
						break;
						
					case "BUI" :
						tableName = "t_budget_cle_budget";
						title = "Gestion Budgets";
						titlePrint = "Budgets";
						break;
						
					case "EXC" :
						tableName = "t_expert_controle";
						title = "Gestion Controles Expert";
						titlePrint = "Controles Expert";
						break;
                        
                    case "FAC" :
						tableName = "t_forme_activite";
						title = "Gestion formes d'activité";
						titlePrint = "Formes d'activité";
						break;
                        
                    case "FAR" :
						tableName = "t_forme_activite_rule";
						title = "Gestion règles formes d'activité";
						titlePrint = "Règles formes d'activité";
						break;
						
					case "FSO" :
						tableName = "t_filiere_soin";
						title = "Gestion Filières de soin";
						titlePrint = "Filières de soin";
						break;
                        
                    case "FSR" :
						tableName = "t_filiere_soin_rule";
						title = "Gestion règles Filières de soin";
						titlePrint = "Règles Filières de soin";
						break;
                        
                    case "POR" :
						tableName = "t_pole_rule";
						title = "Gestion règles poles";
						titlePrint = "Règles poles";
						break;
					
					case "CAR" :
						tableName = "t_compte_produit_analytique_rule";
						title = "Gestion règles Comptes analytiques";
						titlePrint = "Règles Comptes analytiques";
						break;
                        
                    case "ENC" :
						tableName = "t_calcul_encours";
						title = "Paramètres de calcul d'encours";
						titlePrint = "Paramètres de calcul d'encours";
                        ENC_type_parametre_GUI.selectedIndex == 0
						break;
						
						
				}
				
				// Initialise les éléments de l'interface
				if (tableName != "") {
					setupGUI(tableCode);
				}
				
				getData(true)
			}
			
			
			
			public function eventDispatcher(eventCode:String):Boolean {
				return true;
			}
			
			
			
			public function getData(firstCall:Boolean = false):void {
				
				has_refsettings = false;
				
				if (BUI_indicateurs_TAB_GUI.getChildren().length > 0) {
					BUI_indicateurs_TAB_GUI.selectedIndex = 0;
				}
			
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				if (firstCall) {
					urlVariables.firstCall = "1";
				}
				else {
					urlVariables.firstCall = "0";
				}
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_getTableRecords.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (list_collection != null) {
						list_collection.filterFunction = null;
						list_collection.refresh();
					}
                    
                    if (tableCode == "ENC") {
                        if (list1_collection != null) {
                            list1_collection.filterFunction = null;
                            list1_collection.refresh();
                        }
                        if (list2_collection != null) {
                            list2_collection.filterFunction = null;
                            list2_collection.refresh();
                        }
                        if (list3_collection != null) {
                            list3_collection.filterFunction = null;
                            list3_collection.refresh();
                        }
                        if (list4_collection != null) {
                            list4_collection.filterFunction = null;
                            list4_collection.refresh();
                        }
                        if (list5_collection != null) {
                            list5_collection.filterFunction = null;
                            list5_collection.refresh();
                        }
                        if (list8_collection != null) {
                            list8_collection.filterFunction = null;
                            list8_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 (MED_medecins_regroupes_GUI.dataProvider != null) {
						MED_medecins_regroupes_GUI.dataProvider.filterFunction = null;
						MED_medecins_regroupes_GUI.dataProvider.refresh();
					}
					
                    if (tableCode != "ENC") {
                        list_collection.loadXMLList(resultatService.RECORD);
                    }
                    if (tableCode == "ENC") {
                        list1_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='1'));
                        list2_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='2'));
                        list3_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='3'));
                        list4_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='4'));
                        list5_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='5'));
                        list8_collection.loadXMLList(resultatService.RECORD.(@type_parametre=='8'));
                    }
					
					switch (tableCode) {
						
						case "MED" :
							MED_specialite_interne_GUI.dataProvider = new CTI_ArrayCollection();
							MED_specialite_interne_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_MDA.RECORD);
							
							MED_medecins_regroupes_GUI.dataProvider = new CTI_ArrayCollection();
							MED_medecins_regroupes_GUI.dataProvider.loadXMLList(resultatService.LIST_MDA.RECORD);
							
							MED_medecins_a_regrouper_searchChange();
							break;
							
						case "SER" :
							SER_finess_GUI.dataProvider = new CTI_ArrayCollection();
							SER_finess_GUI.dataProvider.loadXMLList(resultatService.COMBO_FINESS.RECORD);
							SER_mode_traitement_GUI.dataProvider = new CTI_ArrayCollection();
							SER_mode_traitement_GUI.dataProvider.loadXMLList(resultatService.COMBO_MTR.RECORD);
							SER_dmt_GUI.dataProvider = new CTI_ArrayCollection();
							SER_dmt_GUI.dataProvider.loadXMLList(resultatService.COMBO_DMT.RECORD);
							SER_etage_par_defaut_GUI.dataProvider = new CTI_ArrayCollection();
							SER_etage_par_defaut_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							SER_etage_force_GUI.dataProvider = new CTI_ArrayCollection();
							SER_etage_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
                            SER_activite_par_defaut_GUI.dataProvider = new CTI_ArrayCollection();
							SER_activite_par_defaut_GUI.dataProvider.loadXMLList(resultatService.COMBO_ACTIVITE.RECORD);
							SER_activite_force_GUI.dataProvider = new CTI_ArrayCollection();
							SER_activite_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_ACTIVITE.RECORD);
							SER_medecin_par_defaut_GUI.dataProvider = new CTI_ArrayCollection();
							SER_medecin_par_defaut_GUI.dataProvider.loadXMLList(resultatService.COMBO_MDA.RECORD);
							SER_medecin_force_GUI.dataProvider = new CTI_ArrayCollection();
							SER_medecin_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_MDA.RECORD);
							break;
							
						case "ETA" :
							ETA_finess_GUI.dataProvider = new CTI_ArrayCollection();
							ETA_finess_GUI.dataProvider.loadXMLList(resultatService.COMBO_FINESS.RECORD);
							ETA_service_force_GUI.dataProvider = new CTI_ArrayCollection();
							ETA_service_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD);
							
							break;
							
							
						case "LIT" :	
							LIT_etages_etages_provider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							break;
							
						case "UMD" :
							UMD_etage_par_defaut_GUI.dataProvider = new CTI_ArrayCollection();
							UMD_etage_par_defaut_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							UMD_etage_force_GUI.dataProvider = new CTI_ArrayCollection();
							UMD_etage_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							break;
							
						case "SRU" :
							SRU_compte_id_GUI.dataProvider = new CTI_ArrayCollection()
							SRU_compte_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_CPT.RECORD)
							SRU_prestation_forcee_id_GUI.dataProvider = new CTI_ArrayCollection()
							SRU_prestation_forcee_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_PRESTATION.RECORD)
							break;
                            
                        case "DTG" :
							DTG_service_1_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_1_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_2_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_2_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_3_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_3_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_4_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_4_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_5_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_5_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_6_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_6_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_7_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_7_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_8_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_8_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_service_9_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_service_9_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD)
                            DTG_rubrique_1_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_1_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_2_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_2_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_3_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_3_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_4_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_4_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_5_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_5_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_6_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_6_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_7_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_7_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_8_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_8_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_9_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_9_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_rubrique_10_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_rubrique_10_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            
                            DTG_to_rubrique_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_to_rubrique_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_RUBRIQUE.RECORD)
                            DTG_to_prestation_id_GUI.dataProvider = new CTI_ArrayCollection()
							DTG_to_prestation_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_PRESTATION.RECORD)
							break;
							
						case "ACF" :
							ACF_etage_par_defaut_GUI.dataProvider = new CTI_ArrayCollection();
							ACF_etage_par_defaut_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							ACF_etage_force_GUI.dataProvider = new CTI_ArrayCollection();
							ACF_etage_force_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
							break;
							
						case "TPY" :
							TPY_grand_regime_GUI.dataProvider = new CTI_ArrayCollection();
							TPY_grand_regime_GUI.dataProvider.loadXMLList(resultatService.COMBO_GRG.RECORD);
							break;
							
						case "FSJ" :
							if (firstCall) {
								FSJ_medecin_sejour_GUI.dataProvider = new CTI_ArrayCollection();
								FSJ_medecin_sejour_GUI.dataProvider.loadXMLList(resultatService.COMBO_MDA.RECORD);
								FSJ_medecin_sejour_GUI.dataProvider[0].label = "Pas de forçage"
								FSJ_service_facturation_GUI.dataProvider = new CTI_ArrayCollection();
								FSJ_service_facturation_GUI.dataProvider.loadXMLList(resultatService.COMBO_SERVICE.RECORD);
								FSJ_service_facturation_GUI.dataProvider[0].label = "Pas de forçage"
								FSJ_etage_GUI.dataProvider = new CTI_ArrayCollection();
								FSJ_etage_GUI.dataProvider.loadXMLList(resultatService.COMBO_ETAGE.RECORD);
								FSJ_etage_GUI.dataProvider[0].label = "Pas de forçage"
								FSJ_encours_1_from_date_GUI.dataProvider = new CTI_ArrayCollection();
								FSJ_encours_1_from_date_GUI.dataProvider.loadXMLList(resultatService.COMBO_MOIS.RECORD);
								FSJ_encours_1_from_date_GUI.dataProvider[0].label = "Pas de forçage encours"
								FSJ_ARRAY_SEJ_XML = new XML(resultatService.ARRAY_SEJ[0]);
							}
							break;
							
						case "CPT" :
							if (firstCall) {
							CPT_compte_tva_id_GUI.dataProvider = new CTI_ArrayCollection()
							}
							CPT_compte_tva_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_CPT.RECORD)
							break;
							
						case "BUD" :
							BUD_indicateur_id_dataProvider = new Array();
							BUD_indicateur_id_dataProvider_oids = new Array();
							for each (var node:XML in resultatService.COMBO_INDICATEUR.RECORD) {
								var comboText:String = node.@texte.toString() + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(9) + 
									String.fromCharCode(0) + node.@oid.toString() + String.fromCharCode(0);
								BUD_indicateur_id_dataProvider.push(comboText);
								BUD_indicateur_id_dataProvider_oids[Number(node.@oid.toString())] = comboText;
							}
							break;
							
						case "BUR" :
							BUR_budget_cle_id_GUI.dataProvider = new CTI_ArrayCollection();
							BUR_budget_cle_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_BUDGET_CLE.RECORD);
							break;
							
						case "EXC" :
							if (resultatService.GENERAL_SETTINGS[0].@EXPERT_ACTIVE == "1") {
								EXC_EXPERT_ACTIVE_GUI.selected = true;
							}
							else {
								EXC_EXPERT_ACTIVE_GUI.selected = false;
							}
							EXC_EXPERT_DATE_DEBUT_GUI.text = resultatService.GENERAL_SETTINGS[0].@EXPERT_DATE_DEBUT.toString();
							
							ref_list_collection.loadXMLList(resultatService.REFRECORD);
							
							if (ref_list_collection.length > 0) {
								has_refsettings = true;
							}
							
							// Charge la liste des prestataires Activité
							_prestataire_collection = new CTI_ArrayCollection();
							_prestataire_collection.loadXMLList(resultatService.PRESTATAIRE);
							break;
							
                            
                        case "FAC" :
                            break;
                            
                        case "FAR" :
                            FAR_filiere_soin_id_GUI.dataProvider = new CTI_ArrayCollection();
							FAR_filiere_soin_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_FAC.RECORD);
                            break;
							
						case "FSO" :
                            break;
                            
                        case "FSR" :
                            FSR_filiere_soin_id_GUI.dataProvider = new CTI_ArrayCollection();
							FSR_filiere_soin_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_FSO.RECORD);
                            break;
                            
                        case "POR" :
                            POR_pole_id_GUI.dataProvider = new CTI_ArrayCollection();
							POR_pole_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_POL.RECORD);
                            break;
						
						case "CAR" :
                            CAR_compte_produit_analytique_id_GUI.dataProvider = new CTI_ArrayCollection();
							CAR_compte_produit_analytique_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_CPT.RECORD);
                            break;
                           
                        case "ENC" :
                            for each (node in resultatService.RECORD) {
                                if (node.@code.toString() == "ENCOURSNOW") {
                                    ENC_ENCOURSNOW_GUI.text = node.@valeur.toString()
                                }
                                if (node.@code.toString() == "ENCOURSNEXT") {
                                    ENC_ENCOURSNEXT_GUI.text = node.@valeur.toString()
                                }
							}
                            break;
							
						case "COV" :

							break;
					}
					
					searchChange();
					
					setTimeout(setBuildComplete, 1000);
				}
			}
			
			
			
			private function setBuildComplete():void {
				buildComplete = true;
			}
			
			
			
			private function resize():void {
				
			}
			
			
			
			private function searchChange():void {
				
				if (list_collection.filterFunction == null) {
					list_collection.filterFunction = filterFunction;
				}
                
				textSearch_Array = textSearch_GUI.text.toString().toUpperCase().split(" ")
				list_collection.refresh()
				
			}
			
			
			
			// Filter function 
			public function filterFunction(item:Object):Boolean { 
				
				var result:Boolean = true; 
				
				if (Number(item.oid) >= 0) {

					// standard
					if (textSearch_GUI.text != "") {
						result = true;
						
						for each (var word:String in textSearch_Array) {
							var result2:Boolean = false
							for each (var attributeName:String in list_collection.attributesArray) {
								if (item[attributeName].toString().toUpperCase().indexOf(word) >= 0) {
									result2 = true; 
									break;
								}
							}
							if (result2 == false) {
								result = false
								break
							}
						}
					}
					
					if (result == true) {
						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;
									}	
								}
							}
						}
					}
				}
				
				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_textSearch_GUI.text != "") {
					result = false;
					if (item.nom_adm.toString().toUpperCase().indexOf(MED_medecins_a_regrouper_textSearch_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; 
			} 
			
			
			
			public function MED_medecins_regroupes_filterFunction(item:Object):Boolean { 
				
				var result:Boolean = true; 
				
				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_oids_GUI.text = MED_medecins_regroupes_oids_GUI.text + item.oid + ",";
				}
				
				MED_medecins_a_regrouper_searchChange();
				MED_medecins_regroupes_GUI.dataProvider.refresh();
				toggleUpdate(true);
			}
			
			
			
			// enlever dans regroupes
			private function MED_medecins_regroupes_remove():void {
				
				for each (var item:Object in MED_medecins_regroupes_GUI.selectedItems) {
					var regexp:RegExp = new RegExp("," + item.oid + ",", "g");
					MED_medecins_regroupes_oids_GUI.text = MED_medecins_regroupes_oids_GUI.text.replace(regexp,  ",");
				}
				
				MED_medecins_a_regrouper_searchChange();
				MED_medecins_regroupes_GUI.dataProvider.refresh();
				toggleUpdate(true);
			}
			
			
			
			public function addRecord():void {
				
				if (currendRecordItem == null) {
					
					currendRecordItem = new Object();	
					currendRecordItem.oid = "-1";
					currendRecordItem.code = "";
					currendRecordItem.texte = "";
					currendRecordItem.texte_court = "";
					currendRecordItem.nbref = 0;
					
					switch (tableCode) {
						
						case "EXC" :
							currendRecordItem.texte_abrege = "";
							currendRecordItem.description = "";
							currendRecordItem.is_datim = "0";
							currendRecordItem.is_hide = "0";
							currendRecordItem.is_active = "1";
							currendRecordItem.is_cti = "0";
							currendRecordItem.gravite = "0";
							currendRecordItem.gravite_texte = "";
							currendRecordItem.etat_cible = "0";
							currendRecordItem.etat_cible_texte = "Tous";
							currendRecordItem.complement = "";
							currendRecordItem.rule_oid1 = "0";
							currendRecordItem.sqlcmd_where1 = "";
							currendRecordItem.sqlcmd_justificatif1 = "";
							currendRecordItem.rule_oid2 = "0";
							currendRecordItem.sqlcmd_where2 = "";
							currendRecordItem.sqlcmd_justificatif2 = "";
							currendRecordItem.rule_oid3 = "0";
							currendRecordItem.sqlcmd_where3 = "";
							currendRecordItem.sqlcmd_justificatif3 = "";
							currendRecordItem.last_execution_timestamp = "";
							currendRecordItem.last_execution_ok = "";
							currendRecordItem.prestataire_id = "-1";
							currendRecordItem.prestataire_texte = "Tous";
							currendRecordItem.table1 = "0";
							currendRecordItem.table2 = "0";
							currendRecordItem.table3 = "0";
							currendRecordItem.is_alert = "0";
							break;
							
						case "MED" :
							currendRecordItem.nom = "";
							currendRecordItem.prenom = "";
							currendRecordItem.numero_ordre = "";
							currendRecordItem.code_original = "";
							currendRecordItem.specialite_interne_id = 0;
							currendRecordItem.medecins_regroupes_oids = ",";
							break;
							
						case "FSJ" :
							currendRecordItem.est_ignore = "0";
							currendRecordItem.est_ignore_texte = "";
							currendRecordItem.medecin_sejour_id = "0";
							currendRecordItem.medecin_sejour_texte = "";
							currendRecordItem.service_facturation_id = "0";
							currendRecordItem.service_facturation_texte = "";
							currendRecordItem.etage_id = "0";
							currendRecordItem.etage_texte = "";
							currendRecordItem.type_sejour = "0";
							currendRecordItem.type_sejour_texte = "";
							
							currendRecordItem.encours_1_from_date = "2099-12-31";
							currendRecordItem.encours_1_from_date = "";
							currendRecordItem.encours_1_est_ignore = "0";
							currendRecordItem.encours_1_est_ignore_texte = "";
							break;
							
						case "CPT" :
							currendRecordItem.oid = "-1";
							currendRecordItem.code = "";
							currendRecordItem.texte = "";
							currendRecordItem.texte_court = "";
							currendRecordItem.code_original = "";
							currendRecordItem.compte_tva_id = "0";
							currendRecordItem.taux_tva = "0"
							currendRecordItem.tva_texte = "";

							break;
							
						case "BUD" :
							var year:Number = new Date().getFullYear();
							
							currendRecordItem.date_debut = "01/01/" + year;
							currendRecordItem.date_fin = "31/12/" + year;
							break;
							
						case "BUC" :
							currendRecordItem.code_original = "";
							break;
							
						case "BUR" :
							currendRecordItem.priorite = "5000";
							currendRecordItem.budget_cle_id = "0";
							
							currendRecordItem.liste_specialite = "";
							currendRecordItem.liste_medecin = "";
							currendRecordItem.liste_service = "";
							currendRecordItem.liste_acte = "";
							currendRecordItem.liste_rubrique = "";
							currendRecordItem.liste_ghm = "";
							currendRecordItem.liste_sauf_ghm = "";
							currendRecordItem.liste_diagnostic_principal = "";
							currendRecordItem.liste_diagnostic_relie = "";
							currendRecordItem.liste_diagnostic_associe = "";
							currendRecordItem.liste_finess = "";
							break;
                            
                        case "FAR" :
							currendRecordItem.priorite = "5000";
							currendRecordItem.forme_activite_id = "0";
							
							currendRecordItem.liste_type_sejour = "";
                            currendRecordItem.liste_specialite = "";
							currendRecordItem.liste_medecin = "";
							currendRecordItem.liste_service = "";
                            currendRecordItem.liste_etage = "";
                            currendRecordItem.liste_unite_fonctionnelle = "";
							currendRecordItem.liste_service_entree = "";
                            currendRecordItem.liste_etage_entree = "";
                            currendRecordItem.liste_unite_fonctionnelle_entree = "";
							currendRecordItem.liste_acte = "";
							currendRecordItem.liste_rubrique = "";
                            currendRecordItem.liste_prestation = "";
							currendRecordItem.liste_ghm = "";
							currendRecordItem.liste_sauf_ghm = "";
							currendRecordItem.liste_diagnostic_principal = "";
							currendRecordItem.liste_diagnostic_relie = "";
							currendRecordItem.liste_diagnostic_associe = "";
							currendRecordItem.liste_finess = "";
							break;
							
						case "FSR" :
							currendRecordItem.priorite = "5000";
							currendRecordItem.filiere_soin_id = "0";
							
							currendRecordItem.liste_type_sejour = "";
                            currendRecordItem.liste_specialite = "";
							currendRecordItem.liste_medecin = "";
							currendRecordItem.liste_service = "";
                            currendRecordItem.liste_etage = "";
                            currendRecordItem.liste_unite_fonctionnelle = "";
							currendRecordItem.liste_service_entree = "";
                            currendRecordItem.liste_etage_entree = "";
                            currendRecordItem.liste_unite_fonctionnelle_entree = "";
							currendRecordItem.liste_acte = "";
							currendRecordItem.liste_rubrique = "";
                            currendRecordItem.liste_prestation = "";
							currendRecordItem.liste_ghm = "";
							currendRecordItem.liste_sauf_ghm = "";
							currendRecordItem.liste_diagnostic_principal = "";
							currendRecordItem.liste_diagnostic_relie = "";
							currendRecordItem.liste_diagnostic_associe = "";
							currendRecordItem.liste_finess = "";
							break;
                            
                        case "POR" :
							currendRecordItem.priorite = "5000";
							currendRecordItem.pole_id = "0";
							
							currendRecordItem.liste_type_sejour = "";
                            currendRecordItem.liste_specialite = "";
							currendRecordItem.liste_medecin = "";
							currendRecordItem.liste_service = "";
                            currendRecordItem.liste_etage = "";
                            currendRecordItem.liste_unite_fonctionnelle = "";
							currendRecordItem.liste_acte = "";
							currendRecordItem.liste_rubrique = "";
                            currendRecordItem.liste_prestation = "";
							currendRecordItem.liste_ghm = "";
							currendRecordItem.liste_sauf_ghm = "";
							currendRecordItem.liste_diagnostic_principal = "";
							currendRecordItem.liste_diagnostic_relie = "";
							currendRecordItem.liste_diagnostic_associe = "";
							currendRecordItem.liste_finess = "";
							break;
							
						case "CAR" :
							currendRecordItem.priorite = "5000";
							currendRecordItem.compte_produit_analytique_id = "0";
							
							currendRecordItem.liste_type_sejour = "";
                            currendRecordItem.liste_specialite = "";
							currendRecordItem.liste_medecin = "";
							currendRecordItem.liste_ghm = "";
							currendRecordItem.liste_sauf_ghm = "";
							currendRecordItem.liste_diagnostic_principal = "";
							currendRecordItem.liste_diagnostic_relie = "";
							currendRecordItem.liste_diagnostic_associe = "";
							currendRecordItem.liste_acte = "";
							currendRecordItem.liste_service = "";
                            currendRecordItem.liste_etage = "";
                            currendRecordItem.liste_unite_fonctionnelle = "";
							currendRecordItem.liste_rubrique = "";
							currendRecordItem.liste_compte_produit = "";
							currendRecordItem.liste_sauf_compte_produit = "";
                            currendRecordItem.liste_prestation = "";
							currendRecordItem.liste_sauf_prestation = "";
							currendRecordItem.liste_finess = "";
							break;
							
					}
					
					showDetail();
				}
			}
			
			
			
			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();
			}
			
			
			
			public function showDetail():void {
				
				var i:Number;
				var item:Object;
				
				if (currendRecordItem == null) {
					return;
				}
				
				switch(tableCode) {
					
					case "SER" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "nb_lits", "nb_cp",
											"est_budget_global", "est_sans_mouvement", "avec_facturation_intermediaire", 
											"option_jour_ferme", "prestations_presence", "particularites_encours","sej_sans_acte_fictif"));
						
						setSelectedIndex(SER_type_t2a_GUI, currendRecordItem.type_t2a.toString(), 'data');
						setSelectedIndex(SER_finess_GUI, currendRecordItem.finess_id.toString(), 'oid');
						setSelectedIndex(SER_mode_traitement_GUI, currendRecordItem.mode_traitement_id.toString(), 'oid');
						setSelectedIndex(SER_dmt_GUI, currendRecordItem.dmt_id.toString(), 'oid');
						setSelectedIndex(SER_etage_par_defaut_GUI, currendRecordItem.etage_par_defaut_id.toString(), 'oid');
						setSelectedIndex(SER_etage_force_GUI, currendRecordItem.etage_force_id.toString(), 'oid');
                        setSelectedIndex(SER_activite_par_defaut_GUI, currendRecordItem.activite_par_defaut_id.toString(), 'oid');
						setSelectedIndex(SER_activite_force_GUI, currendRecordItem.activite_force_id.toString(), 'oid');
						setSelectedIndex(SER_medecin_par_defaut_GUI, currendRecordItem.medecin_par_defaut_id.toString(), 'oid');
						setSelectedIndex(SER_medecin_force_GUI, currendRecordItem.medecin_force_id.toString(), 'oid');
						setSelectedIndex(SER_type_sejour_GUI, currendRecordItem.type_sejour.toString(), 'data');
						setSelectedIndex(SER_est_sans_facturation_GUI, currendRecordItem.est_sans_facturation.toString(), 'data');
                        setSelectedIndex(SER_mode_calcul_journees_GUI, currendRecordItem.mode_calcul_journees.toString(), 'data');
						
						
						SER_histo.removeEventListener(CollectionEvent.COLLECTION_CHANGE , SER_histo_changeEvent);
						SER_histo.loadXMLList(currendRecordItem.originalXMLnode.HISTO);
						SER_histo.addEventListener(CollectionEvent.COLLECTION_CHANGE , SER_histo_changeEvent);
						break;
						
					case "ACF" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original"));
						
						setSelectedIndex(ACF_etage_par_defaut_GUI, currendRecordItem.etage_par_defaut_id.toString(), 'oid');
						setSelectedIndex(ACF_etage_force_GUI, currendRecordItem.etage_force_id.toString(), 'oid');
						break;
						
					case "DIV" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "valeur", "description", "valeur2", "show_info_module"));
						var obj:Object;
						if (currendRecordItem.code == 'PLACESREF') {
							for each (obj in PLACESREF_PROVIDER) {
								if (obj.valeur == currendRecordItem.valeur) { 
									DIV_placesref_GUI.selectedItem = obj;
									break;
								}
							}
						}
						if (currendRecordItem.code == 'OPTADM_DAYOUT') {
							for each (obj in OPTADM_DAYOUT_PROVIDER) {
								if (obj.valeur == currendRecordItem.valeur) { 
									DIV_optadm_dayout_GUI.selectedItem = obj;
									break;
								}
							}
						}
						break;
						
					case "UMD" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original"));
						
						setSelectedIndex(UMD_etage_par_defaut_GUI, currendRecordItem.etage_par_defaut_id.toString(), 'oid');
						setSelectedIndex(UMD_etage_force_GUI, currendRecordItem.etage_force_id.toString(), 'oid');
						
						UMD_histo.removeEventListener(CollectionEvent.COLLECTION_CHANGE , UMD_histo_changeEvent);
						UMD_histo.loadXMLList(currendRecordItem.originalXMLnode.HISTO);
						UMD_histo.addEventListener(CollectionEvent.COLLECTION_CHANGE , UMD_histo_changeEvent);
						
						break;
						
					case "UFT" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original"));
						
						setSelectedIndex(UFT_est_sans_facturation_GUI, currendRecordItem.est_sans_facturation.toString(), 'data');
						
						UFT_histo.removeEventListener(CollectionEvent.COLLECTION_CHANGE , UFT_histo_changeEvent);
						UFT_histo.loadXMLList(currendRecordItem.originalXMLnode.HISTO);
						UFT_histo.addEventListener(CollectionEvent.COLLECTION_CHANGE , UFT_histo_changeEvent);
						break;
						
					case "ETA" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "nb_lits", "nb_cp", "est_urgence", "remplacer_par_valeur_par_defaut"));
						
						ETA_histo.removeEventListener(CollectionEvent.COLLECTION_CHANGE , ETA_histo_changeEvent);
						ETA_histo.loadXMLList(currendRecordItem.originalXMLnode.HISTO);
						ETA_histo.addEventListener(CollectionEvent.COLLECTION_CHANGE , ETA_histo_changeEvent);
						ETA_lits.removeEventListener(CollectionEvent.COLLECTION_CHANGE , ETA_lits_changeEvent);
						ETA_lits.loadXMLList(currendRecordItem.originalXMLnode.LIT);
						ETA_lits.addEventListener(CollectionEvent.COLLECTION_CHANGE , ETA_lits_changeEvent);
						
						setSelectedIndex(ETA_service_force_GUI, currendRecordItem.service_force_id.toString(), 'oid');
						setSelectedIndex(ETA_finess_GUI, currendRecordItem.finess_id.toString(), 'oid');
						
						break;
						
					case "LIT" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "etage_code", "etage_texte", "est_chambre_particuliere"));
						
						LIT_etages.removeEventListener(CollectionEvent.COLLECTION_CHANGE , LIT_etages_changeEvent);
						LIT_etages.loadXMLList(currendRecordItem.originalXMLnode.ETAGE);
						LIT_etages.addEventListener(CollectionEvent.COLLECTION_CHANGE , LIT_etages_changeEvent);
						
						break;
						
					case "CPT" :
					
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "taux_tva"));
						setSelectedIndex(CPT_compte_tva_id_GUI, currendRecordItem.compte_tva_id.toString(), 'oid');
						break;
						
					case "SRU" :
					
						fillFields(new Array("oid", "code", "service", "service_id", "rubrique", "rubrique_id", "compte", "est_compte_force"));
						setSelectedIndex(SRU_compte_id_GUI, currendRecordItem.compte_id.toString(), 'oid');
						setSelectedIndex(SRU_prestation_forcee_id_GUI, currendRecordItem.prestation_forcee_id.toString(), 'oid');
						break;
                        
                    case "DTG" :
					
						fillFields(new Array("oid", "texte", "dotation"));
                        setSelectedIndex(DTG_annee_GUI, currendRecordItem.annee.toString(), 'data');
						setSelectedIndex(DTG_service_1_id_GUI, currendRecordItem.service_1_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_2_id_GUI, currendRecordItem.service_2_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_3_id_GUI, currendRecordItem.service_3_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_4_id_GUI, currendRecordItem.service_4_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_5_id_GUI, currendRecordItem.service_5_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_6_id_GUI, currendRecordItem.service_6_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_7_id_GUI, currendRecordItem.service_7_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_8_id_GUI, currendRecordItem.service_8_id.toString(), 'oid');
                        setSelectedIndex(DTG_service_9_id_GUI, currendRecordItem.service_9_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_1_id_GUI, currendRecordItem.rubrique_1_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_2_id_GUI, currendRecordItem.rubrique_2_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_3_id_GUI, currendRecordItem.rubrique_3_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_4_id_GUI, currendRecordItem.rubrique_4_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_5_id_GUI, currendRecordItem.rubrique_5_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_6_id_GUI, currendRecordItem.rubrique_6_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_7_id_GUI, currendRecordItem.rubrique_7_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_8_id_GUI, currendRecordItem.rubrique_8_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_9_id_GUI, currendRecordItem.rubrique_9_id.toString(), 'oid');
                        setSelectedIndex(DTG_rubrique_10_id_GUI, currendRecordItem.rubrique_10_id.toString(), 'oid');
                        setSelectedIndex(DTG_to_rubrique_id_GUI, currendRecordItem.to_rubrique_id.toString(), 'oid');
                        setSelectedIndex(DTG_to_prestation_id_GUI, currendRecordItem.to_prestation_id.toString(), 'oid');
						break;
						
					case "PRC" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original"));
						setSelectedIndex(PRC_type_valorisation_non_facture_GUI, currendRecordItem.type_valorisation_non_facture.toString());
						setSelectedIndex(PRC_type_ventilation_jour_GUI, currendRecordItem.type_ventilation_jour.toString());
						
						break;
						
					case "PRH" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original"));
						break;
						
					case "RUB" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "actes_inclus_public", "est_force_etablissement"));
						break;
						
					case "TTP" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
						
					case "TPY" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court", "code_original", "type_tiers_payant"));
						
						setSelectedIndex(TPY_grand_regime_GUI, currendRecordItem.grand_regime_id.toString(), 'data');
						break;
						
					case "CCR" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
						
					case "ACT" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "regroupement_1", "regroupement_4"));
						break;
						
					case "GHS" :
						
						fillFields(new Array("oid", "nbref", "code", "texte"));
						break;
						
					case "SPI" :
						
						fillFields(new Array("oid", "nbref", "code", "texte", "texte_court"));
						break;
						
					case "MDA" :
						
						fillFields(new Array("oid", "nbref", "code", "nom", "prenom", "code_original", "est_medecin_salarie", "kiwee_sigems_honpatcpt", "kiwee_sigems_honpatcpthon"));
						break;
						
					case "MET" :
						
						fillFields(new Array("oid", "nbref", "code", "nom", "prenom", "code_original", "no_rpps", "code_postal", "ville", "adresse"));
						break;
					
					case "MED" :
						
						fillFields(new Array("oid", "nbref", "code", "nom", "prenom", "numero_ordre", "code_original", "medecins_regroupes_oids"));
						
						setSelectedIndex(MED_specialite_interne_GUI, currendRecordItem.specialite_interne_id.toString(), 'oid');
						
						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_a_regrouper_textSearch_GUI.text = MED_nom_GUI.text.substr(0,5);
						if (MED_medecins_regroupes_GUI.dataProvider.filterFunction == null) {
							MED_medecins_regroupes_GUI.dataProvider.filterFunction = MED_medecins_regroupes_filterFunction;
						}
						MED_medecins_regroupes_GUI.dataProvider.refresh();
						MED_medecins_a_regrouper_searchChange();
						break;
						
					case "FSJ" :
						
						fillFields(new Array("oid", "code", "texte", "est_ignore", "encours_1_est_ignore"));
						
						setSelectedIndex(FSJ_medecin_sejour_GUI, currendRecordItem.medecin_sejour_id.toString(), 'oid');
						setSelectedIndex(FSJ_service_facturation_GUI, currendRecordItem.service_facturation_id.toString(), 'oid');
						setSelectedIndex(FSJ_etage_GUI, currendRecordItem.etage_id.toString(), 'oid');
						setSelectedIndex(FSJ_type_sejour_GUI, currendRecordItem.type_sejour.toString(), 'data');

						setSelectedIndex(FSJ_encours_1_from_date_GUI, currendRecordItem.encours_1_from_date.toString(), 'oid');
						break;
						
					case "BUD" :
						
						fillFields(new Array("oid", "code", "texte", "date_debut", "date_fin"));
						
						BUD_indicateurs.removeEventListener(CollectionEvent.COLLECTION_CHANGE , BUD_indicateurs_changeEvent);
						BUD_indicateurs.loadXMLList(currendRecordItem.originalXMLnode.INDICATEUR);
						for each (var item2:Object in BUD_indicateurs) {
							item2.indicateur_id = BUD_indicateur_id_dataProvider_oids[Number(item2.indicateur_id.toString())]
							if (! item2.hasOwnProperty("indicateur_id")) {
								item2.indicateur_id = "0";
							}
						}
						BUD_indicateurs.addEventListener(CollectionEvent.COLLECTION_CHANGE , BUD_indicateurs_changeEvent);
						break;
						
					case "BUC" :
						
						fillFields(new Array("oid", "code", "texte", "texte_court", "code_original"));
						break;
						
					case "BUR" :
						
						fillFields(new Array("oid", "code", "texte", "priorite", "liste_specialite", "liste_medecin",
							"liste_service", "liste_acte", "liste_rubrique", "liste_ghm", "liste_sauf_ghm", 
							"liste_diagnostic_principal", "liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"
							));
						
						setSelectedIndex(BUR_budget_cle_id_GUI, currendRecordItem.budget_cle_id.toString());
						
						BUR_Qliste_specialite_GUI.selected = BUR_liste_specialite_GUI.text != "" ? true : false;
						BUR_Qliste_medecin_GUI.selected = BUR_liste_medecin_GUI.text != "" ? true : false;
						BUR_Qliste_service_GUI.selected = BUR_liste_service_GUI.text != "" ? true : false;
						BUR_Qliste_acte_GUI.selected = BUR_liste_acte_GUI.text != "" ? true : false;
						BUR_Qliste_rubrique_GUI.selected = BUR_liste_rubrique_GUI.text != ""? true : false;
						BUR_Qliste_ghm_GUI.selected = BUR_liste_ghm_GUI.text != "" ? true : false;
						BUR_Qliste_sauf_ghm_GUI.selected = BUR_liste_sauf_ghm_GUI.text != "" ? true : false;
						BUR_Qliste_diagnostic_principal_GUI.selected = BUR_liste_diagnostic_principal_GUI.text != "" ? true : false;
						BUR_Qliste_diagnostic_relie_GUI.selected = BUR_liste_diagnostic_relie_GUI.text != "" ? true : false;
						BUR_Qliste_diagnostic_associe_GUI.selected = BUR_liste_diagnostic_associe_GUI.text != "" ? true : false;
						BUR_Qliste_finess_GUI.selected = BUR_liste_finess_GUI.text != "" ? true : false;
						break;
						
					case "BUI" :
						
						fillFields(new Array("oid", "code", "texte"));
						
						BUI_indicateurs = currendRecordItem.originalXMLnode.INDICATEUR;
						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",
							"is_hide","is_alert",  "is_cti", "is_active"
							));
						setSelectedIndex(EXC_gravite_GUI, currendRecordItem.gravite.toString());
						setSelectedIndex(EXC_prestataire_GUI, currendRecordItem.prestataire_id.toString());
						setSelectedIndex(EXC_etat_cible_GUI, currendRecordItem.etat_cible.toString());
						setSelectedIndex(EXC_table1_GUI, currendRecordItem.table1.toString());
						setSelectedIndex(EXC_table2_GUI, currendRecordItem.table2.toString());
						setSelectedIndex(EXC_table3_GUI, currendRecordItem.table3.toString());
						EXC_is_alert_GUI.selected = currendRecordItem.is_alert.toString() == '1' ? true : false;
						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);
						break;
						
                        
                    case "FAC" :
					
						fillFields(new Array("oid", "code", "texte", "texte_court"));
						break;
                        
                    case "FAR" :
						
						fillFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_service_entree", "liste_etage_entree", "liste_unite_fonctionnelle_entree", "liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", 
							"liste_diagnostic_principal", "liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"
							));
						setSelectedIndex(FAR_filiere_soin_id_GUI, currendRecordItem.forme_activite_id.toString(), "oid");
						
						FAR_Qliste_type_sejour_GUI.selected = FAR_liste_type_sejour_GUI.text != "" ? true : false;
                        FAR_Qliste_specialite_GUI.selected = FAR_liste_specialite_GUI.text != "" ? true : false;
						FAR_Qliste_medecin_GUI.selected = FAR_liste_medecin_GUI.text != "" ? true : false;
						FAR_Qliste_service_GUI.selected = FAR_liste_service_GUI.text != "" ? true : false;
                        FAR_Qliste_etage_GUI.selected = FAR_liste_etage_GUI.text != "" ? true : false;
                        FAR_Qliste_unite_fonctionnelle_GUI.selected = FAR_liste_unite_fonctionnelle_GUI.text != "" ? true : false;
						FAR_Qliste_service_entree_GUI.selected = FAR_liste_service_entree_GUI.text != "" ? true : false;
                        FAR_Qliste_etage_entree_GUI.selected = FAR_liste_etage_entree_GUI.text != "" ? true : false;
                        FAR_Qliste_unite_fonctionnelle_entree_GUI.selected = FAR_liste_unite_fonctionnelle_entree_GUI.text != "" ? true : false;
						FAR_Qliste_acte_GUI.selected = FAR_liste_acte_GUI.text != "" ? true : false;
						FAR_Qliste_rubrique_GUI.selected = FAR_liste_rubrique_GUI.text != ""? true : false;
                        FAR_Qliste_prestation_GUI.selected = FAR_liste_prestation_GUI.text != ""? true : false;
						FAR_Qliste_ghm_GUI.selected = FAR_liste_ghm_GUI.text != "" ? true : false;
						FAR_Qliste_sauf_ghm_GUI.selected = FAR_liste_sauf_ghm_GUI.text != "" ? true : false;
						FAR_Qliste_diagnostic_principal_GUI.selected = FAR_liste_diagnostic_principal_GUI.text != "" ? true : false;
						FAR_Qliste_diagnostic_relie_GUI.selected = FAR_liste_diagnostic_relie_GUI.text != "" ? true : false;
						FAR_Qliste_diagnostic_associe_GUI.selected = FAR_liste_diagnostic_associe_GUI.text != "" ? true : false;
						FAR_Qliste_finess_GUI.selected = FAR_liste_finess_GUI.text != "" ? true : false;
                        
                        FAR_updatable = true
                        if (application.sessionProperties.properties.CONNECTEDUSER != 'cti') {
                            if (FAR_code_GUI.text.substr(0,3) == "CTI") {
                                FAR_updatable = false
                            }
                        }
						break;
						
					case "FSO" :
					
						fillFields(new Array("oid", "code", "texte"));
						break;
                        
                    case "FSR" :
						
						fillFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", 
							"liste_diagnostic_principal", "liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"
							));
						setSelectedIndex(FSR_filiere_soin_id_GUI, currendRecordItem.filiere_soin_id.toString(), "oid");
						
						FSR_Qliste_type_sejour_GUI.selected = FSR_liste_type_sejour_GUI.text != "" ? true : false;
                        FSR_Qliste_specialite_GUI.selected = FSR_liste_specialite_GUI.text != "" ? true : false;
						FSR_Qliste_medecin_GUI.selected = FSR_liste_medecin_GUI.text != "" ? true : false;
						FSR_Qliste_service_GUI.selected = FSR_liste_service_GUI.text != "" ? true : false;
                        FSR_Qliste_etage_GUI.selected = FSR_liste_etage_GUI.text != "" ? true : false;
                        FSR_Qliste_unite_fonctionnelle_GUI.selected = FSR_liste_unite_fonctionnelle_GUI.text != "" ? true : false;
						FSR_Qliste_service_entree_GUI.selected = FSR_liste_service_entree_GUI.text != "" ? true : false;
                        FSR_Qliste_etage_entree_GUI.selected = FSR_liste_etage_entree_GUI.text != "" ? true : false;
                        FSR_Qliste_unite_fonctionnelle_entree_GUI.selected = FSR_liste_unite_fonctionnelle_entree_GUI.text != "" ? true : false;
						FSR_Qliste_acte_GUI.selected = FSR_liste_acte_GUI.text != "" ? true : false;
						FSR_Qliste_rubrique_GUI.selected = FSR_liste_rubrique_GUI.text != ""? true : false;
                        FSR_Qliste_prestation_GUI.selected = FSR_liste_prestation_GUI.text != ""? true : false;
						FSR_Qliste_ghm_GUI.selected = FSR_liste_ghm_GUI.text != "" ? true : false;
						FSR_Qliste_sauf_ghm_GUI.selected = FSR_liste_sauf_ghm_GUI.text != "" ? true : false;
						FSR_Qliste_diagnostic_principal_GUI.selected = FSR_liste_diagnostic_principal_GUI.text != "" ? true : false;
						FSR_Qliste_diagnostic_relie_GUI.selected = FSR_liste_diagnostic_relie_GUI.text != "" ? true : false;
						FSR_Qliste_diagnostic_associe_GUI.selected = FSR_liste_diagnostic_associe_GUI.text != "" ? true : false;
						FSR_Qliste_finess_GUI.selected = FSR_liste_finess_GUI.text != "" ? true : false;
                        
                        FSR_updatable = true
                        if (application.sessionProperties.properties.CONNECTEDUSER != 'cti') {
                            if (FSR_code_GUI.text.substr(0,3) == "CTI") {
                                FSR_updatable = false
                            }
                        }
						break;
                        
                    case "POR" :
						
						fillFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", 
							"liste_diagnostic_principal", "liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"
							));
						setSelectedIndex(POR_pole_id_GUI, currendRecordItem.pole_id.toString(), "oid");
						
						POR_Qliste_type_sejour_GUI.selected = POR_liste_type_sejour_GUI.text != "" ? true : false;
                        POR_Qliste_specialite_GUI.selected = POR_liste_specialite_GUI.text != "" ? true : false;
						POR_Qliste_medecin_GUI.selected = POR_liste_medecin_GUI.text != "" ? true : false;
						POR_Qliste_service_GUI.selected = POR_liste_service_GUI.text != "" ? true : false;
                        POR_Qliste_etage_GUI.selected = POR_liste_etage_GUI.text != "" ? true : false;
                        POR_Qliste_unite_fonctionnelle_GUI.selected = POR_liste_unite_fonctionnelle_GUI.text != "" ? true : false;
						POR_Qliste_acte_GUI.selected = POR_liste_acte_GUI.text != "" ? true : false;
						POR_Qliste_rubrique_GUI.selected = POR_liste_rubrique_GUI.text != ""? true : false;
                        POR_Qliste_prestation_GUI.selected = POR_liste_prestation_GUI.text != ""? true : false;
						POR_Qliste_ghm_GUI.selected = POR_liste_ghm_GUI.text != "" ? true : false;
						POR_Qliste_sauf_ghm_GUI.selected = POR_liste_sauf_ghm_GUI.text != "" ? true : false;
						POR_Qliste_diagnostic_principal_GUI.selected = POR_liste_diagnostic_principal_GUI.text != "" ? true : false;
						POR_Qliste_diagnostic_relie_GUI.selected = POR_liste_diagnostic_relie_GUI.text != "" ? true : false;
						POR_Qliste_diagnostic_associe_GUI.selected = POR_liste_diagnostic_associe_GUI.text != "" ? true : false;
						POR_Qliste_finess_GUI.selected = POR_liste_finess_GUI.text != "" ? true : false;
                        
						break;
						
					case "CAR" :
						
						fillFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_acte", "liste_rubrique", "liste_compte_produit", "liste_sauf_compte_produit", "liste_prestation", "liste_sauf_prestation", "liste_ghm", "liste_sauf_ghm", 
							"liste_diagnostic_principal", "liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"
							));
						setSelectedIndex(CAR_compte_produit_analytique_id_GUI, currendRecordItem.compte_produit_analytique_id.toString(), "oid");
						
						CAR_Qliste_type_sejour_GUI.selected = CAR_liste_type_sejour_GUI.text != "" ? true : false;
                        CAR_Qliste_specialite_GUI.selected = CAR_liste_specialite_GUI.text != "" ? true : false;
						CAR_Qliste_medecin_GUI.selected = CAR_liste_medecin_GUI.text != "" ? true : false;
						CAR_Qliste_service_GUI.selected = CAR_liste_service_GUI.text != "" ? true : false;
						CAR_Qliste_ghm_GUI.selected = CAR_liste_ghm_GUI.text != "" ? true : false;
						CAR_Qliste_sauf_ghm_GUI.selected = CAR_liste_sauf_ghm_GUI.text != "" ? true : false;
						CAR_Qliste_diagnostic_principal_GUI.selected = CAR_liste_diagnostic_principal_GUI.text != "" ? true : false;
						CAR_Qliste_diagnostic_relie_GUI.selected = CAR_liste_diagnostic_relie_GUI.text != "" ? true : false;
						CAR_Qliste_diagnostic_associe_GUI.selected = CAR_liste_diagnostic_associe_GUI.text != "" ? true : false;
						CAR_Qliste_acte_GUI.selected = CAR_liste_acte_GUI.text != "" ? true : false;
                        CAR_Qliste_etage_GUI.selected = CAR_liste_etage_GUI.text != "" ? true : false;
                        CAR_Qliste_unite_fonctionnelle_GUI.selected = CAR_liste_unite_fonctionnelle_GUI.text != "" ? true : false;
						CAR_Qliste_rubrique_GUI.selected = CAR_liste_rubrique_GUI.text != ""? true : false;
                        CAR_Qliste_compte_produit_GUI.selected = CAR_liste_compte_produit_GUI.text != ""? true : false;
						CAR_Qliste_sauf_compte_produit_GUI.selected = CAR_liste_sauf_compte_produit_GUI.text != ""? true : false;
						CAR_Qliste_prestation_GUI.selected = CAR_liste_prestation_GUI.text != ""? true : false;
						CAR_Qliste_sauf_prestation_GUI.selected = CAR_liste_sauf_prestation_GUI.text != ""? true : false;
						CAR_Qliste_finess_GUI.selected = CAR_liste_finess_GUI.text != "" ? true : false;
                        
						break;
                        
                    case "ENC" :
					
						fillFields(new Array("oid", "type_ligne", "sejour", "nom", "facture", "service", "prestation", "rubrique", "coefficient_calcule", "coefficient_force", "coefficient_is_force", "prix_unitaire_calcule", "prix_unitaire_force", "prix_unitaire_is_force", "ignorer", "code", "valeur", "texte", "description"));
						setSelectedIndex(ENC_type_valorisation_GUI, currendRecordItem.type_valorisation.toString());
                        break;
						
					case "COV" :
						
						fillFields(new Array("oid", "code", "texte", "finess", "valeur_2019_ars", "valeur_2019", "valeur_2019_saisie"));
						
						break;
						
				}
				
				toggleUpdate(false);
				detailBox_GUI.includeInLayout = true;
				if (tableCode != "BUD" && tableCode != "BUI") {
					if (detailBox_GUI.height == 0) {
						detailBox_GUI.height = 400;
					}
				}
				detailBox_GUI.visible = true;
			}
			
			
			
			private function ETA_histo_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function ETA_histo_add():void {
				var ETA_histo_item:Object = new Object();
				ETA_histo_item.date = "?";
				ETA_histo_item.nb_lits_theoriques = "";
				ETA_histo_item.nb_lits_ouverts = "";
				ETA_histo_item.nb_lits_cp_theoriques = "";
				ETA_histo_item.nb_lits_cp_ouverts = "";
				ETA_histo_item.nb_box_ambulatoires_theoriques = "";
				ETA_histo_item.nb_box_ambulatoires_ouverts = "";
				ETA_histo_item.nb_box_seances_theoriques = "";
				ETA_histo_item.nb_box_seances_ouverts = "";
				ETA_histo_item.est_ouvert_1 = "1";
				ETA_histo_item.est_ouvert_2 = "1";
				ETA_histo_item.est_ouvert_3 = "1";
				ETA_histo_item.est_ouvert_4 = "1";
				ETA_histo_item.est_ouvert_5 = "1";
				ETA_histo_item.est_ouvert_6 = "1";
				ETA_histo_item.est_ouvert_7 = "1";
				ETA_histo_item.lit_force = "";
				ETA_histo.addItemAt(ETA_histo_item, 0);
			}
			
			private function ETA_histo_remove():void {
				ETA_histo.removeItemAt(ETA_histo_GUI.selectedIndex);
			}

			
			private function ETA_lits_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function LIT_etages_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function LIT_etages_add():void {
				var LIT_etages_item:Object = new Object();
				LIT_etages_item.date = "?";
				LIT_etages_item.oid = "-1";
				LIT_etages_item.code = "";
				LIT_etages_item.texte = "";
				LIT_etages.addItemAt(LIT_etages_item, 0);
			}
			
			
			
			private function LIT_etages_remove():void {
				LIT_etages.removeItemAt(LIT_etages_GUI.selectedIndex);
			}
			
			
			
			private function SER_histo_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function SER_histo_add():void {
				var SER_histo_item:Object = new Object();
				SER_histo_item.date = "?";
				SER_histo_item.nb_lits_theoriques = "";
				SER_histo_item.nb_lits_ouverts = "";
				SER_histo_item.nb_box_ambulatoires_theoriques = "";
				SER_histo_item.nb_box_ambulatoires_ouverts = "";
				SER_histo_item.nb_box_seances_theoriques = "";
				SER_histo_item.nb_box_seances_ouverts = "";
				SER_histo_item.est_ouvert_1 = "1";
				SER_histo_item.est_ouvert_2 = "1";
				SER_histo_item.est_ouvert_3 = "1";
				SER_histo_item.est_ouvert_4 = "1";
				SER_histo_item.est_ouvert_5 = "1";
				SER_histo_item.est_ouvert_6 = "1";
				SER_histo_item.est_ouvert_7 = "1";
				SER_histo.addItemAt(SER_histo_item, 0);
			}
			private function SER_histo_remove():void {
				SER_histo.removeItemAt(SER_histo_GUI.selectedIndex);
			}
			
			
			
			public function LIT_etages_etage_id_changeEvent(combo:ComboBox):void {
				if (! combo.data.hasOwnProperty("oid")) {
					combo.data.oid = "0";
				}
				try {
					combo.data.oid = combo.selectedItem.oid.toString();
					toggleUpdate(true);
				}
				catch(err:Error) {
				}
			}
			
			
			public function LIT_etages_etage_id_dataChangeEvent(combo:ComboBox):void {
				if (! combo.data.hasOwnProperty("oid")) {
					combo.data.oid = "0";
				}
				try {
					combo.selectedIndex = 0;
					for (var idx:int = 0, len:int = combo.dataProvider.length; idx < len; idx++) {
						if (combo.dataProvider.getItemAt(idx)["oid"] == combo.data.oid) {
							combo.selectedIndex = idx;
						}
					}
				}
				catch(err:Error) {
				}
			}
			
			
			
			private function UFT_histo_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function UFT_histo_add():void {
				
				var UFT_histo_item:Object = new Object();
				UFT_histo_item.date = "?";
				UFT_histo_item.nb_lits_theoriques = "";
				UFT_histo_item.nb_lits_ouverts = "";
				UFT_histo_item.nb_box_ambulatoires_theoriques = "";
				UFT_histo_item.nb_box_ambulatoires_ouverts = "";
				UFT_histo_item.nb_box_seances_theoriques = "";
				UFT_histo_item.nb_box_seances_ouverts = "";
				UFT_histo_item.est_ouvert_1 = "1";
				UFT_histo_item.est_ouvert_2 = "1";
				UFT_histo_item.est_ouvert_3 = "1";
				UFT_histo_item.est_ouvert_4 = "1";
				UFT_histo_item.est_ouvert_5 = "1";
				UFT_histo_item.est_ouvert_6 = "1";
				UFT_histo_item.est_ouvert_7 = "1";
				UFT_histo.addItemAt(UFT_histo_item, 0);
			}
			
			
			
			private function UFT_histo_remove():void {
				UFT_histo.removeItemAt(UFT_histo_GUI.selectedIndex);
			}
			
			
			
			private function UMD_histo_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function UMD_histo_add():void {
				
				var UMD_histo_item:Object = new Object();
				UMD_histo_item.date = "?";
				UMD_histo_item.nb_lits_theoriques = "";
				UMD_histo_item.nb_lits_ouverts = "";
				UMD_histo_item.nb_box_ambulatoires_theoriques = "";
				UMD_histo_item.nb_box_ambulatoires_ouverts = "";
				UMD_histo_item.nb_box_seances_theoriques = "";
				UMD_histo_item.nb_box_seances_ouverts = "";
				UMD_histo_item.est_ouvert_1 = "1";
				UMD_histo_item.est_ouvert_2 = "1";
				UMD_histo_item.est_ouvert_3 = "1";
				UMD_histo_item.est_ouvert_4 = "1";
				UMD_histo_item.est_ouvert_5 = "1";
				UMD_histo_item.est_ouvert_6 = "1";
				UMD_histo_item.est_ouvert_7 = "1";
				UMD_histo.addItemAt(UMD_histo_item, 0);
			}
			
			
			
			private function UMD_histo_remove():void {
				UMD_histo.removeItemAt(UMD_histo_GUI.selectedIndex);
			}
			
			
			
			public function BUD_indicateurs_indicateur_id_changeEvent(combo:ComboBox):void {
				if (! combo.data.hasOwnProperty("indicateur_id")) {
					combo.data.indicateur_id = "0";
				}
				try {
					combo.data.indicateur_id = combo.selectedLabel;
					toggleUpdate(true);
				}
				catch(err:Error) {
				}
			}
			
			
			
			private function BUD_indicateurs_changeEvent(event:CollectionEvent):void {
				toggleUpdate(true);
			}
			
			
			
			private function BUD_indicateurs_add():void {
				var BUD_indicateurs_item:Object = new Object();
				BUD_indicateurs_item.oid = "-1";
				BUD_indicateurs_item.code = "";
				BUD_indicateurs_item.texte = "";
				BUD_indicateurs_item.indicateur_id = "";
				BUD_indicateurs.addItem(BUD_indicateurs_item);
			}
			
			
			
			private function BUD_indicateurs_remove():void {
				BUD_indicateurs.removeItemAt(BUD_indicateurs_GUI.selectedIndex);
			}
			
			
			
			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;
				toggleUpdate(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");
				
			}
			
			
			
			public function copyRecord():void {
				
				updateRecord("copy");
				
			}
			
			
			
			public function saveRecord(propagate:Boolean = true):void {
				
				updateRecord("save", propagate);
				
			}
			
			
			
			public function updateRecord(action:String, propagate:Boolean = true):void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.action = action;
				urlVariables.propagate = "true";
				if (! propagate) {
					urlVariables.propagate = "false";
				}
				var recordNode:XML = new XML(<RECORD />);
				
				switch(tableCode) {
					
					case "SER" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "nb_lits", "nb_cp", "type_t2a", "type_sejour",
							"est_budget_global", "est_sans_mouvement", "est_sans_facturation", "avec_facturation_intermediaire", "mode_calcul_journees",
							"option_jour_ferme", "prestations_presence", "particularites_encours","sej_sans_acte_fictif"), recordNode);
						
						recordNode.@finess_id = SER_finess_GUI.selectedItem.oid;
						recordNode.@mode_traitement_id = SER_mode_traitement_GUI.selectedItem.oid;
						recordNode.@dmt_id = SER_dmt_GUI.selectedItem.oid;
						recordNode.@etage_par_defaut_id = SER_etage_par_defaut_GUI.selectedItem.oid;
						recordNode.@etage_force_id = SER_etage_force_GUI.selectedItem.oid;
                        recordNode.@activite_par_defaut_id = SER_activite_par_defaut_GUI.selectedItem.oid;
						recordNode.@activite_force_id = SER_activite_force_GUI.selectedItem.oid;
						recordNode.@medecin_par_defaut_id = SER_medecin_par_defaut_GUI.selectedItem.oid;
						recordNode.@medecin_force_id = SER_medecin_force_GUI.selectedItem.oid;

						for each (var place:Object in SER_histo) {
							if (place.nb_lits_theoriques != "" || place.nb_box_ambulatoires_theoriques != "" || place.nb_box_seances_theoriques != "") {
								var placeNode:XML = new XML(<HISTO />);
								placeNode.@date = place.date;
								placeNode.@nb_lits_theoriques = place.nb_lits_theoriques;
								placeNode.@nb_lits_ouverts = place.nb_lits_ouverts;
								placeNode.@nb_box_ambulatoires_theoriques = place.nb_box_ambulatoires_theoriques;
								placeNode.@nb_box_ambulatoires_ouverts = place.nb_box_ambulatoires_ouverts;
								placeNode.@nb_box_seances_theoriques = place.nb_box_seances_theoriques;
								placeNode.@nb_box_seances_ouverts = place.nb_box_seances_ouverts;
								placeNode.@est_ouvert_1 = place.est_ouvert_1;
								placeNode.@est_ouvert_2 = place.est_ouvert_2;
								placeNode.@est_ouvert_3 = place.est_ouvert_3;
								placeNode.@est_ouvert_4 = place.est_ouvert_4;
								placeNode.@est_ouvert_5 = place.est_ouvert_5;
								placeNode.@est_ouvert_6 = place.est_ouvert_6;
								placeNode.@est_ouvert_7 = place.est_ouvert_7;
								recordNode.appendChild(placeNode);
							}
						}
						break;
						
					case "ACF" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						recordNode.@etage_par_defaut_id = ACF_etage_par_defaut_GUI.selectedItem.oid;
						recordNode.@etage_force_id = ACF_etage_force_GUI.selectedItem.oid;
						break;
						
					case "DIV" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "valeur", "valeur2", "description", "show_info_module"), recordNode);
						break;
						
					case "UMD" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						
						recordNode.@etage_par_defaut_id = UMD_etage_par_defaut_GUI.selectedItem.oid;
						recordNode.@etage_force_id = UMD_etage_force_GUI.selectedItem.oid;
						
						for each (place in UMD_histo) {
							if (place.nb_lits_theoriques != "" || place.nb_box_ambulatoires_theoriques != "" || place.nb_box_seances_theoriques != "") {
								placeNode = new XML(<HISTO />);
								placeNode.@date = place.date;
								placeNode.@nb_lits_theoriques = place.nb_lits_theoriques;
								placeNode.@nb_lits_ouverts = place.nb_lits_ouverts;
								placeNode.@nb_box_ambulatoires_theoriques = place.nb_box_ambulatoires_theoriques;
								placeNode.@nb_box_ambulatoires_ouverts = place.nb_box_ambulatoires_ouverts;
								placeNode.@nb_box_seances_theoriques = place.nb_box_seances_theoriques;
								placeNode.@nb_box_seances_ouverts = place.nb_box_seances_ouverts;
								placeNode.@est_ouvert_1 = place.est_ouvert_1;
								placeNode.@est_ouvert_2 = place.est_ouvert_2;
								placeNode.@est_ouvert_3 = place.est_ouvert_3;
								placeNode.@est_ouvert_4 = place.est_ouvert_4;
								placeNode.@est_ouvert_5 = place.est_ouvert_5;
								placeNode.@est_ouvert_6 = place.est_ouvert_6;
								placeNode.@est_ouvert_7 = place.est_ouvert_7;
								recordNode.appendChild(placeNode);
							}
						}
						
						break;
						
					case "UFT" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "est_sans_facturation"), recordNode);
						
						for each (place in UFT_histo) {
							if (place.nb_lits_theoriques != "" || place.nb_box_ambulatoires_theoriques != "" || place.nb_box_seances_theoriques != "") {
								placeNode = new XML(<HISTO />);
								placeNode.@date = place.date;
								placeNode.@nb_lits_theoriques = place.nb_lits_theoriques;
								placeNode.@nb_lits_ouverts = place.nb_lits_ouverts;
								placeNode.@nb_box_ambulatoires_theoriques = place.nb_box_ambulatoires_theoriques;
								placeNode.@nb_box_ambulatoires_ouverts = place.nb_box_ambulatoires_ouverts;
								placeNode.@nb_box_seances_theoriques = place.nb_box_seances_theoriques;
								placeNode.@nb_box_seances_ouverts = place.nb_box_seances_ouverts;
								placeNode.@est_ouvert_1 = place.est_ouvert_1;
								placeNode.@est_ouvert_2 = place.est_ouvert_2;
								placeNode.@est_ouvert_3 = place.est_ouvert_3;
								placeNode.@est_ouvert_4 = place.est_ouvert_4;
								placeNode.@est_ouvert_5 = place.est_ouvert_5;
								placeNode.@est_ouvert_6 = place.est_ouvert_6;
								placeNode.@est_ouvert_7 = place.est_ouvert_7;
								recordNode.appendChild(placeNode);
							}
						}
						break;
						
					case "ETA" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "nb_lits", "nb_cp", "est_urgence", "remplacer_par_valeur_par_defaut"), recordNode);
						recordNode.@service_force_id = ETA_service_force_GUI.selectedItem.oid;
						recordNode.@finess_id = ETA_finess_GUI.selectedItem.oid;
						
						for each (place in ETA_histo) {
							if (place.nb_lits_theoriques != "" || place.nb_box_ambulatoires_theoriques != "" || place.nb_box_seances_theoriques != "" || place.nb_lits_cp_theoriques != "") {
								placeNode = new XML(<HISTO />);
								placeNode.@date = place.date;
								placeNode.@nb_lits_theoriques = place.nb_lits_theoriques;
								placeNode.@nb_lits_ouverts = place.nb_lits_ouverts;
								placeNode.@nb_lits_cp_theoriques = place.nb_lits_cp_theoriques;
								placeNode.@nb_lits_cp_ouverts = place.nb_lits_cp_ouverts;
								placeNode.@nb_box_ambulatoires_theoriques = place.nb_box_ambulatoires_theoriques;
								placeNode.@nb_box_ambulatoires_ouverts = place.nb_box_ambulatoires_ouverts;
								placeNode.@nb_box_seances_theoriques = place.nb_box_seances_theoriques;
								placeNode.@nb_box_seances_ouverts = place.nb_box_seances_ouverts;
								placeNode.@est_ouvert_1 = place.est_ouvert_1;
								placeNode.@est_ouvert_2 = place.est_ouvert_2;
								placeNode.@est_ouvert_3 = place.est_ouvert_3;
								placeNode.@est_ouvert_4 = place.est_ouvert_4;
								placeNode.@est_ouvert_5 = place.est_ouvert_5;
								placeNode.@est_ouvert_6 = place.est_ouvert_6;
								placeNode.@est_ouvert_7 = place.est_ouvert_7;
								placeNode.@lit_force = place.lit_force;
								recordNode.appendChild(placeNode);
							}
						}
						for each (var lit:Object in ETA_lits) {
							var litNode:XML = new XML(<LIT />);
							litNode.@oid = lit.oid;
							litNode.@chambre_particuliere = lit.chambre_particuliere;
							recordNode.appendChild(litNode);
						}
						break;
						
					case "LIT" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "est_chambre_particuliere"), recordNode);

						for each (var etage:Object in LIT_etages) {
							if (etage.oid != "0" && etage.oid != "-1") {
								var etageNode:XML = new XML(<ETAGE />);
								etageNode.@date = etage.date;
								etageNode.@oid = etage.oid;
								recordNode.appendChild(etageNode);
							}
						}
						
						break;
						
					case "CPT" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "taux_tva"), recordNode);
						recordNode.@compte_tva_id = CPT_compte_tva_id_GUI.selectedItem.oid
						break;
						
					case "SRU" :
						
						recordNode = readFields(new Array("oid", "service_id", "rubrique_id", "est_compte_force"), recordNode);
						recordNode.@compte_id = SRU_compte_id_GUI.selectedItem.oid
						recordNode.@prestation_forcee_id = SRU_prestation_forcee_id_GUI.selectedItem.oid
						break;
                        
                    case "DTG" :
						
						recordNode = readFields(new Array("oid", "texte", "dotation", "annee"), recordNode);
						recordNode.@service_1_id = DTG_service_1_id_GUI.selectedItem.oid
                        recordNode.@service_2_id = DTG_service_2_id_GUI.selectedItem.oid
                        recordNode.@service_3_id = DTG_service_3_id_GUI.selectedItem.oid
                        recordNode.@service_4_id = DTG_service_4_id_GUI.selectedItem.oid
                        recordNode.@service_5_id = DTG_service_5_id_GUI.selectedItem.oid
                        recordNode.@service_6_id = DTG_service_6_id_GUI.selectedItem.oid
                        recordNode.@service_7_id = DTG_service_7_id_GUI.selectedItem.oid
                        recordNode.@service_8_id = DTG_service_8_id_GUI.selectedItem.oid
                        recordNode.@service_9_id = DTG_service_9_id_GUI.selectedItem.oid
                        recordNode.@rubrique_1_id = DTG_rubrique_1_id_GUI.selectedItem.oid
                        recordNode.@rubrique_2_id = DTG_rubrique_2_id_GUI.selectedItem.oid
                        recordNode.@rubrique_3_id = DTG_rubrique_3_id_GUI.selectedItem.oid
                        recordNode.@rubrique_4_id = DTG_rubrique_4_id_GUI.selectedItem.oid
                        recordNode.@rubrique_5_id = DTG_rubrique_5_id_GUI.selectedItem.oid
                        recordNode.@rubrique_6_id = DTG_rubrique_6_id_GUI.selectedItem.oid
                        recordNode.@rubrique_7_id = DTG_rubrique_7_id_GUI.selectedItem.oid
                        recordNode.@rubrique_8_id = DTG_rubrique_8_id_GUI.selectedItem.oid
                        recordNode.@rubrique_9_id = DTG_rubrique_9_id_GUI.selectedItem.oid
                        recordNode.@rubrique_10_id = DTG_rubrique_10_id_GUI.selectedItem.oid
                        recordNode.@to_rubrique_id = DTG_to_rubrique_id_GUI.selectedItem.oid
                        recordNode.@to_prestation_id = DTG_to_prestation_id_GUI.selectedItem.oid
						break;
						
					case "PRC" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						recordNode.@type_valorisation_non_facture = PRC_type_valorisation_non_facture_GUI.selectedItem.data
						recordNode.@type_ventilation_jour = PRC_type_ventilation_jour_GUI.selectedItem.data
						break;
						
					case "PRH" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						break;
						
					case "RUB" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original", "actes_inclus_public", "est_force_etablissement"), recordNode);
						break;
						
					case "TTP" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
						
					case "TPY" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						recordNode.@grand_regime_id = TPY_grand_regime_GUI.selectedItem.oid;
						break;
						
					case "SPI" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
						
					case "MDA" :
						
						recordNode = readFields(new Array("oid", "code", "nom", "prenom", "code_original", "est_medecin_salarie", "kiwee_sigems_honpatcpt", "kiwee_sigems_honpatcpthon"), recordNode);
						break;
						
					case "MET" :
						
						recordNode = readFields(new Array("oid", "code", "nom", "prenom", "code_original", "no_rpps", "code_postal", "ville", "adresse"), recordNode);
						break;
					
					case "MED" :
						
						recordNode = readFields(new Array("oid", "code", "nom", "prenom", "code_original", "numero_ordre", "medecins_regroupes_oids"), recordNode);
						recordNode.@specialite_interne_id = MED_specialite_interne_GUI.selectedItem.oid;
						break;
						
					case "FSJ" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "est_ignore","encours_1_est_ignore"), recordNode);
						recordNode.@medecin_sejour_id = FSJ_medecin_sejour_GUI.selectedItem.oid;
						recordNode.@service_facturation_id = FSJ_service_facturation_GUI.selectedItem.oid;
						recordNode.@etage_id = FSJ_etage_GUI.selectedItem.oid;
						recordNode.@type_sejour = FSJ_type_sejour_GUI.selectedItem.data;
						
						recordNode.@encours_1_from_date = FSJ_encours_1_from_date_GUI.selectedItem.oid;
						break;
						
					case "BUD" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "date_debut", "date_fin"), recordNode);
						
						for each (var item:Object in BUD_indicateurs) {
							var indicateurNode:XML = new XML(<INDICATEUR />);
							indicateurNode.@oid = item.oid;
							indicateurNode.@code = item.code;
							indicateurNode.@texte = item.texte;
							indicateurNode.@indicateur_id = "0";
							
							var indicateur_id_split:Array = item.indicateur_id.toString().split(String.fromCharCode(0));
							if (indicateur_id_split.length > 0) {
								indicateurNode.@indicateur_id = indicateur_id_split[indicateur_id_split.length - 2];
							}
							recordNode.appendChild(indicateurNode);
						}
						break;
						
					case "BUC" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court", "code_original"), recordNode);
						break;
						
					case "BUR" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "priorite", "liste_specialite", "liste_medecin",
							"liste_service", "liste_acte", "liste_rubrique", "liste_ghm", "liste_sauf_ghm", "liste_diagnostic_principal",
							"liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"), recordNode);
						
						recordNode.@budget_cle_id = BUR_budget_cle_id_GUI.selectedItem.oid;
						break;
						
					case "BUI" :
						
						recordNode.@oid = BUI_oid_GUI.text;
						recordNode.appendChild(BUI_indicateurs);
						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", "prestataire",
								"gravite", "etat_cible", "table1", "table2", "table3",
								"is_active","is_alert", "is_hide", "is_cti"
								), recordNode);	
						}
						// Paramètres généraux
						if (EXC_mode == 2) {
							recordNode.@mode = EXC_mode;
							recordNode.@EXPERT_ACTIVE = EXC_EXPERT_ACTIVE_GUI.selected == true ? "1" : "0";
							recordNode.@EXPERT_DATE_DEBUT = EXC_EXPERT_DATE_DEBUT_GUI.text;
							EXC_mode = 0;
						}
						break;
						
                        
                    case "FAC" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
                        
                    case "FAR" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_service_entree", "liste_etage_entree", "liste_unite_fonctionnelle_entree",
							"liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", "liste_diagnostic_principal",
							"liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"), recordNode);
						
						recordNode.@forme_activite_id = FAR_filiere_soin_id_GUI.selectedItem.oid;
						break;
						
					case "FSO" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "texte_court"), recordNode);
						break;
                        
                    case "FSR" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_service_entree", "liste_etage_entree", "liste_unite_fonctionnelle_entree",
							"liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", "liste_diagnostic_principal",
							"liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"), recordNode);
						
						recordNode.@filiere_soin_id = FSR_filiere_soin_id_GUI.selectedItem.oid;
						break;
                        
                    case "POR" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_acte", "liste_rubrique", "liste_prestation", "liste_ghm", "liste_sauf_ghm", "liste_diagnostic_principal",
							"liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"), recordNode);
						
						recordNode.@pole_id = POR_pole_id_GUI.selectedItem.oid;
						break;
						
					case "CAR" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "priorite", "liste_type_sejour", "liste_specialite", "liste_medecin",
							"liste_service", "liste_etage", "liste_unite_fonctionnelle", "liste_acte", "liste_rubrique", "liste_compte_produit", "liste_sauf_compte_produit", "liste_prestation", "liste_sauf_prestation", "liste_ghm", "liste_sauf_ghm", "liste_diagnostic_principal",
							"liste_diagnostic_relie", "liste_diagnostic_associe", "liste_finess"), recordNode);
						
						recordNode.@compte_produit_analytique_id = CAR_compte_produit_analytique_id_GUI.selectedItem.oid;
						break;
                        
                    case "ENC" :
						
						recordNode = readFields(new Array("oid", "type_ligne", "coefficient_force", "prix_unitaire_force", "code", "valeur"), recordNode);
                        recordNode.@coefficient_is_force = ENC_coefficient_is_force_GUI.selected == true ? "1" : "0";
                        recordNode.@prix_unitaire_is_force = ENC_prix_unitaire_is_force_GUI.selected == true ? "1" : "0";
                        recordNode.@ignorer = ENC_ignorer_GUI.selected == true ? "1" : "0";
                        recordNode.@type_valorisation = ENC_type_valorisation_GUI.selectedItem.data
						break;
						
					case "COV" :
						
						recordNode = readFields(new Array("oid", "code", "texte", "finess", "valeur_2019_ars", "valeur_2019", "valeur_2019_saisie"), recordNode);
						break;
						
				}
				
				urlVariables.recordNode = recordNode.toXMLString();
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					getData();
					
					detailBox_GUI.visible = false;
					detailBox_GUI.includeInLayout = false;
					currendRecordItem = null;
					toggleUpdate(false);
				}
			}
			
			
			
			public function BUR_execute_rules():void {
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'BUR_execute_rules';
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void { }
			}
			
			
			
			public function BUI_budget_import(BUI_indicateurs_cle:XMLList):void {
				
				CTI_Utilitaires.inputBox(this, "Budget", "Copier le budget depuis Excel", responseFunction);
				
				function responseFunction(value:String):void {
					
					value = value.replace(",", ".");
					var BUI_budget_import_array:Array = value.split(String.fromCharCode(13));
					var BUI_budget_import_currentImportIndex:int = 0;
					var BUI_budget_import_count:int = 0;
					
					if (BUI_budget_import_array.length > 0) {
						
						for (var i:Number = 0; i < BUI_budget_import_array.length; i++) { 
							
							var BUI_budget_import_row_array:Array = BUI_budget_import_array[i].split(String.fromCharCode(9));
							
							if (BUI_budget_import_row_array.length > 13) {
								
								var cle_code:String = BUI_budget_import_row_array[0].toString().toUpperCase() + ' ';
								
								for each (var itemNode:XML in BUI_indicateurs_cle) {
									if (itemNode.@budget_cle_texte.toUpperCase().indexOf(cle_code) >= 0) {
										itemNode.@budget_01 = BUI_budget_import_row_array[2].toString();
										itemNode.@budget_02 = BUI_budget_import_row_array[3].toString();
										itemNode.@budget_03 = BUI_budget_import_row_array[4].toString();
										itemNode.@budget_04 = BUI_budget_import_row_array[5].toString();
										itemNode.@budget_05 = BUI_budget_import_row_array[6].toString();
										itemNode.@budget_06 = BUI_budget_import_row_array[7].toString();
										itemNode.@budget_07 = BUI_budget_import_row_array[8].toString();
										itemNode.@budget_08 = BUI_budget_import_row_array[9].toString();
										itemNode.@budget_09 = BUI_budget_import_row_array[10].toString();
										itemNode.@budget_10 = BUI_budget_import_row_array[11].toString();
										itemNode.@budget_11 = BUI_budget_import_row_array[12].toString();
										itemNode.@budget_12 = BUI_budget_import_row_array[13].toString();
										toggleUpdate(true);
										break;
									}
								}
							}
						} 
					}
				}
			}
			
			
			
			public function BUI_budget_erase(BUI_indicateurs_cle:XMLList):void {
				
				for each (var itemNode:XML in BUI_indicateurs_cle) {
					itemNode.@budget_01 = '0';
					itemNode.@budget_02 = '0';
					itemNode.@budget_03 = '0';
					itemNode.@budget_04 = '0';
					itemNode.@budget_05 = '0';
					itemNode.@budget_06 = '0';
					itemNode.@budget_07 = '0';
					itemNode.@budget_08 = '0';
					itemNode.@budget_09 = '0';
					itemNode.@budget_10 = '0';
					itemNode.@budget_11 = '0';
					itemNode.@budget_12 = '0';
					toggleUpdate(true);
				}
			}
            
            public function FAR_execute_rules():void {
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'FAR_execute_rules';
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void { 
                    getData();
                }
			}
			
			public function FRU_execute_rules():void {
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'FRU_execute_rules';
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void { 
                    getData();
                }
			}
            
            
            public function POR_execute_rules():void {
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'POR_execute_rules';
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void { 
                    getData();
                }
			}
			
			public function CAR_execute_rules():void {
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = 'CAR_execute_rules';
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void { 
                    getData();
                }
			}
			
			
			
			public function print():void {
				
				var printReport:CTI_Print = new CTI_Print()
				
				if (printReport.start("ACTI_TablesManager", titlePrint) == false) {
					return;
				}
				
				printReport.addDataGrid(list_GUI);
				
				printReport.print();
			}
			
			
			
			public function exportExcel():void {
				
				var xml:XML = new XML(<EXCELEXPORT />);
				
				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 (refSearch_GUI.selected == true) {
					selectionsNode.@displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (textSearch_GUI.text != "") {
					selectionsNode.@displayText = selectionsNode.displayText + "(Filtre : " + textSearch_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_ExcelUtilitaires.exportExcel(xml);
			}
			
			
			
			public function exportPDF():void {
				
				var xml:XML = new XML(<PDFEXPORT />);
				
				var ongletNode: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 (refSearch_GUI.selected == true) {
					selectionsNode.displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (textSearch_GUI.text != "") {
					selectionsNode.displayText = selectionsNode.displayText + "(Filtre : " + textSearch_GUI.text + ")  ";
				}
				
				xml.appendChild(selectionsNode);
				
				ongletNode = new XML(<ONGLET />);
				ongletNode.@excelLabel = tableCode;
				xml.appendChild(ongletNode);
				
				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 />);
				ongletNode.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;
			}
			
			
			
			private function FSJ_code_changeEvent(event:*):void {
				
				toggleUpdate(true);
				var sejours_XML:XMLList = FSJ_ARRAY_SEJ_XML.RECORD.(@code == FSJ_code_GUI.text);
				if (sejours_XML.length() > 0) {
					FSJ_texte_GUI.text = sejours_XML[0].@texte;
				}
				else {
					FSJ_texte_GUI.text = "?";
				}	
			}
			
			
			
			private function placesRefChange(event:ListEvent):void {
				
				toggleUpdate(true);
				DIV_valeur_GUI.text = event.target.selectedItem.valeur.toString();
				DIV_valeur2_GUI.text = event.target.selectedItem.valeur2.toString();
			}
			
			
			
			private function EXC_show_generalSettings():void {
				
				EXC_mode = 2;
				detailBox_GUI.visible = true;
				detailBox_GUI.includeInLayout = true;
			}
			
			
			
			private 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/activite/php/ACTI_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;
					toggleUpdate(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/activite/php/httpService_ACTI_tableManager_getSqlScript.php", urlVariables, "iCTI_expert_controle.SQL");
			}
            
            
            private function ENC_execute(controle_id:String=null):void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.action = 'execute';
				
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (resultatService.RETURN.@code.toString() != "KO") {
						CTI_Utilitaires.alert_info("Valorisation", "Exécution terminée : " + resultatService.RETURN.@message.toString());
					}
					else {
						CTI_Utilitaires.alert_error("Valorisation", "Exécution terminée avec ERREURS : " + resultatService.RETURN.@message.toString());
					}
					
					getData();
					
					detailBox_GUI.visible = false;
					detailBox_GUI.includeInLayout = false;
					currendRecordItem = null;
					toggleUpdate(false);
				}
			}
			
			private function COV_execute(controle_id:String=null):void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.action = 'execute';
				
				
				CTI_Utilitaires.startRequestHTTP("modules/activite/php/ACTI_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (resultatService.RETURN.@code.toString() != "KO") {
						CTI_Utilitaires.alert_info("Extraction CTI", "Exécution terminée : " + resultatService.RETURN.@message.toString());
					}
					else {
						CTI_Utilitaires.alert_error("Extraction CTI", "Exécution terminée avec ERREURS : " + resultatService.RETURN.@message.toString());
					}
					
					getData();
					
					detailBox_GUI.visible = false;
					detailBox_GUI.includeInLayout = false;
					currendRecordItem = null;
					toggleUpdate(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/activite/php/httpService_ACTI_tableManager_copyRef.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					getData();
					
					detailBox_GUI.visible = false;
					detailBox_GUI.includeInLayout = false;
					currendRecordItem = null;
					toggleUpdate(false);
				}
			}
			
			
			
			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;
			}
			
			
			
			private function setSelectedIndex(cb:Object, str:String, field:String='data'):void {
				cb.selectedIndex = 0
				for (var idx:int = 0, len:int = cb.dataProvider.length; idx < len; idx++) {
					if (cb.dataProvider.getItemAt(idx)[field] == str) {
						cb.selectedIndex = idx;
					}
				}
			}
			
			
			
			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 != null) {
						if (dobj is RichTextEditor) {
							if (currendRecordItem[field].toString() != "") {
								(dobj as RichTextEditor).htmlText = CTI_Utilitaires.uncompress64(currendRecordItem[field].toString());
							}
							else {
								(dobj as RichTextEditor).htmlText = "";
							}
						}
						else 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 CheckBox) {
							(dobj as CheckBox).selected = currendRecordItem[field].toString() == "1" ? true : false;
						}
					}
				}
				dobj = null;
			}
			
			
			
			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] = "";
						}
					}
					else 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 ComboBox) {
						recordNode.@[field] = (dobj as ComboBox).selectedItem.data;
					}
					else if (dobj is CheckBox) {
						recordNode.@[field] = (dobj as CheckBox).selected ? "1" : "0";
					}
					
				}
				dobj = null;
				return recordNode;
			}
			
			
			
			/**
			 * 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;
			}
			
			
			/**
			 * 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 mainDo:DisplayObject = mainBox.getChildByName(tableCode + "_mainBox");
                detailBox_GUI = (mainDo as DisplayObjectContainer).getChildByName(tableCode + "_detailBox_GUI") as VBox;
                texte_GUI = findChild(detailBox_GUI as DisplayObjectContainer, tableCode + "_texte_GUI") as TextArea;
                
                if (tableCode != "ENC") {
                    list_GUI = null
                    list_GUI = (mainDo as DisplayObjectContainer).getChildByName(tableCode + "_list_GUI") as DataGrid;
                    if (list_GUI == null) {
                        var subDo:DisplayObject = (mainDo as DisplayObjectContainer).getChildByName(tableCode + "_subBox");
                        if (subDo != null) {
                            list_GUI = (subDo as DisplayObjectContainer).getChildByName(tableCode + "_list_GUI") as DataGrid;
                        }
                    }
                }
                else {
                    list_GUI = ENC_list1_GUI
                    if (ENC_type_parametre_GUI.selectedIndex == 1) {
                        list_GUI = ENC_list2_GUI
                    }
                    if (ENC_type_parametre_GUI.selectedIndex == 2) {
                        list_GUI = ENC_list3_GUI
                    }
                    if (ENC_type_parametre_GUI.selectedIndex == 3) {
                        list_GUI = ENC_list4_GUI
                    }
                    if (ENC_type_parametre_GUI.selectedIndex == 4) {
                        list_GUI = ENC_list5_GUI
                    }
                    if (ENC_type_parametre_GUI.selectedIndex == 5) {
                        list_GUI = ENC_list8_GUI
                    }
                    list_collection = list_GUI.dataProvider as CTI_ArrayCollection
                    searchChange()
                }
				
				mainDo.visible = true;
			}
			
			public function toggleUpdate(value:Boolean):void {
				recordUpdated = value;
			}
			
        ]]>
    </mx:Script>
	
	
	<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()"/>
				
				<mx:Button height="28" width="28" toolTip="Réafficher" icon="@Embed('../../base/swf/CTI/images/24/view-refresh.png')" labelPlacement="right" click="getData()" />
				<mx:Button height="28" width="28" toolTip="Exporter vers Excel" icon="@Embed('../../base/swf/CTI/images/24/excel.png')" labelPlacement="right" click="exportExcel()"/>
				<mx:Spacer />
				<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: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 == 'SPI' || tableCode == 'MED' || tableCode == 'FSJ' || tableCode == 'CPT' || tableCode == 'BUD' || tableCode == 'BUC' || tableCode == 'BUR' || tableCode == 'EXC' || tableCode == 'FSO' || tableCode == 'FSR' || tableCode == 'FAR' || tableCode == 'POR' || tableCode == 'CAR'}" />
				<mx:Spacer />
				<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="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 />
				<mx:Button height="28" width="170" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-software-installer.png')" label="Exécuter les règles" labelPlacement="right" click="BUR_execute_rules()" enabled="{!recordUpdated}" visible="{tableCode == 'BUR'}" includeInLayout="{tableCode == 'BUR'}" />
				<mx:Button height="28" width="170" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-software-installer.png')" label="Exécuter les règles" labelPlacement="right" click="FAR_execute_rules()" enabled="{!recordUpdated}" visible="{tableCode == 'FAR'}" includeInLayout="{tableCode == 'FAR'}" />
                <mx:Button height="28" width="170" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-software-installer.png')" label="Exécuter les règles" labelPlacement="right" click="FRU_execute_rules()" enabled="{!recordUpdated}" visible="{tableCode == 'FSR'}" includeInLayout="{tableCode == 'FAR'}" />
				<mx:Button height="28" width="170" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-software-installer.png')" label="Exécuter les règles" labelPlacement="right" click="POR_execute_rules()" enabled="{!recordUpdated}" visible="{tableCode == 'POR'}" includeInLayout="{tableCode == 'POR'}" />
				<mx:Button height="28" width="170" toolTip="Exécuter les règles" icon="@Embed('../../base/swf/CTI/images/24/system-software-installer.png')" label="Exécuter les règles" labelPlacement="right" click="CAR_execute_rules()" enabled="{!recordUpdated}" visible="{tableCode == 'CAR'}" includeInLayout="{tableCode == 'CAR'}" />
				<mx:Button height="28" width="130" label="Exécuter" toolTip="Exécuter les règles Expert" icon="@Embed('../../base/swf/CTI/images/24/execute.png')" labelPlacement="right" click="EXC_execute_rules()" enabled="{!recordUpdated &amp;&amp; currendRecordItem == null}" visible="{EXC_mode != 2 &amp;&amp; tableCode == 'EXC'}" includeInLayout="{EXC_mode != 2 &amp;&amp; tableCode == 'EXC'}" />
				<mx:Button height="28" width="180" label="Relancer valorisation" toolTip="Recalculer la valorisation des non facturés" icon="@Embed('../../base/swf/CTI/images/24/execute.png')" labelPlacement="right" click="ENC_execute()" enabled="{!recordUpdated &amp;&amp; currendRecordItem == null}" visible="{tableCode == 'ENC'}" includeInLayout="{tableCode == 'ENC'}" />
				
                <mx:Spacer width="100%" />
				<mx:HBox  >
					<mx:Label text="Filtre" />
					<mx:TextArea width="100%" height="18" id="textSearch_GUI" change="searchChange()"/>
					<mx:Spacer width="10" />
					<mx:Label text="Référencés Uniquement" visible="false"/>
					<mx:CheckBox id="refSearch_GUI" change="searchChange()" visible="false"/>
				</mx:HBox>
			</mx:HBox>
		</mx:Canvas>
		
		<mx:Canvas width="100%" height="100%" id="mainBox">
		
			
			
			
			<mx:VDividedBox id="SER_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SER_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nb_lits" headerText="Lits" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nb_cp" headerText="C.P." width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="finess" headerText="FINESS" width="80"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="mtdmt" headerText="DMT" width="80"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comment" headerText="Particularité" width="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SER_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/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; SER_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; SER_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SER_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="SER_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="SER_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					
					<mx:TabNavigator height="100%" width="100%" >
						<mx:VBox label="Définition" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Texte court" />
								<mx:TextArea width="300" height="18" id="SER_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Nombre de lits" />
								<mx:TextArea width="100" height="18" id="SER_nb_lits_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Nombre de C.P." />
								<mx:TextArea width="100" height="18" id="SER_nb_cp_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="PMSI" />
								<mx:ComboBox id="SER_type_t2a_GUI" dataProvider="{SER_type_t2a_provider}" width="400" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="FINESS" />
								<mx:ComboBox id="SER_finess_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Budget Global" />
								<mx:CheckBox id="SER_est_budget_global_GUI" change="toggleUpdate(true)" />
							</mx:HBox>
							
						</mx:VBox>
						<mx:VBox label="Places" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox width="100%" height="100%">
								<mx:VBox>
									<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="SER_histo_add()" />
									<mx:Button height="20" width="20" label="Enlever" visible="{SER_histo_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="SER_histo_remove()"   />
								</mx:VBox>
								
								<mx:DataGrid id="SER_histo_GUI" rowHeight="24" headerHeight="40"
									rowCount="{SER_histo.length + 1}" height="100%" width="700"
									wordWrap="false" dataProvider="{SER_histo}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="date" headerText="Date" minWidth="100"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_dateField_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_theoriques" headerText="Lits Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_ouverts" headerText="Lits Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_theoriques" headerText="Box A Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_ouverts" headerText="Box A Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_theoriques" headerText="Box S Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_ouverts" headerText="Box S Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_1" headerText="L" width="15" textAlign="center"  editable="true" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_2" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_3" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_4" headerText="J" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_5" headerText="V" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_6" headerText="S" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_7" headerText="D" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										
									</mx:columns>
								</mx:DataGrid>
								
								
								

							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Options de génération" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Mode de traitement" />
								<mx:ComboBox id="SER_mode_traitement_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="DMT" />
								<mx:ComboBox id="SER_dmt_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Type séjour" />
								<mx:ComboBox id="SER_type_sejour_GUI" dataProvider="{SER_type_sejour_provider}" width="400" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Sans mouvement" />
								<mx:CheckBox id="SER_est_sans_mouvement_GUI" change="toggleUpdate(true)" />
                                <mx:Label text="Calcul journées" />
								<mx:ComboBox id="SER_mode_calcul_journees_GUI" dataProvider="{SER_mode_calcul_journees_provider}" width="400" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Etage par défaut" />
								<mx:ComboBox id="SER_etage_par_defaut_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Etage forcé" />
								<mx:ComboBox id="SER_etage_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Médecin par défaut" />
								<mx:ComboBox id="SER_medecin_par_defaut_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Médecin forcé" />
								<mx:ComboBox id="SER_medecin_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Facturation" />
								<mx:ComboBox id="SER_est_sans_facturation_GUI" dataProvider="{SER_est_sans_facturation_provider}" width="400" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Facturation intermédiaire" />
								<mx:CheckBox id="SER_avec_facturation_intermediaire_GUI" change="toggleUpdate(true)" />
							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Options de génération (suite)" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox >
								<mx:Label width="150" text="Mouvements / jours fermés" />
								<mx:CheckBox id="SER_option_jour_ferme_GUI" change="toggleUpdate(true)" />
								<mx:Label width="100%" text="(Si coché : Suppression des mouvements les jours de fermeture du service)" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Prestations présence" />
								<mx:TextArea width="200" height="18" id="SER_prestations_presence_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
								<mx:Label width="100%" text="(Codes prestations identifiant présence en HDJ)" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Particularité en-cours" />
								<mx:TextArea width="200" height="18" id="SER_particularites_encours_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
								<mx:Label width="100%" text="(IVG, MAT)" />
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Séjours sans actes sont fictifs" />
								<mx:CheckBox id="SER_sej_sans_acte_fictif_GUI" change="toggleUpdate(true)" />
							</mx:HBox>
                            <mx:HBox >
								<mx:Label width="150" text="Activité par défaut" />
								<mx:ComboBox id="SER_activite_par_defaut_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Activité forcée" />
								<mx:ComboBox id="SER_activite_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
						</mx:VBox>
					</mx:TabNavigator>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SER_oid_GUI" change="toggleUpdate(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="SER_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ACF_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ACF_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ACF_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/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; ACF_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; ACF_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ACF_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="ACF_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="ACF_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="ACF_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox >
						<mx:Label width="150" text="Etage par défaut" />
						<mx:ComboBox id="ACF_etage_par_defaut_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Etage forcé" />
						<mx:ComboBox id="ACF_etage_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
			
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ACF_oid_GUI" change="toggleUpdate(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="ACF_nbref_GUI" change="toggleUpdate(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="100"  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/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; DIV_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchronisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; DIV_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<!--<mx:HBox width="100%">
						<mx:Label width="150" text="Paramètre" />
						<mx:ComboBox width="200" dataProvider="{PLACESREF_PROVIDER}" labelField="texte" visible="{DIV_list_GUI.selectedItem.code == 'PLACESREF'}" change="toggleUpdate(true)" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:Label width="100" id="DIV_code_GUI" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="DIV_texte_GUI" change="toggleUpdate(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="toggleUpdate(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="toggleUpdate(true)" editable="false"/>
					</mx:HBox>-->
					
					<mx:Form width="100%">
						
						<mx:FormItem label="Code" width="100%">
							<mx:TextArea id="DIV_code_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
						<mx:FormItem label="Texte" width="100%">
							<mx:TextArea id="DIV_texte_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
						<mx:FormItem label="Valeur" direction="horizontal" visible="{DIV_list_GUI.selectedItem.code == 'PLACESREF'}" includeInLayout="{DIV_list_GUI.selectedItem.code == 'PLACESREF'}">
							<mx:ComboBox id="DIV_placesref_GUI" width="200" dataProvider="{PLACESREF_PROVIDER}" labelField="texte" change="placesRefChange(event)" />
						</mx:FormItem>
						<mx:FormItem label="Valeur" direction="horizontal" visible="{DIV_list_GUI.selectedItem.code == 'OPTADM_DAYOUT'}" includeInLayout="{DIV_list_GUI.selectedItem.code == 'OPTADM_DAYOUT'}">
							<mx:ComboBox id="DIV_optadm_dayout_GUI" width="350" dataProvider="{OPTADM_DAYOUT_PROVIDER}" labelField="texte" change="placesRefChange(event)" />
						</mx:FormItem>
						<mx:FormItem label="Valeur" width="100%" visible="{(DIV_list_GUI.selectedItem.code != 'PLACESREF') &amp;&amp; (DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT')}" includeInLayout="{(DIV_list_GUI.selectedItem.code != 'PLACESREF') &amp;&amp; (DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT')}">
							<mx:TextArea id="DIV_valeur_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" editable="{(DIV_list_GUI.selectedItem.code != 'PLACESREF') &amp;&amp; (DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT')}" selectable="{(DIV_list_GUI.selectedItem.code != 'PLACESREF') &amp;&amp; (DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT')}" change="toggleUpdate(true)" />
						</mx:FormItem>
						<mx:FormItem label="Description" width="100%"  visible="{DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT'}" includeInLayout="{DIV_list_GUI.selectedItem.code != 'OPTADM_DAYOUT'}">
							<mx:TextArea id="DIV_description_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
						<mx:FormItem label="Info Module" width="100%">
                            <mx:CheckBox id="DIV_show_info_module_GUI" change="toggleUpdate(true)" />
                        </mx:FormItem>
						<mx:FormItem label="Valeur2" width="100%" visible="false" includeInLayout="false">
							<mx:TextArea id="DIV_valeur2_GUI" />
						</mx:FormItem>
						<mx:FormItem label="Oid" width="100%" visible="false" includeInLayout="false">
							<mx:TextArea id="DIV_oid_GUI" change="toggleUpdate(true)" />
						</mx:FormItem>
						<mx:FormItem label="Nbref" width="100%" visible="false" includeInLayout="false">
							<mx:TextArea id="DIV_nbref_GUI" change="toggleUpdate(true)" />
						</mx:FormItem>
					</mx:Form>
					
				</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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="UMD_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/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:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; UMD_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:TabNavigator height="100%" width="100%" >
						<mx:VBox label="Définition" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Code" />
								<mx:TextArea width="100" height="18" id="UMD_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Code original" />
								<mx:TextArea width="300" height="18" id="UMD_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Texte" />
								<mx:TextArea width="100%" height="18" id="UMD_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Texte court" />
								<mx:TextArea width="300" height="18" id="UMD_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Etage par défaut" />
								<mx:ComboBox id="UMD_etage_par_defaut_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Etage forcé" />
								<mx:ComboBox id="UMD_etage_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
						</mx:VBox>
					
						<mx:VBox label="Places" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox width="100%" height="100%">
								<mx:VBox>
									<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="UMD_histo_add()" />
									<mx:Button height="20" width="20" label="Enlever" visible="{UMD_histo_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="UMD_histo_remove()"   />
								</mx:VBox>
								
								<mx:DataGrid id="UMD_histo_GUI" rowHeight="24" headerHeight="40"
									rowCount="{UMD_histo.length + 1}" height="100%" width="700"
									wordWrap="false" dataProvider="{UMD_histo}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="date" headerText="Date" minWidth="100"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_dateField_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_theoriques" headerText="Lits Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_ouverts" headerText="Lits Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_theoriques" headerText="Box A Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_ouverts" headerText="Box A Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_theoriques" headerText="Box S Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_ouverts" headerText="Box S Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_1" headerText="L" width="15" textAlign="center"  editable="true" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_2" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_3" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_4" headerText="J" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_5" headerText="V" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_6" headerText="S" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_7" headerText="D" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										
									</mx:columns>
								</mx:DataGrid>
								
								
								

							</mx:HBox>
						</mx:VBox>

					</mx:TabNavigator>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="UMD_oid_GUI" change="toggleUpdate(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="UMD_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="UFT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="UFT_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="UFT_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/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; UFT_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; UFT_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:TabNavigator height="100%" width="100%" >
						<mx:VBox label="Définition" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Code" />
								<mx:TextArea width="100" height="18" id="UFT_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Code original" />
								<mx:TextArea width="300" height="18" id="UFT_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="150" text="Texte" />
								<mx:TextArea width="100%" height="18" id="UFT_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Texte court" />
								<mx:TextArea width="300" height="18" id="UFT_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
					
						</mx:VBox>
					
						<mx:VBox label="Places" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox width="100%" height="100%">
								<mx:VBox>
									<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="UFT_histo_add()" />
									<mx:Button height="20" width="20" label="Enlever" visible="{UFT_histo_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="UFT_histo_remove()"   />
								</mx:VBox>
								
								<mx:DataGrid id="UFT_histo_GUI" rowHeight="24" headerHeight="40"
									rowCount="{UFT_histo.length + 1}" height="100%" width="700"
									wordWrap="false" dataProvider="{UFT_histo}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="date" headerText="Date" minWidth="100"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_dateField_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_theoriques" headerText="Lits Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_ouverts" headerText="Lits Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_theoriques" headerText="Box A Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_ouverts" headerText="Box A Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_theoriques" headerText="Box S Théoriques" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_ouverts" headerText="Box S Ouverts" width="60"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_1" headerText="L" width="15" textAlign="center"  editable="true" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_2" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_3" headerText="M" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_4" headerText="J" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_5" headerText="V" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_6" headerText="S" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_7" headerText="D" width="15"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										
									</mx:columns>
								</mx:DataGrid>
								
								
								

							</mx:HBox>
						</mx:VBox>
						
						<mx:VBox label="Options de génération" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox >
								<mx:Label width="150" text="Facturation" />
								<mx:ComboBox id="UFT_est_sans_facturation_GUI" dataProvider="{UFT_est_sans_facturation_provider}" width="400" change="toggleUpdate(true)"/>
							</mx:HBox>
						</mx:VBox>
						
					</mx:TabNavigator>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="UFT_oid_GUI" change="toggleUpdate(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="UFT_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="ETA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ETA_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="finess" headerText="FINESS" width="80"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nb_lits" headerText="Lits" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nb_cp" headerText="C.P." width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ETA_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/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; ETA_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; ETA_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="ETA_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="ETA_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="ETA_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:TabNavigator height="100%" width="100%">
						<mx:VBox label="Définition" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Texte court" />
								<mx:TextArea width="300" height="18" id="ETA_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:VBox width="100%" height="100%" backgroundColor="0xffffff" visible="{ETA_lits_enabled}" includeInLayout="{ETA_lits_enabled}" >
								<mx:HBox >
									<mx:Label width="150" text="FINESS" />
									<mx:ComboBox id="ETA_finess_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
								</mx:HBox>
								<mx:HBox>
									<mx:Label width="150" text="Nombre de lits" />
									<mx:TextArea width="100" height="18" id="ETA_nb_lits_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
								</mx:HBox>
								<mx:HBox>
									<mx:Label width="150" text="Nombre de C.P." />
									<mx:TextArea width="100" height="18" id="ETA_nb_cp_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
								</mx:HBox>
								<mx:HBox>
									<mx:Label width="150" text="Unité d'urgences" />
									<mx:CheckBox id="ETA_est_urgence_GUI" change="toggleUpdate(true)" />
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Service forcé" />
									<mx:ComboBox id="ETA_service_force_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
								</mx:HBox>
								<mx:HBox >
									<mx:Label width="150" text="Ignorer" />
									<mx:CheckBox id="ETA_remplacer_par_valeur_par_defaut_GUI" change="toggleUpdate(true)" />
									<mx:Label width="100%" text="(Si coché : La valeur sera remplacée par l'étage par défaut du service)" />
								</mx:HBox>
							</mx:VBox>
						</mx:VBox>
						<mx:VBox label="Places" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox width="100%" height="100%">
								<mx:VBox>
									<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="ETA_histo_add()" />
									<mx:Button height="20" width="20" label="Enlever" visible="{ETA_histo_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="ETA_histo_remove()"   />
								</mx:VBox>
								
								<mx:DataGrid id="ETA_histo_GUI" rowHeight="24" headerHeight="60"
									rowCount="{ETA_histo.length + 1}" height="100%" width="{this.width - 30}"
									wordWrap="true" dataProvider="{ETA_histo}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="date" headerText="Date" width="130"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_dateField_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_theoriques" headerText="Lits Théo." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_ouverts" headerText="Lits Ouv." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_theoriques" headerText="Box Amb Théo." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_ambulatoires_ouverts" headerText="Box Amb Ouv." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_theoriques" headerText="Box Séa Théo." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_box_seances_ouverts" headerText="Box Séa Ouv." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_cp_theoriques" headerText="C.P. Théo." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="nb_lits_cp_ouverts" headerText="C.P. Ouv." width="40"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_1" headerText="L" width="25" textAlign="center"  editable="true" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_2" headerText="M" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_3" headerText="M" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_4" headerText="J" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_5" headerText="V" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_6" headerText="S" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="est_ouvert_7" headerText="D" width="25"  editable="false" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="lit_force" headerText="Forcer par code lit (QSP)" width="{this.width - 670}"  editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_textInput_renderer" />
										
									</mx:columns>
								</mx:DataGrid>

							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Lits" width="100%" height="100%" backgroundColor="0xffffff" enabled="{ETA_lits_enabled}">
							<mx:HBox width="100%" height="100%">

								<mx:DataGrid id="ETA_lits_GUI" rowHeight="24" headerHeight="40"
									rowCount="{ETA_lits.length + 1}" height="100%" width="600"
									wordWrap="false" dataProvider="{ETA_lits}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="code" headerText="Lit" width="80"  editable="false" headerWordWrap="true" />
										<mx:DataGridColumn resizable="false" sortable="false" dataField="chambre_particuliere" headerText="CP" width="30" textAlign="center"  editable="true" headerWordWrap="true"
											rendererIsEditor="true"  editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_checkbox_renderer" />
									</mx:columns>
								</mx:DataGrid>

							</mx:HBox>
						</mx:VBox>
					</mx:TabNavigator>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ETA_oid_GUI" change="toggleUpdate(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="ETA_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="LIT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="LIT_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="etage_code" headerText="Code étage" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="etage_texte" headerText="Texte étage" width="400"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="LIT_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/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; LIT_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; LIT_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="LIT_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="LIT_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="LIT_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:TabNavigator height="100%" width="100%">
						<mx:VBox label="Définition" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox>
								<mx:Label width="150" text="Texte court" />
								<mx:TextArea width="300" height="18" id="LIT_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Etage" />
								<mx:TextArea width="100" height="18" id="LIT_etage_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="" />
								<mx:TextArea width="100%" height="18" id="LIT_etage_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Chambre particulière" />
								<mx:CheckBox id="LIT_est_chambre_particuliere_GUI" change="toggleUpdate(true)" />
							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Etages" width="100%" height="100%" backgroundColor="0xffffff" >
							<mx:HBox width="100%" height="100%">
								<mx:VBox>
									<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="LIT_etages_add()" />
									<mx:Button height="20" width="20" label="Enlever" visible="{LIT_etages_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="LIT_etages_remove()"   />
								</mx:VBox>
								
								<mx:DataGrid id="LIT_etages_GUI" rowHeight="24" headerHeight="40"
									rowCount="{LIT_etages.length + 1}" height="100%" width="500"
									wordWrap="false" dataProvider="{LIT_etages}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn resizable="false" sortable="false" dataField="date" headerText="Date" width="150" editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="result" itemRenderer="CTI.renderers.CTI_dataGridColumn_dateField_renderer" />
										<mx:DataGridColumn resizable="false" sortable="false" 
												editorDataField="selectedLabel" 
												headerText="Etage" minWidth="340"  
												editable="true" headerWordWrap="true" rendererIsEditor="true"
												>
												<mx:itemRenderer>
													<mx:Component >
															<mx:ComboBox 
																labelField="texte"
																dataProvider="{outerDocument.LIT_etages_etages_provider}"
																dataChange="{outerDocument.LIT_etages_etage_id_dataChangeEvent(ComboBox(event.target))}"
																change="{outerDocument.LIT_etages_etage_id_changeEvent(ComboBox(event.target))}" />
													</mx:Component>
												</mx:itemRenderer>
											</mx:DataGridColumn>
									</mx:columns>
								</mx:DataGrid>

							</mx:HBox>
						</mx:VBox>
					</mx:TabNavigator>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="LIT_oid_GUI" change="toggleUpdate(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="LIT_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="CPT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CPT_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="tva_texte" headerText="TVA" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CPT_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/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; CPT_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="CPT_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="CPT_code_original_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="CPT_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="CPT_texte_court_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Compte TVA" />
						<mx:ComboBox id="CPT_compte_tva_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>                        
					<mx:HBox width="100%" visible="{CPT_compte_tva_id_GUI.selectedIndex != 0}">
						<mx:Label width="150" text="Taux TVA" />
						<mx:TextArea width="100" height="18" id="CPT_taux_tva_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CPT_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="CPT_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="SRU_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SRU_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="service" headerText="Service" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rubrique" headerText="Rubrique" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="compte" headerText="Compte" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="prestation_forcee" headerText="Prestation forcée" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SRU_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/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; SRU_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Service" />
						<mx:TextArea width="100%" height="18" id="SRU_service_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
						<mx:TextArea width="0" height="18" id="SRU_service_id_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" visible="false" includeInLayout="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Rubrique" />
						<mx:TextArea width="100%" height="18" id="SRU_rubrique_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
						<mx:TextArea width="0" height="18" id="SRU_rubrique_id_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" visible="false" includeInLayout="false"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Compte" />
						<mx:ComboBox id="SRU_compte_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Compte forcé ?" />
						<mx:CheckBox id="SRU_est_compte_force_GUI" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Prestation forcée" />
						<mx:ComboBox id="SRU_prestation_forcee_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SRU_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="SRU_code_original_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%" visible="false" includeInLayout="false">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="SRU_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="SRU_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
					
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SRU_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="SRU_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
            
            <mx:VDividedBox id="DTG_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="DTG_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="texte" headerText="Texte" minWidth="200"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="annee" headerText="Année" minWidth="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="dotation" headerText="Dotation" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="service" headerText="Service" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rubrique" headerText="Rubrique" width="200"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="to_rubrique" headerText="Vers Rubrique" width="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="DTG_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/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; DTG_dotation_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
                    
                    <mx:HBox width="100%" >
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="DTG_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
                    <mx:HBox >
                        <mx:Label width="150" text="Année" />
                        <mx:ComboBox id="DTG_annee_GUI" dataProvider="{DTG_annee_provider}" width="100" change="toggleUpdate(true)"/>
                    </mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Services" />
						<mx:ComboBox id="DTG_service_1_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_2_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_3_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="" />
                        <mx:ComboBox id="DTG_service_4_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_5_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_6_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="" />
						<mx:ComboBox id="DTG_service_7_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_8_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_service_9_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="Rubriques" />
						<mx:ComboBox id="DTG_rubrique_1_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_2_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_3_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="" />
                        <mx:ComboBox id="DTG_rubrique_4_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_5_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_6_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="" />
						<mx:ComboBox id="DTG_rubrique_7_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_8_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
                        <mx:ComboBox id="DTG_rubrique_9_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="" />
						<mx:ComboBox id="DTG_rubrique_10_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
					<mx:HBox width="100%" >
						<mx:Label width="150" text="Dotation" />
						<mx:TextArea width="200" height="18" id="DTG_dotation_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="Rubrique cible" />
						<mx:ComboBox id="DTG_to_rubrique_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Prestation cible" />
						<mx:ComboBox id="DTG_to_prestation_id_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
				
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="DTG_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					
				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="PRC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="PRC_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="complement" headerText="Complement" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="PRC_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/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; PRC_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="PRC_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="PRC_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="PRC_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="PRC_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Ventilation par jour" />
						<mx:ComboBox id="PRC_type_ventilation_jour_GUI" 
							dataProvider="{PRC_type_ventilation_jour_provider}" 
							change="toggleUpdate(true)" />
						<mx:Label width="100%" text="Ventilation des lignes facturées par jour" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type valorisation" />
						<mx:ComboBox id="PRC_type_valorisation_non_facture_GUI" 
							dataProvider="{PRC_type_valorisation_non_facture_provider}" 
							change="toggleUpdate(true)" />
						<mx:Label width="100%" text="Particularité utilisée pour valoriser les non facturés" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="PRC_oid_GUI" change="toggleUpdate(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="PRC_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="PRH_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="PRH_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="complement" headerText="Complément" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="PRH_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/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; PRH_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="PRH_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="PRH_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="PRH_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="PRH_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="PRH_oid_GUI" change="toggleUpdate(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="PRH_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="RUB_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="RUB_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="RUB_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/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; RUB_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="RUB_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="RUB_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="RUB_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="RUB_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Forcé Etablissement" />
						<mx:CheckBox id="RUB_est_force_etablissement_GUI" change="toggleUpdate(true)" />
						<mx:Label width="400" text="(Acte facturé en honoraire à remonter en partie etablissement)" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Actes inclus (public)" />
						<mx:CheckBox id="RUB_actes_inclus_public_GUI" change="toggleUpdate(true)" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="RUB_oid_GUI" change="toggleUpdate(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="RUB_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="TTP_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="TTP_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="TTP_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/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; TTP_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="TTP_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="TTP_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="TTP_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="TTP_oid_GUI" change="toggleUpdate(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="TTP_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="TPY_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="TPY_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="grand_regime" headerText="Régime" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="type_tiers_payant" headerText="Type" width="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="TPY_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/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; TPY_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; TPY_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="TPY_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="TPY_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="TPY_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="TPY_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type" />
						<mx:TextArea width="300" height="18" id="TPY_type_tiers_payant_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Grand régime" />
						<mx:ComboBox id="TPY_grand_regime_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="TPY_oid_GUI" change="toggleUpdate(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="TPY_nbref_GUI" change="toggleUpdate(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:DataGridColumn dataField="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CCR_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/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="toggleUpdate(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="toggleUpdate(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="toggleUpdate(true)" editable="false" fontWeight="bold" selectable="false"/>
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CCR_oid_GUI" change="toggleUpdate(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="regroupement_1" headerText="Regroupement" width="120"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ACT_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/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="toggleUpdate(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="toggleUpdate(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="toggleUpdate(true)" editable="false" fontWeight="bold" selectable="false"/>
						<mx:TextArea width="50" height="18" id="ACT_regroupement_4_GUI" change="toggleUpdate(true)" editable="false" fontWeight="bold" selectable="false"/>
					</mx:HBox>
					
				
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="ACT_oid_GUI" change="toggleUpdate(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="ACT_nbref_GUI" change="toggleUpdate(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="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:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="GHS_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/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="toggleUpdate(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="toggleUpdate(true)" editable="false" fontWeight="bold" selectable="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="texte_court" headerText="Texte court" width="100"  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" backgroundColor="0xFFFFFF">
					<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="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="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="SPI_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="SPI_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SPI_oid_GUI" change="toggleUpdate(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="SPI_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="MDA_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MDA_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="nom" headerText="Nom" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="prenom" headerText="Prénom" width="200"  editable="false" headerWordWrap="true"/>
						<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="complement" headerText="Complément" 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="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="MDA_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/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; MDA_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MDA_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="MDA_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Nom" />
						<mx:TextArea width="100%" height="18" id="MDA_nom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Prénom" />
						<mx:TextArea width="300" height="18" id="MDA_prenom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Médecin salarié ?" />
						<mx:CheckBox id="MDA_est_medecin_salarie_GUI" change="toggleUpdate(true)" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="KIWEE SIGEMS HONPATCPT" />
						<mx:CheckBox id="MDA_kiwee_sigems_honpatcpt_GUI" change="toggleUpdate(true)" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="KIWEE SIGEMS HONPATCPTDEP" />
						<mx:CheckBox id="MDA_kiwee_sigems_honpatcptdep_GUI" change="toggleUpdate(true)" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="MDA_oid_GUI" change="toggleUpdate(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="MDA_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
	

			<mx:VDividedBox id="MET_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="MET_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="nom" headerText="Nom" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="prenom" headerText="Prénom" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="no_adeli" headerText="N° ADELI" width="100" editable="false" />
						<mx:DataGridColumn dataField="no_rpps" headerText="N° RPPS" width="100" editable="false" />
						<mx:DataGridColumn dataField="code_postal" headerText="Code Postal" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="ville" headerText="Ville" width="200"  editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="adresse" headerText="Adresse" width="200"  editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="MET_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/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; MET_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="MET_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="MET_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Nom" />
						<mx:TextArea width="100%" height="18" id="MET_nom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Prénom" />
						<mx:TextArea width="300" height="18" id="MET_prenom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code RPPS" />
						<mx:TextArea width="300" height="18"  id="MET_no_rpps_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code postal" />
						<mx:TextArea width="300" height="18"  id="MET_code_postal_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Ville" />
						<mx:TextArea width="300" height="18"  id="MET_ville_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Adresse" />
						<mx:TextArea width="300" height="18"  id="MET_adresse_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="MET_oid_GUI" change="toggleUpdate(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="MET_nbref_GUI" change="toggleUpdate(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="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="nom" headerText="Nom" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="prenom" headerText="Prénom" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="specialite_interne_texte" headerText="Spécialité" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="numero_ordre" headerText="Numéro ordre" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Références (médecins administratifs)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="MED_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/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_nom_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%" >
					
						<mx:VBox width="100%" height="100%" >
							<mx:HBox visible="false" includeInLayout="false" height="0" >
								<mx:Label width="120" text="Code" />
								<mx:TextArea width="100" height="18" id="MED_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="120" text="Code original" />
								<mx:TextArea width="300" height="18" id="MED_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="120" text="Nom" />
								<mx:TextArea width="100%" height="18" id="MED_nom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Prénom" />
								<mx:TextArea width="300" height="18" id="MED_prenom_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Numéro ordre" />
								<mx:TextArea width="100" height="18" id="MED_numero_ordre_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="120" text="Spécialité interne" />
								<mx:ComboBox id="MED_specialite_interne_GUI" width="300" labelField="texte" change="toggleUpdate(true)"/>
							</mx:HBox>
							
							
							<mx:HBox visible="false" includeInLayout="false" height="0">
								<mx:Label width="150" text="Oid" />
								<mx:TextArea width="300" height="18" id="MED_oid_GUI" change="toggleUpdate(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="MED_nbref_GUI" change="toggleUpdate(true)" editable="false"/>
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false" height="0">
								<mx:Label width="120" text="Médecins regroupés" />
								<mx:TextArea id="MED_medecins_regroupes_oids_GUI" width="300"  editable="false"/>
							</mx:HBox>
						</mx:VBox>

					
					
						<mx:VBox width="100%" height="100%" >
							<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">
								<mx:columns>
									<mx:DataGridColumn dataField="nom_adm" headerText="Médecins administratifs associé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/list-add.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/list-remove.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_textSearch_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="nom_adm" headerText="Médecins administratifs non associés" width="100"  editable="false"/>
									<mx:DataGridColumn dataField="nom_ref" headerText="Déjà associé à" width="100"  editable="false"/>
								</mx:columns>
							</mx:DataGrid>
						</mx:VBox>

					</mx:HBox>
				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="FSJ_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="FSJ_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="Numéro" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Nom" minWidth="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="est_ignore_texte" headerText="Ignoré" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="medecin_sejour_texte" headerText="Médecin forcé" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="type_sejour_texte" headerText="Type forcé" minWidth="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="service_facturation_texte" headerText="Service forcé" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="etage_texte" headerText="Etage forcé" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="encours_texte" headerText="Forçage en-cours" minWidth="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="FSJ_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/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; FSJ_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer le forçage du séjour" 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="Numéro" />
						<mx:TextArea width="100" height="18" id="FSJ_code_GUI" change="FSJ_code_changeEvent(event)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Nom" />
						<mx:TextArea width="100%" height="18" id="FSJ_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false"/>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Séjour à ignorer" />
						<mx:CheckBox id="FSJ_est_ignore_GUI" label="" change="toggleUpdate(true)" />
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Médecin" />
						<mx:ComboBox id="FSJ_medecin_sejour_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Type séjour" />
						<mx:ComboBox id="FSJ_type_sejour_GUI" width="400" labelField="label" 
							dataProvider="{FSJ_type_sejour_provider}" 
							change="toggleUpdate(true)"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Service" />
						<mx:ComboBox id="FSJ_service_facturation_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Etage" />
						<mx:ComboBox id="FSJ_etage_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					
					
					<mx:Spacer height="50" />
					
					<mx:HBox>
						<mx:Label width="150" text="Encours" />
						<mx:Label text="A partir de" />
						<mx:ComboBox id="FSJ_encours_1_from_date_GUI" labelField="texte" change="toggleUpdate(true)"/>
						<mx:Label text="Ignorer" />
						<mx:CheckBox id="FSJ_encours_1_est_ignore_GUI" label="" change="toggleUpdate(true)" />
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="FSJ_oid_GUI" editable="false"/>
					</mx:HBox>
				

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VDividedBox id="BUD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="BUD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="20%" 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="date_debut" headerText="Date début" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="date_fin" headerText="Date fin" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="BUD_detailBox_GUI" width="100%" height="80%" 
					visible="false" includeInLayout="false" backgroundColor="0xFFFFFF">
					<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; BUD_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer le budget" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; BUD_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; BUD_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="BUD_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="BUD_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Période" />
						<mx:DateField width="150" 
							id="BUD_date_debut_GUI" 
							change="toggleUpdate(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:DateField width="150" 
							id="BUD_date_fin_GUI" 
							change="toggleUpdate(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:HBox>

					
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="BUD_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					

					<mx:HBox width="100%" height="100%">
						<mx:VBox>
							<mx:Button height="20" width="20" label="Ajouter" toolTip="Ajouter" icon="@Embed('../../base/swf/CTI/images/16/list-add.png')" labelPlacement="right" click="BUD_indicateurs_add()" />
							<mx:Button height="20" width="20" label="Enlever" visible="{BUD_indicateurs_GUI.selectedIndex >= 0}" toolTip="Enlever" icon="@Embed('../../base/swf/CTI/images/16/list-remove.png')" labelPlacement="right" click="BUD_indicateurs_remove()"   />
						</mx:VBox>
						
						<mx:DataGrid id="BUD_indicateurs_GUI" rowHeight="24" headerHeight="40"
							rowCount="{BUD_indicateurs.length + 1}" height="100%" width="700"
							wordWrap="false" dataProvider="{BUD_indicateurs}"
							fontFamily="tahoma" editable="true"
							>
							<mx:columns>
								
								<mx:DataGridColumn resizable="false" sortable="false" 
									dataField="code" headerText="code" width="100"  
									editable="true" headerWordWrap="true"
									rendererIsEditor="true" editorDataField="text"  >
									<mx:itemRenderer>
										<mx:Component >
												<mx:TextInput width="100%" text="{data.code}"
													change="{outerDocument.toggleUpdate(true)}" />
										</mx:Component>
									</mx:itemRenderer>
								</mx:DataGridColumn>
								
								<mx:DataGridColumn resizable="false" sortable="false" 
									dataField="texte" headerText="texte" width="200"  
									editable="true" headerWordWrap="true"
									rendererIsEditor="true" editorDataField="text"  >
									<mx:itemRenderer>
										<mx:Component >
												<mx:TextInput width="100%" text="{data.texte}"
													change="{outerDocument.toggleUpdate(true)}" />
										</mx:Component>
									</mx:itemRenderer>
								</mx:DataGridColumn>
									
								<mx:DataGridColumn resizable="false" sortable="false" 
									editorDataField="selectedLabel" dataField="indicateur_id" 
									headerText="Donnée CTI" width="400"  
									editable="true" headerWordWrap="true" rendererIsEditor="true"
									>
									<mx:itemRenderer>
										<mx:Component >
												<mx:ComboBox selectedItem="{data.indicateur_id}"
													dataProvider="{outerDocument.BUD_indicateur_id_dataProvider}"
													change="{outerDocument.BUD_indicateurs_indicateur_id_changeEvent(ComboBox(event.target))}" />
										</mx:Component>
									</mx:itemRenderer>
								</mx:DataGridColumn>
							
								
							</mx:columns>
						</mx:DataGrid>

					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="BUC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="BUC_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="texte_court" headerText="Texte court" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="BUC_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/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; BUC_code_GUI.text != ''}" />
							<mx:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; BUC_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; BUC_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="BUC_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="BUC_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="300" height="18" id="BUC_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="BUC_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="BUC_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="BUR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="BUR_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="priorite" headerText="Priorité" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="budget_cle_texte" headerText="Clé budgétaire" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rule_resume" headerText="Règles" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="BUR_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/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:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; BUR_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; BUR_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="50%" height="18" id="BUR_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
						<mx:Label width="80" text="Code règle" />
						<mx:TextArea width="100" height="18" id="BUR_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Clé budgétaire" />
						<mx:ComboBox id="BUR_budget_cle_id_GUI" width="400" labelField="texte" change="toggleUpdate(true)"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Priorité" />
						<mx:TextArea width="100" height="18" id="BUR_priorite_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Listes de codes" />
						<mx:CheckBox id="BUR_Qliste_specialite_GUI" label="Spécialité" 
								enabled="{BUR_liste_specialite_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_medecin_GUI" label="Médecin" 
								enabled="{BUR_liste_medecin_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_service_GUI" label="Service" 
								enabled="{BUR_liste_service_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_acte_GUI" label="Acte" 
								enabled="{BUR_liste_acte_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_rubrique_GUI" label="Rubrique" 
								enabled="{BUR_liste_rubrique_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_ghm_GUI" label="GHM inclus" 
								enabled="{BUR_liste_ghm_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_sauf_ghm_GUI" label="GHM exclus" 
								enabled="{BUR_liste_sauf_ghm_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_diagnostic_principal_GUI" label="DP" 
								enabled="{BUR_liste_diagnostic_principal_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_diagnostic_relie_GUI" label="DR" 
								enabled="{BUR_liste_diagnostic_relie_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_diagnostic_associe_GUI" label="DA" 
								enabled="{BUR_liste_diagnostic_associe_GUI.text == ''}" />
						<mx:CheckBox id="BUR_Qliste_finess_GUI" label="Etablissement" 
								enabled="{BUR_liste_finess_GUI.text == ''}" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_specialite_GUI.selected}" 
						includeInLayout="{BUR_Qliste_specialite_GUI.selected}">
						<mx:Label width="150" text="Spécialités médecin" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_specialite_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_medecin_GUI.selected}" 
						includeInLayout="{BUR_Qliste_medecin_GUI.selected}">
						<mx:Label width="150" text="Médecins" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_medecin_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_service_GUI.selected}" 
						includeInLayout="{BUR_Qliste_service_GUI.selected}">
						<mx:Label width="150" text="Services" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_service_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_acte_GUI.selected}" 
						includeInLayout="{BUR_Qliste_acte_GUI.selected}">
						<mx:Label width="150" text="Actes" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_acte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_rubrique_GUI.selected}" 
						includeInLayout="{BUR_Qliste_rubrique_GUI.selected}">
						<mx:Label width="150" text="Rubriques" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_rubrique_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_ghm_GUI.selected}" 
						includeInLayout="{BUR_Qliste_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
			
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_sauf_ghm_GUI.selected}" 
						includeInLayout="{BUR_Qliste_sauf_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM exclus" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_sauf_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_diagnostic_principal_GUI.selected}" 
						includeInLayout="{BUR_Qliste_diagnostic_principal_GUI.selected}">
						<mx:Label width="150" text="Diagnostics principaux" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_diagnostic_principal_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_diagnostic_relie_GUI.selected}" 
						includeInLayout="{BUR_Qliste_diagnostic_relie_GUI.selected}">
						<mx:Label width="150" text="Diagnostics reliés" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_diagnostic_relie_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_diagnostic_associe_GUI.selected}" 
						includeInLayout="{BUR_Qliste_diagnostic_associe_GUI.selected}">
						<mx:Label width="150" text="Diagnostics associés" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_diagnostic_associe_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{BUR_Qliste_finess_GUI.selected}" 
						includeInLayout="{BUR_Qliste_finess_GUI.selected}">
						<mx:Label width="150" text="Etablissements" />
						<mx:TextArea width="100%" height="100%" id="BUR_liste_finess_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="BUR_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="BUR_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
			
			
			
			
			
			
			<mx:VDividedBox id="BUI_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="BUI_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="20%" 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="date_debut" headerText="Date début" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="date_fin" headerText="Date fin" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="BUI_detailBox_GUI" width="100%" height="80%" 
					visible="false" includeInLayout="false" backgroundColor="0xFFFFFF">
					<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; BUI_code_GUI.text != ''}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="BUI_code_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="BUI_texte_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="BUI_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					
					<mx:TabNavigator width="100%" height="100%" id="BUI_indicateurs_TAB_GUI">
						<mx:Repeater id="BUI_indicateurs_GUI" dataProvider="{BUI_indicateurs}">
							<mx:VBox width="100%" height="100%" 
								label="{BUI_indicateurs_GUI.currentItem.@budget_indicateur_texte}" backgroundColor="0xFFFFFF">
								<mx:HBox width="100%">
									<mx:Button height="20" label="Import depuis Excel" toolTip="Importer le budget depuis Excel" 
										icon="@Embed('../../base/swf/CTI/images/16/go-down.png')" labelPlacement="right" 
										click="BUI_budget_import(event.target.getRepeaterItem().CLE)" />
									<mx:Button height="20" label="Effacer" toolTip="Effacer le budget" 
										icon="@Embed('../../base/swf/CTI/images/16/edit-clear.png')" 
										labelPlacement="right" 
										click="BUI_budget_erase(event.target.getRepeaterItem().CLE)" />
								</mx:HBox>
								<mx:DataGrid rowHeight="24" headerHeight="40"
									rowCount="{BUI_indicateurs_GUI.currentItem.CLE.length + 1}" height="100%" width="100%"
									wordWrap="false" dataProvider="{BUI_indicateurs_GUI.currentItem.CLE}"
									fontFamily="tahoma" editable="true"
									>
									<mx:columns>
										<mx:DataGridColumn dataField="@budget_cle_texte" headerText="Indicateur" width="200"  
											editable="false" headerWordWrap="true" resizable="true"/>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_01" headerText="01" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_01}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_02" headerText="02" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_02}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_03" headerText="03" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_03}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_04" headerText="04" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_04}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_05" headerText="05" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_05}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_06" headerText="06" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_06}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_07" headerText="07" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_07}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_08" headerText="08" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_08}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_09" headerText="09" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_09}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_10" headerText="10" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_10}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_11" headerText="11" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_11}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn resizable="true" sortable="false" 
											dataField="@budget_12" headerText="12" width="60"  
											editable="true" headerWordWrap="true"
											rendererIsEditor="true" editorDataField="text"  >
											<mx:itemRenderer>
												<mx:Component >
														<mx:TextInput width="100%" text="{data.@budget_12}"
															restrict="\0-9\.\,\-" maxChars="10" fontWeight="bold"
															change="{outerDocument.toggleUpdate(true)}" />
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										

									</mx:columns>
								</mx:DataGrid>
							
							</mx:VBox>
						</mx:Repeater>
					</mx:TabNavigator>

				</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="is_active_texte" headerText="Etat" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="complement" headerText="Complément" width="70" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="prestataire_texte" headerText="Prestataire" width="65" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="gravite_texte" headerText="Gravité" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="etat_cible_texte" headerText="Dossiers ciblés" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="last_execution_timestamp" headerText="Date dernière exécution" width="85" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="last_execution_ok" headerText="Etat dernière exécution" width="75" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références" width="60" 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 name="Barre de boutons du contrôle">
							<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 Expert !" 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'}" enabled="{!recordUpdated &amp;&amp; currendRecordItem == null}"  />
									<!--<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="toggleUpdate(true)" fontWeight="bold" />
							<mx:Spacer width="100" />
							<mx:CheckBox id="EXC_is_cti_GUI" label="CTI ?" labelPlacement="left" change="toggleUpdate(true)" />
						</mx:HBox>

						<mx:TabNavigator width="100%" height="100%">
							<mx:VBox label="Définition" width="100%" height="100%">
								<mx:Form width="100%">
									<mx:FormItem label="Contrôle activé" width="100%">
										<mx:CheckBox id="EXC_is_active_GUI" change="toggleUpdate(true)" />
									</mx:FormItem>
									<mx:FormItem label="Texte" width="100%">
										<mx:TextArea width="500" height="36" id="EXC_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Texte affiché" width="100%">
										<mx:TextArea width="500" height="20" id="EXC_texte_court_GUI" change="toggleUpdate(true)" fontWeight="bold" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Texte abrégé" width="100%">
										<mx:TextArea width="250" height="20" id="EXC_texte_abrege_GUI" change="toggleUpdate(true)" fontWeight="bold" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Dossiers ciblés" width="100%">
										<mx:ComboBox id="EXC_etat_cible_GUI" width="150" dataProvider="{EXC_cible_provider}" change="toggleUpdate(true)" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Prestataire" width="100%" direction="horizontal">
										<mx:ComboBox id="EXC_prestataire_GUI" width="150" dataProvider="{_prestataire_collection}" change="toggleUpdate(true)" rowCount="7" enabled="{EXC_is_active_GUI.selected}" />
										<mx:Label width="100%" text="Contrôle spécifique à un prestataire particulier" fontStyle="italic" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Gravité" width="100%">
										<mx:ComboBox id="EXC_gravite_GUI" width="150" dataProvider="{EXC_gravite_provider}" change="toggleUpdate(true)" enabled="{EXC_is_active_GUI.selected}" />
									</mx:FormItem>
									<mx:FormItem label="Alerte" width="100%">
										<mx:CheckBox id="EXC_is_alert_GUI" change="toggleUpdate(true)" enabled="{EXC_is_active_GUI.selected}"/>
									</mx:FormItem>
									<mx:FormItem label="Masquer contrôle" width="100%" visible="false" includeInLayout="false">
										<mx:CheckBox id="EXC_is_hide_GUI" change="toggleUpdate(true)" />
									</mx:FormItem>
									<mx:FormItem label="Oid" visible="false" includeInLayout="false" width="100%">
										<mx:TextArea width="300" height="18" id="EXC_oid_GUI" change="toggleUpdate(true)" editable="false" />
									</mx:FormItem>
								</mx:Form>
							</mx:VBox>
							<mx:VBox label="Règle 1" width="100%" height="100%" enabled="{EXC_is_active_GUI.selected}">
								<mx:Form width="100%" height="100%">
									<mx:FormItem label="Données" width="100%">
										<mx:ComboBox id="EXC_table1_GUI" dataProvider="{EXC_table_provider}" change="toggleUpdate(true)" />
										<mx:Label width="100%" text="Attention ! Les champs sejour_id, no_sejour et date_sortie doivent quand même apparaître dans le SELECT" fontStyle="italic" visible="{EXC_table1_GUI.selectedItem.data == '99'}" includeInLayout="{EXC_table1_GUI.selectedItem.data == '99'}" />
									</mx:FormItem>
									<mx:FormItem label="Sélection" width="100%" height="100%">
										<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where1_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Justificatif" width="100%">
										<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif1_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Oid" width="100%" visible="false" includeInLayout="false">
										<mx:TextArea id="EXC_rule_oid1_GUI" />
									</mx:FormItem>
								</mx:Form>
							</mx:VBox>
							<mx:VBox label="Règle 2" width="100%" height="100%" enabled="{EXC_is_active_GUI.selected}">
								<mx:Form width="100%" height="100%">
									<mx:FormItem label="Données" width="100%">
										<mx:ComboBox id="EXC_table2_GUI" dataProvider="{EXC_table_provider}" change="toggleUpdate(true)" />
										<mx:Label width="100%" text="Attention ! Les champs sejour_id, no_sejour et date_sortie doivent quand même apparaître dans le SELECT" fontStyle="italic" visible="{EXC_table2_GUI.selectedItem.data == '99'}" includeInLayout="{EXC_table2_GUI.selectedItem.data == '99'}" />
									</mx:FormItem>
									<mx:FormItem label="Sélection" width="100%" height="100%">
										<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where2_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Justificatif" width="100%">
										<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif2_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Oid" width="100%" visible="false" includeInLayout="false">
										<mx:TextArea id="EXC_rule_oid2_GUI" />
									</mx:FormItem>
								</mx:Form>
							</mx:VBox>
							<mx:VBox label="Règle 3" width="100%" height="100%" enabled="{EXC_is_active_GUI.selected}">
								<mx:Form width="100%" height="100%">
									<mx:FormItem label="Données" width="100%">
										<mx:ComboBox id="EXC_table3_GUI" dataProvider="{EXC_table_provider}" change="toggleUpdate(true)" />
										<mx:Label width="100%" text="Attention ! Les champs sejour_id, no_sejour et date_sortie doivent quand même apparaître dans le SELECT" fontStyle="italic" visible="{EXC_table3_GUI.selectedItem.data == '99'}" includeInLayout="{EXC_table3_GUI.selectedItem.data == '99'}" />
									</mx:FormItem>
									<mx:FormItem label="Sélection" width="100%" height="100%">
										<mx:TextArea width="100%" height="100%" id="EXC_sqlcmd_where3_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Justificatif" width="100%">
										<mx:TextArea width="100%" height="36" id="EXC_sqlcmd_justificatif3_GUI" change="toggleUpdate(true)" fontWeight="bold" />
									</mx:FormItem>
									<mx:FormItem label="Oid" width="100%" visible="false" includeInLayout="false">
										<mx:TextArea id="EXC_rule_oid3_GUI" />
									</mx:FormItem>
								</mx:Form>
							</mx:VBox>
							<mx:VBox label="Description" width="100%" height="100%" enabled="{EXC_is_active_GUI.selected}">
									<mx:RichTextEditor width="100%" height="100%" id="EXC_description_GUI" change="toggleUpdate(true)"  />
							</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:Form width="100%" height="100%">
							<mx:FormItem label="Activer Expert" width="100%">
								<mx:CheckBox id="EXC_EXPERT_ACTIVE_GUI" width="100" change="toggleUpdate(true)" />
							</mx:FormItem>
							<mx:FormItem label="Date démarrage" width="100%" height="100%" direction="horizontal" enabled="{EXC_EXPERT_ACTIVE_GUI.selected}">
								<mx:DateField width="100" 
								id="EXC_EXPERT_DATE_DEBUT_GUI" 
								change="toggleUpdate(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="A partir de cette date, tous les séjours seront contrôlés (sortis ou non)" />
							</mx:FormItem>
						</mx:Form>
					</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="WFU_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="WFU_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="texte" headerText="Texte" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="mvt_uf_soin_lib" headerText="UF Soins forcée" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="mvt_uf_soin_lib_hs" headerText="UF Soins forcée héritée (Spécialité séjour)" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="mvt_uf_soin_lib_hc" headerText="UF Soins forcée héritée (Type séjour)" width="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="WFU_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/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 width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="WFU_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
					<mx:Spacer height="20"/>
					<mx:HBox>
						<mx:Label width="150" text="UF Soins" />
						<mx:ComboBox id="WFU_mvt_uf_soin_GUI" width="300" labelField="texte" change="recordUpdated = true"/>
					</mx:HBox>
	
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="WFU_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="WFU_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

             </mx:VDividedBox>
            
            
            <mx:VDividedBox id="FAC_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="FAC_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="FAC_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/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="150" text="Code" />
						<mx:TextArea width="100" height="18" id="FAC_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="FAC_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
                    <mx:HBox width="100%">
						<mx:Label width="150" text="Texte court" />
						<mx:TextArea width="100%" height="18" id="FAC_texte_court_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
					</mx:HBox>
					<mx:Spacer height="20"/>
					
	
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="FAC_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					

				</mx:VBox>

             </mx:VDividedBox>
             
             <mx:VDividedBox id="FAR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="FAR_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="priorite" headerText="Priorité" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="texte" headerText="Texte" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="forme_activite_texte" headerText="Forme activité" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rule_resume" headerText="Règles" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="FAR_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/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:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; FAR_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; FAR_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="50%" height="18" id="FAR_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
						<mx:Label width="80" text="Code règle" />
						<mx:TextArea width="100" height="18" id="FAR_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}" />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Forme activité" />
						<mx:ComboBox id="FAR_filiere_soin_id_GUI" width="400" labelField="texte" change="toggleUpdate(true)" 
                            enabled="{FAR_updatable}"
                            disabledColor="0x0B333C" />
                        <mx:Label text="(Non modifiable)" visible="{! FAR_updatable}" includeInLayout="{! FAR_updatable}" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Priorité" />
						<mx:TextArea width="100" height="18" id="FAR_priorite_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Listes de codes" />
                        <mx:CheckBox id="FAR_Qliste_type_sejour_GUI" label="Type de séjour" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_type_sejour_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_specialite_GUI" label="Spécialité" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_specialite_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_medecin_GUI" label="Médecin" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_medecin_GUI.text == ''}" />
                        <mx:CheckBox id="FAR_Qliste_unite_fonctionnelle_GUI" label="UF (S)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_unite_fonctionnelle_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_service_GUI" label="Service (S)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_service_GUI.text == ''}" />
                        <mx:CheckBox id="FAR_Qliste_etage_GUI" label="Etage (S)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_etage_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_unite_fonctionnelle_entree_GUI" label="UF (E)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_unite_fonctionnelle_entree_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_service_entree_GUI" label="Service (E)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_service_entree_GUI.text == ''}" />
                        <mx:CheckBox id="FAR_Qliste_etage_entree_GUI" label="Etage (E)" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_etage_entree_GUI.text == ''}" />
                        <mx:CheckBox id="FAR_Qliste_prestation_GUI" label="Prestation" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_prestation_GUI.text == ''}" />
                        <mx:CheckBox id="FAR_Qliste_rubrique_GUI" label="Rubrique" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_rubrique_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_acte_GUI" label="Acte" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_acte_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_ghm_GUI" label="GHM inclus" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_ghm_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_sauf_ghm_GUI" label="GHM exclus" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_sauf_ghm_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_diagnostic_principal_GUI" label="DP" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_diagnostic_principal_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_diagnostic_relie_GUI" label="DR" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_diagnostic_relie_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_diagnostic_associe_GUI" label="DA" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_diagnostic_associe_GUI.text == ''}" />
						<mx:CheckBox id="FAR_Qliste_finess_GUI" label="Etablissement" 
								enabled="{FAR_updatable &amp;&amp; FAR_liste_finess_GUI.text == ''}" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_type_sejour_GUI.selected}" 
						includeInLayout="{FAR_Qliste_type_sejour_GUI.selected}">
						<mx:Label width="150" text="Types de séjour" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_type_sejour_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_specialite_GUI.selected}" 
						includeInLayout="{FAR_Qliste_specialite_GUI.selected}">
						<mx:Label width="150" text="Spécialités médecin" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_specialite_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_medecin_GUI.selected}" 
						includeInLayout="{FAR_Qliste_medecin_GUI.selected}">
						<mx:Label width="150" text="Médecins" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_medecin_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_unite_fonctionnelle_GUI.selected}" 
						includeInLayout="{FAR_Qliste_unite_fonctionnelle_GUI.selected}">
						<mx:Label width="150" text="UF sortie" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_unite_fonctionnelle_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_service_GUI.selected}" 
						includeInLayout="{FAR_Qliste_service_GUI.selected}">
						<mx:Label width="150" text="Services sortie" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_service_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_etage_GUI.selected}" 
						includeInLayout="{FAR_Qliste_etage_GUI.selected}">
						<mx:Label width="150" text="Etages sortie" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_etage_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_unite_fonctionnelle_entree_GUI.selected}" 
						includeInLayout="{FAR_Qliste_unite_fonctionnelle_entree_GUI.selected}">
						<mx:Label width="150" text="UF entrée" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_unite_fonctionnelle_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_service_entree_GUI.selected}" 
						includeInLayout="{FAR_Qliste_service_entree_GUI.selected}">
						<mx:Label width="150" text="Services entrée" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_service_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_etage_entree_GUI.selected}" 
						includeInLayout="{FAR_Qliste_etage_entree_GUI.selected}">
						<mx:Label width="150" text="Etages entrée" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_etage_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_acte_GUI.selected}" 
						includeInLayout="{FAR_Qliste_acte_GUI.selected}">
						<mx:Label width="150" text="Actes" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_acte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_prestation_GUI.selected}" 
						includeInLayout="{FAR_Qliste_prestation_GUI.selected}">
						<mx:Label width="150" text="Prestations" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_prestation_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_rubrique_GUI.selected}" 
						includeInLayout="{FAR_Qliste_rubrique_GUI.selected}">
						<mx:Label width="150" text="Rubriques" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_rubrique_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_ghm_GUI.selected}" 
						includeInLayout="{FAR_Qliste_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
			
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_sauf_ghm_GUI.selected}" 
						includeInLayout="{FAR_Qliste_sauf_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM exclus" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_sauf_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_diagnostic_principal_GUI.selected}" 
						includeInLayout="{FAR_Qliste_diagnostic_principal_GUI.selected}">
						<mx:Label width="150" text="Diagnostics principaux" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_diagnostic_principal_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_diagnostic_relie_GUI.selected}" 
						includeInLayout="{FAR_Qliste_diagnostic_relie_GUI.selected}">
						<mx:Label width="150" text="Diagnostics reliés" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_diagnostic_relie_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_diagnostic_associe_GUI.selected}" 
						includeInLayout="{FAR_Qliste_diagnostic_associe_GUI.selected}">
						<mx:Label width="150" text="Diagnostics associés" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_diagnostic_associe_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FAR_Qliste_finess_GUI.selected}" 
						includeInLayout="{FAR_Qliste_finess_GUI.selected}">
						<mx:Label width="150" text="Etablissements" />
						<mx:TextArea width="100%" height="100%" id="FAR_liste_finess_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FAR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="FAR_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="FAR_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="FSO_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="FSO_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="FSO_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/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="150" text="Code" />
						<mx:TextArea width="100" height="18" id="FSO_code_GUI" change="toggleUpdate(true)" fontWeight="bold"  />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="FSO_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>

					<mx:Spacer height="20"/>
					
	
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="FSO_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					

				</mx:VBox>

             </mx:VDividedBox>
             
             <mx:VDividedBox id="FSR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="FSR_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="priorite" headerText="Priorité" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="filiere_soin_texte" headerText="Filière de soin" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rule_resume" headerText="Règles" minWidth="200"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="FSR_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/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:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; FSR_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; FSR_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="50%" height="18" id="FSR_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
						<mx:Label width="80" text="Code règle" />
						<mx:TextArea width="100" height="18" id="FSR_code_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}" />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Filière de soin" />
						<mx:ComboBox id="FSR_filiere_soin_id_GUI" width="400" labelField="texte" change="toggleUpdate(true)" 
                            enabled="{FSR_updatable}"
                            disabledColor="0x0B333C" />
                        <mx:Label text="(Non modifiable)" visible="{! FSR_updatable}" includeInLayout="{! FSR_updatable}" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Priorité" />
						<mx:TextArea width="100" height="18" id="FSR_priorite_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Listes de codes" />
                        <mx:CheckBox id="FSR_Qliste_type_sejour_GUI" label="Type de séjour" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_type_sejour_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_specialite_GUI" label="Spécialité" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_specialite_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_medecin_GUI" label="Médecin" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_medecin_GUI.text == ''}" />
                        <mx:CheckBox id="FSR_Qliste_unite_fonctionnelle_GUI" label="UF (S)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_unite_fonctionnelle_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_service_GUI" label="Service (S)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_service_GUI.text == ''}" />
                        <mx:CheckBox id="FSR_Qliste_etage_GUI" label="Etage (S)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_etage_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_unite_fonctionnelle_entree_GUI" label="UF (E)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_unite_fonctionnelle_entree_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_service_entree_GUI" label="Service (E)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_service_entree_GUI.text == ''}" />
                        <mx:CheckBox id="FSR_Qliste_etage_entree_GUI" label="Etage (E)" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_etage_entree_GUI.text == ''}" />
                        <mx:CheckBox id="FSR_Qliste_prestation_GUI" label="Prestation" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_prestation_GUI.text == ''}" />
                        <mx:CheckBox id="FSR_Qliste_rubrique_GUI" label="Rubrique" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_rubrique_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_acte_GUI" label="Acte" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_acte_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_ghm_GUI" label="GHM inclus" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_ghm_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_sauf_ghm_GUI" label="GHM exclus" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_sauf_ghm_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_diagnostic_principal_GUI" label="DP" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_diagnostic_principal_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_diagnostic_relie_GUI" label="DR" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_diagnostic_relie_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_diagnostic_associe_GUI" label="DA" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_diagnostic_associe_GUI.text == ''}" />
						<mx:CheckBox id="FSR_Qliste_finess_GUI" label="Etablissement" 
								enabled="{FSR_updatable &amp;&amp; FSR_liste_finess_GUI.text == ''}" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_type_sejour_GUI.selected}" 
						includeInLayout="{FSR_Qliste_type_sejour_GUI.selected}">
						<mx:Label width="150" text="Types de séjour" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_type_sejour_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_specialite_GUI.selected}" 
						includeInLayout="{FSR_Qliste_specialite_GUI.selected}">
						<mx:Label width="150" text="Spécialités médecin" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_specialite_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_medecin_GUI.selected}" 
						includeInLayout="{FSR_Qliste_medecin_GUI.selected}">
						<mx:Label width="150" text="Médecins" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_medecin_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_unite_fonctionnelle_GUI.selected}" 
						includeInLayout="{FSR_Qliste_unite_fonctionnelle_GUI.selected}">
						<mx:Label width="150" text="UF sortie" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_unite_fonctionnelle_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_service_GUI.selected}" 
						includeInLayout="{FSR_Qliste_service_GUI.selected}">
						<mx:Label width="150" text="Services sortie" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_service_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_etage_GUI.selected}" 
						includeInLayout="{FSR_Qliste_etage_GUI.selected}">
						<mx:Label width="150" text="Etages sortie" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_etage_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_unite_fonctionnelle_entree_GUI.selected}" 
						includeInLayout="{FSR_Qliste_unite_fonctionnelle_entree_GUI.selected}">
						<mx:Label width="150" text="UF entrée" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_unite_fonctionnelle_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_service_entree_GUI.selected}" 
						includeInLayout="{FSR_Qliste_service_entree_GUI.selected}">
						<mx:Label width="150" text="Services entrée" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_service_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_etage_entree_GUI.selected}" 
						includeInLayout="{FSR_Qliste_etage_entree_GUI.selected}">
						<mx:Label width="150" text="Etages entrée" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_etage_entree_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_acte_GUI.selected}" 
						includeInLayout="{FSR_Qliste_acte_GUI.selected}">
						<mx:Label width="150" text="Actes" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_acte_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_prestation_GUI.selected}" 
						includeInLayout="{FSR_Qliste_prestation_GUI.selected}">
						<mx:Label width="150" text="Prestations" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_prestation_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_rubrique_GUI.selected}" 
						includeInLayout="{FSR_Qliste_rubrique_GUI.selected}">
						<mx:Label width="150" text="Rubriques" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_rubrique_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_ghm_GUI.selected}" 
						includeInLayout="{FSR_Qliste_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
			
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_sauf_ghm_GUI.selected}" 
						includeInLayout="{FSR_Qliste_sauf_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM exclus" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_sauf_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_diagnostic_principal_GUI.selected}" 
						includeInLayout="{FSR_Qliste_diagnostic_principal_GUI.selected}">
						<mx:Label width="150" text="Diagnostics principaux" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_diagnostic_principal_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_diagnostic_relie_GUI.selected}" 
						includeInLayout="{FSR_Qliste_diagnostic_relie_GUI.selected}">
						<mx:Label width="150" text="Diagnostics reliés" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_diagnostic_relie_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_diagnostic_associe_GUI.selected}" 
						includeInLayout="{FSR_Qliste_diagnostic_associe_GUI.selected}">
						<mx:Label width="150" text="Diagnostics associés" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_diagnostic_associe_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{FSR_Qliste_finess_GUI.selected}" 
						includeInLayout="{FSR_Qliste_finess_GUI.selected}">
						<mx:Label width="150" text="Etablissements" />
						<mx:TextArea width="100%" height="100%" id="FSR_liste_finess_GUI" change="toggleUpdate(true)" fontWeight="bold" editable="{FSR_updatable}"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="FSR_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="FSR_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
            
            <mx:VDividedBox id="POR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="POR_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="priorite" headerText="Priorité" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="texte" headerText="Texte" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="pole_texte" headerText="Pole" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rule_resume" headerText="Règles" minWidth="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="POR_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/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:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; POR_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; POR_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="50%" height="18" id="POR_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" />
						<mx:Label width="80" text="Code règle" />
						<mx:TextArea width="100" height="18" id="POR_code_GUI" change="toggleUpdate(true)" fontWeight="bold"  />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Pole" />
						<mx:ComboBox id="POR_pole_id_GUI" width="400" labelField="texte" change="toggleUpdate(true)" 
                            disabledColor="0x0B333C" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Priorité" />
						<mx:TextArea width="100" height="18" id="POR_priorite_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Listes de codes" />
                        <mx:CheckBox id="POR_Qliste_type_sejour_GUI" label="Type de séjour" 
								enabled="{POR_liste_type_sejour_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_specialite_GUI" label="Spécialité" 
								enabled="{POR_liste_specialite_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_medecin_GUI" label="Médecin" 
								enabled="{POR_liste_medecin_GUI.text == ''}" />
                        <mx:CheckBox id="POR_Qliste_unite_fonctionnelle_GUI" label="UF" 
								enabled="{POR_liste_unite_fonctionnelle_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_service_GUI" label="Service" 
								enabled="{POR_liste_service_GUI.text == ''}" />
                        <mx:CheckBox id="POR_Qliste_etage_GUI" label="Etage" 
								enabled="{POR_liste_etage_GUI.text == ''}" />
                        <mx:CheckBox id="POR_Qliste_prestation_GUI" label="Prestation" 
								enabled="{POR_liste_prestation_GUI.text == ''}" />
                        <mx:CheckBox id="POR_Qliste_rubrique_GUI" label="Rubrique" 
								enabled="{POR_liste_rubrique_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_acte_GUI" label="Acte" 
								enabled="{POR_liste_acte_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_ghm_GUI" label="GHM inclus" 
								enabled="{POR_liste_ghm_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_sauf_ghm_GUI" label="GHM exclus" 
								enabled="{POR_liste_sauf_ghm_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_diagnostic_principal_GUI" label="DP" 
								enabled="{POR_liste_diagnostic_principal_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_diagnostic_relie_GUI" label="DR" 
								enabled="{POR_liste_diagnostic_relie_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_diagnostic_associe_GUI" label="DA" 
								enabled="{POR_liste_diagnostic_associe_GUI.text == ''}" />
						<mx:CheckBox id="POR_Qliste_finess_GUI" label="Etablissement" 
								enabled="{POR_liste_finess_GUI.text == ''}" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_type_sejour_GUI.selected}" 
						includeInLayout="{POR_Qliste_type_sejour_GUI.selected}">
						<mx:Label width="150" text="Types de séjour" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_type_sejour_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_specialite_GUI.selected}" 
						includeInLayout="{POR_Qliste_specialite_GUI.selected}">
						<mx:Label width="150" text="Spécialités médecin" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_specialite_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_medecin_GUI.selected}" 
						includeInLayout="{POR_Qliste_medecin_GUI.selected}">
						<mx:Label width="150" text="Médecins" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_medecin_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_unite_fonctionnelle_GUI.selected}" 
						includeInLayout="{POR_Qliste_unite_fonctionnelle_GUI.selected}">
						<mx:Label width="150" text="UF" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_unite_fonctionnelle_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_service_GUI.selected}" 
						includeInLayout="{POR_Qliste_service_GUI.selected}">
						<mx:Label width="150" text="Services" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_service_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_etage_GUI.selected}" 
						includeInLayout="{POR_Qliste_etage_GUI.selected}">
						<mx:Label width="150" text="Etages" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_etage_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_acte_GUI.selected}" 
						includeInLayout="{POR_Qliste_acte_GUI.selected}">
						<mx:Label width="150" text="Actes" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_acte_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_prestation_GUI.selected}" 
						includeInLayout="{POR_Qliste_prestation_GUI.selected}">
						<mx:Label width="150" text="Prestations" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_prestation_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_rubrique_GUI.selected}" 
						includeInLayout="{POR_Qliste_rubrique_GUI.selected}">
						<mx:Label width="150" text="Rubriques" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_rubrique_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_ghm_GUI.selected}" 
						includeInLayout="{POR_Qliste_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
			
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_sauf_ghm_GUI.selected}" 
						includeInLayout="{POR_Qliste_sauf_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM exclus" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_sauf_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_diagnostic_principal_GUI.selected}" 
						includeInLayout="{POR_Qliste_diagnostic_principal_GUI.selected}">
						<mx:Label width="150" text="Diagnostics principaux" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_diagnostic_principal_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_diagnostic_relie_GUI.selected}" 
						includeInLayout="{POR_Qliste_diagnostic_relie_GUI.selected}">
						<mx:Label width="150" text="Diagnostics reliés" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_diagnostic_relie_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_diagnostic_associe_GUI.selected}" 
						includeInLayout="{POR_Qliste_diagnostic_associe_GUI.selected}">
						<mx:Label width="150" text="Diagnostics associés" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_diagnostic_associe_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{POR_Qliste_finess_GUI.selected}" 
						includeInLayout="{POR_Qliste_finess_GUI.selected}">
						<mx:Label width="150" text="Etablissements" />
						<mx:TextArea width="100%" height="100%" id="POR_liste_finess_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="POR_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="POR_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
			
			
			
			<mx:VDividedBox id="CAR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CAR_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="priorite" headerText="Priorité" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="texte" headerText="Texte" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="compte_produit_analytique_texte" headerText="Compte" minWidth="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="rule_resume" headerText="Règles" minWidth="300"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CAR_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/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:HBox>
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer la clé" icon="@Embed('../../base/swf/CTI/images/24/user-trash.png')" labelPlacement="right" click="askDelete()" enabled="{recordUpdated == false &amp;&amp; CAR_oid_GUI.text != '-1'}" visible="{recordUpdated == false &amp;&amp; CAR_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="50%" height="18" id="CAR_texte_GUI" change="toggleUpdate(true)" fontWeight="bold" />
						<mx:Label width="80" text="Code règle" />
						<mx:TextArea width="100" height="18" id="CAR_code_GUI" change="toggleUpdate(true)" fontWeight="bold"  />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="150" text="Compte" />
						<mx:ComboBox id="CAR_compte_produit_analytique_id_GUI" width="400" labelField="texte" change="toggleUpdate(true)" 
                            disabledColor="0x0B333C" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Priorité" />
						<mx:TextArea width="100" height="18" id="CAR_priorite_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Listes de codes" />
                        <mx:CheckBox id="CAR_Qliste_type_sejour_GUI" label="Type de séjour" 
								enabled="{CAR_liste_type_sejour_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_specialite_GUI" label="Spécialité" 
								enabled="{CAR_liste_specialite_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_medecin_GUI" label="Médecin" 
								enabled="{CAR_liste_medecin_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_ghm_GUI" label="GHM inclus" 
								enabled="{CAR_liste_ghm_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_sauf_ghm_GUI" label="GHM exclus" 
								enabled="{CAR_liste_sauf_ghm_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_diagnostic_principal_GUI" label="DP" 
								enabled="{CAR_liste_diagnostic_principal_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_diagnostic_relie_GUI" label="DR" 
								enabled="{CAR_liste_diagnostic_relie_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_diagnostic_associe_GUI" label="DA" 
								enabled="{CAR_liste_diagnostic_associe_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_acte_GUI" label="Acte" 
								enabled="{CAR_liste_acte_GUI.text == ''}" />
                        <mx:CheckBox id="CAR_Qliste_unite_fonctionnelle_GUI" label="UF" 
								enabled="{CAR_liste_unite_fonctionnelle_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_service_GUI" label="Service" 
								enabled="{CAR_liste_service_GUI.text == ''}" />
                        <mx:CheckBox id="CAR_Qliste_etage_GUI" label="Etage" 
								enabled="{CAR_liste_etage_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_compte_produit_GUI" label="Prestation" 
								enabled="{CAR_liste_compte_produit_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_sauf_compte_produit_GUI" label="Sauf Prestation" 
								enabled="{CAR_liste_sauf_compte_produit_GUI.text == ''}" />
                        <mx:CheckBox id="CAR_Qliste_prestation_GUI" label="Prestation" 
								enabled="{CAR_liste_prestation_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_sauf_prestation_GUI" label="Sauf Prestation" 
								enabled="{CAR_liste_sauf_prestation_GUI.text == ''}" />
                        <mx:CheckBox id="CAR_Qliste_rubrique_GUI" label="Rubrique" 
								enabled="{CAR_liste_rubrique_GUI.text == ''}" />
						<mx:CheckBox id="CAR_Qliste_finess_GUI" label="Etablissement" 
								enabled="{CAR_liste_finess_GUI.text == ''}" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_type_sejour_GUI.selected}" 
						includeInLayout="{CAR_Qliste_type_sejour_GUI.selected}">
						<mx:Label width="150" text="Types de séjour" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_type_sejour_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_specialite_GUI.selected}" 
						includeInLayout="{CAR_Qliste_specialite_GUI.selected}">
						<mx:Label width="150" text="Spécialités médecin" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_specialite_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_medecin_GUI.selected}" 
						includeInLayout="{CAR_Qliste_medecin_GUI.selected}">
						<mx:Label width="150" text="Médecins" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_medecin_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_ghm_GUI.selected}" 
						includeInLayout="{CAR_Qliste_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
			
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_sauf_ghm_GUI.selected}" 
						includeInLayout="{CAR_Qliste_sauf_ghm_GUI.selected}">
						<mx:Label width="150" text="GHM exclus" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_sauf_ghm_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_diagnostic_principal_GUI.selected}" 
						includeInLayout="{CAR_Qliste_diagnostic_principal_GUI.selected}">
						<mx:Label width="150" text="Diagnostics principaux" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_diagnostic_principal_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_diagnostic_relie_GUI.selected}" 
						includeInLayout="{CAR_Qliste_diagnostic_relie_GUI.selected}">
						<mx:Label width="150" text="Diagnostics reliés" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_diagnostic_relie_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_diagnostic_associe_GUI.selected}" 
						includeInLayout="{CAR_Qliste_diagnostic_associe_GUI.selected}">
						<mx:Label width="150" text="Diagnostics associés" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_diagnostic_associe_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_acte_GUI.selected}" 
						includeInLayout="{CAR_Qliste_acte_GUI.selected}">
						<mx:Label width="150" text="Actes" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_acte_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_unite_fonctionnelle_GUI.selected}" 
						includeInLayout="{CAR_Qliste_unite_fonctionnelle_GUI.selected}">
						<mx:Label width="150" text="UF" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_unite_fonctionnelle_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
				
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_service_GUI.selected}" 
						includeInLayout="{CAR_Qliste_service_GUI.selected}">
						<mx:Label width="150" text="Services" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_service_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_etage_GUI.selected}" 
						includeInLayout="{CAR_Qliste_etage_GUI.selected}">
						<mx:Label width="150" text="Etages" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_etage_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_compte_produit_GUI.selected}" 
						includeInLayout="{CAR_Qliste_compte_produit_GUI.selected}">
						<mx:Label width="150" text="Comptes" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_compte_produit_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_sauf_compte_produit_GUI.selected}" 
						includeInLayout="{CAR_Qliste_sauf_compte_produit_GUI.selected}">
						<mx:Label width="150" text="Sauf Comptes" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_sauf_compte_produit_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
                    
                    <mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_prestation_GUI.selected}" 
						includeInLayout="{CAR_Qliste_prestation_GUI.selected}">
						<mx:Label width="150" text="Prestations" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_prestation_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_sauf_prestation_GUI.selected}" 
						includeInLayout="{CAR_Qliste_sauf_prestation_GUI.selected}">
						<mx:Label width="150" text="Sauf Prestations" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_sauf_prestation_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_rubrique_GUI.selected}" 
						includeInLayout="{CAR_Qliste_rubrique_GUI.selected}">
						<mx:Label width="150" text="Rubriques" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_rubrique_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{CAR_Qliste_finess_GUI.selected}" 
						includeInLayout="{CAR_Qliste_finess_GUI.selected}">
						<mx:Label width="150" text="Etablissements" />
						<mx:TextArea width="100%" height="100%" id="CAR_liste_finess_GUI" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="CAR_code_original_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CAR_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>
             
                          
             
            <mx:VDividedBox id="ENC_mainBox" width="100%" height="100%" visible="false">

                <mx:VBox id="ENC_subBox" width="100%" height="100%" >
                
                    <mx:HBox width="100%"> 
                        <mx:Label width="105" text="Derniers en-cours" visible="false" includeInLayout="false"/>
                        <mx:TextArea id="ENC_ENCOURSNOW_GUI" height="18" width="70" fontWeight="bold" wordWrap="false" selectable="false" editable="false" visible="false" includeInLayout="false" />
                        <mx:Label width="110" text="Prochains en-cours"/>
                        <mx:TextArea id="ENC_ENCOURSNEXT_GUI" height="18" width="70" fontWeight="bold" wordWrap="false" selectable="false" editable="false" />
                    </mx:HBox>

                    <mx:TabNavigator id="ENC_type_parametre_GUI" height="100%" width="100%" 
                        tabWidth="200"
                        change="setupGUI('ENC')" >
                        <mx:Canvas label="Paramètres généraux"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list1_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list1_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="code" headerText="Code" minWidth="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="texte" headerText="Texte" minWidth="200" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="valeur" headerText="Valeur" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="description" headerText="Description" minWidth="200" editable="false" headerWordWrap="true" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                        <mx:Canvas label="Paramètres prestations"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list2_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list2_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="prestation" headerText="Prestation" width="300" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="description" headerText="Type valorisation" minWidth="200" editable="false" headerWordWrap="true" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                        <mx:Canvas label="Moyenne et PU calculés"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list3_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list3_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="service" headerText="Service" minWidth="200" editable="false" headerWordWrap="true"/>
                                    <mx:DataGridColumn dataField="prestation" headerText="Prestation" minWidth="200" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="rubrique" headerText="Rubrique" minWidth="200" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="coefficient_calcule" headerText="Coefficient calculé" width="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="coefficient_force" headerText="Coefficient forcé" width="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prix_unitaire_calcule" headerText="Prix Unitaire calculé" width="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prix_unitaire_force" headerText="Prix Unitaire forcé" width="100" editable="false" headerWordWrap="true"  />  
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                        <mx:Canvas label="Valorisation GHS (non groupés)"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list4_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list4_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="sejour" headerText="Séjour" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="nom" headerText="Nom" minWidth="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="facture" headerText="Facture" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="service" headerText="Service" minWidth="200" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prestation" headerText="Prestation" minWidth="200" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="rubrique" headerText="Rubrique" minWidth="200" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prix_unitaire_calcule" headerText="Tarif calculé" width="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="prix_unitaire_force" headerText="Tarif forcé" width="100" editable="false" headerWordWrap="true" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                        <mx:Canvas label="Valorisation Prestations"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list5_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list5_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="sejour" headerText="Séjour" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="nom" headerText="Nom" minWidth="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="facture" headerText="Facture" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="service" headerText="Service" minWidth="200" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prestation" headerText="Prestation" minWidth="200" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="rubrique" headerText="Rubrique" minWidth="200" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="ignorer" headerText="Ignorer" width="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="coefficient_calcule" headerText="Coefficient calculé" width="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="coefficient_force" headerText="Coefficient forcé" width="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prix_unitaire_calcule" headerText="Tarif calculé" width="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="prix_unitaire_force" headerText="Tarif forcé" width="100" editable="false" headerWordWrap="true" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                        <mx:Canvas label="Factures ignorées"  height="100%" width="100%">
                            <mx:DataGrid id="ENC_list8_GUI" rowHeight="20" headerHeight="40"
                                height="100%" width="100%"  
                                wordWrap="false" dataProvider="{list8_collection}" 
                                fontFamily="tahoma"
                                itemClick="getRecord()" 
                                selectable="{!recordUpdated}">
                                <mx:columns>
                                    <mx:DataGridColumn dataField="sejour" headerText="Séjour" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="nom" headerText="Nom" minWidth="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="facture" headerText="Facture" minWidth="100" editable="false" headerWordWrap="true"  />
                                    <mx:DataGridColumn dataField="prix_unitaire_calcule" headerText="Montant calculé" width="100" editable="false" headerWordWrap="true" />
                                    <mx:DataGridColumn dataField="ignorer" headerText="Ignorer" width="100" editable="false" headerWordWrap="true" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:Canvas>
                    </mx:TabNavigator>
                
                </mx:VBox>  

				<mx:VBox id="ENC_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/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:Form width="100%" labelWidth="120">
                    
                        <mx:FormItem label="Séjour/Facture" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GHSNG' || ENC_type_ligne_GUI.text == 'FACTURE' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GHSNG' || ENC_type_ligne_GUI.text == 'FACTURE' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU'}">
							<mx:TextArea width="100" height="18" id="ENC_sejour_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                            <mx:TextArea width="100" height="18" id="ENC_facture_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                            <mx:TextArea width="100%" height="18" id="ENC_nom_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
						</mx:FormItem>

                        <mx:FormItem label="Service" width="100%"
                            visible="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'GENPRESTA' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}"
                            includeInLayout="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'GENPRESTA' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}">
                            <mx:TextArea width="100%" height="18" id="ENC_service_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                        </mx:FormItem>
                        <mx:FormItem label="Prestation" width="100%"
                            visible="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}"
                            includeInLayout="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}">
                            <mx:TextArea width="100%" height="18" id="ENC_prestation_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                        </mx:FormItem>
                        <mx:FormItem label="Rubrique" width="100%"
                            visible="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'GENPRESTA' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}"
                            includeInLayout="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'GENPRESTA' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}">
                            <mx:TextArea width="100%" height="18" id="ENC_rubrique_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                        </mx:FormItem>
                        <mx:Spacer height="10" 
                            visible="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}"
                            includeInLayout="{ENC_type_ligne_GUI.text != 'GEN' &amp;&amp; ENC_type_ligne_GUI.text != 'FACTURE'}"/>
                        
                        <mx:FormItem label="Coefficient" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}">
                        </mx:FormItem>
                        <mx:FormItem label="   Calculé" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}">
                            <mx:TextArea width="100" height="18" id="ENC_coefficient_calcule_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                        </mx:FormItem>
                         <mx:FormItem label="   Forcé" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PC'}">
                            <mx:CheckBox id="ENC_coefficient_is_force_GUI" change="recordUpdated = true"/>
                            <mx:TextArea width="100" height="18" id="ENC_coefficient_force_GUI" change="recordUpdated = true" fontWeight="bold"
                                visible="{ENC_coefficient_is_force_GUI.selected}"
                                includeInLayout="{ENC_coefficient_is_force_GUI.selected}"
                                />
                        </mx:FormItem>
                        
                        <mx:FormItem label="Prix unitaire" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}">
                        </mx:FormItem>
                        <mx:FormItem label="   Calculé" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}">
                            <mx:TextArea width="100" height="18" id="ENC_prix_unitaire_calcule_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                        </mx:FormItem>
                        <mx:FormItem label="   Forcé" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'PRESTA-PC' || ENC_type_ligne_GUI.text == 'PRESTA-PU' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU' || ENC_type_ligne_GUI.text == 'GHSNG'}">
                            <mx:CheckBox id="ENC_prix_unitaire_is_force_GUI" change="recordUpdated = true"/>
                            <mx:TextArea width="100" height="18" id="ENC_prix_unitaire_force_GUI" change="recordUpdated = true" fontWeight="bold"
                                visible="{ENC_prix_unitaire_is_force_GUI.selected}"
                                includeInLayout="{ENC_prix_unitaire_is_force_GUI.selected}"
                                />
                        </mx:FormItem>

						<mx:FormItem label="Code" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GEN'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GEN'}">
							<mx:TextArea id="ENC_code_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
						<mx:FormItem label="Texte" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GEN'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GEN'}">
							<mx:TextArea id="ENC_texte_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
						<mx:FormItem label="Valeur" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GEN'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GEN'}">
							<mx:TextArea id="ENC_valeur_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" change="toggleUpdate(true)" />
						</mx:FormItem>
						<mx:FormItem label="Description" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GEN'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GEN'}">
							<mx:TextArea id="ENC_description_GUI" height="18" width="100%" fontWeight="bold" wordWrap="false" selectable="false" editable="false" borderStyle="none" />
						</mx:FormItem>
                        
                        <mx:FormItem label="Type valorisation" width="100%"
                            visible="{ENC_type_ligne_GUI.text == 'GENPRESTA'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'GENPRESTA'}">
                            <mx:ComboBox id="ENC_type_valorisation_GUI" 
                                dataProvider="{ENC_type_valorisation_provider}" 
                                change="toggleUpdate(true)" />
                        </mx:FormItem>
                        
                        <mx:FormItem label="Ignorer valorisation" width="100%" 
                            visible="{ENC_type_ligne_GUI.text == 'FACTURE' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU'}"
                            includeInLayout="{ENC_type_ligne_GUI.text == 'FACTURE' || ENC_type_ligne_GUI.text == 'PRESEJ-PC' || ENC_type_ligne_GUI.text == 'PRESEJ-PU'}">
                            <mx:CheckBox id="ENC_ignorer_GUI" change="recordUpdated = true"/>
                        </mx:FormItem>
                        
                        <mx:FormItem visible="false" label="Oid" includeInLayout="false" height="0">
                            <mx:TextArea width="300" height="18" id="ENC_oid_GUI" change="recordUpdated = true" editable="false"/>
                        </mx:FormItem>
                        <mx:FormItem visible="false" label="type_ligne" includeInLayout="false" height="0">
                            <mx:TextArea width="300" height="18" id="ENC_type_ligne_GUI" change="recordUpdated = true" editable="false"/>
                        </mx:FormItem>

					</mx:Form>
					
				</mx:VBox>

             </mx:VDividedBox>

			<mx:VDividedBox id="COV_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="COV_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="finess" headerText="FINESS" width="100"  editable="false" headerWordWrap="true"/>
						<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="valeur_2019_ars" headerText="Valeur ARS" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="valeur_2019" headerText="Valeur 2019 CTI" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="valeur_2019_saisie" headerText="Valeur forcée" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="COV_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/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; COV_code_GUI.text != ''}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer sans recalcul" toolTip="Enregistrer les modifications sans recalculer les dépendances (les dépendances seront recalculées à la prochaine synchrionisation)" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord(false)" visible="{recordUpdated == true &amp;&amp; COV_code_GUI.text != ''}" />
						</mx:Canvas>
					</mx:HBox>
										
					<mx:HBox>
						<mx:Label width="150" text="FINESS" />
						<mx:TextArea width="100" height="18" id="COV_finess_GUI" editable="false" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="COV_code_GUI" editable="false" change="toggleUpdate(true)" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="100%" height="18" id="COV_texte_GUI" editable="false" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="150" text="Valeur 2019 ARS" />
						<mx:TextArea width="200" height="18" id="COV_valeur_2019_ars_GUI" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Valeur 2019 CTI" />
						<mx:TextArea width="200" height="18" id="COV_valeur_2019_GUI" editable="false" change="toggleUpdate(true)" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox width="100%">
						<mx:Label width="150" text="Valeur 2019 forcée" />
						<mx:TextArea width="200" height="18" id="COV_valeur_2019_saisie_GUI" enabled="{COV_code_GUI.text == 'MCOK1' || COV_code_GUI.text == 'SSRF' || COV_code_GUI.text == 'PSYF' || COV_code_GUI.text == 'HADK2'}" change="toggleUpdate(true)" fontWeight="bold"/>
						<mx:Label width="100%" text="Pour Dégel prudentiel" />
					</mx:HBox>
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="COV_oid_GUI" change="toggleUpdate(true)" editable="false"/>
					</mx:HBox>
				</mx:VBox>

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