Edit C:\Users\Administrator\Desktop\galaxie\WEB-INF\classes\com\edeal\frontline\kpi\methods\TsactFidelite_CustomCountMethod.class
Êþº¾ 3` ?com/edeal/frontline/kpi/methods/TsactFidelite_CustomCountMethod *com/edeal/frontline/kpi/AbstractCalcMethod entJoinCount I <init> ()V Code LineNumberTable LocalVariableTable this ALcom/edeal/frontline/kpi/methods/TsactFidelite_CustomCountMethod; getSupportedAxes ()Ljava/util/Collection; Signature =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/ICalcAxis;>; java/util/LinkedList com/edeal/frontline/kpi/TimeAxis Tf_Date java/lang/String (com/edeal/frontline/kpi/AbstractCalcAxis ! " FRENCH_LOCALE Ljava/lang/String; $ Date de création & ' " ENGLISH_LOCALE ) Date of Creation + - , 'com/edeal/frontline/kpi/TimeGranularity . / DAY )Lcom/edeal/frontline/kpi/TimeGranularity; 1 2 c(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/edeal/frontline/kpi/TimeGranularity;)V 4 6 5 java/util/List 7 8 add (Ljava/lang/Object;)Z : "com/edeal/frontline/kpi/StringAxis < Tf_ArtLib > Article @ Art. 9 B C :(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V E com/edeal/frontline/kpi/RefAxis G Lo_Dep I Département du Tiers K Department of Tiers D M N ((Ljava/lang/String;[Ljava/lang/String;)V P com/edeal/frontline/kpi/FobAxis R EntStructureLocalID_ T Association V Asso X Enterprise O B [ Tf_AdherentID ] Affilié _ Affiliated axes Ljava/util/List; LocalVariableTypeTable 5Ljava/util/List<Lcom/edeal/frontline/kpi/ICalcAxis;>; run °(Ljava/util/Map;Ljava/util/Calendar;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Lcom/edeal/frontline/kpi/IDataSet; ç(Ljava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>;Ljava/util/Calendar;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Lcom/edeal/frontline/kpi/IDataSet; h i j composeQuery ?(Ljava/util/Map;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; l m n logger Lorg/apache/commons/logging/Log; p r q &com/edeal/frontline/FrontlineException s t getMessage ()Ljava/lang/String; v x w org/apache/commons/logging/Log y z error *(Ljava/lang/Object;Ljava/lang/Throwable;)V | #com/edeal/frontline/kpi/ListDataSet ~ ? !com/edeal/frontline/kpi/Aggregate ? ? SUM #Lcom/edeal/frontline/kpi/Aggregate; { ? ? £(Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/Aggregate;Ljava/lang/Iterable;)V ? java/lang/StringBuilder ? Requete : ? ? ? (Ljava/lang/String;)V ? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ? ? t toString v ? ? ? info (Ljava/lang/Object;)V ? ? ? ctx Lcom/edeal/frontline/FlContext; ? ? ? com/edeal/frontline/FlContext ¡ getConnection ()Ljava/sql/Connection; £ ¥ ¤ java/sql/Connection ¦ § createStatement ()Ljava/sql/Statement; © « ª java/sql/Statement ¬ executeQuery ((Ljava/lang/String;)Ljava/sql/ResultSet; ¯ !com/edeal/frontline/kpi/DBDataSet ® ± ² ¸(Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/Aggregate;Ljava/sql/ResultSet;Ljava/sql/Connection;)V ´ r µ java/sql/SQLException · ¹ ¸ com/edeal/frontline/Utils º » cleanUp @(Ljava/sql/Connection;Ljava/sql/Statement;Ljava/sql/ResultSet;)V params Ljava/util/Map; cal Ljava/util/Calendar; axis1 #Lcom/edeal/frontline/kpi/ICalcAxis; axis2 axis3 query e (Lcom/edeal/frontline/FrontlineException; it Ljava/lang/Iterable; dataSet #Lcom/edeal/frontline/kpi/DBDataSet; con Ljava/sql/Connection; st Ljava/sql/Statement; rs Ljava/sql/ResultSet; sqle Ljava/sql/SQLException; FLjava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>; 9Ljava/lang/Iterable<Lcom/edeal/frontline/kpi/SnapValue;>; StackMapTable × java/util/Map Ù java/util/Calendar Û !com/edeal/frontline/kpi/ICalcAxis Ý java/sql/ResultSet Exceptions Ã(Ljava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; ? â "com/edeal/frontline/kpi/JoinHelper á ä å "(Lcom/edeal/frontline/FlContext;)V ç SELECT é SUM(Tf_NbrPoints) ë ì í addAxisField d(Ljava/lang/StringBuilder;ZLcom/edeal/frontline/kpi/JoinHelper;Lcom/edeal/frontline/kpi/ICalcAxis;)V ï FROM TsactFidelite_ ñ ò ó addAxisJoin c(Ljava/lang/StringBuilder;Lcom/edeal/frontline/kpi/JoinHelper;Lcom/edeal/frontline/kpi/ICalcAxis;)V õ GROUP BY ÷ ø ù valueOf &(Ljava/lang/Object;)Ljava/lang/String; û ý ü /com/edeal/frontline/kpi/methods/KPIMethodHelper þ ÿ getSQLlimitForKPImethod 3(Lcom/edeal/frontline/FlContext;)Ljava/lang/String; q Ljava/lang/StringBuilder; jh $Lcom/edeal/frontline/kpi/JoinHelper; dispose getSignature =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; java/util/Collections emptyList ()Ljava/util/List; axis.getUserCode(): Ú t getUserCode r java/lang/Exception v y ? printStackTrace , 8 equals" Tf_Date$ Tf_ArtLib& L.Lo_Dep( E.EntStructureLocalID_* Tf_AdherentID comma Z axis Ljava/lang/Exception; strComma 1 3 k LEFT JOIN Enterprise as E ON Tf_AdherentID=E.EntID LEFT JOIN Localite_ as L ON E.EntLocalityID_ = L.Lo_ID 5 5 INNER JOIN Enterprise as E ON Tf_AdherentID=E.EntID getUnit 2(Lcom/edeal/frontline/FlLocale;)Ljava/lang/String; 9;: com/edeal/frontline/FlLocale<= getLocale ()Ljava/util/Locale; ?@A locale Ljava/util/Locale; C67 EGF java/util/LocaleHA FRANCE E EKLA FRENCHN "Nombre points de fidélité émis P Gift Cheques flLocale Lcom/edeal/frontline/FlLocale; result getDescription VT7X .Decompte du nombre points de fidélité émis Z Bonus Points count *(Ljava/lang/String;)Ljava/util/Collection; O(Ljava/lang/String;)Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; arg0 SourceFile $TsactFidelite_CustomCountMethod.java ! / *· ± "