<?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 mx.controls.Alert;
			import mx.collections.XMLListCollection;
			import mx.events.CloseEvent
			import mx.utils.ObjectUtil
			
			import CTI.technique.CTI_Utilitaires;
			import CTI.technique.CTI_ExcelUtilitaires;
			import CTI.print.CTI_Print;
			import CTI.technique.CTI_ExcelUtilitaires;
			import CTI.technique.CTI_PDFUtilitaires;
			import CTI.technique.CTI_ArrayCollection;
			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.png")]
            public static var question_class:Class;
			

			[Bindable]
			public var title:String = "Tables Comptabilité";
			public var titlePrint:String = "Tables Comptabilité";
			
			
			private var getOption:String;
			
			[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 recordUpdated:Boolean = false;
			
			[Bindable]
			private var addRecordEnabled:Boolean = false;
			private var addRecordBase:Object;
			
			[Bindable]
			private var currendRecordItem:Object = null;
			
			[Bindable]
            private var SIT_clinique_honoraire_Provider: Array = [ {label:"Clinique", data:"C"}, {label:"Honoraire", data:"H"} ];
			
			[Bindable]
            private var AJU_clinique_honoraire_Provider: Array = [ {label:"Clinique", data:"C"}, {label:"Honoraire", data:"H"} ];
			
			[Bindable]
            private var AJU_est_balance_Provider: Array = [ {label:"Ecritures", data:""}, {label:"Balance mensuelle", data:"M"}, {label:"Balance exercice", data:"X"} ];
			
			[Bindable]
            private var AJU_debit_credit_Provider:Array = [ {label:"Débit", data:"D"}, {label:"Crédit", data:"C"} ];
			
			[Bindable]
			private var AJU_compte_numero_Provider:CTI_ArrayCollection = new CTI_ArrayCollection();
			
			[Bindable]
            private var BUD_exercice_comptable_Provider: Array = [ {label:"2014", data:"2014"}, {label:"2015", data:"2015"}, {label:"2016", data:"2016"}, {label:"2017", data:"2017"}, {label:"2018", data:"2018"}, {label:"2019", data:"2019"} , {label:"2020", data:"2020"} , {label:"2021", data:"2021"}, {label:"2022", data:"2022"}  ];
			
			
			
			public function creationComplete():void {
			
				if (application.currentHelpFile != "") {
					hasHelp = true;
				}
				
				if (application.name == "CTI") {
				}
				if (application.name == "CTI_1") {
					GUI_titleBar.height = 0
				}
				
				viewName = application.currentViewName
				tableCode = application.currentSwfData
				
				if (tableCode == "SIT") {
					tableName = "t_sites";
					title = "Gestion Sites"
					titlePrint = "Sites"
					list_GUI = SIT_list_GUI
					detailBox_GUI = SIT_detailBox_GUI
					texte_GUI = SIT_texte_GUI
					SIT_mainBox.visible = true;
				}
				
				if (tableCode == "JRN") {
					tableName = "t_journaux";
					title = "Gestion Journaux"
					titlePrint = "Journaux"
					list_GUI = JRN_list_GUI
					detailBox_GUI = JRN_detailBox_GUI
					texte_GUI = JRN_texte_GUI
					JRN_mainBox.visible = true;
				}
				
				if (tableCode == "TCO") {
					tableName = "t_types_compta";
					title = "Gestion Types de comptabilité"
					titlePrint = "Types de comptabilité"
					list_GUI = TCO_list_GUI
					detailBox_GUI = TCO_detailBox_GUI
					texte_GUI = TCO_texte_GUI
					TCO_mainBox.visible = true;
				}
				
				if (tableCode == "CLS") {
					tableName = "t_classes_comptes";
					title = "Gestion classes de comptes"
					titlePrint = "Classes de comptes"
					list_GUI = CLS_list_GUI
					detailBox_GUI = CLS_detailBox_GUI
					texte_GUI = CLS_texte_GUI
					CLS_mainBox.visible = true;
				}
				
				if (tableCode == "CPT") {
					tableName = "t_comptes";
					title = "Gestion Comptes"
					titlePrint = "Comptes"
					list_GUI = CPT_list_GUI
					detailBox_GUI = CPT_detailBox_GUI
					texte_GUI = CPT_texte_GUI
					CPT_mainBox.visible = true;
				}
				
				if (tableCode == "CPX") {
					tableName = "t_comptes_extra";
					title = "Gestion Comptes auxiliaires"
					titlePrint = "Comptes auxiliaires"
					list_GUI = CPX_list_GUI
					detailBox_GUI = CPX_detailBox_GUI
					texte_GUI = CPX_texte_GUI
					CPX_mainBox.visible = true;
				}
				
				if (tableCode == "PAR") {
					tableName = "t_partenaires";
					title = "Gestion Partenaires"
					titlePrint = "Partenaires"
					list_GUI = PAR_list_GUI
					detailBox_GUI = PAR_detailBox_GUI
					texte_GUI = PAR_texte_GUI
					PAR_mainBox.visible = true;
				}
				
				if (tableCode == "AJU") {
					tableName = "t_ecritures_ajustement";
					title = "Ecritures d'ajustement"
					titlePrint = "Ecritures d'ajustement"
					list_GUI = AJU_list_GUI
					detailBox_GUI = AJU_detailBox_GUI
					texte_GUI = AJU_texte_GUI
					AJU_mainBox.visible = true;
				}
				
				if (tableCode == "BUD") {
					tableName = "t_budget";
					title = "Gestion Budget"
					titlePrint = "Budget"
					list_GUI = BUD_list_GUI
					detailBox_GUI = BUD_detailBox_GUI
					texte_GUI = BUD_texte_GUI
					BUD_mainBox.visible = true;
				}

                if (tableCode == "DIV") {
                    tableName = "t_divers";
                    title = "Éléments divers";
                    titlePrint = "Divers";
                    list_GUI = DIV_list_GUI;
                    detailBox_GUI = DIV_detailBox_GUI;
                    texte_GUI = DIV_texte_GUI;
                    DIV_mainBox.visible = true;
                }
				
				getOption = "initialize";
				
				getData()
			}
			
			public function eventDispatcher(eventCode:String):Boolean {
				return true
			}
			
			public function getData():void {
			
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.getOption = getOption;
				
				if (getOption == "initialize") {
					addRecordEnabled = false;
				}

				CTI_Utilitaires.startRequestHTTP("modules/compta/php/COMPTA_getTableRecords.php",urlVariables,exec,true)
							
				function exec(resultatService:XML):void {
				
					if (list_collection != null) {
						list_collection.filterFunction = null
						list_collection.refresh()
					}
					
					
					list_collection.loadXMLList(resultatService.RECORD);
					
					if (tableCode == "CPT") {
					
						if (getOption == "initialize") {
							CPT_type_compta_extra_GUI.dataProvider = new CTI_ArrayCollection()
							CPT_type_compta_extra_GUI.dataProvider.loadXMLList(resultatService.COMBO_TYPECOMPTA.RECORD)
						}
						
					}
                    
                    if (tableCode == "SIT") {
					
						if (getOption == "initialize") {
							SIT_finess_id_GUI.dataProvider = new CTI_ArrayCollection()
							SIT_finess_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_FINESS.RECORD)
						}
						
					}
					
					if (tableCode == "AJU") {
					
						if (getOption == "initialize") {
						
							AJU_mois_comptable_GUI.dataProvider = new CTI_ArrayCollection()
							AJU_mois_comptable_GUI.dataProvider.loadXMLList(resultatService.COMBO_MOIS.RECORD)
							
							AJU_site_id_GUI.dataProvider = new CTI_ArrayCollection()
							AJU_site_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SITE.RECORD)
							AJU_site_id_GUI.dataProvider.filterFunction = AJU_site_id_Filter
							
							AJU_journal_code_GUI.dataProvider = new CTI_ArrayCollection()
							AJU_journal_code_GUI.dataProvider.loadXMLList(resultatService.COMBO_JOURNAL.RECORD)
							AJU_journal_code_GUI.dataProvider.filterFunction = AJU_journal_code_Filter
							
							AJU_section_code_GUI.dataProvider = new CTI_ArrayCollection()
							AJU_section_code_GUI.dataProvider.loadXMLList(resultatService.COMBO_SECTION.RECORD)

							AJU_compte_numero_Provider = new CTI_ArrayCollection()
							AJU_compte_numero_Provider.loadXMLList(resultatService.COMBO_COMPTE.RECORD)
							
						}
						if (AJU_site_id_GUI.dataProvider != null) {
							AJU_site_id_GUI.dataProvider.filterFunction = AJU_site_id_Filter
						}
						if (AJU_journal_code_GUI.dataProvider != null) {
							AJU_journal_code_GUI.dataProvider.filterFunction = AJU_journal_code_Filter
						}
						if (AJU_compte_numero_Provider != null) {
							AJU_compte_numero_Provider.filterFunction = AJU_compte_numero_Filter
						}
						AJU_compte_numero_Provider.filterFunction = AJU_compte_numero_Filter
					}
					
					if (tableCode == "BUD") {
					
						if (getOption == "initialize") {
							BUD_site_id_GUI.dataProvider = new CTI_ArrayCollection()
							BUD_site_id_GUI.dataProvider.loadXMLList(resultatService.COMBO_SITE.RECORD)
							BUD_site_id_GUI.dataProvider.filterFunction = BUD_site_id_Filter
						}
						if (BUD_site_id_GUI.dataProvider != null) {
							BUD_site_id_GUI.dataProvider.filterFunction = BUD_site_id_Filter
						}
						
					}
					
					
					
					if (getOption == "initialize") {
						addRecordEnabled = false;
						
						var waddRecordsBase:CTI_ArrayCollection = new CTI_ArrayCollection();
						waddRecordsBase.loadXMLList(resultatService.ADDRECORD);

						for each (var item:Object in waddRecordsBase) {
							addRecordBase = item
							addRecordEnabled = true;
						}
					}

					
					
					searchChange()
					
					getOption = "refresh";
					setTimeout(setBuildComplete, 1000);
										
				}
				
			}
			
			private function setBuildComplete():void {
				buildComplete = true;
			}
					
			private function resize():void {
				
				
			}
			
			private function searchChange():void {
			
				if (list_collection.filterFunction == null) {
					list_collection.filterFunction = filterFunction
				}

				list_collection.refresh()
			}

			// Filter function 
			public function filterFunction(item:Object):Boolean 
			{ 
				var result:Boolean = true; 
				
				
				
				if (Number(item.oid) >= 0) {
				
					if (textSearch_GUI.text != "") {
						result = false
						
						for each (var attributeName:String in list_collection.attributesArray) {
							if (item[attributeName].toString().toUpperCase().indexOf(textSearch_GUI.text.toUpperCase()) >= 0) {
								result=true; 
								break;
							}
						}
						
					}
					
					if (result == true) {
						if (refSearch_GUI.selected == true) {
							if (item.hasOwnProperty("nbref")) {
								if (Number(item.nbref.toString()) <= 0) {
									if (item.hasOwnProperty("nbref2")) {
										if (Number(item.nbref.toString()) <= 0) {
											result = false;
										}
									}
									else {
										result = false;
									}	
								}
							}

						}
					}
				}
				
				
				return result; 
			} 
			
			// Filter function 
			public function AJU_site_id_Filter(item:Object):Boolean 
			{ 
				var result:Boolean = true; 
				
				if (AJU_clinique_honoraire_GUI.selectedIndex < 1) {
					if (item.c != "1") {
						result = false
					}	
				}
				else {
					if (item.h != "1") {
						result = false
					}	
				}
				
				
				return result; 
			} 
			
			
			// Filter function 
			public function AJU_journal_code_Filter(item:Object):Boolean 
			{ 
				var result:Boolean = true; 
				
				if (AJU_clinique_honoraire_GUI.selectedIndex < 1) {
					if (item.c != "1") {
						result = false
					}	
				}
				else {
					if (item.h != "1") {
						result = false
					}	
				}
				
				
				return result; 
			} 
			
			public function AJU_compte_numero_Filter(item:Object):Boolean 
			{ 
				var result:Boolean = true; 
				
				if (AJU_clinique_honoraire_GUI.selectedIndex < 1) {
					if (item.c != "1") {
						result = false
					}	
				}
				else {
					if (item.h != "1") {
						result = false
					}	
				}
				
				
				return result; 
			} 
			
			public function AJU_clinique_honoraire_Change():void {
			
				AJU_site_id_GUI.dataProvider.refresh();
				AJU_site_id_GUI.selectedIndex = 0
				
				AJU_journal_code_GUI.dataProvider.refresh();
				AJU_journal_code_GUI.selectedIndex = 0
				
				AJU_compte_numero_Provider.refresh();
				
				AJU_compte_texte_GUI.text = "";
				var compte_item:Object = AJU_compte_numero_Provider.search("oid",AJU_compte_numero_GUI.text)
				if (compte_item != null) {
					AJU_compte_texte_GUI.text = compte_item.texte
				}
				
				recordUpdated = true
			}
			
			public function AJU_compte_numero_Change():void {
				
				AJU_compte_texte_GUI.text = "";
				
				var compte_item:Object = AJU_compte_numero_Provider.search("oid",AJU_compte_numero_GUI.text)
				if (compte_item != null) {
					AJU_compte_texte_GUI.text = compte_item.texte
				}

				
				recordUpdated = true
			}
			
			
			// Filter function 
			public function BUD_site_id_Filter(item:Object):Boolean 
			{ 
				var result:Boolean = true; 
				
				if (item.c != "1") {
					result = false
				}	

				
				return result; 
			} 

			
			public function getRecord():void {
				if (recordUpdated == true) {
					return;
				}
			
				if (list_GUI.selectedIndex < 0) {
					return;
				}
				
				currendRecordItem = list_GUI.selectedItem as Object
				
				showDetail()
			}
			
			public function addRecord():void {
				if (recordUpdated == true) {
					return;
				}

				currendRecordItem = ObjectUtil.copy(addRecordBase)
				
				showDetail()
			}
			
			public function showDetail():void {
				var i:Number
				var item:Object
				
				if (currendRecordItem == null) {
					return;
				}
				
				list_GUI.selectedIndex = -1
					
				
				if (tableCode == "SIT") {
					SIT_oid_GUI.text = currendRecordItem.oid.toString();
					SIT_nbref_GUI.text = currendRecordItem.nbref.toString();
					SIT_code_GUI.text = currendRecordItem.code.toString();
					SIT_texte_GUI.text = currendRecordItem.texte.toString();
					SIT_code_original_GUI.text = currendRecordItem.code_original.toString();
					SIT_clinique_honoraire_GUI.selectedIndex = 0;
					if (currendRecordItem.clinique_honoraire.toString() == "H") {
						SIT_clinique_honoraire_GUI.selectedIndex = 1;
					}
                    SIT_finess_id_GUI.selectedIndex = 0;
					i = -1;
					for each (item in SIT_finess_id_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.finess_id.toString()) {
							SIT_finess_id_GUI.selectedIndex = i;
						}
					}
				}
				
				if (tableCode == "JRN") {
					JRN_oid_GUI.text = currendRecordItem.oid.toString();
					JRN_nbref_GUI.text = currendRecordItem.nbref.toString();
					JRN_code_GUI.text = currendRecordItem.code.toString();
					JRN_texte_GUI.text = currendRecordItem.texte.toString();
					JRN_code_original_GUI.text = currendRecordItem.code_original.toString();
					JRN_clinique_honoraire_GUI.text = currendRecordItem.clinique_honoraire.toString();
					if (currendRecordItem.clinique_honoraire.toString() == "C") {
						JRN_clinique_honoraire_GUI.text = "CLINIQUE"
					}
					if (currendRecordItem.clinique_honoraire.toString() == "H") {
						JRN_clinique_honoraire_GUI.text = "HONORAIRE"
					}
					if (currendRecordItem.a_nouveaux.toString() == "1") {
						JRN_a_nouveaux_GUI.selected = true
					}
					else {
						JRN_a_nouveaux_GUI.selected = false
					}
				}
				
				if (tableCode == "TCO") {
					TCO_oid_GUI.text = currendRecordItem.oid.toString();
					TCO_nbref_GUI.text = currendRecordItem.nbref.toString();
					TCO_code_GUI.text = currendRecordItem.code.toString();
					TCO_texte_GUI.text = currendRecordItem.texte.toString();
					TCO_code_original_GUI.text = currendRecordItem.code_original.toString();
				}
				
				if (tableCode == "CLS") {
					CLS_oid_GUI.text = currendRecordItem.oid.toString();
					CLS_nbref_GUI.text = currendRecordItem.nbref.toString();
					CLS_code_GUI.text = currendRecordItem.code.toString();
					CLS_texte_GUI.text = currendRecordItem.texte.toString();
					if (currendRecordItem.clinique.toString() == "1") {
						CLS_clinique_honoraire_GUI.text = "CLINIQUE"
						if (currendRecordItem.honoraire.toString() == "1") {
							CLS_clinique_honoraire_GUI.text = CLS_clinique_honoraire_GUI.text + " et HONORAIRE"
						}
					}
					else {
						if (currendRecordItem.honoraire.toString() == "1") {
							CLS_clinique_honoraire_GUI.text =  "HONORAIRE"
						}
					}
				}
				
				if (tableCode == "CPT") {
					CPT_detailTab.selectedIndex = 0
					
					CPT_oid_GUI.text = currendRecordItem.oid.toString();
					CPT_nbref_GUI.text = currendRecordItem.nbref.toString();
					CPT_numero_GUI.text = currendRecordItem.numero.toString();
					CPT_texte_GUI.text = currendRecordItem.texte.toString();
					CPT_clinique_honoraire_GUI.text = currendRecordItem.clinique_honoraire.toString();
					if (currendRecordItem.clinique_honoraire.toString() == "C") {
						CPT_clinique_honoraire_GUI.text = "CLINIQUE"
					}
					if (currendRecordItem.clinique_honoraire.toString() == "H") {
						CPT_clinique_honoraire_GUI.text = "HONORAIRE"
					}
					if (currendRecordItem.banque.toString() == "1") {
						CPT_banque_GUI.selected = true
					}
					else {
						CPT_banque_GUI.selected = false
					}
					CPT_solde_initial_GUI.text = currendRecordItem.solde_initial.toString();
					if (currendRecordItem.inter_site.toString() == "1") {
						CPT_inter_site_GUI.selected = true
					}
					else {
						CPT_inter_site_GUI.selected = false
					}
					
					if (currendRecordItem.collectif.toString() == "1") {
						CPT_collectif_GUI.selected = true
					}
					else {
						CPT_collectif_GUI.selected = false
					}
					
					CPT_type_compta_extra_GUI.dataProvider.refresh();
					CPT_type_compta_extra_GUI.selectedIndex = 0;
					i = -1;
					for each (item in CPT_type_compta_extra_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.type_compta_extra_id.toString()) {
							CPT_type_compta_extra_GUI.selectedIndex = i;
						}
					}
					CPT_numero_extra_GUI.text = currendRecordItem.numero_extra.toString();
					CPT_texte_extra_GUI.text = currendRecordItem.texte_extra.toString();
				}
				
				if (tableCode == "CPX") {
					CPX_oid_GUI.text = currendRecordItem.oid.toString();
					CPX_nbref_GUI.text = currendRecordItem.nbref.toString();
					CPX_numero_GUI.text = currendRecordItem.numero.toString();
					CPX_texte_GUI.text = currendRecordItem.texte.toString();
					CPX_clinique_honoraire_GUI.text = currendRecordItem.clinique_honoraire.toString();
					if (currendRecordItem.clinique_honoraire.toString() == "C") {
						CPX_clinique_honoraire_GUI.text = "CLINIQUE"
					}
					if (currendRecordItem.clinique_honoraire.toString() == "H") {
						CPX_clinique_honoraire_GUI.text = "HONORAIRE"
					}
					CPX_type_compta_GUI.text = currendRecordItem.type_compta.toString();
					if (currendRecordItem.inter_site.toString() == "1") {
						CPX_inter_site_GUI.selected = true
					}
					else {
						CPX_inter_site_GUI.selected = false
					}
					
				}
				
				if (tableCode == "PAR") {
					PAR_oid_GUI.text = currendRecordItem.oid.toString();
					PAR_nbref_GUI.text = currendRecordItem.nbref.toString();
					PAR_code_GUI.text = currendRecordItem.code.toString();
					PAR_texte_GUI.text = currendRecordItem.texte.toString();
					PAR_texte_court_GUI.text = currendRecordItem.texte_court.toString();
					PAR_code_original_GUI.text = currendRecordItem.code_original.toString();
					PAR_comptes_GUI.text = currendRecordItem.comptes.toString();
					if (currendRecordItem.intra_groupe.toString() == "1") {
						PAR_intra_groupe_GUI.selected = true
					}
					else {
						PAR_intra_groupe_GUI.selected = false
					}
				}
				
				if (tableCode == "AJU") {
					AJU_oid_GUI.text = currendRecordItem.oid.toString();
					AJU_date_ecriture_GUI.text = currendRecordItem.date_ecriture.toString();
					
					AJU_date_ecriture_label_GUI.text = "";
					if (currendRecordItem.date_ecriture.toString() != "") {
						AJU_date_ecriture_label_GUI.text = "Saisie le " + currendRecordItem.date_ecriture.toString();
					}
					
					AJU_mois_comptable_GUI.selectedIndex = 0;
					i = -1;
					for each (item in AJU_mois_comptable_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.mois_comptable.toString()) {
							AJU_mois_comptable_GUI.selectedIndex = i;
						}
					}
					
					AJU_clinique_honoraire_GUI.selectedIndex = 0;
					if (currendRecordItem.clinique_honoraire.toString() == "H") {
						AJU_clinique_honoraire_GUI.selectedIndex = 1;
					}
					
					AJU_site_id_GUI.dataProvider.refresh();
					
					AJU_site_id_GUI.selectedIndex = 0;
					i = -1;
					for each (item in AJU_site_id_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.site_id.toString()) {
							AJU_site_id_GUI.selectedIndex = i;
						}
					}
					
					AJU_journal_code_GUI.dataProvider.refresh();
					
					AJU_journal_code_GUI.selectedIndex = 0;
					i = -1;
					for each (item in AJU_journal_code_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.journal_code.toString()) {
							AJU_journal_code_GUI.selectedIndex = i;
						}
					}
					
					AJU_section_code_GUI.dataProvider.refresh();
					
					AJU_section_code_GUI.selectedIndex = 0;
					i = -1;
					for each (item in AJU_section_code_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.section_code.toString()) {
							AJU_section_code_GUI.selectedIndex = i;
						}
					}
					
					AJU_compte_numero_GUI.text = currendRecordItem.compte_numero.toString();
					
					AJU_compte_texte_GUI.text = "";
					var compte_item:Object = AJU_compte_numero_Provider.search("oid",AJU_compte_numero_GUI.text)
					if (compte_item != null) {
						AJU_compte_texte_GUI.text = compte_item.texte
					}
					
					
					AJU_texte_GUI.text = currendRecordItem.texte.toString();
					AJU_report_automatique_mois_suivant_GUI.selected = false
					if (currendRecordItem.report_automatique_mois_suivant.toString() == "1") {
						AJU_report_automatique_mois_suivant_GUI.selected = true
					}
					
					AJU_est_import_data_GUI.selected = false
					if (currendRecordItem.est_import_data.toString() == "1") {
						AJU_est_import_data_GUI.selected = true
					}
					AJU_import_data_GUI.text = currendRecordItem.import_data.toString();
					
					AJU_est_balance_GUI.selectedIndex = 0;
					if (currendRecordItem.est_balance.toString() == "M") {
						AJU_est_balance_GUI.selectedIndex = 1;
					}
					if (currendRecordItem.est_balance.toString() == "X") {
						AJU_est_balance_GUI.selectedIndex = 2;
					}

					
					AJU_debit_credit_GUI.selectedIndex = 0;
					AJU_montant_GUI.text = "0";
					
					if (currendRecordItem.montant_credit.toString() == "0") {
						AJU_montant_GUI.text = currendRecordItem.montant_debit.toString();
					}
					else {
						AJU_debit_credit_GUI.selectedIndex = 1;
						AJU_montant_GUI.text = currendRecordItem.montant_credit.toString();
					}
					
					AJU_set_mois_comptables();
					AJU_montant_1_GUI.text = currendRecordItem.montant_ventile_1.toString();
					AJU_montant_2_GUI.text = currendRecordItem.montant_ventile_2.toString();
					AJU_montant_3_GUI.text = currendRecordItem.montant_ventile_3.toString();
					AJU_montant_4_GUI.text = currendRecordItem.montant_ventile_4.toString();
					AJU_montant_5_GUI.text = currendRecordItem.montant_ventile_5.toString();
					AJU_montant_6_GUI.text = currendRecordItem.montant_ventile_6.toString();
					AJU_montant_7_GUI.text = currendRecordItem.montant_ventile_7.toString();
					AJU_montant_8_GUI.text = currendRecordItem.montant_ventile_8.toString();
					AJU_montant_9_GUI.text = currendRecordItem.montant_ventile_9.toString();
					AJU_montant_10_GUI.text = currendRecordItem.montant_ventile_10.toString();
					AJU_montant_11_GUI.text = currendRecordItem.montant_ventile_11.toString();
					AJU_montant_12_GUI.text = currendRecordItem.montant_ventile_12.toString();
					
					AJU_set_montant_ventile_total()

				}
				
				if (tableCode == "BUD") {
					BUD_oid_GUI.text = currendRecordItem.oid.toString();
					BUD_code_GUI.text = currendRecordItem.code.toString();
					BUD_texte_GUI.text = currendRecordItem.texte.toString();
					if (currendRecordItem.is_actif.toString() == "1") {
						BUD_is_actif_GUI.selected = true
					}
					else {
						BUD_is_actif_GUI.selected = false
					}
					BUD_exercice_comptable_GUI.selectedIndex = 0;
					i = -1;
					for each (item in BUD_exercice_comptable_GUI.dataProvider) {
						i++;
						if (item.data == currendRecordItem.exercice_comptable.toString()) {
							BUD_exercice_comptable_GUI.selectedIndex = i;
						}
					}
					
					BUD_site_id_GUI.dataProvider.refresh();
					
					BUD_site_id_GUI.selectedIndex = 0;
					i = -1;
					for each (item in BUD_site_id_GUI.dataProvider) {
						i++;
						if (item.oid == currendRecordItem.site_id.toString()) {
							BUD_site_id_GUI.selectedIndex = i;
						}
					}
					
					BUD_import_data_GUI.text = currendRecordItem.import_data.toString();
				}
				
				if (tableCode == "DIV") {
                    DIV_code_GUI.text = currendRecordItem.code.toString();
                    DIV_texte_GUI.text = currendRecordItem.texte.toString();
                    DIV_valeur_GUI.text = currendRecordItem.valeur.toString();
                    DIV_valeur_date_GUI.text = currendRecordItem.valeur_date.toString();
                    DIV_description_GUI.text = currendRecordItem.description.toString();
                    DIV_show_info_module_GUI.selected = currendRecordItem.show_info_module.toString() == "1";
                }
	
				recordUpdated = false;
				detailBox_GUI.height = 400
			}

			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()
					}
					else {
						 
					}
	            }
				
			
			}
			
			
			
			private function hideRecord():void {

				detailBox_GUI.height = 0
				currendRecordItem = null;
				recordUpdated = false;
			}
			
			
			private function askDelete():void {
			
				
			
				Alert.yesLabel = "OUI";
                Alert.noLabel = "NON";
	            var alert:Alert = Alert.show("Désirez vous vraiment supprimer " + texte_GUI.text + " ?", title, 3, this, alertClickHandler, question_class);
				
				
				
				
	            function alertClickHandler(event:CloseEvent):void {
	                if (event.detail==Alert.YES) {
						deleteRecord()
					}
					else {
						 
					}
	            }
				
			
			}
			
			public function deleteRecord():void {
			
				updateRecord("delete")
			
			}
			
			public function copyRecord():void {
			
				updateRecord("copy")
			
			}
			
			public function saveRecord():void {
			
				updateRecord("save")
				
			
			}
			
			public function updateRecord(action:String):void {
			
				var urlVariables:URLVariables = new URLVariables()
				urlVariables.tableName = tableName;
				urlVariables.action = action;
				var recordNode:XML = new XML(<RECORD />);
				if (tableCode == "SIT") {
					recordNode.@oid = SIT_oid_GUI.text
					recordNode.@code = SIT_code_GUI.text
					recordNode.@texte = SIT_texte_GUI.text
					recordNode.@code_original = SIT_code_original_GUI.text
					recordNode.@clinique_honoraire = SIT_clinique_honoraire_GUI.selectedItem.data
                    recordNode.@finess_id = SIT_finess_id_GUI.selectedItem.oid
				}
				if (tableCode == "JRN") {
					recordNode.@oid = JRN_oid_GUI.text
					recordNode.@code = JRN_code_GUI.text
					recordNode.@texte = JRN_texte_GUI.text
					recordNode.@code_original = JRN_code_original_GUI.text
					recordNode.@clinique_honoraire = JRN_clinique_honoraire_GUI.text.substr(0,1)
					if (JRN_a_nouveaux_GUI.selected == true) {
						recordNode.@a_nouveaux = "1"
					}
					else {
						recordNode.@a_nouveaux = "0"
					}
				}
				if (tableCode == "TCO") {
					recordNode.@oid = TCO_oid_GUI.text
					recordNode.@code = TCO_code_GUI.text
					recordNode.@texte = TCO_texte_GUI.text
					recordNode.@code_original = TCO_code_original_GUI.text
				}
				if (tableCode == "CLS") {
					recordNode.@oid = CLS_oid_GUI.text
					recordNode.@code = CLS_code_GUI.text
					recordNode.@texte = CLS_texte_GUI.text
				}
				
				if (tableCode == "CPT") {
					recordNode.@oid = CPT_oid_GUI.text
					recordNode.@numero = CPT_numero_GUI.text
					recordNode.@texte = CPT_texte_GUI.text
					recordNode.@clinique_honoraire = CPT_clinique_honoraire_GUI.text.substr(0,1)
					if (CPT_banque_GUI.selected == true) {
						recordNode.@banque = "1"
					}
					else {
						recordNode.@banque = "0"
					}
					recordNode.@solde_initial = CPT_solde_initial_GUI.text
					if (CPT_inter_site_GUI.selected == true) {
						recordNode.@inter_site = "1"
					}
					else {
						recordNode.@inter_site = "0"
					}
					recordNode.@inter_site = "0"
					
					if (CPT_collectif_GUI.selected == true) {
						recordNode.@collectif = "1"
					}
					else {
						recordNode.@collectif = "0"
					}
					recordNode.@type_compta_extra_id = CPT_type_compta_extra_GUI.selectedItem.oid
					recordNode.@numero_extra = CPT_numero_extra_GUI.text
					recordNode.@texte_extra = CPT_texte_extra_GUI.text
				}
				
				if (tableCode == "CPX") {
					recordNode.@oid = CPX_oid_GUI.text
					recordNode.@numero = CPX_numero_GUI.text
					recordNode.@texte = CPX_texte_GUI.text
					recordNode.@clinique_honoraire = CPX_clinique_honoraire_GUI.text.substr(0,1)
					recordNode.@banque = "0"
					if (CPX_inter_site_GUI.selected == true) {
						recordNode.@inter_site = "1"
					}
					else {
						recordNode.@inter_site = "0"
					}
					recordNode.@inter_site = "0"
				}
				
				if (tableCode == "PAR") {
					recordNode.@oid = PAR_oid_GUI.text
					recordNode.@code = PAR_code_GUI.text
					recordNode.@texte = PAR_texte_GUI.text
					recordNode.@texte_court = PAR_texte_court_GUI.text
					recordNode.@code_original = PAR_code_original_GUI.text
					if (PAR_intra_groupe_GUI.selected == true) {
						recordNode.@intra_groupe = "1"
					}
					else {
						recordNode.@intra_groupe = "0"
					}
				}
				
				if (tableCode == "AJU") {
					recordNode.@oid = AJU_oid_GUI.text
					recordNode.@date_ecriture = AJU_date_ecriture_GUI.text
					recordNode.@mois_comptable = AJU_mois_comptable_GUI.selectedItem.oid
					recordNode.@site_id = AJU_site_id_GUI.selectedItem.oid
					recordNode.@journal_code = AJU_journal_code_GUI.selectedItem.oid
					recordNode.@section_code = AJU_section_code_GUI.selectedItem.oid
					recordNode.@compte_numero = AJU_compte_numero_GUI.text
					recordNode.@texte = AJU_texte_GUI.text
					recordNode.@report_automatique_mois_suivant = "0"
					if (AJU_report_automatique_mois_suivant_GUI.selected) {
						recordNode.@report_automatique_mois_suivant = "1"
					}
					recordNode.@est_import_data = "0"
					if (AJU_est_import_data_GUI.selected) {
						recordNode.@est_import_data = "1"
					}
					recordNode.@import_data = AJU_import_data_GUI.text
					recordNode.@est_balance = AJU_est_balance_GUI.selectedItem.data
					recordNode.@clinique_honoraire = AJU_clinique_honoraire_GUI.selectedItem.data
					
					recordNode.@montant_debit = "0"
					recordNode.@montant_credit = "0"
					if (AJU_debit_credit_GUI.selectedIndex != 1) {
						recordNode.@montant_debit = AJU_montant_GUI.text
					}
					else {
						recordNode.@montant_credit = AJU_montant_GUI.text
					}
					
					recordNode.@mois_ventile_1 = 0
					recordNode.@mois_ventile_2 = 0
					recordNode.@mois_ventile_3 = 0
					recordNode.@mois_ventile_4 = 0
					recordNode.@mois_ventile_5 = 0
					recordNode.@mois_ventile_6 = 0
					recordNode.@mois_ventile_7 = 0
					recordNode.@mois_ventile_8 = 0
					recordNode.@mois_ventile_9 = 0
					recordNode.@mois_ventile_10 = 0
					recordNode.@mois_ventile_11 = 0
					recordNode.@mois_ventile_12 = 0
					recordNode.@montant_ventile_1 = 0
					recordNode.@montant_ventile_2 = 0
					recordNode.@montant_ventile_3 = 0
					recordNode.@montant_ventile_4 = 0
					recordNode.@montant_ventile_5 = 0
					recordNode.@montant_ventile_6 = 0
					recordNode.@montant_ventile_7 = 0
					recordNode.@montant_ventile_8 = 0
					recordNode.@montant_ventile_9 = 0
					recordNode.@montant_ventile_10 = 0
					recordNode.@montant_ventile_11 = 0
					recordNode.@montant_ventile_12 = 0
					
					var selectedMois:int = AJU_mois_comptable_GUI.selectedIndex
					recordNode.@mois_ventile_1 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_1.toString()
					recordNode.@mois_ventile_2 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_2.toString()
					recordNode.@mois_ventile_3 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_3.toString()
					recordNode.@mois_ventile_4 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_4.toString()
					recordNode.@mois_ventile_5 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_5.toString()
					recordNode.@mois_ventile_6 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_6.toString()
					recordNode.@mois_ventile_7 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_7.toString()
					recordNode.@mois_ventile_8 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_8.toString()
					recordNode.@mois_ventile_9 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_9.toString()
					recordNode.@mois_ventile_10 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_10.toString()
					recordNode.@mois_ventile_11 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_11.toString()
					recordNode.@mois_ventile_12 = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_12.toString()
					
					recordNode.@montant_ventile_1 = AJU_montant_1_GUI.text
					recordNode.@montant_ventile_2 = AJU_montant_2_GUI.text
					recordNode.@montant_ventile_3 = AJU_montant_3_GUI.text
					recordNode.@montant_ventile_4 = AJU_montant_4_GUI.text
					recordNode.@montant_ventile_5 = AJU_montant_5_GUI.text
					recordNode.@montant_ventile_6 = AJU_montant_6_GUI.text
					recordNode.@montant_ventile_7 = AJU_montant_7_GUI.text
					recordNode.@montant_ventile_8 = AJU_montant_8_GUI.text
					recordNode.@montant_ventile_9 = AJU_montant_9_GUI.text
					recordNode.@montant_ventile_10 = AJU_montant_10_GUI.text
					recordNode.@montant_ventile_11 = AJU_montant_11_GUI.text
					recordNode.@montant_ventile_12 = AJU_montant_12_GUI.text

				}
				
				if (tableCode == "BUD") {
					recordNode.@oid = BUD_oid_GUI.text
					recordNode.@code = BUD_code_GUI.text
					recordNode.@texte = BUD_texte_GUI.text
					if (BUD_is_actif_GUI.selected == true) {
						recordNode.@is_actif = "1"
					}
					else {
						recordNode.@is_actif = "0"
					}
					recordNode.@exercice_comptable = BUD_exercice_comptable_GUI.selectedItem.data
					recordNode.@import_data = BUD_import_data_GUI.text
					recordNode.@site_id = BUD_site_id_GUI.selectedItem.oid
				}
				
                if (tableCode == "DIV") {
                    recordNode.@code = DIV_code_GUI.text
                    recordNode.@texte = DIV_texte_GUI.text
                    recordNode.@valeur = DIV_valeur_GUI.text
                    recordNode.@valeur_date = DIV_valeur_date_GUI.text
                    recordNode.@description = DIV_description_GUI.text
                    if (DIV_show_info_module_GUI.selected == true) {
                        recordNode.@show_info_module = "1"
                    } else {
                        recordNode.@show_info_module = "0"
                    }
                }
				
				
				urlVariables.recordNode = recordNode.toXMLString();
				
				CTI_Utilitaires.startRequestHTTP("modules/compta/php/COMPTA_setTableRecord.php",urlVariables,exec,true)
							
				function exec(resultatService:XML):void {
					
					getData()
					
					detailBox_GUI.height = 0
					currendRecordItem = null;
					recordUpdated = false;
				}
				
			
			}
			
			
			public function AJU_mois_comptable_handler():void {
				recordUpdated = true
				AJU_set_mois_comptables()
			}
						
			public function AJU_set_mois_comptables():void {
				AJU_mois_comptable_1_GUI.text = ""
				AJU_mois_comptable_2_GUI.text = ""
				AJU_mois_comptable_3_GUI.text = ""
				AJU_mois_comptable_4_GUI.text = ""
				AJU_mois_comptable_5_GUI.text = ""
				AJU_mois_comptable_6_GUI.text = ""
				AJU_mois_comptable_7_GUI.text = ""
				AJU_mois_comptable_8_GUI.text = ""
				AJU_mois_comptable_9_GUI.text = ""
				AJU_mois_comptable_10_GUI.text = ""
				AJU_mois_comptable_11_GUI.text = ""
				AJU_mois_comptable_12_GUI.text = ""
				
				var selectedMois:int = AJU_mois_comptable_GUI.selectedIndex

				AJU_mois_comptable_1_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_1.toString()
				AJU_mois_comptable_2_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_2.toString()
				AJU_mois_comptable_3_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_3.toString()
				AJU_mois_comptable_4_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_4.toString()
				AJU_mois_comptable_5_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_5.toString()
				AJU_mois_comptable_6_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_6.toString()
				AJU_mois_comptable_7_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_7.toString()
				AJU_mois_comptable_8_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_8.toString()
				AJU_mois_comptable_9_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_9.toString()
				AJU_mois_comptable_10_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_10.toString()
				AJU_mois_comptable_11_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_11.toString()
				AJU_mois_comptable_12_GUI.text = AJU_mois_comptable_GUI.dataProvider[selectedMois].mois_exercice_texte_12.toString()
				
			}
			
			public function AJU_montant_ventile_handler():void {
				AJU_set_montant_ventile_total()
				
				recordUpdated = true
			}
			
			public function AJU_set_montant_ventile_total():void {
				AJU_montant_ventile_GUI.text =
				CTI_Formatters.numberFormat(
				stringToNumber(AJU_montant_1_GUI.text) + 
				stringToNumber(AJU_montant_2_GUI.text) + 
				stringToNumber(AJU_montant_3_GUI.text) + 
				stringToNumber(AJU_montant_4_GUI.text) + 
				stringToNumber(AJU_montant_5_GUI.text) + 
				stringToNumber(AJU_montant_6_GUI.text) + 
				stringToNumber(AJU_montant_7_GUI.text) + 
				stringToNumber(AJU_montant_8_GUI.text) + 
				stringToNumber(AJU_montant_9_GUI.text) + 
				stringToNumber(AJU_montant_10_GUI.text) + 
				stringToNumber(AJU_montant_11_GUI.text) + 
				stringToNumber(AJU_montant_12_GUI.text), "0,00")
			}
			
			
			public function AJU_ventile():void {
				var AJU_montant:Number = stringToNumber(AJU_montant_GUI.text)
				var AJU_montant_x:Number = Math.round(AJU_montant*100/12)/100
				AJU_montant_1_GUI.text = CTI_Formatters.numberFormat(AJU_montant_x, "0,00")
				AJU_montant_2_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_3_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_4_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_5_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_6_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_7_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_8_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_9_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_10_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_11_GUI.text = AJU_montant_1_GUI.text
				AJU_montant_12_GUI.text = CTI_Formatters.numberFormat(AJU_montant - AJU_montant_x*11,"0,00")
				
				AJU_montant_ventile_handler()
			}
			
			
			
			public function print():void {
			
				var printReport:CTI_Print = new CTI_Print()
				
				if (printReport.start("COMPTA_TablesManager", titlePrint) == false) {
					return;
				}
				
				printReport.addDataGrid(list_GUI)
				
				printReport.print();

			}
			
			public function exportExcel():void {
				var xml:XML = new XML(<EXCELEXPORT />)
				
				
				var ongletNode:XML
				var similiTabNode:XML
				var selectionsNode:XML
				var datagridNode:XML
				var columnNode:XML
				var dataNode:XML
				var rowNode:XML
				
				xml.@viewName = this.viewName;
				xml.@title = this.title;
				
				selectionsNode = new XML(<SELECTIONS />)
				selectionsNode.displayText = ""
				
				if (refSearch_GUI.selected == true) {
					selectionsNode.@displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (textSearch_GUI.text != "") {
					selectionsNode.@displayText = selectionsNode.displayText + "(Filtre : " + textSearch_GUI.text + ")  ";
				}
				
				

				xml.appendChild(selectionsNode);
				
				
				ongletNode = new XML(<ONGLET />);
				ongletNode.@excelLabel = tableCode;
				xml.appendChild(ongletNode);
				
				similiTabNode = new XML(<SIMILITAB />);
				similiTabNode.@excelLabel = "Liste";
				ongletNode.appendChild(similiTabNode);
				
				datagridNode = new XML(<DATAGRID />);
				datagridNode.@total = "false";
				ongletNode.appendChild(datagridNode);
				
				for each (var column:DataGridColumn in list_GUI.columns) {
					columnNode = new XML(<COLUMN />);
					columnNode.@dataField = column.dataField;
					columnNode.@headerText = column.headerText;
					columnNode.@type = "Char";
					columnNode.@textAlign = column.getStyle("textAlign");
					datagridNode.appendChild(columnNode);
				}
				
				dataNode = new XML(<DATA />);
				similiTabNode.appendChild(dataNode);
				
				
				for each (var itemNode:Object in list_collection) {
					if (itemNode.oid != "-1") {
						rowNode = new XML(<ROW />)
						var c:int = 0;
						for each (column in list_GUI.columns) {
							c++;
							rowNode.@["c" + c.toString()] = itemNode[column.dataField]
						}
						dataNode.appendChild(rowNode);
					}
				}
						
			
				CTI_ExcelUtilitaires.exportExcel(xml);
			}
			
			public function exportPDF():void {
				var xml:XML = new XML(<PDFEXPORT />)
				
				
				var ongletNode:XML
				var selectionsNode:XML
				var datagridNode:XML
				var columnNode:XML
				var dataNode:XML
				var rowNode:XML
				
				xml.@viewName = this.viewName;
				xml.@title = this.title;
				
				selectionsNode = new XML(<SELECTIONS />)
				selectionsNode.displayText = ""
				
				if (refSearch_GUI.selected == true) {
					selectionsNode.displayText = selectionsNode.displayText + "Uniquement les codes référencés. ";
				}
				if (textSearch_GUI.text != "") {
					selectionsNode.displayText = selectionsNode.displayText + "(Filtre : " + textSearch_GUI.text + ")  ";
				}
				
				

				xml.appendChild(selectionsNode);
				
				
				ongletNode = new XML(<ONGLET />);
				ongletNode.@excelLabel = tableCode;
				xml.appendChild(ongletNode);
				
				datagridNode = new XML(<DATAGRID />);
				datagridNode.@total = "false";
				ongletNode.appendChild(datagridNode);
				
				for each (var column:DataGridColumn in list_GUI.columns) {
					columnNode = new XML(<COLUMN />);
					columnNode.@dataField = column.dataField;
					columnNode.@headerText = column.headerText;
					columnNode.@type = "Char";
					columnNode.@textAlign = column.getStyle("textAlign");
					datagridNode.appendChild(columnNode);
				}
				
				dataNode = new XML(<DATA />);
				ongletNode.appendChild(dataNode);
				
				
				for each (var itemNode:Object in list_collection) {
					if (itemNode.oid != "-1") {
						rowNode = new XML(<ROW />)
						var c:int = 0;
						for each (column in list_GUI.columns) {
							c++;
							rowNode.@["c" + c.toString()] = itemNode[column.dataField]
						}
						dataNode.appendChild(rowNode);
					}
				}
						
			
				CTI_PDFUtilitaires.exportPDF(xml);
				
				xml = null;
			}
			
			public function stringToNumber(fromString:String):Number {
				var wtext:String = fromString.replace(",", ".")
				wtext = wtext.replace(" ", "")
				return Number(wtext)
			}
			
					
									
	
        ]]>
    </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="{currendRecordItem == null}"/>
				
				<mx:Button height="28" width="28" toolTip="Réafficher" icon="@Embed('../../base/swf/CTI/images/24/view-refresh.png')" labelPlacement="right" click="getData()" visible="{currendRecordItem == null}" />
				<mx:Button height="28" width="28" toolTip="Exporter vers Excel" icon="@Embed('../../base/swf/CTI/images/24/excel.png')" labelPlacement="right" click="exportExcel()" visible="{currendRecordItem == null}"/>
				<mx:Spacer />
				<mx:Button height="28" width="28" toolTip="Créer" icon="@Embed('../../base/swf/CTI/images/24/list-add.png')" labelPlacement="right" visible = "{addRecordEnabled == true &amp;&amp; currendRecordItem == null}" click="addRecord()" />
				<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:Label text="Filtre" />
					<mx:TextArea width="100%" height="18" id="textSearch_GUI" change="searchChange()"/>
					<mx:Spacer width="10" />
					<mx:Label text="Référencés Uniquement" />
					<mx:CheckBox id="refSearch_GUI" change="searchChange()"/>
				</mx:HBox>
			</mx:HBox>
		</mx:Canvas>
		
		<mx:Canvas width="100%" height="100%">
		
			<mx:VDividedBox id="SIT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="SIT_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="clinique_honoraire" headerText="C/H" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="finess_texte" headerText="Etablissement" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (écritures)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="SIT_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; SIT_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="SIT_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="SIT_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="SIT_code_original_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
                    <mx:HBox>
						<mx:Label width="150" text="Etablissement" />
						<mx:ComboBox id="SIT_finess_id_GUI"  width="300" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Clinique/Honoraire" />
						<mx:ComboBox id="SIT_clinique_honoraire_GUI"  width="300" dataProvider="{SIT_clinique_honoraire_Provider}" change="recordUpdated = true" />
					</mx:HBox>
			
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="SIT_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="SIT_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="JRN_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="JRN_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="clinique_honoraire" headerText="C/H" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (écritures)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="JRN_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; JRN_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="JRN_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="JRN_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="JRN_code_original_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Clinique/Honoraire" />
						<mx:TextArea width="300" height="18" id="JRN_clinique_honoraire_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="A nouveaux" />
						<mx:CheckBox id="JRN_a_nouveaux_GUI" change="recordUpdated = true" />
					</mx:HBox>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="JRN_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="JRN_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

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

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

				</mx:VBox>

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

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

				</mx:VBox>

			</mx:VDividedBox>
			
			
			
			<mx:VDividedBox id="CPT_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CPT_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="numero" headerText="Compte" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="clinique_honoraire" headerText="C/H" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comment" headerText="Commentaire" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (écritures)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CPT_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; CPT_numero_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Numéro" />
						<mx:TextArea width="100" height="18" id="CPT_numero_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:TabNavigator id="CPT_detailTab" width="100%" height="100%" backgroundColor="0xffffff">
						<mx:VBox label="Général" width="100%" height="100%">
							<mx:HBox>
								<mx:Label width="150" text="Texte" />
								<mx:TextArea width="300" height="18" id="CPT_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Clinique/Honoraire" />
								<mx:TextArea width="300" height="18" id="CPT_clinique_honoraire_GUI" change="recordUpdated = true" editable="false"/>
							</mx:HBox>
							<mx:HBox >
								<mx:Label width="150" text="Compte collectif" />
								<mx:CheckBox id="CPT_collectif_GUI" change="recordUpdated = true" />
							</mx:HBox>
						
							<mx:HBox >
								<mx:Label width="150" text="Compte banque" />
								<mx:CheckBox id="CPT_banque_GUI" change="recordUpdated = true" />
								<mx:Label text="Solde initial" />
								<mx:TextArea width="300" height="18" id="CPT_solde_initial_GUI" change="recordUpdated = true" />
							</mx:HBox>
							<mx:HBox visible="false" height="0">
								<mx:Label width="150" text="Compte inter-site" />
								<mx:CheckBox id="CPT_inter_site_GUI" change="recordUpdated = true" />
							</mx:HBox>
						</mx:VBox>
						
						<mx:VBox label="Collectif (SageX3)" width="100%" height="100%" enabled="{CPT_collectif_GUI.selected == true}">
							<mx:HBox>
								<mx:Label width="150" text="Journal" />
								<mx:ComboBox id="CPT_type_compta_extra_GUI"  width="200" labelField="texte" change="recordUpdated = true" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Numéro auxilliaire" />
								<mx:TextArea width="200" height="18" id="CPT_numero_extra_GUI" change="recordUpdated = true" fontWeight="bold"/>
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="150" text="Texte auxilliaire" />
								<mx:TextArea width="200" height="18" id="CPT_texte_extra_GUI" change="recordUpdated = true" fontWeight="bold"/>
							</mx:HBox>
						</mx:VBox>
					</mx:TabNavigator>
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CPT_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CPT_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="CPX_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="CPX_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="numero" headerText="Compte" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="clinique_honoraire" headerText="C/H" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="type_compta" headerText="Type comptabilité" width="200"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comment" headerText="Commentaire" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (écritures)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="CPX_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; CPX_numero_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Numéro" />
						<mx:TextArea width="100" height="18" id="CPX_numero_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="CPX_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Type comptabilité" />
						<mx:TextArea width="300" height="18" id="CPX_type_compta_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Clinique/Honoraire" />
						<mx:TextArea width="300" height="18" id="CPX_clinique_honoraire_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					
					<mx:HBox  visible="false" height="0">
						<mx:Label width="150" text="Compte inter-site" />
						<mx:CheckBox id="CPX_inter_site_GUI" change="recordUpdated = true" />
					</mx:HBox>
					
					
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="CPX_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="CPX_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="PAR_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="PAR_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="code_original" headerText="Code original" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comptes" headerText="Comptes" width="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comment" headerText="Commentaire" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="nbref" headerText="Nombre Références (écritures)" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="PAR_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; PAR_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="150" text="Code" />
						<mx:TextArea width="100" height="18" id="PAR_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte" />
						<mx:TextArea width="300" height="18" id="PAR_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="150" text="Texte abrégé" />
						<mx:TextArea width="300" height="18" id="PAR_texte_court_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Comptes" />
						<mx:TextArea width="300" height="54" id="PAR_comptes_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Code original" />
						<mx:TextArea width="300" height="18" id="PAR_code_original_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="150" text="Partenaire du groupe" />
						<mx:CheckBox id="PAR_intra_groupe_GUI" change="recordUpdated = true" />
					</mx:HBox>
				
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="300" height="18" id="PAR_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					<mx:HBox visible="false" height="0">
						<mx:Label width="150" text="Nombre références" />
						<mx:TextArea width="300" height="18" id="PAR_nbref_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="AJU_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="AJU_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="300"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="date_ecriture" headerText="Date saisie" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="mois_comptable" headerText="Mois" width="60"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="clinique_honoraire" headerText="C/H" width="60"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="journal_code" headerText="Journal" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="compte_numero" headerText="Compte" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="montant_debit" headerText="Débit" width="200"  editable="false" headerWordWrap="true" textAlign="right"/>
						<mx:DataGridColumn dataField="montant_credit" headerText="Crédit" width="200"  editable="false" headerWordWrap="true" textAlign="right"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="AJU_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; (AJU_compte_texte_GUI.text != '' || (AJU_est_import_data_GUI.selected == true &amp;&amp; AJU_import_data_GUI.text != '') )}" />
							<mx:HBox>
								<mx:Button height="28" label="Copier" toolTip="Copier l'écriture" icon="@Embed('../../base/swf/CTI/images/copy24.png')" labelPlacement="right" click="copyRecord()" visible="{recordUpdated == false &amp;&amp; AJU_oid_GUI.text != '-1'}" />
								<mx:Button height="28" label="Supprimer" toolTip="Supprimer l'écriture" icon="@Embed('../../base/swf/CTI/images/delete24.png')" labelPlacement="right" click="askDelete()" visible="{recordUpdated == false &amp;&amp; AJU_oid_GUI.text != '-1'}" />
							</mx:HBox>
						</mx:Canvas>
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="120" text="Import tableur" />
						<mx:CheckBox id="AJU_est_import_data_GUI" change="recordUpdated = true" />
						<mx:ComboBox id="AJU_est_balance_GUI" dataProvider="{AJU_est_balance_Provider}" change="recordUpdated = true"
							visible="{AJU_est_import_data_GUI.selected == true}"
							includeInLayout="{AJU_est_import_data_GUI.selected == true}"/>
					</mx:HBox>

					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Mois comptable" />
						<mx:ComboBox id="AJU_mois_comptable_GUI"  width="200" labelField="texte" change="AJU_mois_comptable_handler()" />
						<mx:Label width="200" height="18" id="AJU_date_ecriture_label_GUI" />
						<mx:TextArea width="10" height="18" id="AJU_date_ecriture_GUI" change="recordUpdated = true" visible="false" fontWeight="bold" editable="false"  />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="120" text="Site" />
						<mx:ComboBox id="AJU_site_id_GUI"  width="200" labelField="texte" change="recordUpdated = true" />
						<mx:ComboBox id="AJU_clinique_honoraire_GUI" dataProvider="{AJU_clinique_honoraire_Provider}" change="AJU_clinique_honoraire_Change()" />
					</mx:HBox>
					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Journal" />
						<mx:ComboBox id="AJU_journal_code_GUI"  width="200" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Compte" />
						<mx:TextArea width="100" height="18" id="AJU_compte_numero_GUI" change="AJU_compte_numero_Change()" fontWeight="bold"/>
						<mx:TextArea width="200" height="18" id="AJU_compte_texte_GUI" fontWeight="bold"  editable="false"/>
					</mx:HBox>
					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Section" />
						<mx:ComboBox id="AJU_section_code_GUI"  width="200" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox width="100%" >
						<mx:Label width="120" text="Texte" />
						<mx:TextArea width="100%" height="36" id="AJU_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Montant" />
						<mx:ComboBox id="AJU_debit_credit_GUI" dataProvider="{AJU_debit_credit_Provider}" change="recordUpdated = true" />
						<mx:TextArea width="100" height="18" id="AJU_montant_GUI"  change="recordUpdated = true" fontWeight="bold" />
						<mx:Button height="28" label="Ventiler" toolTip="Ventiler mois par mois" icon="@Embed('../../base/swf/CTI/images/24/preferences-desktop.png')" labelPlacement="right" click="AJU_ventile()" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="120" text="Report automatique (mois suivant)" />
						<mx:CheckBox id="AJU_report_automatique_mois_suivant_GUI" change="recordUpdated = true" />
					</mx:HBox>
					
					<mx:HBox
						visible="{AJU_est_import_data_GUI.selected == false}"
						includeInLayout="{AJU_est_import_data_GUI.selected == false}">
						<mx:Label width="120" text="Ventilation" />
						<mx:VBox>
							<mx:HBox>
								<mx:Label width="100" height="18" id="AJU_mois_comptable_1_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_1_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_2_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_2_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_3_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_3_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_4_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_4_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="100" height="18" id="AJU_mois_comptable_5_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_5_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_6_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_6_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_7_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_7_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_8_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_8_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
							</mx:HBox>
							<mx:HBox>
								<mx:Label width="100" height="18" id="AJU_mois_comptable_9_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_9_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_10_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_10_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_11_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_11_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
								<mx:Label width="100" height="18" id="AJU_mois_comptable_12_GUI" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_12_GUI"  change="AJU_montant_ventile_handler()" fontWeight="bold" />
							</mx:HBox>
							<mx:Spacer />
							<mx:HBox>
								<mx:Label width="100" height="18" text="TOTAL" fontWeight="bold" />
								<mx:TextArea width="100" height="18" id="AJU_montant_ventile_GUI" editable="false" fontWeight="bold" />
							</mx:HBox>
						</mx:VBox>
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%"
						visible="{AJU_est_import_data_GUI.selected == true}"
						includeInLayout="{AJU_est_import_data_GUI.selected == true}">
						<mx:Label width="120" text="Coller les données ici" />
						<mx:TextArea width="100%" height="100%" id="AJU_import_data_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					
					<mx:HBox visible="false" includeInLayout="false" height="0">
						<mx:Label width="150" text="Oid" />
						<mx:TextArea width="100" height="18" id="AJU_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>
					

				</mx:VBox>

			</mx:VDividedBox>
			
			
			<mx:VDividedBox id="BUD_mainBox" width="100%" height="100%" visible="false">
				
				<mx:DataGrid id="BUD_list_GUI" rowHeight="20" headerHeight="40"
					rowCount="{list_collection.length + 1}" height="100%" width="100%"  
					wordWrap="false" dataProvider="{list_collection}" 
					fontFamily="tahoma"
					itemClick="getRecord()" 
					selectable="{!recordUpdated}">
					<mx:columns>
						<mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
						<mx:DataGridColumn dataField="comment" headerText="Commentaire" width="100"  editable="false" headerWordWrap="true"/>
					</mx:columns>
				</mx:DataGrid>
				
			
				<mx:VBox id="BUD_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
					<mx:HBox>
						<mx:Canvas>
							<mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
							<mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
						</mx:Canvas>
						<mx:Canvas>
							<mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true &amp;&amp; BUD_code_GUI.text != ''}" />
							
						</mx:Canvas>
						
					</mx:HBox>
					
					
					<mx:HBox>
						<mx:Label width="120" text="Code" />
						<mx:TextArea width="100" height="18" id="BUD_code_GUI" change="recordUpdated = true" fontWeight="bold" />
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="120" text="Texte" />
						<mx:TextArea width="300" height="18" id="BUD_texte_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
					<mx:HBox>
						<mx:Label width="120" text="Site" />
						<mx:ComboBox id="BUD_site_id_GUI"  width="200" labelField="texte" change="recordUpdated = true" />
					</mx:HBox>
					<mx:HBox >
						<mx:Label width="120" text="Actif ?" />
						<mx:CheckBox id="BUD_is_actif_GUI" change="recordUpdated = true" />
					</mx:HBox>
					
					<mx:HBox>
						<mx:Label width="120" text="Exercice" />
						<mx:ComboBox id="BUD_exercice_comptable_GUI" dataProvider="{BUD_exercice_comptable_Provider}" width="200" labelField="label" change="recordUpdated = true" />
					</mx:HBox>
					
					<mx:HBox width="100%" height="100%">
						<mx:Label width="120" text="Coller les données ici" />
						<mx:TextArea width="100%" height="100%" id="BUD_import_data_GUI" change="recordUpdated = true" fontWeight="bold"/>
					</mx:HBox>
				
					
					<mx:HBox visible="false" height="0">
						<mx:Label width="120" text="Oid" />
						<mx:TextArea width="300" height="18" id="BUD_oid_GUI" change="recordUpdated = true" editable="false"/>
					</mx:HBox>


				</mx:VBox>

			</mx:VDividedBox>

            <mx:VDividedBox id="DIV_mainBox" width="100%" height="100%" visible="false">
                <mx:DataGrid id="DIV_list_GUI" rowHeight="20" headerHeight="40"
                    rowCount="{list_collection.length + 1}" height="100%" width="100%"  
                    wordWrap="false" dataProvider="{list_collection}" 
                    fontFamily="tahoma"
                    itemClick="getRecord()" 
                    selectable="{!recordUpdated}">
                    <mx:columns>
                        <mx:DataGridColumn dataField="code" headerText="Code" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="texte" headerText="Texte" width="400"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="valeur" headerText="Valeur" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="valeur_date" headerText="Valeur Date" width="100"  editable="false" headerWordWrap="true"/>
                        <mx:DataGridColumn dataField="description" headerText="Description" width="100"  editable="false" headerWordWrap="true" textAlign="right" />
                        <mx:DataGridColumn dataField="show_info_module" headerText="Info Module" width="100"  editable="false" headerWordWrap="true" />
                    </mx:columns>
                </mx:DataGrid>
                <mx:VBox id="DIV_detailBox_GUI" width="100%"  height="0" backgroundColor="0xFFFFFF">
                    <mx:HBox>
                        <mx:Canvas>
                            <mx:Button height="28" label="Annuler" toolTip="Annuler les modifications" icon="@Embed('../../base/swf/CTI/images/24/window-close.png')" labelPlacement="right" click="askCancel()" visible="{recordUpdated == true}" />
                            <mx:Button height="28" label="Masquer" toolTip="Masquer la fiche" icon="@Embed('../../base/swf/CTI/images/24/go-up.png')" labelPlacement="right" click="hideRecord()" visible="{recordUpdated == false}" />
                        </mx:Canvas>
                        <mx:Canvas>
                            <mx:Button height="28" label="Enregistrer" toolTip="Enregistrer les modifications" icon="@Embed('../../base/swf/CTI/images/24/dialog-ok.png')" labelPlacement="right" click="saveRecord()" visible="{recordUpdated == true}" />
                        </mx:Canvas>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Code" />
                        <mx:TextArea width="100" height="18" id="DIV_code_GUI" change="recordUpdated = true" fontWeight="bold" editable="false" />
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Texte" />
                        <mx:TextArea width="300" height="18" id="DIV_texte_GUI" change="recordUpdated = true" fontWeight="bold" editable="false"/>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Valeur" />
                        <mx:TextArea width="300" height="18" id="DIV_valeur_GUI" change="recordUpdated = true"/>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Valeur Date" />
                        <mx:TextArea width="300" height="18" id="DIV_valeur_date_GUI" change="recordUpdated = true" />
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Description" />
                        <mx:TextArea width="300" height="18" id="DIV_description_GUI" change="recordUpdated = true" editable="false"/>
                    </mx:HBox>
                    <mx:HBox>
                        <mx:Label width="150" text="Info module" />
                        <mx:CheckBox id="DIV_show_info_module_GUI" change="recordUpdated = true" />
                    </mx:HBox>
                </mx:VBox>
            </mx:VDividedBox>
		</mx:Canvas>
	</mx:VBox>
</mx:Application>