Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\com\edeal\frontline\kpi\methods\Contrat_CustomCountMethod.class
Êþº¾ 3Í 9com/edeal/frontline/kpi/methods/Contrat_CustomCountMethod *com/edeal/frontline/kpi/AbstractCalcMethod entJoinCount I cp #Lcom/edeal/frontline/kpi/CalcParam; <init> ()V Code LineNumberTable LocalVariableTable this ;Lcom/edeal/frontline/kpi/methods/Contrat_CustomCountMethod; getSupportedAxes ()Ljava/util/Collection; Signature =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/ICalcAxis;>; java/util/LinkedList com/edeal/frontline/kpi/TimeAxis Ct_DateAdhesion java/lang/String " ! (com/edeal/frontline/kpi/AbstractCalcAxis # $ FRENCH_LOCALE Ljava/lang/String; & Date d'adhésion ( ) $ ENGLISH_LOCALE + Date of Accession - / . 'com/edeal/frontline/kpi/TimeGranularity 0 1 DAY )Lcom/edeal/frontline/kpi/TimeGranularity; 3 4 c(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/edeal/frontline/kpi/TimeGranularity;)V 6 8 7 java/util/List 9 : add (Ljava/lang/Object;)Z < Ct_DateEffet > Date d'effet @ Effective Date B Ct_DateSignature D Date de signature F Date of signature H Ct_DateFin J Date de fin L Date of end N com/edeal/frontline/kpi/RefAxis P Ct_TypeContrat R Type de Contrat T Contract Type M V W ((Ljava/lang/String;[Ljava/lang/String;)V Y com/edeal/frontline/kpi/FobAxis [ Ct_Marque ] Marque _ Marque_ X a b :(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V d Ct_Statut f Statut h Status j EntCheNbID_ l Nombre de cheminées n Number of Cheminees p EntCocNbID_ r Nombre de cocottes t Number of Cocottes 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; } ~ composeQuery ?(Ljava/util/Map;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; ? ? ? 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 Contrat_ 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 : equals" 1$ 2&'( hasNext ()Z* ? LEFT OUTER JOIN Signataire_ ON Sg_Contrat = Ct_ID LEFT OUTER JOIN MvaSg_Tiers ON MvaColID = Sg_ID LEFT OUTER JOIN Enterprise ON EntID = MvaText ,-. equalsIgnoreCase (Ljava/lang/String;)Z 012 contains (Ljava/lang/CharSequence;)Z4 8 LEFT JOIN RefValues as ref on EntAdhState_ = ref.RefID 6 WHERE ref.RefVal ='ADHACTIF'8 WHERE ref.RefVal ='ADHNNACTIF' : GROUP BY <=> valueOf &(Ljava/lang/Object;)Ljava/lang/String; @BA /com/edeal/frontline/kpi/methods/KPIMethodHelperCD 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;>; RTS java/util/CollectionsUV emptyList ()Ljava/util/List;X axis.getUserCode(): ïZ[ ? getUserCode ] ?^ java/lang/Exception ?` ? ¬ ]bc printStackTracee , g i Ct_DateAdhesion k Ct_Statut m Ct_DateEffet o Ct_DateSignature q Ct_DateFin s Ct_TypeContrat u Ct_Marque w EntCheNbID_ y EntCocNbID_ comma Z axis Ljava/lang/Exception; strComma ? ? 2 LEFT OUTER JOIN Signataire_ ON Sg_Contrat = Ct_ID? 0 LEFT OUTER JOIN MvaSg_Tiers ON MvaColID = Sg_ID? / LEFT OUTER JOIN Enterprise ON EntID = MvaText 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 Contrats¡ Number of Contrats flLocale Lcom/edeal/frontline/FlLocale; result getDescription §¥?© Decompte du nombre de contrats« Contrats counting *(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 Contrat_CustomCountMethod.java InnerClasses Entry ! / *· ± # ?» Y· L+» Y½ Y² SY%SY² 'SY*S² ,· 2¹ 5 W+» Y;½ Y² SY=SY² 'SY?S;² ,· 2¹ 5 W+» YA½ Y² SYCSY² 'SYESA² ,· 2¹ 5 W+» YG½ Y² SYISY² 'SYKSG² ,· 2¹ 5 W+» MYO½ Y² SYQSY² 'SYSS· U¹ 5 W+» XYZ½ Y² SY\SY² 'SY\S^· `¹ 5 W+» MYc½ Y² SYeSY² 'SYgS· U¹ 5 W+» MYi½ Y² SYkSY² 'SYmS· U¹ 5 W+» MYo½ Y² SYqSY² 'SYsS· U¹ 5 W+° . ) + 7 , f - ? . Ä / î 0 1D 2n 3? 4 ? ? u v w ? u x y z { , ¸:*+-· |:§ 0:*´ ?¶ ?¹ ? » Y· :» ?Y-² ?· ?°*´ ?» ?Y?· ?¶ ¢¶ ¦¹ © ::: : *´ ¶ ±:¹ · : ¹ ½ : » ÃY-² ? · Å:§ :*´ ?¶ ȹ ? ¸ Ë° ? e ? ? É N 9 ; <