Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\com\edeal\frontline\controller\actions\custom\SendMailObjActionCmdGiftCheque_.class
Êþº¾ 3± Mcom/edeal/frontline/controller/actions/custom/SendMailObjActionCmdGiftCheque_ -com/edeal/frontline/controller/actions/Action logger Lorg/apache/commons/logging/Log; REQ_PARAM_JSON Ljava/lang/String; ConstantValue data <clinit> ()V Code %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; LineNumberTable LocalVariableTable <init> this OLcom/edeal/frontline/controller/actions/custom/SendMailObjActionCmdGiftCheque_; execute r(Ljava/util/Map;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/String; Exceptions " java/lang/Exception $ & % %javax/servlet/http/HttpServletRequest ' ( getSession "()Ljavax/servlet/http/HttpSession; * (com/edeal/frontline/navigation/FlRequest ) , - *(Ljavax/servlet/http/HttpServletRequest;)V ) / 0 1 getContext !()Lcom/edeal/frontline/FlContext; 3 5 4 com/edeal/frontline/FlLocale 6 7 getInstance @(Ljavax/servlet/http/HttpSession;)Lcom/edeal/frontline/FlLocale; 3 9 : ; getLanguageID ()Ljava/lang/String; = objID ) ? @ A getParameter &(Ljava/lang/String;)Ljava/lang/String; C MsgCc E MsgCci G MsgTo I K J com/edeal/frontline/Utils L M getRequestParameter l(Lcom/edeal/frontline/FlContext;Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;)Ljava/lang/String; O type I Q R S isEmpty (Ljava/lang/String;)Z U ; W Y X java/lang/String Z [ split '(Ljava/lang/String;)[Ljava/lang/String; ] WithInter _ a ` java/lang/Boolean b S parseBoolean d f e com/edeal/frontline/FlContext g h getDataDictionary &()Lcom/edeal/frontline/DataDictionary; j IntType_ l COR n p o "com/edeal/frontline/DataDictionary q r getRefIdByCode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; t v IntAtvID x OUTEMAIL z IntStiID | DONE ~ IntCatID ? OUE ? java/util/Date ? ? actorID ? ? ? javax/servlet/http/HttpSession ? ? getAttribute &(Ljava/lang/String;)Ljava/lang/Object; ? #com/edeal/frontline/InteractionBean ? ? ? "(Lcom/edeal/frontline/FlContext;)V ? -com/edeal/frontline/custom/CmdGiftCheque_Bean ? ? ? 4(Ljava/lang/String;Lcom/edeal/frontline/FlContext;)V ? ? ? ; getCgcCmdNum ? LF334 ? ?[Correspondance concernant la Commande des Chèques Cadeaux] : I ? ? getMessage Z(Ljavax/servlet/http/HttpSession;Ljava/lang/String;ZZLjava/lang/String;)Ljava/lang/String; ¢ java/lang/StringBuilder W ¤ ¥ ¦ valueOf &(Ljava/lang/Object;)Ljava/lang/String; ¡ ¨ © (Ljava/lang/String;)V ¡ « ¬ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ¡ ¯ ° ; toString ² Ih_ ´ Te1 ¶ CMD n ¸ q ¹ J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ! » ¼ printStackTrace ¾ IntTheme_ ? À Á  setCustomProperty '(Ljava/lang/String;Ljava/lang/Object;)V ? Ä Å © setIntAtvID ? Ç È © setIntCatID ? Ê Ë © setIntCreID ? Í Î Ï setIntCrDt (Ljava/util/Date;)V ? Ñ Ò © setIntSubject ? Ô Õ Ï setIntDate ? × Ø © setIntStiID Ú java/util/Vector Ù Ù Ý Þ ß addElement (Ljava/lang/Object;)V ? á â ã setIntActID (Ljava/util/Vector;)V ? å æ ; getCgcCustomer è %com/edeal/frontline/CorrespondentBean ç ? ç ë ì Ï setCorCrDt ç î ï © setCorCreID ? ñ ò ã setIntCorID ô java/io/BufferedReader ö java/io/InputStreamReader $ ø ù ú getInputStream $()Ljavax/servlet/ServletInputStream; ü UTF-8 õ þ ÿ *(Ljava/io/InputStream;Ljava/lang/String;)V ó (Ljava/io/Reader;)V ¡ ó ; readLine ó close org/json/JSONObject ¨ -com/edeal/frontline/helper/custom/ActorHelper getSessionActorID 4(Ljavax/servlet/http/HttpSession;)Ljava/lang/String; com/edeal/frontline/ActorBean ? ; getMail ¯ < > json! {"Status" : "KO", "Msg" : "# M9027% ?Veuillez vÃ?©rifier si les options [KBaseCartMailSnderType] et [PasswordReminderEmail] sont bien saisi et/ou si l'acteur courant a une adresse mail. I'( A encodeURIComponent* ", "Detail" : ""} $,-  setAttribute/ ªThe email sender is empty. Verify if the options [KBaseCartMailSnderType] and [PasswordReminderEmail] are correctly set and/or if the current actor has an E-mail address.132 org/apache/commons/logging/Log4 ß error6 failure8 com/edeal/frontline/MessagesBean 7: ; #(Ljavax/servlet/http/HttpSession;)V= MsgBody ?@ A getString BDC java/net/URLDecoderE r decodeG <html><head></head><body>I </body></html> 7KL © setMsgBodyN MsgSubject 7PQ © setMsgSubjectS MsgAttIDU | IWXY explodeList 8(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector; Ù[\] addAll (Ljava/util/Collection;)Z_ MsgDocID 7ab ã setMsgDocIDd FusionPdff "com/edeal/frontline/AttachmentBean Ùhij elementAt (I)Ljava/lang/Object; e ? emno getAttFile ()[B Wq r ([BLjava/lang/String;)Vt Bcom/edeal/frontline/fusion/parameters/impl/FusionParameterWordImpl s wyx !com/edeal/frontline/fusion/Fusionz{ doFusion À(Ljavax/servlet/http/HttpSession;Lcom/edeal/frontline/FlContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/edeal/frontline/fusion/parameters/FusionParameter;)Ljava/lang/String; w}~ word2pdfNew 5(Lcom/edeal/frontline/FlContext;Ljava/lang/String;)[B e?? ; getAttFileName? application/pdf? .xml? .pdf I?? ¹ replace ??? 2com/edeal/frontline/helper/custom/AttachmentHelper?? newAttachment Y(Lcom/edeal/frontline/FlContext;[BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String; Ù??? add (Ljava/lang/Object;)Z? .ERREUR lors de la pÃ?©paration Ã? la fusion1?4? *(Ljava/lang/Object;Ljava/lang/Throwable;)V Ù??? size ()I FusionWord ¢¤£ (com/edeal/frontline/fusion/ui/WordFusion¥¦ determineResultDocExtension P(Lcom/edeal/frontline/FlContext;Ljavax/servlet/ServletConfig;)Ljava/lang/String; ¢¨©¦ determineResultDocMimeType« . W®¯ lastIndexOf (Ljava/lang/String;)I W±²³ substring (II)Ljava/lang/String; Wµ¶· getBytes (Ljava/lang/String;)[B¹ ,ERREUR lors de la prepartation de la fusion 7»¼ ã setMsgAttID¾ M9026À [Veuillez vÃ?©rifier si les modÃ?¨les de message pour la fusion PDF sont bien prÃ?©sents. ", "Detail" : " !Ä ? ;Æ "}È Exception when generating PDFÊ MsgLngRefÌ fr_FR 7ÎÏ © setMsgLngRefÑ 0com/edeal/frontline/helper/custom/MessagesHelper ÐÓ Ô %(Lcom/edeal/frontline/MessagesBean;)V ÐÖ×Ø doMergeMessage '(Ljava/lang/String;Ljava/lang/String;)V ÐÚÛÜ sendMail r(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;Þ M609Fà ,L'e-mail a Ã?©tÃ?© envoyÃ?© correctement. ?âãä getIntAttID ()Ljava/util/Vector; ?æçä getIntAttFileName Ðéêë getPowerMailHelper 4()Lcom/edeal/frontline/netbusiness/PowerEmailHelper; íïî 0com/edeal/frontline/netbusiness/PowerEmailHelper ?ð #()Ljavax/mail/internet/MimeMessage; / óõô 'com/edeal/frontline/InteractionFromMailö÷ extractAttachment x(Lcom/edeal/frontline/FlContext;Ljavax/mail/internet/MimeMessage;Ljava/util/Vector;Ljava/util/Vector;)Ljava/lang/String;ù javax/mail/internet/MimeMessage øû ü $(Ljavax/mail/internet/MimeMessage;)V øþÿ ; getSubject INTOK IMPORTE Jcom/edeal/frontline/controller/actions/custom/SendMailObjActionOpportunity saveMessage z(Lcom/edeal/frontline/FlContext;Ljava/lang/String;Ljavax/mail/Part;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? © setIntMsgID ? ã setIntAttID ? ã setIntAttFileName ? save '()Lcom/edeal/frontline/OperationResult; 7 ? ? getObjectsBean #()Lcom/edeal/frontline/ObjectsBean; com/edeal/frontline/ObjectsBean ; getObjID 7"# © setMsgObjID 7& ;Impossible de créer la correspondance avec le Mail envoyé( ,Impossible d'accéder à l'objet Interaction* {"Status" : ", OK. KO0 ", "Msg" : "2 M609E4 %L'e-mail n'a pas Ã?©tÃ?© envoyÃ?©.6 success8 0com/edeal/frontline/FieldNotInitializedException: &com/edeal/frontline/FrontlineException< )com/edeal/frontline/AccessDeniedException params Ljava/util/Map; request 'Ljavax/servlet/http/HttpServletRequest; response (Ljavax/servlet/http/HttpServletResponse; session Ljavax/servlet/http/HttpSession; flRequest *Lcom/edeal/frontline/navigation/FlRequest; context Lcom/edeal/frontline/FlContext; locale Lcom/edeal/frontline/FlLocale; langageID destCop destCopc destMail to [Ljava/lang/String; cc bcc withInteraction Z isJSON_OK JSON_KO_fileName JSON_KO_attID corr %Lcom/edeal/frontline/InteractionBean; dico $Lcom/edeal/frontline/DataDictionary; correspondentList Ljava/util/Vector; actsList corrID e 2Lcom/edeal/frontline/FieldNotInitializedException; corroutID afaireID corsortantID dateDuJour Ljava/util/Date; actID titreObjet cmdGch /Lcom/edeal/frontline/custom/CmdGiftCheque_Bean; numCC Ljava/lang/Exception; cgcCustomer cper 'Lcom/edeal/frontline/CorrespondentBean; sender jsonData br Ljava/io/BufferedReader; input jsonObj Lorg/json/JSONObject; e2 actBean Lcom/edeal/frontline/ActorBean; actMail msgBean "Lcom/edeal/frontline/MessagesBean; msgBody msgSubject attIDs msgAttIDs newAttIDs msgDocIDs docIDs model pdfDocIDs vectPdfDocIDs i I attach $Lcom/edeal/frontline/AttachmentBean; tabByte [B res bytestab fileName attID wordDocIDs vectWordDocIDs fileExt fileMimeType pos msgLngRef errorMsg strReturn msgHelper 2Lcom/edeal/frontline/helper/custom/MessagesHelper; vectAttID vectAttFileName mimeMessage !Ljavax/mail/internet/MimeMessage; sendedMessageID msg msgtmp ex (Lcom/edeal/frontline/FrontlineException; ade +Lcom/edeal/frontline/AccessDeniedException; LocalVariableTypeTable &Ljava/util/Vector<Ljava/lang/String;>; StackMapTableª java/util/Map¬ &javax/servlet/http/HttpServletResponseP? SourceFile $SendMailObjActionCmdGiftCheque_.java ! - ¸ ³ ± , - / *· ± * ! R - R,¹ # :» )Y,· +:¶ .:¸ 2:¶ 8:<¶ >: B¶ >: D¶ >:,F¸ H:N¶ >: ¸ P? T¶ V§ : ¸ P? T¶ V§ :¸ P? T¶ V§ :\¶ >¸ ^66:::?¨¶ c::::ik¶ m:§ :s::uw¶ m:§ :s::y{¶ m:§ :s::}¶ m:§ :s:» ?Y· ?:,¹ # ?¹ ? À W:s:» ?Y· ?:: Æ » ?Y · ?: Æ û:! ¶ ?:!§ :",¹ # ??¸ ?:!Æ » ¡Y¸ £· §!¶ ª¶ ®:s:"±³µ¶ ·:"§ :##¶ ºs:"½"¶ ¿i¶ ¿¶ ö ƶ ɶ ̶ ж Ó¶ Ö» ÙY· Û:¶ ܶ à:# ¶ ä:#§ :$» çY· é:$$¶ ê$¶ í#Æ » ÙY· Û:#¶ ܶ ð: ¶ >:» óY» õY,¹ ÷ û· ý· :s:§ » ¡Y·¶ ª¶ ª¶ ®:¶Y:Çÿâ¶:» Y·:§ :¶ º6¸ :¸ P? O»Y·:Æ =s:¶:§ :» ¡Y·¶¶ ª¶ ª¶ ª¶ ª¶ ®:§ :¸ P? D,» ¡Y· ¶ ª"$¸ ?¸&¶ ª)¶ ª¶ ®¹+ ² .¹0 5°:»7Y·9:§ :5°:? <¶>û¸A:§ <¶ >û¸A:Æ #» ¡Y·F¶ ª¶ ªH¶ ª¶ ®¶J:? M¶>û¸A:§ M¶ >û¸A:Æ ¶O» ÙY· Û:? SR¶>:¸ P? T¸V: ¶ZW^¶>: ¸ P? T¸V:!!¶`§ ¶`:: ? c¶>: § c¶ >: ¸ P? ± T¸V:!6"§ ?»eY!"¶gÀ W·k:##¶l:$» WY$û·p: »sY·u¸v:%%¸|:&#¶?:'&?'??¸?¸?:((¶?W'??¸?:(:§ :$² ?$¹? ?""!¶?¡ÿe? ê?¶>:!!¸ P? Ø!T¸V:"6#§ ¾»eY"#¶gÀ W·k:$¸¡:%¸§:&$¶l:'» WY'û·p: »sY·u¸v:($¶?:))ª¶¬6**¤ %» ¡Y·)*¶°¶ ªª¶ ª%¶ ª¶ ®:)(û¶´:++&)¸?:,,¶?W§ :%² ¸%¹? ?##"¶?¡ÿ>¶º§ Y:!,» ¡Y· ¶ ª½¿¸ ?¸&¶ ªÁ¶ ª!¶Ã¸&¶ ªÅ¶ ª¶ ®¹+ ² Ç!¹? 5°¶ c:!!É˶ m:""¶Í6#:$:%»ÐY·Ò:&& ¶Õ&¶Ù:$$ÇÝ߸ ?:%6#Æ» ÙY· Û:'¶á:'§ :(» ÙY· Û:(¶å:(§ :)&¶è¶ì:)*¶ñ)'(¸ò:**Ç I? D»øY)·ú:++¶ý+ ¸:*» ÙY· Û:''¶?W» ÙY· Û:((¶?W*¶ '¶ (¶¶W»7Y*·:++» ?Y · ?¶¶¶!+¶$W§ .:++¶ º§ $:'² %'¹? § :'² ''¹? ,» ¡Y·)¶ ª#? +§ -¶ ª/¶ ª#? %§ 13¸ ?¸&¶ ªÁ¶ ª#? $§ s¶ ªÅ¶ ª¶ ®¹+ 5° Á Ì Ï7 Ø ã æ7 ï ú ý77ahk7?ª !7ªµ¸ !çîñ ! !itw ! !r !"), !ïöù77?¸» !æÂÅ9æÂ×; ? à 3 4 5 7 8 ' 9 0 : 9 ; B <