Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\com\edeal\frontline\tasks\action\custom\ReservITFermetureHotelExportAction.class
Êþº¾ 3L Jcom/edeal/frontline/tasks/action/custom/ReservITFermetureHotelExportAction *com/edeal/frontline/tasks/FlTaskActionUnit logger Lorg/apache/commons/logging/Log; XML_NS Ljava/lang/String; ConstantValue %http://www.opentravel.org/OTA/2006/01 PREFIX ota PARAM1_NAME Hotel ID PARAM1_CODE HOTEL_ID FILE_NAME HOTEL- SEPARATOR - FILE_EXT .xml SLASH / STATUS_OPEN # Open STATUS_CLOSED & Closed <clinit> ()V Code + - , %org/apache/commons/logging/LogFactory . / getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; 1 LineNumberTable LocalVariableTable <init> 6 4 ( 8 9 : addParameter '(Ljava/lang/String;Ljava/lang/String;)V this LLcom/edeal/frontline/tasks/action/custom/ReservITFermetureHotelExportAction; run <([Ljava/lang/String;)Lcom/edeal/frontline/tasks/ETaskStatus; Exceptions A +com/edeal/frontline/UnfinishedTaskException C E D org/apache/commons/logging/Log F G isDebugEnabled ()Z I (reservIT : begin fermetures hotel export C K L M debug (Ljava/lang/Object;)V O P Q FINISH_WITH_SUCCES 'Lcom/edeal/frontline/tasks/ETaskStatus; S T U getContext !()Lcom/edeal/frontline/FlContext; W ReservitExportDirectory Y [ Z com/edeal/frontline/FlContext \ ] getContextParameter &(Ljava/lang/String;)Ljava/lang/String; _ java/lang/StringBuilder a exporting to default path : ^ c 4 d (Ljava/lang/String;)V ^ f g h append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ^ j k l toString ()Ljava/lang/String; C n o M warn q r ] getParam t [Ljava/lang/String; v java/lang/String x EntHotelID_ = z | { com/edeal/frontline/Utils } ~ formatToSQL E(Lcom/edeal/frontline/FlContext;Ljava/lang/String;)Ljava/lang/String; ? ? ? "com/edeal/frontline/EnterpriseBean ? ? list G(Lcom/edeal/frontline/FlContext;[[Ljava/lang/String;)Ljava/util/Vector; ? ? ? java/util/Vector ? G isEmpty ? &com/edeal/frontline/FrontlineException ? 3Echec de La recuperation de l'hotel avec le code : ? c ? ? ? ? get (I)Ljava/lang/Object; ? Sg_Tiers = ? ? ? l getEntID ? ? ? *com/edeal/frontline/custom/Signataire_Bean ? >Erreur lors de la recuperation des signataires pour l'hotel : ? Ct_ID = ? ¡ l getSg_Contrat £ ? ¤ 'com/edeal/frontline/custom/Contrat_Bean ¦ java/lang/StringBuffer ¥ c u © ª « endsWith (Ljava/lang/String;)Z ¥ g ® ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ¥ ° g ± (I)Ljava/lang/StringBuffer; ³ java/io/FileWriter µ java/io/File ¥ j ´ c ² ¹ 4 º (Ljava/io/File;)V ¼ ¾ ½ !javax/xml/stream/XMLOutputFactory ¿ À newInstance %()Ljavax/xml/stream/XMLOutputFactory; ¼ Â Ã Ä createXMLStreamWriter 4(Ljava/io/Writer;)Ljavax/xml/stream/XMLStreamWriter; Æ È Ç javax/xml/stream/XMLStreamWriter É d setDefaultNamespace Ë UTF-8 Í 1.0 Æ Ï Ð : writeStartDocument Ò OTA_HotelSummaryNotifRQ Æ Ô Õ Ö writeStartElement 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V Ø ChainCode Ú 12 Æ Ü Ý : writeAttribute ß EchoToken á E1873744026 ã HotelCode ^ 6 £ æ ç è getCt_CodeContrat ()I ^ ê g ë (I)Ljava/lang/StringBuilder; í Version ï 2006 ñ HotelCodeContext ó LFS Æ õ ö d writeDefaultNamespace ø HotelSummaryMessages ú HotelSummaryMessage ü þ StatusType java/lang/Exception getCause ()Ljava/lang/Throwable; ^ g -(Ljava/lang/Object;)Ljava/lang/StringBuilder; : l getMessage Æ ( writeEndElement Æ ( flush C M error %com/edeal/frontline/tasks/ETaskStatus Q STATUS_WITH_ERROR java/io/IOException #javax/xml/stream/XMLStreamException #com/edeal/frontline/SyntaxException arg0 status context Lcom/edeal/frontline/FlContext; exportPath e1 (Lcom/edeal/frontline/FrontlineException; hotelID query [[Ljava/lang/String; output Ljava/io/FileWriter; tiers Ljava/util/Vector; hotel $Lcom/edeal/frontline/EnterpriseBean; querySignataires signataires signataire ,Lcom/edeal/frontline/custom/Signataire_Bean; queryContrat contrat )Lcom/edeal/frontline/custom/Contrat_Bean; sb Ljava/lang/StringBuffer; outputFactory #Ljavax/xml/stream/XMLOutputFactory; writer "Ljavax/xml/stream/XMLStreamWriter; entHotelYearlyClosID_ fnie Ljava/lang/Exception; e Ljava/io/IOException; %Ljavax/xml/stream/XMLStreamException; %Lcom/edeal/frontline/SyntaxException; LocalVariableTypeTable 8Ljava/util/Vector<Lcom/edeal/frontline/EnterpriseBean;>; @Ljava/util/Vector<Lcom/edeal/frontline/custom/Signataire_Bean;>; StackMapTable* SourceFile 'ReservITFermetureHotelExportAction.java ! ! "