Edit C:\Windows\install\galaxie_p02_26-09\WEB-INF\classes\com\edeal\frontline\controller\actions\custom\SendMailObjActionOpportunity.class
Êþº¾ 3« Jcom/edeal/frontline/controller/actions/custom/SendMailObjActionOpportunity -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 LLcom/edeal/frontline/controller/actions/custom/SendMailObjActionOpportunity; 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 Q typOppDoc I S T U isEmpty (Ljava/lang/String;)Z W ; Y [ Z java/lang/String \ ] split '(Ljava/lang/String;)[Ljava/lang/String; _ WithInter a c b java/lang/Boolean d U parseBoolean f h g com/edeal/frontline/FlContext i j getDataDictionary &()Lcom/edeal/frontline/DataDictionary; l n IntType_ p COR r t s "com/edeal/frontline/DataDictionary u v getRefIdByCode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; x IntAtvID z OUTEMAIL | IntStiID ~ DONE ? IntCatID ? OUE ? To_ ? Te1 ? DEV r ? u ? J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ORD ? FAC ? STC Y ? ? U equalsIgnoreCase ? 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/OpportunityBean ¥ ¨ © 4(Ljava/lang/String;Lcom/edeal/frontline/FlContext;)V ¥ « ¬ ; getID ® OppNumDev_ ¥ ° ± ? getCustomProperty ³ LF155 µ '[Correspondance concernant le devis] : I · ¸ ¹ getMessage X(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; » java/lang/StringBuilder Y ½ ¾ ¿ valueOf &(Ljava/lang/Object;)Ljava/lang/String; º Á  (Ljava/lang/String;)V º Ä Å Æ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; º È É ; toString Ë OppNumComm_ Í STACK TRACE Ï Ñ Ð org/apache/commons/logging/Log Ò Ó error *(Ljava/lang/Object;Ljava/lang/Throwable;)V Õ LF156 × *[Correspondance concernant la commande] : Ù LF17C Û &Notification STACI pour la commande : Ý OppNumFact_ ß LF157 á )[Correspondance concernant la facture] : ã ä å setCustomProperty '(Ljava/lang/String;Ljava/lang/Object;)V ç è  setIntAtvID ê ë  setIntCatID í î  setIntOppID ð ñ  setIntCreID ó ô õ setIntCrDt (Ljava/util/Date;)V ÷ ø  setIntSubject ú û õ setIntDate ý þ  setIntStiID java/util/Vector ÿ ÿ addElement (Ljava/lang/Object;)V setIntActID (Ljava/util/Vector;)V ¥ ; getOppEntID ¥ ; getOppPerID %com/edeal/frontline/CorrespondentBean £ õ setCorCrDt  setCorCreID  setCorEntID CorEntID ! getCorrespondentIDBy Y(Lcom/edeal/frontline/FlContext;[Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; #$  setID &'( save '()Lcom/edeal/frontline/OperationResult; « +,  setCorPerID. CorPerID 01 setIntCorID3 java/io/BufferedReader5 java/io/InputStreamReader $789 getInputStream $()Ljavax/servlet/ServletInputStream;; UTF-8 4= > *(Ljava/io/InputStream;Ljava/lang/String;)V 2@ A (Ljava/io/Reader;)V º 2DE ; readLine 2GH closeJ org/json/JSONObject I Á MON -com/edeal/frontline/helper/custom/ActorHelperPQ getSessionActorID 4(Ljavax/servlet/http/HttpSession;)Ljava/lang/String;S com/edeal/frontline/ActorBean R ¨ RVW ; getMail R ÈZ <\ >^ json` {"Status" : "KO", "Msg" : "b M9027d ?Veuillez vÃ?©rifier si les options [KBaseCartMailSnderType] et [PasswordReminderEmail] sont bien saisi et/ou si l'acteur courant a une adresse mail. If ¸g Z(Ljavax/servlet/http/HttpSession;Ljava/lang/String;ZZLjava/lang/String;)Ljava/lang/String; Iij A encodeURIComponentl ", "Detail" : ""} $no å setAttributeq ª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. Ïs Òu failurew com/edeal/frontline/MessagesBean vy z #(Ljavax/servlet/http/HttpSession;)V| MsgBody I~ A getString ??? java/net/URLDecoder? v decode? <html><head></head><body>? </body></html> v??  setMsgBody? MsgSubject v??  setMsgSubject? MsgAttID? | I??? explodeList 8(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector; ÿ??? addAll (Ljava/util/Collection;)Z? MsgDocID v ¡ setMsgDocID£ FusionPdf¥ "com/edeal/frontline/AttachmentBean ÿ§¨© elementAt (I)Ljava/lang/Object; ¤ ¨ ¤¬® getAttFile ()[B Y° ± ([BLjava/lang/String;)V³ Bcom/edeal/frontline/fusion/parameters/impl/FusionParameterWordImpl ² ¶¸· !com/edeal/frontline/fusion/Fusion¹º 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; ¶¼½¾ word2pdfNew 5(Lcom/edeal/frontline/FlContext;Ljava/lang/String;)[B ¤ÀÁ ; 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 fusion ÿØÙÚ size ()IÜ FusionWord Þàß (com/edeal/frontline/fusion/ui/WordFusionáâ determineResultDocExtension P(Lcom/edeal/frontline/FlContext;Ljavax/servlet/ServletConfig;)Ljava/lang/String; Þäåâ determineResultDocMimeTypeç . Yéêë lastIndexOf (Ljava/lang/String;)I Yíîï substring (II)Ljava/lang/String; Yñòó getBytes (Ljava/lang/String;)[Bõ ,ERREUR lors de la prepartation de la fusion v÷ø 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 v  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. & ;Impossible de créer la correspondance avec le Mail envoyé! ,Impossible d'accéder à l'objet Interaction# {"Status" : "% OK' KO) ", "Msg" : "+ M609E- %L'e-mail n'a pas Ã?©tÃ?© envoyÃ?©./ success1 0com/edeal/frontline/FieldNotInitializedException3 &com/edeal/frontline/FrontlineException5 )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 corr %Lcom/edeal/frontline/InteractionBean; dico $Lcom/edeal/frontline/DataDictionary; correspondentList Ljava/util/Vector; actsList typOppor corrID e 2Lcom/edeal/frontline/FieldNotInitializedException; corroutID afaireID corsortantID devisDocTyp commandeDocTyp factureDocTyp staciDocTyp Ljava/lang/Exception; dateDuJour Ljava/util/Date; actID titreObjet opp %Lcom/edeal/frontline/OpportunityBean; idOpp numDevis numCommande ex numFacture OppEntID OppPerID cper 'Lcom/edeal/frontline/CorrespondentBean; fields values correspondentID (Lcom/edeal/frontline/FrontlineException; ade +Lcom/edeal/frontline/AccessDeniedException; sender jsonData br Ljava/io/BufferedReader; input jsonObj Lorg/json/JSONObject; 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; LocalVariableTypeTable &Ljava/util/Vector<Ljava/lang/String;>; StackMapTable¤ java/util/Map¦ &javax/servlet/http/HttpServletResponseI? SourceFile !SendMailObjActionOpportunity.java ! - ¸ ³ ± ' ( / *· ± % ! M - y,¹ # :» )Y,· +:¶ .:¸ 2:¶ 8:<¶ >: B¶ >: D¶ >:,F¸ H:N¶ >: :P¶ >:¸ R? V¶ X§ : ¸ R? V¶ X§ :¸ R? V¶ X§ :^¶ >¸ `6:?¶ e:::k::mo¶ q:§ :k::wy¶ q:§ :k::{}¶ q:§ :k::?¶ q:§ :k:::::???¶ ?:???¶ ?:???¶ ?:???¶ ?:§ : k:k:k:k:Æ D¶ ?? ?:§ 3¶ ?? ?:§ "¶ ?? ?:§ ¶ ?? ?:» ?Y· ?: ,¹ # ?¹ ? À Y:!k:"» Y· ¢::#:$ Æ » ¥Y · §:##¶ ª:$#ƺ?¶ ?? D:%#¶ ¯À Y:%§ :&,¹ # ²´¸ ¶:"%Æ» ºY"¸ ¼· À%¶ ö Ç:"§ ö?¶ ?? K:%#ʶ ¯À Y:%§ :&² Ì&¹ Î ,¹ # ÔÖ¸ ¶:"» ºY"¸ ¼· À%¶ ö Ç:"§ ¤?¶ ?? K:%#ʶ ¯À Y:%§ :&² Ì&¹ Î ,¹ # ØÚ¸ ¶:"» ºY"¸ ¼· À%¶ ö Ç:"§ R?¶ ?? H:%#ܶ ¯À Y:%§ :&² Ì&¹ Î ,¹ # Þภ¶:"» ºY"¸ ¼· À%¶ ö Ç:"m¶ â¶ æ¶ é$¶ ì!¶ ï ¶ ò"¶ ö ¶ ù¶ ü» ÿY·:!¶¶:%#¶ :%§ :&:&#¶ :&§ :'»Y·:'' ¶'!¶%Æ t'%¶½ YYS:(½ Y:))%S()¸:**Æ '*¶"'¶%W§ ":+² Ì+¹ Î § :+² Ì+¹ Î » ÿY·:'¶)¶&Æ k'&¶*½ YY-S:(½ Y:))&S()¸:**Æ '*¶"'¶%W§ ":+² Ì+¹ Î § :+² Ì+¹ Î '¶)¶¶/: ¶ >:»2Y»4Y,¹6 :·<·?:k:§ » ºY·B¶ ö ö Ç:¶CY:Çÿâ¶F»IY·K:¸L:¸ R? O»RY·T:Æ =k:¶U:§ :» ºY·B¶X¶ ÃY¶ ö Ã[¶ ö Ç:§ :¸ R? D,]» ºY·B_¶ Ãac¸e¸h¶ Ãk¶ ö ǹm ² p¹r t°:»vY·x:§ :t°{¶}:¸?:Æ #» ºY·B?¶ ö Ã?¶ ö Ƕ??¶}:¸?:Æ ¶?» ÿY·:?¶}:¸ R? ?¸?:¶?W?¶}:¸ R? ?¸?:¶?§ ¶?:¢¶}: ¸ R? ¡ ?¸?:!6"§ ?»¤Y!"¶¦À Y·ª:##¶«:$» YY$:·¯: »²Y·´¸µ:%%¸»:&#¶¿:'&Â'ÄƸȸË:((¶ÑW§ :$² Õ$¹ Î ?""!¶×¡ÿuÛ¶}:!!¸ R? Ú!?¸?:"6#§ À»¤Y"#¶¦À Y·ª:$¸Ý:%¸ã:&$¶«:'» YY':·¯: »²Y·´¸µ:($¶¿:))æ¶è6**¤ %» ºY·B)*¶ì¶ Ãæ¶ Ã%¶ ö Ç:)(:¶ð:++&)¸Ë:,,¶ÑW§ :%² ô%¹ Î ?##"¶×¡ÿ<¶ö§ Y:",]» ºY·B_¶ Ãùû¸e¸h¶ Ãý¶ Ã"¶ÿ¸h¶ ö ö ǹm ² "¹ Î t°¶ e:""¶ q:##¶ 6$:%:&»Y·:'' ¶'¶:%%Ç D¸e:&6$Æ -¶W§ $:(² (¹ Î § :(² (¹ Î ,]» ºY·B"¶ Ã$? $§ &¶ Ã(¶ Ã$? &§ *,¸e¸h¶ Ãý¶ Ã$? %§ k¶ ö ö ǹm .° È Ó Ö0 ß ê í0 ö0 0-ad !#&0bnq0´ÀÃ00£ª0²¹¼02,4???2??¢4CJM !tw !ÅÐÓ !½ !m !&) !ãéì2ãéþ4 ú þ - . / 1 2 ' 3 0 4 9 5 B 6 L 7 U 8 X 9 a ; v <