Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\com\edeal\frontline\kpi\methods\ChqFidelite_CustomCountMethod.class
Êþº¾ 3Í =com/edeal/frontline/kpi/methods/ChqFidelite_CustomCountMethod *com/edeal/frontline/kpi/AbstractCalcMethod cp #Lcom/edeal/frontline/kpi/CalcParam; <init> ()V Code LineNumberTable LocalVariableTable this ?Lcom/edeal/frontline/kpi/methods/ChqFidelite_CustomCountMethod; getSupportedAxes ()Ljava/util/Collection; Signature =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/ICalcAxis;>; java/util/LinkedList com/edeal/frontline/kpi/TimeAxis Cf_DateCreation 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/RefAxis < Lo_Dep > Département du Tiers @ Department of Tiers 9 B C ((Ljava/lang/String;[Ljava/lang/String;)V E com/edeal/frontline/kpi/FobAxis G EntStructureLocalID_ I Association K Asso M Enterprise D O P :(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V R Cf_UtilAdherent T Affilié V Affiliated X Cf_Statut Z Statut du chèque de fidélité \ Fidelity Check Status ^ EntCheNbID_ ` Nombre de cheminées b Number of Cheminees d "com/edeal/frontline/kpi/StringAxis f Cf_DateCreation_Year h Année (Date de création) j Year (Date of Creation) c O 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; t u v composeQuery ?(Ljava/util/Map;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; x y z logger Lorg/apache/commons/logging/Log; | ~ } &com/edeal/frontline/FrontlineException ? getMessage ()Ljava/lang/String; ? ? ? org/apache/commons/logging/Log ? ? 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; ? ? ? ? toString ? ¡ ¢ £ 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 À ~ Á 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 COUNT (*) õ ö ÷ addAxisField d(Ljava/lang/StringBuilder;ZLcom/edeal/frontline/kpi/JoinHelper;Lcom/edeal/frontline/kpi/ICalcAxis;)V ù FROM ChqFidelite_ û ü ý addAxisJoin c(Ljava/lang/StringBuilder;Lcom/edeal/frontline/kpi/JoinHelper;Lcom/edeal/frontline/kpi/ICalcAxis;)V ÿ 0 â entrySet ()Ljava/util/Set; java/util/Set iterator ()Ljava/util/Iterator; java/util/Iterator next ()Ljava/lang/Object; java/util/Map$Entry getValue 8 equals 1 2 hasNext ()Z! 6 LEFT JOIN Enterprise as E ON Cf_UtilAdherent=E.EntID #$% equalsIgnoreCase (Ljava/lang/String;)Z '() contains (Ljava/lang/CharSequence;)Z+ : LEFT JOIN RefValues as ref on E.EntAdhState_ = ref.RefID - WHERE ref.RefVal ='ADHACTIF'/ WHERE ref.RefVal ='ADHNNACTIF' 1 GROUP BY 34 ÷ addAxisFieldG 678 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; valueParameter entry Ljava/util/Map$Entry; jointure LLjava/util/Map$Entry<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>; dispose getSignature =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; LNM java/util/CollectionsOP emptyList ()Ljava/util/List;R axis.getUserCode(): æTU ? getUserCode W ~X java/lang/Exception ?Z ? £ W\] printStackTrace_ , a c Cf_DateCreation e < EXTRACT(YEAR FROM Cf_DateCreation) AS Cf_DateCreation_Year g L.Lo_Dep i E.EntStructureLocalID_ k Cf_UtilAdherent m E.EntCheNbID_ o Cf_Statut q Cf_DateValidites Cf_DateValidite u Cf_DateConsow Cf_DateConso y Cf_CrDt{ Cf_CrDt } Cf_Upd Cf_Upd comma Z axis Ljava/lang/Exception; strComma? ucode: ? Cf_DateCreation_Year ? 8 LEFT JOIN Localite_ as L ON E.EntLocalityID_ = L.Lo_ID getUnit 2(Lcom/edeal/frontline/FlLocale;)Ljava/lang/String; ??? com/edeal/frontline/FlLocale?? getLocale ()Ljava/util/Locale; ??? locale Ljava/util/Locale; ??? ??? java/util/Locale?? FRANCE ? ? ¡? FRENCH£ *Nombre de chèque de fidélité utilisés ¥ Fidelity Cheques count flLocale Lcom/edeal/frontline/FlLocale; result getDescription «©? *(Ljava/lang/String;)Ljava/util/Collection; O(Ljava/lang/String;)Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>;¯ !com/edeal/frontline/kpi/CalcParam ®± ² 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ´ ¶ Type du Logis ®¸¹ ? setName ®»¼ ? setDefaultValue¾ :(0 : Tous) (1 : Adhérent Actif) (2 : Adhérent Non Actif) ®ÀÁ ? setDesc ÃÅÄ java/util/ArraysÆÇ asList %([Ljava/lang/Object;)Ljava/util/List; arg0 SourceFile "ChqFidelite_CustomCountMethod.java InnerClasses Entry ! / *· ± $ ¡ ;» Y· L+» Y½ Y² SY#SY² %SY(S² *· 0¹ 3 W+» 9Y;½ Y² SY=SY² %SY?S· A¹ 3 W+» DYF½ Y² SYHSY² %SYJSL· N¹ 3 W+» DYQ½ Y² SYSSY² %SYUSL· N¹ 3 W+» 9YW½ Y² SYYSY² %SY[S· A¹ 3 W+» 9Y]½ Y² SY_SY² %SYaS· A¹ 3 W+» cYe½ Y² SYgSY² %SYiSe· k¹ 3 W+° &