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

	<mx:Script>
		<![CDATA[
		
			import CTI.events.CTI_Event;
			import CTI.print.CTI_Print;
			import CTI.technique.controls.CTI_ChooseParamBox;
			import CTI.technique.CTI_ArrayCollection;
			import CTI.technique.CTI_Progress;
			import CTI.technique.CTI_Utilitaires;
			import flash.display.DisplayObject;
			import flash.display.DisplayObjectContainer;
			import flash.events.Event;
			import flash.events.MouseEvent;
			import mx.collections.ArrayCollection;
			import mx.collections.XMLListCollection;
			import mx.containers.VBox;
			import mx.controls.Alert;
			import mx.controls.DataGrid;
			import mx.controls.DateField;
			import mx.controls.Label;
			import mx.controls.RichTextEditor;
			import mx.controls.CheckBox;
			import mx.controls.TextArea;
			import mx.controls.TextInput;
			import mx.core.IFlexDisplayObject;
			import mx.events.CloseEvent;
			import mx.events.ListEvent;
			import mx.events.ValidationResultEvent;
			import mx.formatters.DateFormatter;
			import mx.managers.PopUpManager;
			import CTI.technique.CTI_Formatters;
			
			
			public var buildComplete:Boolean = false;
			
			[Embed(source="../../base/swf/CTI/images/24/print.png")]
			public var button_print24:Class;
			
			[Embed(source="../../base/swf/CTI/images/32/help-browser.png")]
			public static var question_class:Class;
			
			private var currentDisplayObject:DisplayObject;
			
			private var getOption:String;
			private var getParam:String = "";
			
			[Bindable]
			public var title:String = "Fiche n°5";
			public var titlePrint:String = "Fiche n°5";
			
			[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 list_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			[Bindable]
			private var footer_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
			;
			
			private var fulllist_collection:CTI_ArrayCollection = new CTI_ArrayCollection();
				
			
			[Bindable]
			private var RSS_scenario_collection:ArrayCollection = new ArrayCollection();
			
			
			[Bindable]
			private var recordUpdated:Boolean = false;
			
			[Bindable]
			private var currentRecordItem:Object = null;
			
			[Bindable]
            public var RSS_status_provider: Array = [
                {label:"", data:""} ,
				{label:"Préparé", data:"P9"},
				{label:"Accepté", data:"C9"},
				{label:"Contesté", data:"C8"} ];
			
			[Bindable]
            public var RSS_scenar1_rule_provider: Array = [
                {label:"Pas de changement", data:""} ,
				{label:"Modification GHS", data:"GHS"},
				{label:"Facturation SE1", data:"SE1"},
				{label:"Facturation SE2", data:"SE2"},
				{label:"Facturation SE3", data:"SE3"},
				{label:"Facturation SE4", data:"SE4"},
				{label:"Facturation SE5", data:"SE5"},
				{label:"Facturation SE6", data:"SE6"},
				{label:"Facturation FFM", data:"FFM"},
				{label:"Facturation APE", data:"APE"},
				{label:"Facturation AP2", data:"AP2"},
				{label:"Externe", data:"EXT"} ];
			
			[Bindable]
			public var RSS_scenar2_rule_provider: Array = [
                {label:"CF Précontrôle optimiste", data:"CFSC1"} ,
				{label:"Modification GHS", data:"GHS"},
				{label:"Facturation SE1", data:"SE1"},
				{label:"Facturation SE2", data:"SE2"},
				{label:"Facturation SE3", data:"SE3"},
				{label:"Facturation SE4", data:"SE4"},
				{label:"Facturation SE5", data:"SE5"},
				{label:"Facturation SE6", data:"SE6"},
				{label:"Facturation FFM", data:"FFM"},
				{label:"Facturation APE", data:"APE"},
				{label:"Facturation AP2", data:"AP2"},
				{label:"Externe", data:"EXT"} ];
			
			[Bindable]
			public var RSS_control_rule_provider: Array = [
				{label:"Accepté par AM", data:"OKAM"} ,
				{label:"Rejeté : Modification GHS", data:"GHS"},
				{label:"Rejeté : Facturation SE1", data:"SE1"},
				{label:"Rejeté : Facturation SE2", data:"SE2"},
				{label:"Rejeté : Facturation SE3", data:"SE3"},
				{label:"Rejeté : Facturation SE4", data:"SE4"},
				{label:"Rejeté : Facturation SE5", data:"SE5"},
				{label:"Rejeté : Facturation SE6", data:"SE6"},
				{label:"Rejeté : Facturation FFM", data:"FFM"},
				{label:"Rejeté : Facturation APE", data:"APE"},
				{label:"Rejeté : Facturation AP2", data:"AP2"},
				{label:"Rejeté : Externe", data:"EXT"} ];
			
			[Bindable]
			public var RSS_retenu_rule_provider: Array = [
				{label:"Accepté par AM", data:"OKAM"} ,
                {label:"CF Précontrôle optimiste", data:"CFSC1"} ,
				{label:"CF Précontrôle pessimiste", data:"CFSC2"} ,
				{label:"CF Contrôle AM", data:"CFCTL"} ,
				{label:"Modification GHS", data:"GHS"},
				{label:"Facturation SE1", data:"SE1"},
				{label:"Facturation SE2", data:"SE2"},
				{label:"Facturation SE3", data:"SE3"},
				{label:"Facturation SE4", data:"SE4"},
				{label:"Facturation SE5", data:"SE5"},
				{label:"Facturation SE6", data:"SE6"},
				{label:"Facturation FFM", data:"FFM"},
				{label:"Facturation APE", data:"APE"},
				{label:"Facturation AP2", data:"AP2"},
				{label:"Externe", data:"EXT"} ];
			
							
			private var searchText:String;
			private var searchtext_delay:uint;
			
			private var progressBar:CTI_Progress;
			
			
			/**
			 * Initialise l'interface graphique en fonction de la table passée en paramètre
			 * 
			 * @param	tableCode	Nom de la table à rendre
			 */
			public function setupGUI(tableCode:String):void {
				
				var mainBox:DisplayObject = mainBox.getChildByName(tableCode + "_mainBox");
				list_GUI = findChild(mainBox as DisplayObjectContainer, tableCode + "_list_GUI") as DataGrid;
				detailBox_GUI = findChild(mainBox as DisplayObjectContainer, tableCode + "_detailBox_GUI") as VBox;
				texte_GUI = findChild(detailBox_GUI as DisplayObjectContainer, tableCode + "_texte_GUI") as TextArea;
				mainBox.visible = true;
			}
			
			/**
			 * Fonction qui cherche un displayObject par son nom dans toute l'arboresence d'un
			 * container. Cette fonction supplante la fonction getChildByName dans le sens où elle
			 * ne se cantonne pas au premier niveau de l'arboresence mais inspecte tous les niveaux
			 * 
			 * @param	container	Container dans lequel chercher l'enfant
			 * @param	childname	Nom de l'enfant à chercher
			 * @return	L'élement trouvé dans l'arborescence
			 */
			private function findChild(container:DisplayObjectContainer, childname:String ):DisplayObject {
				if (container == null) {
					container = this;
				}
				
				for (var j:int = 0; j < container.numChildren; ++j) { 
					
					var obj:DisplayObject = container.getChildAt(j) as DisplayObject;
					if (obj.name == childname) {
						return obj;
					}
					if (obj is DisplayObjectContainer) {
						var doc:DisplayObjectContainer = obj as DisplayObjectContainer;
						if (doc.numChildren > 0) {
							var ret:DisplayObject = findChild( doc, childname );
							if (ret != null) {
								return ret;
							}
						}
					} 
				}
				return null;
			}
			
			
			public function creationComplete():void {
				
				currentDisplayObject = this;
				
				if (application.currentHelpFile != "" || (application.currentHelpDokuWIkiDir != "" && application.currentHelpDokuWIkiFile != "")) {
					hasHelp = true;
				}
				
				if (application.name == "CTI") {
				}
				if (application.name == "CTI_1") {
					GUI_titleBar.height = 0;
				}
				
				viewName = application.currentViewName;
				tableCode = application.currentSwfData;
				getParam = application.currentOption;
				
				switch (tableCode) {
					case "ENQ" :
						tableName = "t_fiche5_enquete";
						title = "Gestion Fiche n°5 - Enquete";
						titlePrint = "Fiche n°5 - Enquete";
						break;
					case "RSS" :
						tableName = "p_fiche5_rss";
						title = "Gestion Fiche n°5 - RSS";
						titlePrint = "Fiche n°5 - RSS";
						
						RSS_onResizeColumns()
						
						break;
				}
				
				
				if (tableCode == "RSS") {
					var item:Object = new Object()
					item.texte = "Facturé"
					RSS_scenario_collection.addItem(item)
					item = new Object()
					item.texte = "Initial"
					RSS_scenario_collection.addItem(item)
					item = new Object()
					item.texte = "Précontrôle optimiste"
					RSS_scenario_collection.addItem(item)
					item = new Object()
					item.texte = "Précontrôle pessimiste"
					RSS_scenario_collection.addItem(item)
					item = new Object()
					item.texte = "Contrôle AM"
					RSS_scenario_collection.addItem(item)
					item = new Object()
					item.texte = "Concertation finale"
					RSS_scenario_collection.addItem(item)
					
					
				}
			
				// Initialise les éléments de l'interface si aucune boîte de dialogue de choix de liste n'a été ouverte
				if (tableName != "") {
					setupGUI(tableCode);
				}
				
				getOption = "initialize";
				
				getData();
			}
			
			
			public function eventDispatcher(eventCode:String):Boolean {
				return true;
			}
			
			private function refreshData():void {
				getData();
			}
			
			public function getData():void {
				
				
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.getOption = getOption;
				urlVariables.getParam = getParam;
				
				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/PMSI_fiche5Manager_getTableRecords.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
				
					list_GUI.visible=false
					
					if (list_collection != null) {
						list_collection.filterFunction = null;
					}
					list_collection.refresh()
					
					if (tableCode == "ENQ") {
						if (getOption == "initialize") {
							ENQ_annee_GUI.dataProvider = new CTI_ArrayCollection();
							ENQ_annee_GUI.dataProvider.loadXMLList(resultatService.COMBO_ANNEE.RECORD);
						}
					}
					
					if (tableCode == "RSS") {
						if (getOption == "initialize") {
							RSS_enquete_id_GUI.dataProvider = new CTI_ArrayCollection();
							RSS_enquete_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_ENQ.RECORD);
							RSS_enquete_id_GUI.selectedIndex = 0
						}
					}
					
					
					list_collection.loadXMLList(resultatService.RECORD);
					
					// Champs calcules
					if (tableCode == "RSS") {
						list_collection_set_display()
						fulllist_collection_set()
						fulllist_collection_setTotal()
					}
					
										
					searchChange();
					
					list_GUI.visible=true
					
					getOption = "refresh";
					setTimeout(setBuildComplete, 1000);
				}
				
			}
			
			private function setBuildComplete():void {
				buildComplete = true;
			}
				
			private function resize():void {
				if (tableCode == "RSS") {
					setTimeout(RSS_onResizeColumns, 500);
				}
			}
			
			private function fulllist_collection_set():void {
				fulllist_collection.removeAll()
				
				for each (var item:Object in list_collection) {
					fulllist_collection.addItem(item)
				}
			}
			private function fulllist_collection_setTotal():void {
				var tot_no_ogc:Number = 0
				var tot_facture_montant_total:Number = 0
				var tot_initial_montant_total_ecart:Number = 0
				var tot_scenar1_montant_total_ecart:Number = 0
				var tot_scenar2_montant_total_ecart:Number = 0
				var tot_control_montant_total_ecart:Number = 0
				var tot_retenu_montant_total_ecart:Number = 0
				
				var tot1_no_ogc:Number = 0
				var tot1_facture_montant_total:Number = 0
				var tot1_initial_montant_total_ecart:Number = 0
				var tot1_scenar1_montant_total_ecart:Number = 0
				var tot1_scenar2_montant_total_ecart:Number = 0
				var tot1_control_montant_total_ecart:Number = 0
				var tot1_retenu_montant_total_ecart:Number = 0
				
				var tot2_no_ogc:Number = 0
				var tot2_facture_montant_total:Number = 0
				var tot2_initial_montant_total_ecart:Number = 0
				var tot2_scenar1_montant_total_ecart:Number = 0
				var tot2_scenar2_montant_total_ecart:Number = 0
				var tot2_control_montant_total_ecart:Number = 0
				var tot2_retenu_montant_total_ecart:Number = 0
				
				var tot3_no_ogc:Number = 0
				var tot3_facture_montant_total:Number = 0
				var tot3_initial_montant_total_ecart:Number = 0
				var tot3_scenar1_montant_total_ecart:Number = 0
				var tot3_scenar2_montant_total_ecart:Number = 0
				var tot3_control_montant_total_ecart:Number = 0
				var tot3_retenu_montant_total_ecart:Number = 0
				
				var tot4_no_ogc:Number = 0
				var tot4_facture_montant_total:Number = 0
				var tot4_initial_montant_total_ecart:Number = 0
				var tot4_scenar1_montant_total_ecart:Number = 0
				var tot4_scenar2_montant_total_ecart:Number = 0
				var tot4_control_montant_total_ecart:Number = 0
				var tot4_retenu_montant_total_ecart:Number = 0
				
				for each (var item:Object in fulllist_collection) {
					tot_no_ogc++
					tot_facture_montant_total = tot_facture_montant_total+item.facture_montant_total
					tot_initial_montant_total_ecart = tot_initial_montant_total_ecart+item.initial_montant_total_ecart
					tot_scenar1_montant_total_ecart = tot_scenar1_montant_total_ecart+item.scenar1_montant_total_ecart
					tot_scenar2_montant_total_ecart = tot_scenar2_montant_total_ecart+item.scenar2_montant_total_ecart
					tot_control_montant_total_ecart = tot_control_montant_total_ecart+item.control_montant_total_ecart
					tot_retenu_montant_total_ecart = tot_retenu_montant_total_ecart+item.retenu_montant_total_ecart

					if (item.champ_code == "1") {
						tot1_no_ogc++
						tot1_facture_montant_total 			= tot1_facture_montant_total+item.facture_montant_total
						tot1_initial_montant_total_ecart 	= tot1_initial_montant_total_ecart+item.initial_montant_total_ecart
						tot1_scenar1_montant_total_ecart 	= tot1_scenar1_montant_total_ecart+item.scenar1_montant_total_ecart
						tot1_scenar2_montant_total_ecart 	= tot1_scenar2_montant_total_ecart+item.scenar2_montant_total_ecart
						tot1_control_montant_total_ecart 	= tot1_control_montant_total_ecart+item.control_montant_total_ecart
						tot1_retenu_montant_total_ecart 	= tot1_retenu_montant_total_ecart+item.retenu_montant_total_ecart
					}
					if (item.champ_code == "2") {
						tot2_no_ogc++
						tot2_facture_montant_total 			= tot2_facture_montant_total+item.facture_montant_total
						tot2_initial_montant_total_ecart 	= tot2_initial_montant_total_ecart+item.initial_montant_total_ecart
						tot2_scenar1_montant_total_ecart 	= tot2_scenar1_montant_total_ecart+item.scenar1_montant_total_ecart
						tot2_scenar2_montant_total_ecart 	= tot2_scenar2_montant_total_ecart+item.scenar2_montant_total_ecart
						tot2_control_montant_total_ecart 	= tot2_control_montant_total_ecart+item.control_montant_total_ecart
						tot2_retenu_montant_total_ecart 	= tot2_retenu_montant_total_ecart+item.retenu_montant_total_ecart
					}
					if (item.champ_code == "3") {
						tot3_no_ogc++
						tot3_facture_montant_total 			= tot3_facture_montant_total+item.facture_montant_total
						tot3_initial_montant_total_ecart 	= tot3_initial_montant_total_ecart+item.initial_montant_total_ecart
						tot3_scenar1_montant_total_ecart 	= tot3_scenar1_montant_total_ecart+item.scenar1_montant_total_ecart
						tot3_scenar2_montant_total_ecart 	= tot3_scenar2_montant_total_ecart+item.scenar2_montant_total_ecart
						tot3_control_montant_total_ecart 	= tot3_control_montant_total_ecart+item.control_montant_total_ecart
						tot3_retenu_montant_total_ecart 	= tot3_retenu_montant_total_ecart+item.retenu_montant_total_ecart
					}
					if (item.champ_code == "4") {
						tot4_no_ogc++
						tot4_facture_montant_total 			= tot4_facture_montant_total+item.facture_montant_total
						tot4_initial_montant_total_ecart 	= tot4_initial_montant_total_ecart+item.initial_montant_total_ecart
						tot4_scenar1_montant_total_ecart 	= tot4_scenar1_montant_total_ecart+item.scenar1_montant_total_ecart
						tot4_scenar2_montant_total_ecart 	= tot4_scenar2_montant_total_ecart+item.scenar2_montant_total_ecart
						tot4_control_montant_total_ecart 	= tot4_control_montant_total_ecart+item.control_montant_total_ecart
						tot4_retenu_montant_total_ecart 	= tot4_retenu_montant_total_ecart+item.retenu_montant_total_ecart
					}
				}
				
				
				if (footer_collection.length == 0) {
					var tot_item:Object = new Object()
					footer_collection.addItem(tot_item)
				}
				else {
					tot_item = footer_collection.getItemAt(0)
				}
				tot_item.duree_sejour = ""
				tot_item.champ_code = ""
				tot_item.no_ogc = "TOTAL"
				tot_item.no_sejour_administratif = 		tot_no_ogc.toString() + " séjours"
				tot_item.facture_montant_total = 		tot_facture_montant_total
				tot_item.initial_montant_total_ecart = 	tot_initial_montant_total_ecart
				tot_item.scenar1_montant_total_ecart = 	tot_scenar1_montant_total_ecart
				tot_item.scenar2_montant_total_ecart = 	tot_scenar2_montant_total_ecart
				tot_item.control_montant_total_ecart = 	tot_control_montant_total_ecart
				tot_item.retenu_montant_total_ecart  = 	tot_retenu_montant_total_ecart
				
				if (tot1_no_ogc > 0) {
					if (footer_collection.length < 2) {
						tot_item = new Object()
						footer_collection.addItem(tot_item)
					}
					else {
						tot_item = footer_collection.getItemAt(1)
					}
					tot_item.duree_sejour = ""
					tot_item.champ_code = "1"
					tot_item.no_ogc = " dont"
					tot_item.no_sejour_administratif = 		tot1_no_ogc.toString() + " séjours"
					tot_item.facture_montant_total = 		tot1_facture_montant_total
					tot_item.initial_montant_total_ecart = 	tot1_initial_montant_total_ecart
					tot_item.scenar1_montant_total_ecart = 	tot1_scenar1_montant_total_ecart
					tot_item.scenar2_montant_total_ecart = 	tot1_scenar2_montant_total_ecart
					tot_item.control_montant_total_ecart = 	tot1_control_montant_total_ecart
					tot_item.retenu_montant_total_ecart  = 	tot1_retenu_montant_total_ecart
				}
				
				if (tot2_no_ogc > 0) {
					if (footer_collection.length < 3) {
						tot_item = new Object()
						footer_collection.addItem(tot_item)
					}
					else {
						tot_item = footer_collection.getItemAt(2)
					}
					tot_item.duree_sejour = ""
					tot_item.champ_code = "2"
					tot_item.no_ogc = " dont"
					tot_item.no_sejour_administratif = 		tot2_no_ogc.toString() + " séjours"
					tot_item.facture_montant_total = 		tot2_facture_montant_total
					tot_item.initial_montant_total_ecart = 	tot2_initial_montant_total_ecart
					tot_item.scenar1_montant_total_ecart = 	tot2_scenar1_montant_total_ecart
					tot_item.scenar2_montant_total_ecart = 	tot2_scenar2_montant_total_ecart
					tot_item.control_montant_total_ecart = 	tot2_control_montant_total_ecart
					tot_item.retenu_montant_total_ecart  = 	tot2_retenu_montant_total_ecart
				}
				
				if (tot3_no_ogc > 0) {
					if (footer_collection.length < 4) {
						tot_item = new Object()
						footer_collection.addItem(tot_item)
					}
					else {
						tot_item = footer_collection.getItemAt(3)
					}
					tot_item.duree_sejour = ""
					tot_item.champ_code = "3"
					tot_item.no_ogc = " dont"
					tot_item.no_sejour_administratif = 		tot3_no_ogc.toString() + " séjours"
					tot_item.facture_montant_total = 		tot3_facture_montant_total
					tot_item.initial_montant_total_ecart = 	tot3_initial_montant_total_ecart
					tot_item.scenar1_montant_total_ecart = 	tot3_scenar1_montant_total_ecart
					tot_item.scenar2_montant_total_ecart = 	tot3_scenar2_montant_total_ecart
					tot_item.control_montant_total_ecart = 	tot3_control_montant_total_ecart
					tot_item.retenu_montant_total_ecart  = 	tot3_retenu_montant_total_ecart
				}
				
				if (tot4_no_ogc > 0) {
					if (footer_collection.length < 5) {
						tot_item = new Object()
						footer_collection.addItem(tot_item)
					}
					else {
						tot_item = footer_collection.getItemAt(4)
					}
					tot_item.duree_sejour = ""
					tot_item.champ_code = "2"
					tot_item.no_ogc = " dont"
					tot_item.no_sejour_administratif = 		tot4_no_ogc.toString() + " séjours"
					tot_item.facture_montant_total = 		tot4_facture_montant_total
					tot_item.initial_montant_total_ecart = 	tot4_initial_montant_total_ecart
					tot_item.scenar1_montant_total_ecart = 	tot4_scenar1_montant_total_ecart
					tot_item.scenar2_montant_total_ecart = 	tot4_scenar2_montant_total_ecart
					tot_item.control_montant_total_ecart = 	tot4_control_montant_total_ecart
					tot_item.retenu_montant_total_ecart  = 	tot4_retenu_montant_total_ecart
				}

				
			}
			
			private function list_collection_set_display():void {

				for each (var item:Object in list_collection) {
					item.facture_montant_total = Number(item.facture_ghs_montant_total) + Number(item.facture_exb_montant_total) + Number(item.facture_exh_montant_total)
					
					item.initial_montant_total = Number(item.initial_ghs_montant_total) + Number(item.initial_exb_montant_total) + Number(item.initial_exh_montant_total)
					item.initial_montant_total_ecart = item.initial_montant_total - item.facture_montant_total
					item.initial_ghm_fontweight = 'normal'
					if (item.initial_ghm_code != item.facture_ghm_code) {
						item.initial_ghm_fontweight = 'bold'
					}
					
					item.scenar1_montant_total = Number(item.scenar1_ghs_montant_total) + Number(item.scenar1_exb_montant_total) + Number(item.scenar1_exh_montant_total)
					item.scenar1_montant_total_ecart = item.scenar1_montant_total - item.facture_montant_total
					item.scenar1_ghm_fontweight = 'normal'
					if (item.scenar1_ghm_code != item.facture_ghm_code) {
						item.scenar1_ghm_fontweight = 'bold'
					}
					
					item.scenar2_montant_total = Number(item.scenar2_ghs_montant_total) + Number(item.scenar2_exb_montant_total) + Number(item.scenar2_exh_montant_total)
					item.scenar2_montant_total_ecart = item.scenar2_montant_total - item.facture_montant_total
					item.scenar2_ghm_fontweight = 'normal'
					if (item.scenar2_ghm_code != item.facture_ghm_code) {
						item.scenar2_ghm_fontweight = 'bold'
					}
					
					item.control_montant_total = Number(item.control_ghs_montant_total) + Number(item.control_exb_montant_total) + Number(item.control_exh_montant_total)
					item.control_montant_total_ecart = item.control_montant_total - item.facture_montant_total
					item.control_ghm_fontweight = 'normal'
					if (item.control_ghm_code != item.facture_ghm_code) {
						item.control_ghm_fontweight = 'bold'
					}
					
					item.retenu_montant_total = Number(item.retenu_ghs_montant_total) + Number(item.retenu_exb_montant_total) + Number(item.retenu_exh_montant_total)
					item.retenu_montant_total_ecart = item.retenu_montant_total - item.facture_montant_total
					item.retenu_ghm_fontweight = 'normal'
					if (item.retenu_ghm_code != item.facture_ghm_code) {
						item.retenu_ghm_fontweight = 'bold'
					}
					
				}
				
			}
			
			private function searchChange():void {
				
				searchText = searchText_GUI.text.toUpperCase();
				
				if (list_collection.filterFunction == null) {
					list_collection.filterFunction = filterFunction;
				}
				
				clearTimeout(searchtext_delay);
				searchtext_delay = setTimeout(list_collection.refresh, 1000);
				
			}
			
			// Filter function 
			public function filterFunction(item:Object):Boolean { 
				
				var result:Boolean = true; 
				
				if (tableCode == "RSS") {
					if (item.enquete_id != RSS_enquete_id_GUI.selectedItem.oid) {
						result = false;
						return result; 
					}
					
					if (searchEcart_GUI.selected) {
						if (
							item.initial_montant_total_ecart == 0 &&
							item.scenar1_montant_total_ecart == 0 &&
							item.scenar2_montant_total_ecart == 0 &&
							item.control_montant_total_ecart == 0 &&
							item.retenu_montant_total_ecart == 0
							) {
							result = false;
							return result; 
						}
					}
				}
								
				if (Number(item.oid) >= 0) {
					
					if (result == true) {
						if (searchText_GUI.text != "") {
							result = false;
							
							for each (var attributeName:String in list_collection.attributesArray) {
								if (item[attributeName].toString().toUpperCase().indexOf(searchText) >= 0) {
									result = true;
									break;
								}
							}
						}
					}
					
					if (result == true) {
						if (searchChamp_GUI.text != "") {
							if (item.champ_code != searchChamp_GUI.text) {
								result = false;
							}
						}
					}
				}
				return result; 
			}
			
			
			public function getRecord(event:ListEvent = null):void {
				
				
				if (recordUpdated == true) {
					return;
				}
				if (list_GUI.selectedIndex < 0) {
					return;
				}
				
				currentRecordItem = list_GUI.selectedItem as Object;
				showDetail();
			}
			
			
			private function fillFields(fields:Array):void {
				var dobj:DisplayObject;
				var field:String;
				for each (field in fields) {
					dobj = findChild(detailBox_GUI, tableCode + "_" + field + "_GUI");
					if (dobj is RichTextEditor) {
						if (currentRecordItem[field].toString() != "") {
							(dobj as RichTextEditor).htmlText = CTI_Utilitaires.uncompress64(currentRecordItem[field].toString());
						}
						else {
							(dobj as RichTextEditor).htmlText = ""
						}
					}
					if (dobj is TextArea) {
						(dobj as TextArea).text = currentRecordItem[field].toString();
					}
					else if (dobj is DateField) {
						(dobj as DateField).selectedDate = DateField.stringToDate(currentRecordItem[field].toString(), 'DD/MM/YYYY');
					}
					else if (dobj is TextInput) {
						(dobj as TextInput).text = currentRecordItem[field].toString();
					}
					else if (dobj is Label) {
						(dobj as Label).text = currentRecordItem[field].toString();
					}
                    else if (dobj is CheckBox) {
                        (dobj as CheckBox).selected = currentRecordItem[field].toString() == "1" ? true : false;
                    }
				}
			}
			
			
			public function showDetail():void {
				var i:Number;
				var item:Object;
				
				if (currentRecordItem == null) {
					return;
				}
				
				switch (tableCode) {
					case "ENQ" :
						fillFields(new Array("oid", "code", "texte", "data"));
						ENQ_annee_GUI.selectedIndex = 0;
						i = -1;
						for each (item in ENQ_annee_GUI.dataProvider) {
							i++;
							if (item.oid == currentRecordItem.annee.toString()) {
								ENQ_annee_GUI.selectedIndex = i;
							}
						}
						break;
					case "RSS" :
						fillFields(new Array(
							"oid", 
							"texte", 
							"no_ogc", 
							"no_rss", 
							"rss_id", 
							"champ_texte", 
							"matricule_assure", 
							"cle_matricule_assure", 
							"no_sejour_administratif", 
							"no_patient", 
							"nom_complet", 
							"date_naissance", 
							"no_facture", 
							"regime_caisse_texte", 
							"date_entree", 
							"date_sortie", 
							"duree_sejour", 
							"taux_remboursement", 
							"taux_remboursement_vidhosp", 
							"montant_majoration_parcours_soins", 
							"montant_ticket_moderateur", 
							"montant_forfait_journalier",
							"nombre_forfait_journalier",
							
							"status", 

							"facture_dp_code", 
							"facture_dp_texte", 
							"facture_ghs_code", 
							"facture_ghm_code", 
							"facture_ghm_texte",
							"facture_ghs_montant_total",
							"facture_exh_montant_total",
							"facture_exb_montant_total",							
							
							"initial_dp_code", 
							"initial_dp_texte", 
							"initial_ghs_code", 
							"initial_ghm_code", 
							"initial_ghm_texte", 
							"initial_rum_um_code_01",
							"initial_rum_um_code_02",
							"initial_rum_um_code_03",
							"initial_rum_um_code_04",
							"initial_rum_um_code_05",
							"initial_rum_um_code_06",
							"initial_rum_um_code_07",
							"initial_rum_um_code_08",
							"initial_rum_um_code_09",
							"initial_rum_um_code_10",
							"initial_rum_dp_code_01",
							"initial_rum_dp_code_02",
							"initial_rum_dp_code_03",
							"initial_rum_dp_code_04",
							"initial_rum_dp_code_05",
							"initial_rum_dp_code_06",
							"initial_rum_dp_code_07",
							"initial_rum_dp_code_08",
							"initial_rum_dp_code_09",
							"initial_rum_dp_code_10",
							"initial_rum_dr_code_01",
							"initial_rum_dr_code_02",
							"initial_rum_dr_code_03",
							"initial_rum_dr_code_04",
							"initial_rum_dr_code_05",
							"initial_rum_dr_code_06",
							"initial_rum_dr_code_07",
							"initial_rum_dr_code_08",
							"initial_rum_dr_code_09",
							"initial_rum_dr_code_10",
							"initial_rum_da_code_01",
							"initial_rum_da_code_02",
							"initial_rum_da_code_03",
							"initial_rum_da_code_04",
							"initial_rum_da_code_05",
							"initial_rum_da_code_06",
							"initial_rum_da_code_07",
							"initial_rum_da_code_08",
							"initial_rum_da_code_09",
							"initial_rum_da_code_10",
							"initial_rum_ccam_code_01",
							"initial_rum_ccam_code_02",
							"initial_rum_ccam_code_03",
							"initial_rum_ccam_code_04",
							"initial_rum_ccam_code_05",
							"initial_rum_ccam_code_06",
							"initial_rum_ccam_code_07",
							"initial_rum_ccam_code_08",
							"initial_rum_ccam_code_09",
							"initial_rum_ccam_code_10",
							"initial_ghs_montant_total",
							"initial_exh_montant_total",
							"initial_exb_montant_total",
							
							"scenar1_rule", 
							"scenar1_comment", 
							"scenar1_dp_code", 
							"scenar1_dp_texte", 
							"scenar1_ghs_code", 
							"scenar1_ghm_code", 
							"scenar1_ghm_texte",
							"scenar1_rum_um_code_01",
							"scenar1_rum_um_code_02",
							"scenar1_rum_um_code_03",
							"scenar1_rum_um_code_04",
							"scenar1_rum_um_code_05",
							"scenar1_rum_um_code_06",
							"scenar1_rum_um_code_07",
							"scenar1_rum_um_code_08",
							"scenar1_rum_um_code_09",
							"scenar1_rum_um_code_10",
							"scenar1_rum_dp_code_01",
							"scenar1_rum_dp_code_02",
							"scenar1_rum_dp_code_03",
							"scenar1_rum_dp_code_04",
							"scenar1_rum_dp_code_05",
							"scenar1_rum_dp_code_06",
							"scenar1_rum_dp_code_07",
							"scenar1_rum_dp_code_08",
							"scenar1_rum_dp_code_09",
							"scenar1_rum_dp_code_10",
							"scenar1_rum_dr_code_01",
							"scenar1_rum_dr_code_02",
							"scenar1_rum_dr_code_03",
							"scenar1_rum_dr_code_04",
							"scenar1_rum_dr_code_05",
							"scenar1_rum_dr_code_06",
							"scenar1_rum_dr_code_07",
							"scenar1_rum_dr_code_08",
							"scenar1_rum_dr_code_09",
							"scenar1_rum_dr_code_10",
							"scenar1_rum_da_code_01",
							"scenar1_rum_da_code_02",
							"scenar1_rum_da_code_03",
							"scenar1_rum_da_code_04",
							"scenar1_rum_da_code_05",
							"scenar1_rum_da_code_06",
							"scenar1_rum_da_code_07",
							"scenar1_rum_da_code_08",
							"scenar1_rum_da_code_09",
							"scenar1_rum_da_code_10",
							"scenar1_rum_ccam_code_01",
							"scenar1_rum_ccam_code_02",
							"scenar1_rum_ccam_code_03",
							"scenar1_rum_ccam_code_04",
							"scenar1_rum_ccam_code_05",
							"scenar1_rum_ccam_code_06",
							"scenar1_rum_ccam_code_07",
							"scenar1_rum_ccam_code_08",
							"scenar1_rum_ccam_code_09",
							"scenar1_rum_ccam_code_10",
							"scenar1_ghs_montant_total",
							"scenar1_exh_montant_total",
							"scenar1_exb_montant_total",							
							
							"scenar2_rule", 
							"scenar2_comment", 
							"scenar2_dp_code", 
							"scenar2_dp_texte", 
							"scenar2_ghs_code", 
							"scenar2_ghm_code", 
							"scenar2_ghm_texte",
							"scenar2_rum_um_code_01",
							"scenar2_rum_um_code_02",
							"scenar2_rum_um_code_03",
							"scenar2_rum_um_code_04",
							"scenar2_rum_um_code_05",
							"scenar2_rum_um_code_06",
							"scenar2_rum_um_code_07",
							"scenar2_rum_um_code_08",
							"scenar2_rum_um_code_09",
							"scenar2_rum_um_code_10",
							"scenar2_rum_dp_code_01",
							"scenar2_rum_dp_code_02",
							"scenar2_rum_dp_code_03",
							"scenar2_rum_dp_code_04",
							"scenar2_rum_dp_code_05",
							"scenar2_rum_dp_code_06",
							"scenar2_rum_dp_code_07",
							"scenar2_rum_dp_code_08",
							"scenar2_rum_dp_code_09",
							"scenar2_rum_dp_code_10",
							"scenar2_rum_dr_code_01",
							"scenar2_rum_dr_code_02",
							"scenar2_rum_dr_code_03",
							"scenar2_rum_dr_code_04",
							"scenar2_rum_dr_code_05",
							"scenar2_rum_dr_code_06",
							"scenar2_rum_dr_code_07",
							"scenar2_rum_dr_code_08",
							"scenar2_rum_dr_code_09",
							"scenar2_rum_dr_code_10",
							"scenar2_rum_da_code_01",
							"scenar2_rum_da_code_02",
							"scenar2_rum_da_code_03",
							"scenar2_rum_da_code_04",
							"scenar2_rum_da_code_05",
							"scenar2_rum_da_code_06",
							"scenar2_rum_da_code_07",
							"scenar2_rum_da_code_08",
							"scenar2_rum_da_code_09",
							"scenar2_rum_da_code_10",
							"scenar2_rum_ccam_code_01",
							"scenar2_rum_ccam_code_02",
							"scenar2_rum_ccam_code_03",
							"scenar2_rum_ccam_code_04",
							"scenar2_rum_ccam_code_05",
							"scenar2_rum_ccam_code_06",
							"scenar2_rum_ccam_code_07",
							"scenar2_rum_ccam_code_08",
							"scenar2_rum_ccam_code_09",
							"scenar2_rum_ccam_code_10",
							"scenar2_ghs_montant_total",
							"scenar2_exh_montant_total",
							"scenar2_exb_montant_total",
							
							"control_rule", 
							"control_comment", 
							"control_dp_code", 
							"control_dp_texte", 
							"control_ghs_code", 
							"control_ghm_code", 
							"control_ghm_texte",
							"control_rum_um_code_01",
							"control_rum_um_code_02",
							"control_rum_um_code_03",
							"control_rum_um_code_04",
							"control_rum_um_code_05",
							"control_rum_um_code_06",
							"control_rum_um_code_07",
							"control_rum_um_code_08",
							"control_rum_um_code_09",
							"control_rum_um_code_10",
							"control_rum_dp_code_01",
							"control_rum_dp_code_02",
							"control_rum_dp_code_03",
							"control_rum_dp_code_04",
							"control_rum_dp_code_05",
							"control_rum_dp_code_06",
							"control_rum_dp_code_07",
							"control_rum_dp_code_08",
							"control_rum_dp_code_09",
							"control_rum_dp_code_10",
							"control_rum_dr_code_01",
							"control_rum_dr_code_02",
							"control_rum_dr_code_03",
							"control_rum_dr_code_04",
							"control_rum_dr_code_05",
							"control_rum_dr_code_06",
							"control_rum_dr_code_07",
							"control_rum_dr_code_08",
							"control_rum_dr_code_09",
							"control_rum_dr_code_10",
							"control_rum_da_code_01",
							"control_rum_da_code_02",
							"control_rum_da_code_03",
							"control_rum_da_code_04",
							"control_rum_da_code_05",
							"control_rum_da_code_06",
							"control_rum_da_code_07",
							"control_rum_da_code_08",
							"control_rum_da_code_09",
							"control_rum_da_code_10",
							"control_rum_ccam_code_01",
							"control_rum_ccam_code_02",
							"control_rum_ccam_code_03",
							"control_rum_ccam_code_04",
							"control_rum_ccam_code_05",
							"control_rum_ccam_code_06",
							"control_rum_ccam_code_07",
							"control_rum_ccam_code_08",
							"control_rum_ccam_code_09",
							"control_rum_ccam_code_10",
							"control_ghs_montant_total",
							"control_exh_montant_total",
							"control_exb_montant_total",
							
							"retenu_rule", 
							"retenu_comment", 
							"retenu_dp_code", 
							"retenu_dp_texte", 
							"retenu_ghs_code", 
							"retenu_ghm_code", 
							"retenu_ghm_texte",
							"retenu_rum_um_code_01",
							"retenu_rum_um_code_02",
							"retenu_rum_um_code_03",
							"retenu_rum_um_code_04",
							"retenu_rum_um_code_05",
							"retenu_rum_um_code_06",
							"retenu_rum_um_code_07",
							"retenu_rum_um_code_08",
							"retenu_rum_um_code_09",
							"retenu_rum_um_code_10",
							"retenu_rum_dp_code_01",
							"retenu_rum_dp_code_02",
							"retenu_rum_dp_code_03",
							"retenu_rum_dp_code_04",
							"retenu_rum_dp_code_05",
							"retenu_rum_dp_code_06",
							"retenu_rum_dp_code_07",
							"retenu_rum_dp_code_08",
							"retenu_rum_dp_code_09",
							"retenu_rum_dp_code_10",
							"retenu_rum_dr_code_01",
							"retenu_rum_dr_code_02",
							"retenu_rum_dr_code_03",
							"retenu_rum_dr_code_04",
							"retenu_rum_dr_code_05",
							"retenu_rum_dr_code_06",
							"retenu_rum_dr_code_07",
							"retenu_rum_dr_code_08",
							"retenu_rum_dr_code_09",
							"retenu_rum_dr_code_10",
							"retenu_rum_da_code_01",
							"retenu_rum_da_code_02",
							"retenu_rum_da_code_03",
							"retenu_rum_da_code_04",
							"retenu_rum_da_code_05",
							"retenu_rum_da_code_06",
							"retenu_rum_da_code_07",
							"retenu_rum_da_code_08",
							"retenu_rum_da_code_09",
							"retenu_rum_da_code_10",
							"retenu_rum_ccam_code_01",
							"retenu_rum_ccam_code_02",
							"retenu_rum_ccam_code_03",
							"retenu_rum_ccam_code_04",
							"retenu_rum_ccam_code_05",
							"retenu_rum_ccam_code_06",
							"retenu_rum_ccam_code_07",
							"retenu_rum_ccam_code_08",
							"retenu_rum_ccam_code_09",
							"retenu_rum_ccam_code_10",
							"retenu_ghs_montant_total",
							"retenu_exh_montant_total",
							"retenu_exb_montant_total"
							));
						
						setSelectedIndex(RSS_status_GUI, currentRecordItem.status);						
						setSelectedIndex(RSS_scenar1_rule_GUI, currentRecordItem.scenar1_rule);
						setSelectedIndex(RSS_scenar2_rule_GUI, currentRecordItem.scenar2_rule);
						setSelectedIndex(RSS_control_rule_GUI, currentRecordItem.control_rule);
						setSelectedIndex(RSS_retenu_rule_GUI, currentRecordItem.retenu_rule);
						
							
						RSS_facture_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.facture_ghs_montant_total)+
							Number(currentRecordItem.facture_exb_montant_total)+
							Number(currentRecordItem.facture_exh_montant_total)
							,'#,00E')
						RSS_facture_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.facture_ghs_montant_total),'#,00E')
						RSS_facture_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.facture_exb_montant_total),'#,00E')
						RSS_facture_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.facture_exh_montant_total),'#,00E')
						RSS_initial_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.initial_ghs_montant_total)+
							Number(currentRecordItem.initial_exb_montant_total)+
							Number(currentRecordItem.initial_exh_montant_total)
							,'#,00E')
						RSS_initial_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.initial_ghs_montant_total),'#,00E')
						RSS_initial_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.initial_exb_montant_total),'#,00E')
						RSS_initial_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.initial_exh_montant_total),'#,00E')
						
						RSS_scenar1_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.scenar1_ghs_montant_total)+
							Number(currentRecordItem.scenar1_exb_montant_total)+
							Number(currentRecordItem.scenar1_exh_montant_total)
							,'#,00E')
						RSS_scenar1_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar1_ghs_montant_total),'#,00E')
						RSS_scenar1_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar1_exb_montant_total),'#,00E')
						RSS_scenar1_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar1_exh_montant_total),'#,00E'),
						
						RSS_scenar2_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.scenar2_ghs_montant_total)+
							Number(currentRecordItem.scenar2_exb_montant_total)+
							Number(currentRecordItem.scenar2_exh_montant_total)
							,'#,00E')
						RSS_scenar2_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar2_ghs_montant_total),'#,00E')
						RSS_scenar2_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar2_exb_montant_total),'#,00E')
						RSS_scenar2_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.scenar2_exh_montant_total),'#,00E'),
						
						RSS_control_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.control_ghs_montant_total)+
							Number(currentRecordItem.control_exb_montant_total)+
							Number(currentRecordItem.control_exh_montant_total)
							,'#,00E')
						RSS_control_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.control_ghs_montant_total),'#,00E')
						RSS_control_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.control_exb_montant_total),'#,00E')
						RSS_control_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.control_exh_montant_total),'#,00E'),
						
						RSS_retenu_montant_total_GUI.text = CTI_Formatters.numberFormat(
							Number(currentRecordItem.retenu_ghs_montant_total)+
							Number(currentRecordItem.retenu_exb_montant_total)+
							Number(currentRecordItem.retenu_exh_montant_total)
							,'#,00E')
						RSS_retenu_ghs_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.retenu_ghs_montant_total),'#,00E')
						RSS_retenu_exb_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.retenu_exb_montant_total),'#,00E')
						RSS_retenu_exh_montant_total_GUI.text = CTI_Formatters.numberFormat(Number(currentRecordItem.retenu_exh_montant_total),'#,00E')
						
							
						item = RSS_scenario_collection.getItemAt(0)
						item.ghm_texte = currentRecordItem.facture_ghm_texte
						item.ghm_fontweight = currentRecordItem.facture_ghm_fontweight
						item.ghs_code =  currentRecordItem.facture_ghs_code
						item.montant_total = 
							Number(currentRecordItem.facture_ghs_montant_total)+
							Number(currentRecordItem.facture_exb_montant_total)+
							Number(currentRecordItem.facture_exh_montant_total)
						item.montant_total_ecart = ''
						item.ghs_montant_total = Number(currentRecordItem.facture_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.facture_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.facture_exh_montant_total)
						
						item = RSS_scenario_collection.getItemAt(1)
						item.ghm_texte = currentRecordItem.initial_ghm_texte
						item.ghm_fontweight = currentRecordItem.initial_ghm_fontweight
						item.ghs_code =  currentRecordItem.initial_ghs_code
						item.montant_total = 
							Number(currentRecordItem.initial_ghs_montant_total)+
							Number(currentRecordItem.initial_exb_montant_total)+
							Number(currentRecordItem.initial_exh_montant_total)
						item.montant_total_ecart = Number(currentRecordItem.initial_montant_total_ecart)
						item.ghs_montant_total = Number(currentRecordItem.initial_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.initial_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.initial_exh_montant_total)
						
						item = RSS_scenario_collection.getItemAt(2)
						item.ghm_texte = currentRecordItem.scenar1_ghm_texte
						item.ghm_fontweight = currentRecordItem.scenar1_ghm_fontweight
						item.ghs_code =  currentRecordItem.scenar1_ghs_code
						item.montant_total = 
							Number(currentRecordItem.scenar1_ghs_montant_total)+
							Number(currentRecordItem.scenar1_exb_montant_total)+
							Number(currentRecordItem.scenar1_exh_montant_total)
						item.montant_total_ecart = Number(currentRecordItem.scenar1_montant_total_ecart)
						item.ghs_montant_total = Number(currentRecordItem.scenar1_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.scenar1_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.scenar1_exh_montant_total)
						
						item = RSS_scenario_collection.getItemAt(3)
						item.ghm_texte = currentRecordItem.scenar2_ghm_texte
						item.ghm_fontweight = currentRecordItem.scenar2_ghm_fontweight
						item.ghs_code =  currentRecordItem.scenar2_ghs_code
						item.montant_total = 
							Number(currentRecordItem.scenar2_ghs_montant_total)+
							Number(currentRecordItem.scenar2_exb_montant_total)+
							Number(currentRecordItem.scenar2_exh_montant_total)
						item.montant_total_ecart = Number(currentRecordItem.scenar2_montant_total_ecart)
						item.ghs_montant_total = Number(currentRecordItem.scenar2_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.scenar2_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.scenar2_exh_montant_total)
						
						item = RSS_scenario_collection.getItemAt(4)
						item.ghm_texte = currentRecordItem.control_ghm_texte
						item.ghm_fontweight = currentRecordItem.control_ghm_fontweight
						item.ghs_code =  currentRecordItem.control_ghs_code
						item.montant_total = 
							Number(currentRecordItem.control_ghs_montant_total)+
							Number(currentRecordItem.control_exb_montant_total)+
							Number(currentRecordItem.control_exh_montant_total)
						item.montant_total_ecart = Number(currentRecordItem.control_montant_total_ecart)
						item.ghs_montant_total = Number(currentRecordItem.control_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.control_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.control_exh_montant_total)
						
						item = RSS_scenario_collection.getItemAt(5)
						item.ghm_texte =  currentRecordItem.retenu_ghm_texte
						item.ghm_fontweight = currentRecordItem.retenu_ghm_fontweight
						item.ghs_code =   currentRecordItem.retenu_ghs_code
						item.montant_total = 
							Number(currentRecordItem.retenu_ghs_montant_total)+
							Number(currentRecordItem.retenu_exb_montant_total)+
							Number(currentRecordItem.retenu_exh_montant_total)
						item.montant_total_ecart = Number(currentRecordItem.retenu_montant_total_ecart)
						item.ghs_montant_total = Number(currentRecordItem.retenu_ghs_montant_total)
						item.exb_montant_total = Number(currentRecordItem.retenu_exb_montant_total)
						item.exh_montant_total = Number(currentRecordItem.retenu_exh_montant_total)
						
						RSS_scenario_collection.refresh()
					
						break;
						
						
				}
				
				recordUpdated = false;
				detailBox_GUI.visible = true
				detailBox_GUI.includeInLayout = true
				if (tableCode == "RSS") {
					RSS_footer_GUI.visible = false
					RSS_footer_GUI.includeInLayout = false
				}
			}
			
			
			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 {
				
				// Ne plus afficher le détail
				detailBox_GUI.visible = false
				detailBox_GUI.includeInLayout = false
				if (tableCode == "RSS") {
					RSS_footer_GUI.visible = true
					RSS_footer_GUI.includeInLayout = true
				}
				currentRecordItem = null;
				recordUpdated = false;
			}
			
			
			private function askDelete():void {
				
				Alert.yesLabel = "OUI";
				Alert.noLabel = "NON";
				var alert:Alert = Alert.show("Désirez vous vraiment supprimer " + texte_GUI.text + " ?", title, 3, this, alertClickHandler, question_class);
				
				function alertClickHandler(event:CloseEvent):void {
					if (event.detail == Alert.YES) {
						deleteRecord();
					}
				}
			}
			
			
			public function deleteRecord():void {
				
				updateRecord("delete");
				
			}
			
			
			
			public function copyRecord():void {
				
				updateRecord("copy");
				
			}
			
			
			public function saveRecord():void {

				updateRecord("save");

			}
			
			
			private function readFields(fields:Array, recordNode:XML):XML {
				
				var dobj:DisplayObject;
				var field:String;
				for each (field in fields) {
					
					dobj = findChild(detailBox_GUI, tableCode + "_" + field + "_GUI");
					if (dobj is RichTextEditor) {
						if ((dobj as RichTextEditor).text != "") {
							recordNode.@[field] = CTI_Utilitaires.compress64((dobj as RichTextEditor).htmlText);
						}
						else {
							recordNode.@[field] = "";
						}
					}
					if (dobj is TextArea) {
						recordNode.@[field] = (dobj as TextArea).text;
					}
					else if (dobj is DateField) {
						recordNode.@[field] = DateField.dateToString((dobj as DateField).selectedDate, 'DD/MM/YYYY');
					}
					else if (dobj is TextInput) {
						recordNode.@[field] = (dobj as TextInput).text;
					}
					else if (dobj is Label) {
						recordNode.@[field] = (dobj as Label).text;
					}
                    else if (dobj is CheckBox) {
                        recordNode.@[field] = (dobj as CheckBox).selected ? "1" : "0";
                    }
				}
				return recordNode;
			}
			
			public function addRecord():void {
				
				
				if (currentRecordItem == null) {
				
					if (tableCode == "ENQ") {
						currentRecordItem = new Object()
						currentRecordItem.oid = "-1"
						currentRecordItem.code = "";
						currentRecordItem.texte = "";
						currentRecordItem.annee = "";
						currentRecordItem.data = "";
						showDetail()
					}
					
				}
				
			}
			
			
			public function updateRecord(action:String):void {
				
				var urlVariables:URLVariables = new URLVariables();
				urlVariables.tableName = tableName;
				urlVariables.action = action;
				var recordNode:XML = new XML(<RECORD />);
				
				switch (tableCode) {
					case "ENQ" :
						recordNode = readFields(new Array("oid", "code", "texte", "data"), recordNode);
						recordNode.@annee = ENQ_annee_GUI.selectedItem.oid;
						break;
					case "RSS" :
						recordNode = readFields(new Array(
							"oid",
							
							"status",
							
							"scenar1_rule",
							"scenar1_comment",
							"scenar1_rum_dp_code_01",
							"scenar1_rum_dp_code_02",
							"scenar1_rum_dp_code_03",
							"scenar1_rum_dp_code_04",
							"scenar1_rum_dp_code_05",
							"scenar1_rum_dp_code_06",
							"scenar1_rum_dp_code_07",
							"scenar1_rum_dp_code_08",
							"scenar1_rum_dp_code_09",
							"scenar1_rum_dp_code_10",
							"scenar1_rum_dr_code_01",
							"scenar1_rum_dr_code_02",
							"scenar1_rum_dr_code_03",
							"scenar1_rum_dr_code_04",
							"scenar1_rum_dr_code_05",
							"scenar1_rum_dr_code_06",
							"scenar1_rum_dr_code_07",
							"scenar1_rum_dr_code_08",
							"scenar1_rum_dr_code_09",
							"scenar1_rum_dr_code_10",
							"scenar1_rum_da_code_01",
							"scenar1_rum_da_code_02",
							"scenar1_rum_da_code_03",
							"scenar1_rum_da_code_04",
							"scenar1_rum_da_code_05",
							"scenar1_rum_da_code_06",
							"scenar1_rum_da_code_07",
							"scenar1_rum_da_code_08",
							"scenar1_rum_da_code_09",
							"scenar1_rum_da_code_10",
							"scenar1_rum_ccam_code_01",
							"scenar1_rum_ccam_code_02",
							"scenar1_rum_ccam_code_03",
							"scenar1_rum_ccam_code_04",
							"scenar1_rum_ccam_code_05",
							"scenar1_rum_ccam_code_06",
							"scenar1_rum_ccam_code_07",
							"scenar1_rum_ccam_code_08",
							"scenar1_rum_ccam_code_09",
							"scenar1_rum_ccam_code_10",
							
							"scenar2_rule",
							"scenar2_comment",
							"scenar2_rum_dp_code_01",
							"scenar2_rum_dp_code_02",
							"scenar2_rum_dp_code_03",
							"scenar2_rum_dp_code_04",
							"scenar2_rum_dp_code_05",
							"scenar2_rum_dp_code_06",
							"scenar2_rum_dp_code_07",
							"scenar2_rum_dp_code_08",
							"scenar2_rum_dp_code_09",
							"scenar2_rum_dp_code_10",
							"scenar2_rum_dr_code_01",
							"scenar2_rum_dr_code_02",
							"scenar2_rum_dr_code_03",
							"scenar2_rum_dr_code_04",
							"scenar2_rum_dr_code_05",
							"scenar2_rum_dr_code_06",
							"scenar2_rum_dr_code_07",
							"scenar2_rum_dr_code_08",
							"scenar2_rum_dr_code_09",
							"scenar2_rum_dr_code_10",
							"scenar2_rum_da_code_01",
							"scenar2_rum_da_code_02",
							"scenar2_rum_da_code_03",
							"scenar2_rum_da_code_04",
							"scenar2_rum_da_code_05",
							"scenar2_rum_da_code_06",
							"scenar2_rum_da_code_07",
							"scenar2_rum_da_code_08",
							"scenar2_rum_da_code_09",
							"scenar2_rum_da_code_10",
							"scenar2_rum_ccam_code_01",
							"scenar2_rum_ccam_code_02",
							"scenar2_rum_ccam_code_03",
							"scenar2_rum_ccam_code_04",
							"scenar2_rum_ccam_code_05",
							"scenar2_rum_ccam_code_06",
							"scenar2_rum_ccam_code_07",
							"scenar2_rum_ccam_code_08",
							"scenar2_rum_ccam_code_09",
							"scenar2_rum_ccam_code_10",
							
							"control_rule",
							"control_comment",
							"control_rum_dp_code_01",
							"control_rum_dp_code_02",
							"control_rum_dp_code_03",
							"control_rum_dp_code_04",
							"control_rum_dp_code_05",
							"control_rum_dp_code_06",
							"control_rum_dp_code_07",
							"control_rum_dp_code_08",
							"control_rum_dp_code_09",
							"control_rum_dp_code_10",
							"control_rum_dr_code_01",
							"control_rum_dr_code_02",
							"control_rum_dr_code_03",
							"control_rum_dr_code_04",
							"control_rum_dr_code_05",
							"control_rum_dr_code_06",
							"control_rum_dr_code_07",
							"control_rum_dr_code_08",
							"control_rum_dr_code_09",
							"control_rum_dr_code_10",
							"control_rum_da_code_01",
							"control_rum_da_code_02",
							"control_rum_da_code_03",
							"control_rum_da_code_04",
							"control_rum_da_code_05",
							"control_rum_da_code_06",
							"control_rum_da_code_07",
							"control_rum_da_code_08",
							"control_rum_da_code_09",
							"control_rum_da_code_10",
							"control_rum_ccam_code_01",
							"control_rum_ccam_code_02",
							"control_rum_ccam_code_03",
							"control_rum_ccam_code_04",
							"control_rum_ccam_code_05",
							"control_rum_ccam_code_06",
							"control_rum_ccam_code_07",
							"control_rum_ccam_code_08",
							"control_rum_ccam_code_09",
							"control_rum_ccam_code_10",
							
							"retenu_rule",
							"retenu_comment",
							"retenu_rum_dp_code_01",
							"retenu_rum_dp_code_02",
							"retenu_rum_dp_code_03",
							"retenu_rum_dp_code_04",
							"retenu_rum_dp_code_05",
							"retenu_rum_dp_code_06",
							"retenu_rum_dp_code_07",
							"retenu_rum_dp_code_08",
							"retenu_rum_dp_code_09",
							"retenu_rum_dp_code_10",
							"retenu_rum_dr_code_01",
							"retenu_rum_dr_code_02",
							"retenu_rum_dr_code_03",
							"retenu_rum_dr_code_04",
							"retenu_rum_dr_code_05",
							"retenu_rum_dr_code_06",
							"retenu_rum_dr_code_07",
							"retenu_rum_dr_code_08",
							"retenu_rum_dr_code_09",
							"retenu_rum_dr_code_10",
							"retenu_rum_da_code_01",
							"retenu_rum_da_code_02",
							"retenu_rum_da_code_03",
							"retenu_rum_da_code_04",
							"retenu_rum_da_code_05",
							"retenu_rum_da_code_06",
							"retenu_rum_da_code_07",
							"retenu_rum_da_code_08",
							"retenu_rum_da_code_09",
							"retenu_rum_da_code_10",
							"retenu_rum_ccam_code_01",
							"retenu_rum_ccam_code_02",
							"retenu_rum_ccam_code_03",
							"retenu_rum_ccam_code_04",
							"retenu_rum_ccam_code_05",
							"retenu_rum_ccam_code_06",
							"retenu_rum_ccam_code_07",
							"retenu_rum_ccam_code_08",
							"retenu_rum_ccam_code_09",
							"retenu_rum_ccam_code_10"
							), 
							recordNode);
							
							recordNode.@status = RSS_status_GUI.selectedItem.data
							recordNode.@scenar1_rule = RSS_scenar1_rule_GUI.selectedItem.data
							recordNode.@scenar2_rule = RSS_scenar2_rule_GUI.selectedItem.data
							recordNode.@control_rule = RSS_control_rule_GUI.selectedItem.data
							recordNode.@retenu_rule  = RSS_retenu_rule_GUI.selectedItem.data

						break;
				}
				
				urlVariables.recordNode = recordNode.toXMLString();
				
				CTI_Utilitaires.startRequestHTTP("modules/pmsi/php/PMSI_fiche5Manager_setTableRecord.php", urlVariables, exec, true, this.parentApplication);
				
				function exec(resultatService:XML):void {
					
					if (tableCode != "RSS") {
						getData();
						
						detailBox_GUI.visible = false
						detailBox_GUI.includeInLayout = false
						if (tableCode == "RSS") {
							RSS_footer_GUI.visible = true
							RSS_footer_GUI.includeInLayout = true
						}
						currentRecordItem = null;
						recordUpdated = false;
					}
					else {
						currentRecordItem.status 					= RSS_status_GUI.selectedItem.data
						switch (currentRecordItem.status) {
							case "P9" :
								currentRecordItem.status_texte = "Préparé"
								break;
							case "C9" :
								currentRecordItem.status_texte = "Accepté"
								break;
							case "C8" :
								currentRecordItem.status_texte = "Contesté"
								break;
							default :
								currentRecordItem.status_texte = ""
						}
						
						currentRecordItem.scenar1_rule 				= RSS_scenar1_rule_GUI.selectedItem.data
						currentRecordItem.scenar1_comment			= RSS_scenar1_comment_GUI.text
						currentRecordItem.scenar1_rum_dp_code_01	= RSS_scenar1_rum_dp_code_01_GUI.text
						currentRecordItem.scenar1_rum_dp_code_02	= RSS_scenar1_rum_dp_code_02_GUI.text
						currentRecordItem.scenar1_rum_dp_code_03	= RSS_scenar1_rum_dp_code_03_GUI.text
						currentRecordItem.scenar1_rum_dp_code_04	= RSS_scenar1_rum_dp_code_04_GUI.text
						currentRecordItem.scenar1_rum_dp_code_05	= RSS_scenar1_rum_dp_code_05_GUI.text
						currentRecordItem.scenar1_rum_dp_code_06	= RSS_scenar1_rum_dp_code_06_GUI.text
						currentRecordItem.scenar1_rum_dp_code_07	= RSS_scenar1_rum_dp_code_07_GUI.text
						currentRecordItem.scenar1_rum_dp_code_08	= RSS_scenar1_rum_dp_code_08_GUI.text
						currentRecordItem.scenar1_rum_dp_code_09	= RSS_scenar1_rum_dp_code_09_GUI.text
						currentRecordItem.scenar1_rum_dp_code_10	= RSS_scenar1_rum_dp_code_10_GUI.text
						currentRecordItem.scenar1_rum_dr_code_01	= RSS_scenar1_rum_dr_code_01_GUI.text
						currentRecordItem.scenar1_rum_dr_code_02	= RSS_scenar1_rum_dr_code_02_GUI.text
						currentRecordItem.scenar1_rum_dr_code_03	= RSS_scenar1_rum_dr_code_03_GUI.text
						currentRecordItem.scenar1_rum_dr_code_04	= RSS_scenar1_rum_dr_code_04_GUI.text
						currentRecordItem.scenar1_rum_dr_code_05	= RSS_scenar1_rum_dr_code_05_GUI.text
						currentRecordItem.scenar1_rum_dr_code_06	= RSS_scenar1_rum_dr_code_06_GUI.text
						currentRecordItem.scenar1_rum_dr_code_07	= RSS_scenar1_rum_dr_code_07_GUI.text
						currentRecordItem.scenar1_rum_dr_code_08	= RSS_scenar1_rum_dr_code_08_GUI.text
						currentRecordItem.scenar1_rum_dr_code_09	= RSS_scenar1_rum_dr_code_09_GUI.text
						currentRecordItem.scenar1_rum_dr_code_10	= RSS_scenar1_rum_dr_code_10_GUI.text
						currentRecordItem.scenar1_rum_da_code_01	= RSS_scenar1_rum_da_code_01_GUI.text
						currentRecordItem.scenar1_rum_da_code_02	= RSS_scenar1_rum_da_code_02_GUI.text
						currentRecordItem.scenar1_rum_da_code_03	= RSS_scenar1_rum_da_code_03_GUI.text
						currentRecordItem.scenar1_rum_da_code_04	= RSS_scenar1_rum_da_code_04_GUI.text
						currentRecordItem.scenar1_rum_da_code_05	= RSS_scenar1_rum_da_code_05_GUI.text
						currentRecordItem.scenar1_rum_da_code_06	= RSS_scenar1_rum_da_code_06_GUI.text
						currentRecordItem.scenar1_rum_da_code_07	= RSS_scenar1_rum_da_code_07_GUI.text
						currentRecordItem.scenar1_rum_da_code_08	= RSS_scenar1_rum_da_code_08_GUI.text
						currentRecordItem.scenar1_rum_da_code_09	= RSS_scenar1_rum_da_code_09_GUI.text
						currentRecordItem.scenar1_rum_da_code_10	= RSS_scenar1_rum_da_code_10_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_01	= RSS_scenar1_rum_ccam_code_01_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_02	= RSS_scenar1_rum_ccam_code_02_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_03	= RSS_scenar1_rum_ccam_code_03_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_04	= RSS_scenar1_rum_ccam_code_04_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_05	= RSS_scenar1_rum_ccam_code_05_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_06	= RSS_scenar1_rum_ccam_code_06_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_07	= RSS_scenar1_rum_ccam_code_07_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_08	= RSS_scenar1_rum_ccam_code_08_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_09	= RSS_scenar1_rum_ccam_code_09_GUI.text
						currentRecordItem.scenar1_rum_ccam_code_10	= RSS_scenar1_rum_ccam_code_10_GUI.text

						currentRecordItem.scenar1_dp_code   		= resultatService.RECORD[0].@scenar1_dp_code
						currentRecordItem.scenar1_dp_texte  		= resultatService.RECORD[0].@scenar1_dp_texte
						currentRecordItem.scenar1_ghm_code  		= resultatService.RECORD[0].@scenar1_ghm_code
						currentRecordItem.scenar1_ghm_texte 		= resultatService.RECORD[0].@scenar1_ghm_texte
						currentRecordItem.scenar1_ghs_code  		= resultatService.RECORD[0].@scenar1_ghs_code
						currentRecordItem.scenar1_montant_total 	= resultatService.RECORD[0].@scenar1_montant_total
						currentRecordItem.scenar1_ghs_montant_total = resultatService.RECORD[0].@scenar1_ghs_montant_total
						currentRecordItem.scenar1_exh_montant_total = resultatService.RECORD[0].@scenar1_exh_montant_total
						currentRecordItem.scenar1_exb_montant_total = resultatService.RECORD[0].@scenar1_exb_montant_total
						
						currentRecordItem.scenar2_rule 				= RSS_scenar2_rule_GUI.selectedItem.data
						currentRecordItem.scenar2_comment			= RSS_scenar2_comment_GUI.text
						currentRecordItem.scenar2_rum_dp_code_01	= RSS_scenar2_rum_dp_code_01_GUI.text
						currentRecordItem.scenar2_rum_dp_code_02	= RSS_scenar2_rum_dp_code_02_GUI.text
						currentRecordItem.scenar2_rum_dp_code_03	= RSS_scenar2_rum_dp_code_03_GUI.text
						currentRecordItem.scenar2_rum_dp_code_04	= RSS_scenar2_rum_dp_code_04_GUI.text
						currentRecordItem.scenar2_rum_dp_code_05	= RSS_scenar2_rum_dp_code_05_GUI.text
						currentRecordItem.scenar2_rum_dp_code_06	= RSS_scenar2_rum_dp_code_06_GUI.text
						currentRecordItem.scenar2_rum_dp_code_07	= RSS_scenar2_rum_dp_code_07_GUI.text
						currentRecordItem.scenar2_rum_dp_code_08	= RSS_scenar2_rum_dp_code_08_GUI.text
						currentRecordItem.scenar2_rum_dp_code_09	= RSS_scenar2_rum_dp_code_09_GUI.text
						currentRecordItem.scenar2_rum_dp_code_10	= RSS_scenar2_rum_dp_code_10_GUI.text
						currentRecordItem.scenar2_rum_dr_code_01	= RSS_scenar2_rum_dr_code_01_GUI.text
						currentRecordItem.scenar2_rum_dr_code_02	= RSS_scenar2_rum_dr_code_02_GUI.text
						currentRecordItem.scenar2_rum_dr_code_03	= RSS_scenar2_rum_dr_code_03_GUI.text
						currentRecordItem.scenar2_rum_dr_code_04	= RSS_scenar2_rum_dr_code_04_GUI.text
						currentRecordItem.scenar2_rum_dr_code_05	= RSS_scenar2_rum_dr_code_05_GUI.text
						currentRecordItem.scenar2_rum_dr_code_06	= RSS_scenar2_rum_dr_code_06_GUI.text
						currentRecordItem.scenar2_rum_dr_code_07	= RSS_scenar2_rum_dr_code_07_GUI.text
						currentRecordItem.scenar2_rum_dr_code_08	= RSS_scenar2_rum_dr_code_08_GUI.text
						currentRecordItem.scenar2_rum_dr_code_09	= RSS_scenar2_rum_dr_code_09_GUI.text
						currentRecordItem.scenar2_rum_dr_code_10	= RSS_scenar2_rum_dr_code_10_GUI.text
						currentRecordItem.scenar2_rum_da_code_01	= RSS_scenar2_rum_da_code_01_GUI.text
						currentRecordItem.scenar2_rum_da_code_02	= RSS_scenar2_rum_da_code_02_GUI.text
						currentRecordItem.scenar2_rum_da_code_03	= RSS_scenar2_rum_da_code_03_GUI.text
						currentRecordItem.scenar2_rum_da_code_04	= RSS_scenar2_rum_da_code_04_GUI.text
						currentRecordItem.scenar2_rum_da_code_05	= RSS_scenar2_rum_da_code_05_GUI.text
						currentRecordItem.scenar2_rum_da_code_06	= RSS_scenar2_rum_da_code_06_GUI.text
						currentRecordItem.scenar2_rum_da_code_07	= RSS_scenar2_rum_da_code_07_GUI.text
						currentRecordItem.scenar2_rum_da_code_08	= RSS_scenar2_rum_da_code_08_GUI.text
						currentRecordItem.scenar2_rum_da_code_09	= RSS_scenar2_rum_da_code_09_GUI.text
						currentRecordItem.scenar2_rum_da_code_10	= RSS_scenar2_rum_da_code_10_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_01	= RSS_scenar2_rum_ccam_code_01_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_02	= RSS_scenar2_rum_ccam_code_02_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_03	= RSS_scenar2_rum_ccam_code_03_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_04	= RSS_scenar2_rum_ccam_code_04_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_05	= RSS_scenar2_rum_ccam_code_05_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_06	= RSS_scenar2_rum_ccam_code_06_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_07	= RSS_scenar2_rum_ccam_code_07_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_08	= RSS_scenar2_rum_ccam_code_08_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_09	= RSS_scenar2_rum_ccam_code_09_GUI.text
						currentRecordItem.scenar2_rum_ccam_code_10	= RSS_scenar2_rum_ccam_code_10_GUI.text

						currentRecordItem.scenar2_dp_code   		= resultatService.RECORD[0].@scenar2_dp_code
						currentRecordItem.scenar2_dp_texte  		= resultatService.RECORD[0].@scenar2_dp_texte
						currentRecordItem.scenar2_ghm_code  		= resultatService.RECORD[0].@scenar2_ghm_code
						currentRecordItem.scenar2_ghm_texte 		= resultatService.RECORD[0].@scenar2_ghm_texte
						currentRecordItem.scenar2_ghs_code  		= resultatService.RECORD[0].@scenar2_ghs_code
						currentRecordItem.scenar2_montant_total 	= resultatService.RECORD[0].@scenar2_montant_total
						currentRecordItem.scenar2_ghs_montant_total = resultatService.RECORD[0].@scenar2_ghs_montant_total
						currentRecordItem.scenar2_exh_montant_total = resultatService.RECORD[0].@scenar2_exh_montant_total
						currentRecordItem.scenar2_exb_montant_total = resultatService.RECORD[0].@scenar2_exb_montant_total
						
						currentRecordItem.control_rule 				= RSS_control_rule_GUI.selectedItem.data
						currentRecordItem.control_comment			= RSS_control_comment_GUI.text
						currentRecordItem.control_rum_dp_code_01	= RSS_control_rum_dp_code_01_GUI.text
						currentRecordItem.control_rum_dp_code_02	= RSS_control_rum_dp_code_02_GUI.text
						currentRecordItem.control_rum_dp_code_03	= RSS_control_rum_dp_code_03_GUI.text
						currentRecordItem.control_rum_dp_code_04	= RSS_control_rum_dp_code_04_GUI.text
						currentRecordItem.control_rum_dp_code_05	= RSS_control_rum_dp_code_05_GUI.text
						currentRecordItem.control_rum_dp_code_06	= RSS_control_rum_dp_code_06_GUI.text
						currentRecordItem.control_rum_dp_code_07	= RSS_control_rum_dp_code_07_GUI.text
						currentRecordItem.control_rum_dp_code_08	= RSS_control_rum_dp_code_08_GUI.text
						currentRecordItem.control_rum_dp_code_09	= RSS_control_rum_dp_code_09_GUI.text
						currentRecordItem.control_rum_dp_code_10	= RSS_control_rum_dp_code_10_GUI.text
						currentRecordItem.control_rum_dr_code_01	= RSS_control_rum_dr_code_01_GUI.text
						currentRecordItem.control_rum_dr_code_02	= RSS_control_rum_dr_code_02_GUI.text
						currentRecordItem.control_rum_dr_code_03	= RSS_control_rum_dr_code_03_GUI.text
						currentRecordItem.control_rum_dr_code_04	= RSS_control_rum_dr_code_04_GUI.text
						currentRecordItem.control_rum_dr_code_05	= RSS_control_rum_dr_code_05_GUI.text
						currentRecordItem.control_rum_dr_code_06	= RSS_control_rum_dr_code_06_GUI.text
						currentRecordItem.control_rum_dr_code_07	= RSS_control_rum_dr_code_07_GUI.text
						currentRecordItem.control_rum_dr_code_08	= RSS_control_rum_dr_code_08_GUI.text
						currentRecordItem.control_rum_dr_code_09	= RSS_control_rum_dr_code_09_GUI.text
						currentRecordItem.control_rum_dr_code_10	= RSS_control_rum_dr_code_10_GUI.text
						currentRecordItem.control_rum_da_code_01	= RSS_control_rum_da_code_01_GUI.text
						currentRecordItem.control_rum_da_code_02	= RSS_control_rum_da_code_02_GUI.text
						currentRecordItem.control_rum_da_code_03	= RSS_control_rum_da_code_03_GUI.text
						currentRecordItem.control_rum_da_code_04	= RSS_control_rum_da_code_04_GUI.text
						currentRecordItem.control_rum_da_code_05	= RSS_control_rum_da_code_05_GUI.text
						currentRecordItem.control_rum_da_code_06	= RSS_control_rum_da_code_06_GUI.text
						currentRecordItem.control_rum_da_code_07	= RSS_control_rum_da_code_07_GUI.text
						currentRecordItem.control_rum_da_code_08	= RSS_control_rum_da_code_08_GUI.text
						currentRecordItem.control_rum_da_code_09	= RSS_control_rum_da_code_09_GUI.text
						currentRecordItem.control_rum_da_code_10	= RSS_control_rum_da_code_10_GUI.text
						currentRecordItem.control_rum_ccam_code_01	= RSS_control_rum_ccam_code_01_GUI.text
						currentRecordItem.control_rum_ccam_code_02	= RSS_control_rum_ccam_code_02_GUI.text
						currentRecordItem.control_rum_ccam_code_03	= RSS_control_rum_ccam_code_03_GUI.text
						currentRecordItem.control_rum_ccam_code_04	= RSS_control_rum_ccam_code_04_GUI.text
						currentRecordItem.control_rum_ccam_code_05	= RSS_control_rum_ccam_code_05_GUI.text
						currentRecordItem.control_rum_ccam_code_06	= RSS_control_rum_ccam_code_06_GUI.text
						currentRecordItem.control_rum_ccam_code_07	= RSS_control_rum_ccam_code_07_GUI.text
						currentRecordItem.control_rum_ccam_code_08	= RSS_control_rum_ccam_code_08_GUI.text
						currentRecordItem.control_rum_ccam_code_09	= RSS_control_rum_ccam_code_09_GUI.text
						currentRecordItem.control_rum_ccam_code_10	= RSS_control_rum_ccam_code_10_GUI.text

						currentRecordItem.control_dp_code   		= resultatService.RECORD[0].@control_dp_code
						currentRecordItem.control_dp_texte  		= resultatService.RECORD[0].@control_dp_texte
						currentRecordItem.control_ghm_code  		= resultatService.RECORD[0].@control_ghm_code
						currentRecordItem.control_ghm_texte 		= resultatService.RECORD[0].@control_ghm_texte
						currentRecordItem.control_ghs_code  		= resultatService.RECORD[0].@control_ghs_code
						currentRecordItem.control_montant_total 	= resultatService.RECORD[0].@control_montant_total
						currentRecordItem.control_ghs_montant_total = resultatService.RECORD[0].@control_ghs_montant_total
						currentRecordItem.control_exh_montant_total = resultatService.RECORD[0].@control_exh_montant_total
						currentRecordItem.control_exb_montant_total = resultatService.RECORD[0].@control_exb_montant_total
						
						currentRecordItem.retenu_rule 				= RSS_retenu_rule_GUI.selectedItem.data
						currentRecordItem.retenu_comment			= RSS_retenu_comment_GUI.text
						currentRecordItem.retenu_rum_dp_code_01		= RSS_retenu_rum_dp_code_01_GUI.text
						currentRecordItem.retenu_rum_dp_code_02		= RSS_retenu_rum_dp_code_02_GUI.text
						currentRecordItem.retenu_rum_dp_code_03		= RSS_retenu_rum_dp_code_03_GUI.text
						currentRecordItem.retenu_rum_dp_code_04		= RSS_retenu_rum_dp_code_04_GUI.text
						currentRecordItem.retenu_rum_dp_code_05		= RSS_retenu_rum_dp_code_05_GUI.text
						currentRecordItem.retenu_rum_dp_code_06		= RSS_retenu_rum_dp_code_06_GUI.text
						currentRecordItem.retenu_rum_dp_code_07		= RSS_retenu_rum_dp_code_07_GUI.text
						currentRecordItem.retenu_rum_dp_code_08		= RSS_retenu_rum_dp_code_08_GUI.text
						currentRecordItem.retenu_rum_dp_code_09		= RSS_retenu_rum_dp_code_09_GUI.text
						currentRecordItem.retenu_rum_dp_code_10		= RSS_retenu_rum_dp_code_10_GUI.text
						currentRecordItem.retenu_rum_dr_code_01		= RSS_retenu_rum_dr_code_01_GUI.text
						currentRecordItem.retenu_rum_dr_code_02		= RSS_retenu_rum_dr_code_02_GUI.text
						currentRecordItem.retenu_rum_dr_code_03		= RSS_retenu_rum_dr_code_03_GUI.text
						currentRecordItem.retenu_rum_dr_code_04		= RSS_retenu_rum_dr_code_04_GUI.text
						currentRecordItem.retenu_rum_dr_code_05		= RSS_retenu_rum_dr_code_05_GUI.text
						currentRecordItem.retenu_rum_dr_code_06		= RSS_retenu_rum_dr_code_06_GUI.text
						currentRecordItem.retenu_rum_dr_code_07		= RSS_retenu_rum_dr_code_07_GUI.text
						currentRecordItem.retenu_rum_dr_code_08		= RSS_retenu_rum_dr_code_08_GUI.text
						currentRecordItem.retenu_rum_dr_code_09		= RSS_retenu_rum_dr_code_09_GUI.text
						currentRecordItem.retenu_rum_dr_code_10		= RSS_retenu_rum_dr_code_10_GUI.text
						currentRecordItem.retenu_rum_da_code_01		= RSS_retenu_rum_da_code_01_GUI.text
						currentRecordItem.retenu_rum_da_code_02		= RSS_retenu_rum_da_code_02_GUI.text
						currentRecordItem.retenu_rum_da_code_03		= RSS_retenu_rum_da_code_03_GUI.text
						currentRecordItem.retenu_rum_da_code_04		= RSS_retenu_rum_da_code_04_GUI.text
						currentRecordItem.retenu_rum_da_code_05		= RSS_retenu_rum_da_code_05_GUI.text
						currentRecordItem.retenu_rum_da_code_06		= RSS_retenu_rum_da_code_06_GUI.text
						currentRecordItem.retenu_rum_da_code_07		= RSS_retenu_rum_da_code_07_GUI.text
						currentRecordItem.retenu_rum_da_code_08		= RSS_retenu_rum_da_code_08_GUI.text
						currentRecordItem.retenu_rum_da_code_09		= RSS_retenu_rum_da_code_09_GUI.text
						currentRecordItem.retenu_rum_da_code_10		= RSS_retenu_rum_da_code_10_GUI.text
						currentRecordItem.retenu_rum_ccam_code_01	= RSS_retenu_rum_ccam_code_01_GUI.text
						currentRecordItem.retenu_rum_ccam_code_02	= RSS_retenu_rum_ccam_code_02_GUI.text
						currentRecordItem.retenu_rum_ccam_code_03	= RSS_retenu_rum_ccam_code_03_GUI.text
						currentRecordItem.retenu_rum_ccam_code_04	= RSS_retenu_rum_ccam_code_04_GUI.text
						currentRecordItem.retenu_rum_ccam_code_05	= RSS_retenu_rum_ccam_code_05_GUI.text
						currentRecordItem.retenu_rum_ccam_code_06	= RSS_retenu_rum_ccam_code_06_GUI.text
						currentRecordItem.retenu_rum_ccam_code_07	= RSS_retenu_rum_ccam_code_07_GUI.text
						currentRecordItem.retenu_rum_ccam_code_08	= RSS_retenu_rum_ccam_code_08_GUI.text
						currentRecordItem.retenu_rum_ccam_code_09	= RSS_retenu_rum_ccam_code_09_GUI.text
						currentRecordItem.retenu_rum_ccam_code_10	= RSS_retenu_rum_ccam_code_10_GUI.text
	
						currentRecordItem.retenu_dp_code   			= resultatService.RECORD[0].@retenu_dp_code
						currentRecordItem.retenu_dp_texte  			= resultatService.RECORD[0].@retenu_dp_texte
						currentRecordItem.retenu_ghm_code  			= resultatService.RECORD[0].@retenu_ghm_code
						currentRecordItem.retenu_ghm_texte 			= resultatService.RECORD[0].@retenu_ghm_texte
						currentRecordItem.retenu_ghs_code  			= resultatService.RECORD[0].@retenu_ghs_code
						currentRecordItem.retenu_montant_total 		= resultatService.RECORD[0].@retenu_montant_total
						currentRecordItem.retenu_ghs_montant_total 	= resultatService.RECORD[0].@retenu_ghs_montant_total
						currentRecordItem.retenu_exh_montant_total 	= resultatService.RECORD[0].@retenu_exh_montant_total
						currentRecordItem.retenu_exb_montant_total 	= resultatService.RECORD[0].@retenu_exb_montant_total
						
						// Champs calcules
						list_collection_set_display()
						fulllist_collection_set()
						fulllist_collection_setTotal()
						
						list_collection.refresh()
						footer_collection.refresh()
						
						showDetail()
						
						recordUpdated = false;
					}
				}
			}
			
			
			public function print():void {
				
				var printReport:CTI_Print = new CTI_Print();
				
				if (printReport.start("PMSI_Fiche5Manager", titlePrint) == false) {
					return;
				}
				
				printReport.addDataGrid(list_GUI);
				
				printReport.print();
			}
			
			
			public function exportExcel():void {
				
				var urlRequest:URLRequest = new URLRequest();
				urlRequest.url = "modules/pmsi/php/PMSI_fiche5Manager_getExcel.php"
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.enquete_id = RSS_enquete_id_GUI.selectedItem.oid
				urlRequest.data = urlVariables
				urlRequest.method = "POST";
				
				navigateToURL(urlRequest, "Fiche5")
				
			}
			
			
			private function setSelectedIndex(cb:Object, str:String):void {
				for (var idx:int = 0, len:int = cb.dataProvider.length; idx < len; idx++){
					if (cb.dataProvider.getItemAt(idx).data == str){
						cb.selectedIndex = idx;
					}
				}
			}
			
			public function dateFormat1(pDate:Date): String {
				var lDf : DateFormatter=new DateFormatter();
				lDf.formatString="DD/MM/YYYY";
				var lDateFormatee : String=lDf.format(pDate); 
				return lDateFormatee;
			}
			
			protected function dateLabelFunction(item:Object,column:DataGridColumn):String  {      
			   if (item.date_effet_autorisation != null && item.date_effet_autorisation != "") {
				   return dateFormat1(new Date(item.date_effet_autorisation.substr(0, 4), Number(item.date_effet_autorisation.substr(5, 2)) - 1, item.date_effet_autorisation.substr(8, 2)));
			   } else {
				   return "";
			   }
		    }
			
			protected function pourcentLabelFunction(item:Object, column:DataGridColumn):String  {    
				var a:String = "";
				switch (column.dataField) {
					case "seuil_degressivite" :
						a = Number(item.seuil_degressivite) + 0 == 0 ? "" : item.seuil_degressivite + " %";
						break;
					case "taux_correction_avant_mars" :
						a = Number(item.taux_correction_avant_mars) + 0 == 0 ? "" : item.taux_correction_avant_mars + " %";
						break;
					case "taux_correction_apres_mars" :
						a = Number(item.taux_correction_apres_mars) + 0 == 0 ? "" : item.taux_correction_apres_mars + " %";
						break;
					default :
						a = "N/A";
				}
				return a;
		    }
			
			protected function numberLabelFunction0(item:Object, column:DataGridColumn):String  {    
				var a:String = CTI_Formatters.numberFormat(Number(item[column.dataField]),'#E')

				return a;
		    }
			protected function numberLabelFunction2(item:Object, column:DataGridColumn):String  {    
				var a:String = CTI_Formatters.numberFormat(Number(item[column.dataField]),'#,00E')

				return a;
		    }
			
			private function RSS_onResizeColumns():void {
				RSS_list_GUI.horizontalScrollPosition = RSS_footer_GUI.horizontalScrollPosition

				var i:int = -1
				for each (var item:DataGridColumn in RSS_list_GUI.columns) {
					i++
					
					RSS_footer_GUI.columns[i].width = RSS_list_GUI.columns[i].width
				}
				
				
			
			}
			
		]]>
	</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()" visible="{currentRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Réafficher" icon="@Embed('../../base/swf/CTI/images/24/view-refresh.png')" labelPlacement="right" click="refreshData()" visible="{currentRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Exporter vers Excel" icon="@Embed('../../base/swf/CTI/images/24/excel.png')" labelPlacement="right" click="exportExcel()" visible="{currentRecordItem == null}" />
				<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 == 'ENQ'}" />
				<mx:Spacer />
				<mx:Button height="28" width="28" toolTip="Aide" icon="@Embed('../../base/swf/CTI/images/24/help.png')" labelPlacement="right" click="application.displayHelp()" visible="{hasHelp}" />
				<mx:Button height="28" width="28" toolTip="A propos" icon="@Embed('../../base/swf/CTI/images/24/information.png')" labelPlacement="right" click="application.showApropos_view()" />
				<mx:Spacer width="100%" />
				<mx:HBox>
					<mx:HBox visible="{tableCode == 'RSS'}" includeInLayout="{tableCode == 'RSS'}" >
						<mx:Label text="Enquête" />
						<mx:ComboBox id="RSS_enquete_id_GUI" width="200" labelField="texte" change="searchChange()"/>
					</mx:HBox>
					<mx:Label text="Champ" />
					<mx:TextArea width="20" height="18" id="searchChamp_GUI" change="searchChange()" />
					<mx:Label text="Uniquement écarts" />
					<mx:CheckBox id="searchEcart_GUI" change="searchChange()" />
					<mx:Label text="Filtre" />
					<mx:TextArea width="100%" height="18" id="searchText_GUI" change="searchChange()" />
				</mx:HBox>
			</mx:HBox>
		</mx:Canvas>
		
		<mx:Canvas width="100%" height="100%" id="mainBox">
			<mx:VDividedBox id="ENQ_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="ENQ_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					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="annee" headerText="Année" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nb_ogc" headerText="OGC" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nb_rss_ok" headerText="RSS OK" width="100" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="nb_rss_ko" headerText="RSS KO" width="100" editable="false" headerWordWrap="true" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="ENQ_detailBox_GUI" width="100%" height="400" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true}" />
						</mx:Canvas>
						
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="200" text="Code" />
						<mx:TextArea width="100" height="18" id="ENQ_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="Texte" />
						<mx:TextArea width="300" height="18" id="ENQ_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="Année" />
						<mx:ComboBox id="ENQ_annee_GUI" width="100" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					
					<mx:HBox width="100%">
						<mx:Label width="200" text="Données(n° OGC et n° RSS)" />
						<mx:Label width="100%" text="Copier depuis Excel les colonnes n° OGC et n° RSS, puis les coller ici" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox width="100%" height="100%">
						<mx:Label width="200" text="" />
						<mx:TextArea width="100%" height="100%" id="ENQ_data_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" includeInLayout="false">
						<mx:Label width="200" text="Oid" />
						<mx:TextArea width="300" height="18" id="ENQ_oid_GUI" change="recordUpdated = true" editable="false" />
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			<mx:VBox id="RSS_mainBox" width="100%" height="100%" visible="false" verticalGap="-15" >
				
				<mx:DataGrid id="RSS_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"
					wordWrap="false" dataProvider="{list_collection}" 
					lockedColumnCount="9"
					resizableColumns="false"
					itemClick="getRecord()" 
					columnStretch="RSS_onResizeColumns()"
					horizontalScrollPolicy="on"
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="no_ogc" headerText="OGC" resizable="false" draggable="false" width="50" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="champ_code" headerText="Champ" resizable="false" draggable="false" width="60" editable="false" headerWordWrap="true" textAlign="center" />
						<mx:DataGridColumn dataField="no_sejour_administratif" headerText="Séjour" resizable="false" draggable="false" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="duree_sejour" headerText="Durée" resizable="false" draggable="false" width="50" editable="false" headerWordWrap="true" />

						<mx:DataGridColumn dataField="facture_ghm_code" headerText="GHM      Facturé" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="facture_montant_total" headerText="Montant Facturé" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						
						<mx:DataGridColumn dataField="initial_dp_code" headerText="DP       Initial" resizable="false" draggable="false" width="60" editable="false" headerWordWrap="true" textAlign="center" >
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="initial_ghm_code" headerText="GHM      Initial" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center" >
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="{data.initial_ghm_fontweight}"
										textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="initial_montant_total_ecart" headerText="Ecart  Initial" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"
							labelFunction="numberLabelFunction0"> 
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						

						<mx:DataGridColumn dataField="scenar1_ghm_code" headerText="GHM      Optimiste" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"   
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="{data.scenar1_ghm_fontweight}" textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="scenar1_montant_total_ecart" headerText="Ecart  Optimiste" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="scenar2_ghm_code" headerText="GHM      Pessimiste" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"   
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="{data.scenar2_ghm_fontweight}" textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="scenar2_montant_total_ecart" headerText="Ecart  Pessimiste" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						
						<mx:DataGridColumn dataField="control_ghm_code" headerText="GHM      Contrôleur" width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="{data.control_ghm_fontweight}" textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="control_montant_total_ecart" headerText="Ecart  Contrôleur" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right" />
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="retenu_ghm_code" headerText="GHM      Final" width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"   
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="{data.retenu_ghm_fontweight}" textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="retenu_montant_total_ecart" headerText="Ecart     Final" resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right" />
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="status_texte" headerText="Etat" resizable="false" draggable="false" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="filler" minWidth="10" headerText=""/>
					</mx:columns>
				</mx:DataGrid>
				<mx:DataGrid id="RSS_footer_GUI" rowHeight="20" 
					headerHeight="5"
					rowCount="{footer_collection.length + 1}" 
					resizableColumns="false"
					sortableColumns="false"
					height="{30 + footer_collection.length*20}" 
					width="100%"
					wordWrap="false" dataProvider="{footer_collection}" 
					lockedColumnCount="9"
					horizontalScrollPolicy="on"
					scroll="RSS_onResizeColumns()"
					selectable="false">
					<mx:columns>
						<mx:DataGridColumn dataField="no_ogc" headerText=" " resizable="false" draggable="false" width="50" editable="false" headerWordWrap="true" >
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="left"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="champ_code" headerText=" " resizable="false" draggable="false" width="60" editable="false" headerWordWrap="true" textAlign="center" />
						<mx:DataGridColumn dataField="no_sejour_administratif" headerText=" " resizable="false" draggable="false" width="80" editable="false" headerWordWrap="true" >
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>	
						<mx:DataGridColumn dataField="duree_sejour" headerText=" " resizable="false" draggable="false" width="50" editable="false" headerWordWrap="true" />

						<mx:DataGridColumn dataField="facture_ghm_code" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							backgroundColor="haloSilver">
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="facture_montant_total" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						
						<mx:DataGridColumn dataField="initial_dp_code" headerText=" " resizable="false" draggable="false" width="60" editable="false" headerWordWrap="true" textAlign="left" >
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="initial_ghm_code" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="left" >
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="initial_montant_total_ecart" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="right"
							labelFunction="numberLabelFunction0"> 
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						

						<mx:DataGridColumn dataField="scenar1_ghm_code" headerText=" " width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"   
							backgroundColor="haloSilver">
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="scenar1_montant_total_ecart" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="scenar2_ghm_code" headerText=" " width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"   
							>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="scenar2_montant_total_ecart" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right"/>
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						
						<mx:DataGridColumn dataField="control_ghm_code" headerText=" " width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"  
							backgroundColor="haloSilver">
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="control_montant_total_ecart" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"  
							backgroundColor="haloSilver">
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right" />
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>

						<mx:DataGridColumn dataField="retenu_ghm_code" headerText=" " width="85" resizable="false" draggable="false" editable="false" headerWordWrap="true" textAlign="center"   
							>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="retenu_montant_total_ecart" headerText=" " resizable="false" draggable="false" width="85" editable="false" headerWordWrap="true" textAlign="center"  
							labelFunction="numberLabelFunction0"
							>
							<mx:itemRenderer>
								<mx:Component >
									<mx:Label width="100%" 
										fontWeight="bold"
										textAlign="right" />
								</mx:Component>
							</mx:itemRenderer>
						</mx:DataGridColumn>
						<mx:DataGridColumn dataField="status_texte" headerText=" " resizable="false" draggable="false" width="80" editable="false" headerWordWrap="true" />
						<mx:DataGridColumn dataField="filler" minWidth="10" headerText=""/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="RSS_detailBox_GUI" width="100%" height="450" visible="false" includeInLayout="false" backgroundColor="0xF0F0F0"
					horizontalScrollPolicy="off" verticalScrollPolicy="off">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true}" />
						</mx:Canvas>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="200" text="OGC / RSS / Séjour" />
						<mx:TextArea width="50" height="18" id="RSS_no_ogc_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
						<mx:TextArea width="100" height="18" id="RSS_no_rss_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
						<mx:TextArea width="100" height="18" id="RSS_no_sejour_administratif_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
						<mx:Spacer width="100" />
						<mx:Label text="Etat" />
						<mx:ComboBox id="RSS_status_GUI" dataProvider="{RSS_status_provider}" 
									change="recordUpdated = true" />
					</mx:HBox>
					<mx:TabNavigator width="100%" height="100%" tabWidth="150">
						<mx:VBox label="Dossier" width="100%" height="100%" >
							<mx:HBox width="100%">
								<mx:Label width="200" text="Champ" />
								<mx:TextArea width="100%" height="18" id="RSS_champ_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Matricule" />
								<mx:TextArea width="100" height="18" id="RSS_matricule_assure_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:TextArea width="30" height="18" id="RSS_cle_matricule_assure_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="IPP" />
								<mx:TextArea width="100" height="18" id="RSS_no_patient_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Nom" />
								<mx:TextArea width="300" height="18" id="RSS_nom_complet_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Date naissance" />
								<mx:TextArea width="100" height="18" id="RSS_date_naissance_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="N° Facture" />
								<mx:TextArea width="100" height="18" id="RSS_no_facture_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Caisse" />
								<mx:TextArea width="300" height="18" id="RSS_regime_caisse_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Dates entrée/sortie" />
								<mx:TextArea width="100" height="18" id="RSS_date_entree_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:TextArea width="100" height="18" id="RSS_date_sortie_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label text="  durée" />
								<mx:TextArea width="50" height="18" id="RSS_duree_sejour_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							
							<mx:HBox>
								<mx:Label width="200" text="Taux remboursement" />
								<mx:TextArea width="50" height="18" id="RSS_taux_remboursement_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label text="  VIDHOSP" />
								<mx:TextArea width="50" height="18" id="RSS_taux_remboursement_vidhosp_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Majoration parcours de soins" />
								<mx:TextArea width="100" height="18" id="RSS_montant_majoration_parcours_soins_GUI" textAlign="right" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Ticket modérateur" />
								<mx:TextArea width="100" height="18" id="RSS_montant_ticket_moderateur_GUI" textAlign="right" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="200" text="Forfait journalier nb/montant" />
								<mx:TextArea width="30" height="18" id="RSS_nombre_forfait_journalier_GUI" textAlign="right" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label text="/" />
								<mx:TextArea width="70" height="18" id="RSS_montant_forfait_journalier_GUI" textAlign="right" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
		
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="150" text="Texte" />
								<mx:TextArea width="300" height="18" id="RSS_texte_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox visible="false" includeInLayout="false">
								<mx:Label width="150" text="Oid" />
								<mx:TextArea width="300" height="18" id="RSS_oid_GUI" change="recordUpdated = true" editable="false" />
							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Synthèse" width="100%" height="100%">
							<mx:HBox>
								<mx:DataGrid id="RSS_scenario_GUI" rowHeight="20" headerHeight="40"
									rowCount="6" height="100%" width="100%"
									wordWrap="false" dataProvider="{RSS_scenario_collection}" 
									fontFamily="tahoma">
									<mx:columns>
										<mx:DataGridColumn dataField="texte" headerText="Scénario" width="200" editable="false" headerWordWrap="true" >
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="ghm_texte" headerText="GHM" width="400" editable="false" headerWordWrap="true" >
											<mx:itemRenderer>
												<mx:Component >
													<mx:Label width="100%" text="{data.ghm_texte}" 
														fontWeight="{data.ghm_fontweight}"/>
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="ghs_code" headerText="GHS" width="100" editable="false" headerWordWrap="true" textAlign="left" >
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="montant_total" headerText="Montant Total" width="100" editable="false" headerWordWrap="true" textAlign="right" 
											labelFunction="numberLabelFunction2">
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="ghs_montant_total" headerText="Montant GHS" width="100" editable="false" headerWordWrap="true" textAlign="right" 
											labelFunction="numberLabelFunction2">
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="exb_montant_total" headerText="Montant EXB" width="100" editable="false" headerWordWrap="true" textAlign="right" 
											labelFunction="numberLabelFunction2">
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="exh_montant_total" headerText="Montant EXH" width="100" editable="false" headerWordWrap="true" textAlign="right" 
											labelFunction="numberLabelFunction2">
										</mx:DataGridColumn>
										<mx:DataGridColumn dataField="montant_total_ecart" headerText="Ecart" width="100" editable="false" headerWordWrap="true" textAlign="right" 
											labelFunction="numberLabelFunction2">
											<mx:itemRenderer>
												<mx:Component >
													<mx:Label width="100%" 
														fontWeight="bold"/>
												</mx:Component>
											</mx:itemRenderer>
										</mx:DataGridColumn>
									</mx:columns>
								</mx:DataGrid>
							</mx:HBox>
						</mx:VBox>
						<mx:VBox label="Facturation" width="100%" height="100%">
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="DP" />
								<mx:TextArea width="100%" height="18" id="RSS_facture_dp_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="GHM" />
								<mx:TextArea width="100%" height="18" id="RSS_facture_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="GHS" />
								<mx:TextArea width="50" height="18" id="RSS_facture_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_facture_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_facture_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_facture_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_facture_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_facture_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_facture_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_facture_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_facture_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
						</mx:VBox>
						
						<mx:VBox label="Groupage initial" width="100%" height="100%">
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="DP" />
								<mx:TextArea width="100%" height="18" id="RSS_initial_dp_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="GHM" />
								<mx:TextArea width="100%" height="18" id="RSS_initial_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="GHS" />
								<mx:TextArea width="50" height="18" id="RSS_initial_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" >
								<mx:Label width="100" text="RUM 1" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_01_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_02_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_02_GUI.text != ''}">
								<mx:Label width="100" text="RUM 2" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_02_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_03_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_03_GUI.text != ''}">
								<mx:Label width="100" text="RUM 3" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_03_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_04_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_04_GUI.text != ''}">
								<mx:Label width="100" text="RUM 4" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_04_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_05_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_05_GUI.text != ''}">
								<mx:Label width="100" text="RUM 5" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_05_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_06_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_06_GUI.text != ''}">
								<mx:Label width="100" text="RUM 6" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_06_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_07_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_07_GUI.text != ''}">
								<mx:Label width="100" text="RUM 7" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_07_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_08_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_08_GUI.text != ''}">
								<mx:Label width="100" text="RUM 8" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_08_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_09_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_09_GUI.text != ''}">
								<mx:Label width="100" text="RUM 9" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_09_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_rum_um_code_10_GUI.text != ''}" 
								includeInLayout="{ RSS_initial_rum_um_code_10_GUI.text != ''}">
								<mx:Label width="100" text="RUM 10" />
								<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_initial_rum_um_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dp_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_initial_rum_dr_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_initial_rum_da_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
								<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_initial_rum_ccam_code_10_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_initial_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_initial_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_initial_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_initial_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_initial_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_initial_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_initial_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
						</mx:VBox>
						
						<mx:VBox label="Précontrôle optimiste" width="100%" height="100%">
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Règle" />
								<mx:ComboBox id="RSS_scenar1_rule_GUI" dataProvider="{RSS_scenar1_rule_provider}" 
									change="recordUpdated = true" />
								<mx:Label width="100" text="Commentaire" />
								<mx:TextArea width="100%" height="54" id="RSS_scenar1_comment_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							
							<mx:VBox width="100%"
								visible="{RSS_scenar1_rule_GUI.selectedItem.data == 'GHS'}"
								includeInLayout="{RSS_scenar1_rule_GUI.selectedItem.data == 'GHS'}">

								<mx:HBox width="100%">
									<mx:Label width="100" text="DP" />
									<mx:TextArea width="100%" height="18" id="RSS_scenar1_dp_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="100" text="GHM" />
									<mx:TextArea width="100%" height="18" id="RSS_scenar1_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="40" text="GHS" />
									<mx:TextArea width="50" height="18" id="RSS_scenar1_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								
								<mx:VBox width="100%" height="100%" >
									<mx:HBox width="100%" >
										<mx:Label width="100" text="RUM 1" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_01_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_02_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_02_GUI.text != ''}">
										<mx:Label width="100" text="RUM 2" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_02_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_03_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_03_GUI.text != ''}">
										<mx:Label width="100" text="RUM 3" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_03_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_04_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_04_GUI.text != ''}">
										<mx:Label width="100" text="RUM 4" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_04_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_05_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_05_GUI.text != ''}">
										<mx:Label width="100" text="RUM 5" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_05_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_06_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_06_GUI.text != ''}">
										<mx:Label width="100" text="RUM 6" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_06_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_07_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_07_GUI.text != ''}">
										<mx:Label width="100" text="RUM 7" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_07_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_08_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_08_GUI.text != ''}">
										<mx:Label width="100" text="RUM 8" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_08_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_09_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_09_GUI.text != ''}">
										<mx:Label width="100" text="RUM 9" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_09_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
									<mx:HBox width="100%" 
										visible="{RSS_scenar1_rum_um_code_10_GUI.text != ''}" 
										includeInLayout="{ RSS_scenar1_rum_um_code_10_GUI.text != ''}">
										<mx:Label width="100" text="RUM 10" />
										<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar1_rum_um_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
										<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dp_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar1_rum_dr_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar1_rum_da_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
										<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar1_rum_ccam_code_10_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
								</mx:VBox>
							</mx:VBox>
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar1_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar1_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_scenar1_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_scenar1_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar1_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_scenar1_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_scenar1_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar1_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							
						</mx:VBox>
						
						<mx:VBox label="Précontrôle pessimiste" width="100%" height="100%">
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Règle" />
								<mx:ComboBox id="RSS_scenar2_rule_GUI" dataProvider="{RSS_scenar2_rule_provider}" change="recordUpdated = true" />
								<mx:Label width="100" text="Commentaire" />
								<mx:TextArea width="100%" height="54" id="RSS_scenar2_comment_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							
							<mx:VBox width="100%"
								visible="{RSS_scenar2_rule_GUI.selectedItem.data == '' || RSS_scenar2_rule_GUI.selectedItem.data == 'GHS'}"
								includeInLayout="{RSS_scenar2_rule_GUI.selectedItem.data == '' || RSS_scenar2_rule_GUI.selectedItem.data == 'GHS'}">
							
								<mx:HBox>
									<mx:Label width="100" text="DP" />
									<mx:TextArea width="70" height="18" id="RSS_scenar2_dp_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="100" text="GHM" />
									<mx:TextArea width="100%" height="18" id="RSS_scenar2_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="40" text="GHS" />
									<mx:TextArea width="50" height="18" id="RSS_scenar2_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
						
								<mx:HBox width="100%" >
									<mx:Label width="100" text="RUM 1" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_01_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_02_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_02_GUI.text != ''}">
									<mx:Label width="100" text="RUM 2" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_02_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_03_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_03_GUI.text != ''}">
									<mx:Label width="100" text="RUM 3" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_03_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_04_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_04_GUI.text != ''}">
									<mx:Label width="100" text="RUM 4" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_04_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_05_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_05_GUI.text != ''}">
									<mx:Label width="100" text="RUM 5" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_05_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_06_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_06_GUI.text != ''}">
									<mx:Label width="100" text="RUM 6" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_06_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_07_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_07_GUI.text != ''}">
									<mx:Label width="100" text="RUM 7" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_07_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_08_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_08_GUI.text != ''}">
									<mx:Label width="100" text="RUM 8" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_08_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_09_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_09_GUI.text != ''}">
									<mx:Label width="100" text="RUM 9" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_09_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_scenar2_rum_um_code_10_GUI.text != ''}" 
									includeInLayout="{ RSS_scenar2_rum_um_code_10_GUI.text != ''}">
									<mx:Label width="100" text="RUM 10" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_scenar2_rum_um_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dp_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_scenar2_rum_dr_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_scenar2_rum_da_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_scenar2_rum_ccam_code_10_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
							</mx:VBox>
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar2_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar2_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_scenar2_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_scenar2_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar2_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_scenar2_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_scenar2_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_scenar2_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							
							
						</mx:VBox>
						
						<mx:VBox label="Médecin Contrôleur" width="100%" height="100%">
							<mx:HBox width="100%">
								<mx:Label width="100" text="Règle" />
								<mx:ComboBox id="RSS_control_rule_GUI" dataProvider="{RSS_control_rule_provider}" change="recordUpdated = true" />
								<mx:Label width="100" text="Commentaire" />
								<mx:TextArea width="100%" height="54" id="RSS_control_comment_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							
							<mx:VBox width="100%"
								visible="{RSS_control_rule_GUI.selectedItem.data == '' || RSS_control_rule_GUI.selectedItem.data == 'GHS'}"
								includeInLayout="{RSS_control_rule_GUI.selectedItem.data == '' || RSS_control_rule_GUI.selectedItem.data == 'GHS'}">
								<mx:HBox>
									<mx:Label width="100" text="DP" />
									<mx:TextArea width="70" height="18" id="RSS_control_dp_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="100" text="GHM" />
									<mx:TextArea width="100%" height="18" id="RSS_control_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="40" text="GHS" />
									<mx:TextArea width="50" height="18" id="RSS_control_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								
								<mx:HBox width="100%" >
									<mx:Label width="100" text="RUM 1" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_01_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
									</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_02_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_02_GUI.text != ''}">
									<mx:Label width="100" text="RUM 2" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_02_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_03_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_03_GUI.text != ''}">
									<mx:Label width="100" text="RUM 3" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_03_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_04_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_04_GUI.text != ''}">
									<mx:Label width="100" text="RUM 4" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_04_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_05_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_05_GUI.text != ''}">
									<mx:Label width="100" text="RUM 5" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_05_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_06_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_06_GUI.text != ''}">
									<mx:Label width="100" text="RUM 6" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_06_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_07_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_07_GUI.text != ''}">
									<mx:Label width="100" text="RUM 7" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_07_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_08_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_08_GUI.text != ''}">
									<mx:Label width="100" text="RUM 8" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_08_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_09_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_09_GUI.text != ''}">
									<mx:Label width="100" text="RUM 9" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_09_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_control_rum_um_code_10_GUI.text != ''}" 
									includeInLayout="{ RSS_control_rum_um_code_10_GUI.text != ''}">
									<mx:Label width="100" text="RUM 10" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_control_rum_um_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dp_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_control_rum_dr_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_control_rum_da_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_control_rum_ccam_code_10_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
							</mx:VBox>
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_control_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_control_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_control_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_control_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_control_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_control_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_control_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_control_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							
							
						</mx:VBox>
						
						<mx:VBox label="Concertation finale" width="100%" height="100%">
							<mx:HBox width="100%">
								<mx:Label width="100" text="Règle" />
								<mx:ComboBox id="RSS_retenu_rule_GUI" dataProvider="{RSS_retenu_rule_provider}" change="recordUpdated = true" />
								<mx:Label width="100" text="Commentaire" />
								<mx:TextArea width="100%" height="54" id="RSS_retenu_comment_GUI" change="recordUpdated = true" fontWeight="bold" />
							</mx:HBox>
							
							<mx:VBox width="100%"
								visible="{RSS_retenu_rule_GUI.selectedItem.data == '' || RSS_retenu_rule_GUI.selectedItem.data == 'GHS'}"
								includeInLayout="{RSS_retenu_rule_GUI.selectedItem.data == '' || RSS_retenu_rule_GUI.selectedItem.data == 'GHS'}">
									
								<mx:HBox>
									<mx:Label width="100" text="DP" />
									<mx:TextArea width="70" height="18" id="RSS_retenu_dp_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								<mx:HBox width="100%">
									<mx:Label width="100" text="GHM" />
									<mx:TextArea width="100%" height="18" id="RSS_retenu_ghm_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="40" text="GHS" />
									<mx:TextArea width="50" height="18" id="RSS_retenu_ghs_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
								</mx:HBox>
								
								<mx:HBox width="100%" >
									<mx:Label width="100" text="RUM 1" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_01_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_01_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_02_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_02_GUI.text != ''}">
									<mx:Label width="100" text="RUM 2" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_02_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_02_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_03_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_03_GUI.text != ''}">
									<mx:Label width="100" text="RUM 3" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_03_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_03_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_04_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_04_GUI.text != ''}">
									<mx:Label width="100" text="RUM 4" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_04_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_04_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_05_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_05_GUI.text != ''}">
									<mx:Label width="100" text="RUM 5" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_05_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_05_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_06_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_06_GUI.text != ''}">
									<mx:Label width="100" text="RUM 6" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_06_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_06_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_07_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_07_GUI.text != ''}">
									<mx:Label width="100" text="RUM 7" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_07_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_07_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_08_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_08_GUI.text != ''}">
									<mx:Label width="100" text="RUM 8" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_08_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_08_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_09_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_09_GUI.text != ''}">
									<mx:Label width="100" text="RUM 9" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_09_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_09_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
								<mx:HBox width="100%" 
									visible="{RSS_retenu_rum_um_code_10_GUI.text != ''}" 
									includeInLayout="{ RSS_retenu_rum_um_code_10_GUI.text != ''}">
									<mx:Label width="100" text="RUM 10" />
									<mx:Label width="25" text="UM" /><mx:TextArea width="60" height="18"   	   id="RSS_retenu_rum_um_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="false" />
									<mx:Label width="25" text="DP" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dp_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DR" /><mx:TextArea width="70" height="18"   	   id="RSS_retenu_rum_dr_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="25" text="DA" /><mx:TextArea width="100%" height="54" 	   id="RSS_retenu_rum_da_code_10_GUI"   change="recordUpdated = true" fontWeight="bold" editable="true" />
									<mx:Label width="40" text="CCAM" /><mx:TextArea width="100%" height="54" id="RSS_retenu_rum_ccam_code_10_GUI" change="recordUpdated = true" fontWeight="bold" editable="true" />
								</mx:HBox>
							</mx:VBox>
							
							<mx:HBox width="100%">
								<mx:Label width="100" text="Facturation" fontWeight="bold" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_retenu_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%">
								<mx:Label width="100" text="  Dont GHS" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_retenu_ghs_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_retenu_exb_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_retenu_exb_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXB" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_retenu_exb_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							<mx:HBox width="100%" 
								visible="{RSS_retenu_exh_montant_total_GUI.text != ''}"
								includeInLayout="{RSS_retenu_exh_montant_total_GUI.text != ''}"
								>
								<mx:Label width="100" text="  Dont EXH" />
								<mx:TextArea textAlign="right" width="100" height="18" id="RSS_retenu_exh_montant_total_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
							</mx:HBox>
							
							
						</mx:VBox>
					</mx:TabNavigator>
				</mx:VBox>

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