Edit C:\Users\Administrator\Desktop\galaxie\WEB-INF\classes\com\edeal\frontline\controller\actions\custom\Envoyer_Mail_MassAction.class
Êþº¾ 3ã Ecom/edeal/frontline/controller/actions/custom/Envoyer_Mail_MassAction -com/edeal/frontline/controller/actions/Action logger Lorg/apache/commons/logging/Log; <clinit> ()V Code %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; LineNumberTable LocalVariableTable <init> this GLcom/edeal/frontline/controller/actions/custom/Envoyer_Mail_MassAction; execute r(Ljava/util/Map;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/String; Exceptions java/lang/Exception (com/edeal/frontline/navigation/FlRequest ! " *(Ljavax/servlet/http/HttpServletRequest;)V $ % & setSelectedIDs -(Lcom/edeal/frontline/navigation/FlRequest;)V ( ) * getSelectedIDs A(Lcom/edeal/frontline/navigation/FlRequest;)Ljava/util/ArrayList; , . - java/util/ArrayList / 0 size ()I 2 3 4 getContext !()Lcom/edeal/frontline/FlContext; 6 8 7 com/edeal/frontline/FlContext 9 : getDataDictionary &()Lcom/edeal/frontline/DataDictionary; < IntType_ > COR @ B A "com/edeal/frontline/DataDictionary C D getRefIdByCode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; F H J I 0com/edeal/frontline/FieldNotInitializedException K printStackTrace M IntAtvID O OUTEMAIL Q IntStiID S DONE U IntCatID W OUE Y Sto [ Te1 ] DEV @ _ C ` J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; b ORD d FAC J g To_ i java/util/Date h l n m %javax/servlet/http/HttpServletRequest o p getSession "()Ljavax/servlet/http/HttpSession; r t s -com/edeal/frontline/helper/custom/ActorHelper u v getSessionActorID 4(Ljavax/servlet/http/HttpSession;)Ljava/lang/String; x z y com/edeal/frontline/Utils { | isEmpty (Ljava/lang/String;)Z ~ com/edeal/frontline/ActorBean } ? ? 4(Ljava/lang/String;Lcom/edeal/frontline/FlContext;)V } ? ? ? getMail ()Ljava/lang/String; ? java/lang/StringBuilder ? } ? ? ? toString ? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? < ? > ? ? , ? ? ? get (I)Ljava/lang/Object; ? java/lang/String ? #com/edeal/frontline/OpportunityBean ? ? ? ? ? getOppStoID ¢ STACK TRACE ¤ ¦ ¥ org/apache/commons/logging/Log § ¨ error *(Ljava/lang/Object;Ljava/lang/Throwable;)V ? ª « | equalsIgnoreCase 1 ¯ 2 ± 3 ? ³ ´ ? getOppEntID ¶ OppEntID:EntBillingMail_ ? ¸ ¹ ? getOppPerID » OppPerID:PerMail ½ z ¾ #org/apache/commons/lang/StringUtils À  Á com/edeal/frontline/BasicBean Ã Ä lookup W(Lcom/edeal/frontline/FlContext;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; ? Æ Ç È valueOf &(Ljava/lang/Object;)Ljava/lang/String; ? Ê Ë (Ljava/lang/String;)V Í ; Ï OppNumDev_ ? Ñ Ò Ó getCustomProperty &(Ljava/lang/String;)Ljava/lang/Object; Õ OppNumComm_ × OppNumFact_ Ù Ú Û sendOppMail Ç(Lcom/edeal/frontline/FlContext;Ljavax/servlet/http/HttpServletRequest;Lcom/edeal/frontline/OpportunityBean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; Ý success ß #com/edeal/frontline/InteractionBean Þ á â "(Lcom/edeal/frontline/FlContext;)V ä LF155 æ '[Correspondance concernant le devis] : x è é ê getMessage X(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ì î LF156 ð *[Correspondance concernant la commande] : ò LF157 ô )[Correspondance concernant la facture] : Þ ö ÷ ø setCustomProperty '(Ljava/lang/String;Ljava/lang/Object;)V Þ ú û Ë setIntAtvID Þ ý þ Ë setIntOppID Þ Ë setIntCatID Þ Ë setIntCreID Þ setIntCrDt (Ljava/util/Date;)V Þ Ë setIntSubject Þ setIntDate Þ Ë setIntStiID java/util/Vector addElement (Ljava/lang/Object;)V Þ setIntActID (Ljava/util/Vector;)V %com/edeal/frontline/CorrespondentBean á !" setCorCrDt $% Ë setCorCreID '( Ë setCorEntID* CorEntID ,-. getCorrespondentIDBy Y(Lcom/edeal/frontline/FlContext;[Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; 01 Ë setID 345 save '()Lcom/edeal/frontline/OperationResult; 78 ? getID :; Ë setCorPerID= CorPerID Þ?@ setIntCorIDB AVOD OppIsValidated_ FHG java/lang/BooleanIJ TRUE Ljava/lang/Boolean; ? öM OppExportFlag_O java/lang/Integer NQ ÇR (I)Ljava/lang/Integer; Þ3 ?UV 0 lengthX , Z (\ )^ &com/edeal/frontline/FrontlineException` >Impossible d'envoyer en masse les Opportunnités suivantes : b . ] Êe !com/edeal/frontline/FailureReport d h CImpossible d'envoyer en masse les Opportunnités selectionnées : djk Ë setMessagem FailureReport lop ø setAttributer FrontlineExceptiont /errors/frontlineException.jsp xvwx forward d(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;)V params Ljava/util/Map; request 'Ljavax/servlet/http/HttpServletRequest; response (Ljavax/servlet/http/HttpServletResponse; flRequest *Lcom/edeal/frontline/navigation/FlRequest; idOppSelectlist Ljava/util/ArrayList; context Lcom/edeal/frontline/FlContext; dico $Lcom/edeal/frontline/DataDictionary; idOpp Ljava/lang/String; correspondentList Ljava/util/Vector; actsList fichiersList nomsfichiersList corrID e 2Lcom/edeal/frontline/FieldNotInitializedException; corroutID afaireID corsortantID devisStateRefID commandeStateRefID factureStateRefID typeDoc nomfichier res res2 list list2 attachInteractionPDF $Lcom/edeal/frontline/AttachmentBean; Ljava/lang/Exception; devisDocTyp commandeDocTyp factureDocTyp dateDuJour Ljava/util/Date; sender actID actBean Lcom/edeal/frontline/ActorBean; actMail ex thereIsAProblem Z iDsWithProblem i I opp %Lcom/edeal/frontline/OpportunityBean; oppStoID typeOppo OppEntID emailPer emailEnt OppPerID mailTo opportunityCode titreObjet corr %Lcom/edeal/frontline/InteractionBean; cper 'Lcom/edeal/frontline/CorrespondentBean; fields [Ljava/lang/String; values correspondentID avoirStateRefID isFacture isAvoir Flag Ljava/lang/Integer; e1 (Lcom/edeal/frontline/FrontlineException; report #Lcom/edeal/frontline/FailureReport; LocalVariableTypeTable )Ljava/util/ArrayList<Ljava/lang/String;>; &Ljava/util/Vector<Ljava/lang/String;>; )Ljava/util/Vector<Ljava/util/Hashtable;>; StackMapTableÒ java/util/MapÔ &javax/servlet/http/HttpServletResponseÖ "com/edeal/frontline/AttachmentBeanÀ Signature U(Lcom/edeal/frontline/navigation/FlRequest;)Ljava/util/ArrayList<Ljava/lang/String;>;Û _massselect_map ÝÞ Ó getAttributeà data âãä getParameter &(Ljava/lang/String;)Ljava/lang/String; , çèé extractMapFromJson '(Ljava/lang/String;)[Ljava/lang/String; ëíì java/util/Arraysîï asList %([Ljava/lang/Object;)Ljava/util/List; ,ñ ò (Ljava/util/Collection;)V o jsonData mapIDs idsø The email sender is empty ¤ú §ü failureþ LF15E [Votre Devis num ] : LF15F [Votre Commande num ] : LF160 [Votre Facture num ] : Lna fr_FR "com/edeal/frontline/EnterpriseBean ? J )com/edeal/frontline/AccessDeniedException EntRefLngID_ Ñ com/edeal/frontline/PersonBean ? PerLngRef_ Ñ MsgID MsgSubject! MsgCode = '# '% MsgCrDt DESC ')( com/edeal/frontline/MessagesBean*+ listSummary Z(Lcom/edeal/frontline/FlContext;[Ljava/lang/String;[[Ljava/lang/String;)Ljava/util/Vector; - {. ()Z 012 firstElement ()Ljava/lang/Object;4 java/util/Hashtable 36 ?7 &(Ljava/lang/Object;)Ljava/lang/Object; '9 : 5(Ljava/lang/String;Ljavax/servlet/http/HttpSession;)V< ; ?>?é split 'AB Ë setMsgSubject ?DEF getObjectsBean #()Lcom/edeal/frontline/ObjectsBean; HJI com/edeal/frontline/ObjectsBeanK ? getObjIDM DocIDO DocLngIDQ DocAttIDS DocObjID = 'U DocOppType_ = 'W DocLngID = ' Y)Z com/edeal/frontline/DocumentBean Õ ? Õ]^_ getAttFile ()[Ba UTF-8 ?c d ([BLjava/lang/String;)V ?7g Bcom/edeal/frontline/fusion/parameters/impl/FusionParameterWordImpl f jlk !com/edeal/frontline/fusion/Fusionmn 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; jpqr word2pdfNew 5(Lcom/edeal/frontline/FlContext;Ljava/lang/String;)[B Õtu ? getAttFileNamew application/pdfy .xml{ .pdf x}~ ` 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 fusion '?? setMsgAttID? 8Erreur lors de l'ajout de la pièce jointe [Fichier Pdf] '?? Ë setMsgLngRef? 0com/edeal/frontline/helper/custom/MessagesHelper ?? ? %(Lcom/edeal/frontline/MessagesBean;)V? Opportunity ???? 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; cont req typeOpp actorMail recipient codeMsg cc bcc msgSubject numDevis numCommande numFacture lngcodeID lngRefID tiersID ent $Lcom/edeal/frontline/EnterpriseBean; +Lcom/edeal/frontline/AccessDeniedException; per Lcom/edeal/frontline/PersonBean; persID msgBean "Lcom/edeal/frontline/MessagesBean; idModDefaut fieldsQuery queryList [[Ljava/lang/String; orderBy listRes tab Ljava/util/Hashtable; to attIDs model docid lngId docObjID query attach tabByte [B bytestab fileName attID msgLngRef errorMsg strReturn msgHelper 2Lcom/edeal/frontline/helper/custom/MessagesHelper;Ô com/edeal/frontline/JSONUtils Ó Ó×ØÙ fromJSON 7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;Û cannot parse the json data:[Ý ] json parser Lcom/edeal/frontline/JSONUtils; SourceFile Envoyer_Mail_MassAction.java ! ) ¸ ³ ± - 3 *· ± / 2 ? 5 |» Y,· :*¶ #*¶ ':Æ_¶ +?W¶ 1:¶ 5::: : ::: ;=¶ ?: § :E: ¶ G:LN¶ ?:§ :E:¶ G:PR¶ ?:§ :E:¶ G:TV¶ ?:§ :E:¶ G:::E:E::::::XZ\¶ ^:XZa¶ ^:XZc¶ ^:§ :¶ e:::fZ\¶ ^:fZa¶ ^:fZc¶ ^:§ :E:E:E:¶ e» hY· j::: ,¹ k ¸ q: ¸ w? Z» }Y ¶ 1· :!!Æ EE:"!¶ ?:"§ :##¶ e» ?Y· ?!¶ ?¶ ??¶ ?"¶ ??¶ ?¶ ?:§ :!!¶ e6!E:"6#§1#¶ ?À ?:Æ» ?Y· ?:$:%$¶ ?:%§ :&² ¡&¹ £ :&%¶ ©? ¬:&:§ *%¶ ©? ®:&:§ %¶ ©? °:&::':(:)$¶ ²:'µ:)§ :**¶ G:*$¶ ·:*º:(§ :++¶ GE:+)¸ ¼? )¸ ¿À ?:+(¸ ¼? (» ?Y+¸ Å· É̶ ?(¸ ¿À ?¶ ?¶ ?:+E:,&¬¶ ©? $ζ ÐÀ ?:,&®¶ ©? $Ô¶ ÐÀ ?:,&°¶ ©? $Ö¶ ÐÀ ?:,§ :--¶ G*,$&+· Øܶ ©??E:-» ÞY· à:.&¬¶ ©? 9,¹ k ãå¸ ç:-,Æ » ?Y-¸ Å· Éë¶ ?,¶ ?¶ ?:-,:§ ?&®¶ ©? 9,¹ k íï¸ ç:-,Æ » ?Y-¸ Å· Éë¶ ?,¶ ?¶ ?:-,:§ @&°¶ ©? 6,¹ k ñó¸ ç:-,Æ » ?Y-¸ Å· Éë¶ ?,¶ ?¶ ?:-,:.; ¶ õ.¶ ù.¶ ü.¶ ÿ. ¶.¶.-¶ .¶.¶»Y·: ¶. ¶»Y·://¶ / ¶#'Æ c/'¶&½ ?Y)S:0½ ?:11'S01¸+:22Æ /2¶//¶2W§ :3² ¡3¹ £ »Y·: /¶6¶*Æ Z/*¶9½ ?Y<S:0½ ?:11*S01¸+:22Æ /2¶//¶2W§ :3² ¡3¹ £ /¶6¶. ¶>:0XZA¶ ^:0§ :1$¶ ?¶ ©61$¶ ?0¶ ©621? $C²E¶K1? 2? ,:3$L¶ ÐÀN:3§ :4:33Ç $L¸P¶K.¶SW§ Q:3² ¡3¹ £ § @6!» ?Y"¸ Å· É"¶T? W§ E¶ ?,¶ ?Y¶ ?¶ ?[¶ ?¶ ?:"?##¶ +¡ûË!? p»]Y» ?Y_· É"¶ ?a¶ ?¶ ?·c:#»dY·f:$$» ?Yg· É"¶ ?a¶ ?¶ ?¶i,l»dY·f¹n ,q#¹n ,-s¸u#¿Ü° E P S H a l o H } ? ? H ? ¤ § H Ò ù ü 36 ??? X¸» ð÷ú HP[^ Hhsv HÈ H¥«® 5CF }?? £©¬ : Î 5 6 7 8 % 9 , : 3 ; 6 <