/// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(0, "IsNull", typeof(bool), I.TT(GetType(), "IsNull function : Return true if the element is null|155"), CInfo2iExpression.c_categorieComparaison);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(object)));
            return(info);
        }
        /// ///////////////////////////////////////////////////////////
        public override string GetString()
        {
            string            strChaine = "";
            CInfo2iExpression info      = GetInfos();

            if (info.Niveau > 0)
            {
                strChaine = (Parametres.Count > 0?((IExpression)Parametres[0]).GetString():"") +
                            CaracteresControleAvant + info.Texte +
                            (Parametres.Count > 1?((IExpression)Parametres[1]).GetString():"");
            }
            else
            {
                strChaine = CaracteresControleAvant + info.Texte + "(";
                foreach (IExpression exp in Parametres)
                {
                    if (exp != null)
                    {
                        strChaine += exp.GetString() + ";";
                    }
                }
                if (Parametres.Count > 0)
                {
                    strChaine = strChaine.Substring(0, strChaine.Length - 1);
                }
                strChaine += ")";
            }
            return(strChaine);
        }
Beispiel #3
0
 public static void SetInfo(C2iExpression formule, CInfo2iExpression info)
 {
     if (formule != null)
     {
         m_cache[formule.GetType()] = info;
     }
 }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(0, "", typeof(object), "", "");

            info.Selectionnable = false;
            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(typeof(object)));
            return(info);
        }
Beispiel #5
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(3, "in", typeof(bool), I.TT(GetType(), "operator IN: return true if the left element is in the right list|154"), CInfo2iExpression.c_categorieComparaison);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Tested value|20044"), typeof(IComparable)),
                                         new CInfoUnParametreExpression(I.T("List|20045"), new CTypeResultatExpression(typeof(IComparable), true)));
            //info.AddDefinitionParametres( new CInfo2iDefinitionParametres(new CTypeResultatExpression(typeof(IComparable), false), new CTypeResultatExpression(typeof(IComparable), true)));
            return(info);
        }
Beispiel #6
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(3, SymboleComparaison, typeof(Boolean), Description, CInfo2iExpression.c_categorieComparaison);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Left operand|20042"), typeof(IComparable)),
                                         new CInfoUnParametreExpression(I.T("Right operand|20043"), typeof(IComparable)));
            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Left operand|20042"), typeof(object)),
                                         new CInfoUnParametreExpression(I.T("Right operand|20043"), typeof(object)));
            return(info);
        }
        /// //////////////////////////////////////////
        public override CInfo2iExpression GetInfos()
        {
            CInfo2iExpression info = base.GetInfos();

            if (Parametres.Count > 0)
            {
                info.TypeDonnee = Parametres2i[0].TypeDonnee;
            }
            return(info);
        }
Beispiel #8
0
 public static CInfo2iExpression GetCache(C2iExpression formule)
 {
     if (formule != null)
     {
         CInfo2iExpression info = null;
         m_cache.TryGetValue(formule.GetType(), out info);
         return(info);
     }
     return(null);
 }
        /// ///////////////////////////////////////////////////////////
        public virtual CInfo2iExpression GetInfos()
        {
            CInfo2iExpression info = CCacheInfosExpression.GetCache(this);

            if (info == null)
            {
                info = GetInfosSansCache();
                CCacheInfosExpression.SetInfo(this, info);
            }
            return(info);
        }
Beispiel #10
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(0, "CreateEntity",
                                                           new CTypeResultatExpression(typeof(object), true),
                                                           I.TT(GetType(), "CreateEntity(Type)\n Returns a new the entity of the specified type. Returns null if the entity can not be created|20035"),
                                                           CInfo2iExpression.c_categorieDivers);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Type|20038"), typeof(string)));
            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Type|20038"), typeof(Type)));
            return(info);
        }
        //-----------------------------------------------------------------------------
        public override CInfo2iExpression GetInfos()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "DYNAMIC_TYPE",
                m_strNom,
                new CTypeResultatExpression(typeof(Type), false),
                "",
                I.T("Types"));

            return(info);
        }
Beispiel #12
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "Null",
                typeof(object),
                I.TT(GetType(), "Null()\nReturn null value|125"),
                CInfo2iExpression.c_categorieConstantes);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[0]));
            return(info);
        }
Beispiel #13
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "WeekDay",
                typeof(int),
                I.TT(GetType(), "WeekDay(Date)\nReturn the day of the week (Monday = 0)|201"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "GetGUID",
                typeof(string),
                I.TT(GetType(), "GetGUID()\nReturn an unique value|112"),
                CInfo2iExpression.c_categorieDivers);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[0]));
            return(info);
        }
Beispiel #15
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "Year",
                typeof(int),
                I.TT(GetType(), "Year(Date)\nReturns the year (integer) of specified date|187"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
Beispiel #16
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "MediationSynchronisation",
                typeof(double),
                I.TT(GetType(), "MediationSynchronisation()\nUpdate mediation services and proxies configuration|20103"),
                CInfo2iExpression.c_categorieDivers);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[] {}));
            return(info);
        }
Beispiel #17
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "YearOfWeek",
                typeof(int),
                I.TT(GetType(), "YearOfWeek(Date)\nRetrn the year of the week of the date|189"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "YearAndWeek",
                typeof(string),
                I.TT(GetType(), "YearAndWeek(Date)\nReturn the year and week of the date separated by a slash|191"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "Background",
                typeof(object),
                "Background ( Exp1; exp2; exp3; ... )\r\nExecute séquentiellement un groupe de formules. retoure par défaut le résultat de la dernière formule",
                CInfo2iExpression.c_categorieDivers);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(true, new CInfoUnParametreExpression(I.T("Statement|20037"), typeof(object))));
            return(info);
        }
Beispiel #20
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "True",
                typeof(bool),
                I.TT(GetType(), "True()\nReturn 'true' value|139"),
                CInfo2iExpression.c_categorieConstantes);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[0]));
            return(info);
        }
Beispiel #21
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "ToLocalDateTime",
                typeof(DateTime),
                I.TT(GetType(), "ToLocalDateTime(Date)\nConverts UTC date time to local date time|20140"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
Beispiel #22
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "Month",
                typeof(int),
                I.TT(GetType(), "Month(Date)\nReturn the month of date|207"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "Now",
                typeof(DateTime),
                I.TT(GetType(), "Now()\nReturn the current date|205"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[] {}));
            return(info);
        }
Beispiel #24
0
 /// //////////////////////////////////////////
 protected override CInfo2iExpression GetInfosSansCache()
 {
     CInfo2iExpression info = new CInfo2iExpression(
         0,
         "SQRT",
         typeof(double),
         I.TT(GetType(), "SQRT(Value)\nReturn the Square root of the value|20107"),
         CInfo2iExpression.c_categorieMathematiques );
     info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(int)));
     info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(double)));
     return info;
 }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "SetMinutes",
                typeof(DateTime),
                I.TT(GetType(), "SetMinutes(Date, Minutes)\nRedefines the minutes of a Date|221"),
                CInfo2iExpression.c_categorieDate);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Date|20050"), typeof(DateTime)),
                                         new CInfoUnParametreExpression(I.T("Minutes|20052"), typeof(int)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "GetUserId",
                typeof(int),
                I.TT(GetType(), "GetUserId() : Returns the User ID associated with the process|360"),
                CInfo2iExpression.c_categorieDivers);

            info.AddDefinitionParametres(new CInfo2iDefinitionParametres(new Type[] {}));
            return(info
                   );
        }
Beispiel #27
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "KmToShowToMapZoom",
                typeof(int),
                I.TT(GetType(), "KmToShowToMapZoom(km)\nReturns the zoom to apply to a map to show the number of kilometers|20260"),
                CInfo2iExpression.c_categorieMathematiques);

            info.AddDefinitionParametres(
                new CInfoUnParametreExpression(I.T("km|20261"), typeof(double)));
            return(info);
        }
Beispiel #28
0
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "GPSDist",
                typeof(double),
                I.TT(GetType(), "GPSDist(Point1X, Point1Y, Point2X, Point2Y)\nReturns the distance between two GPS coordinates|20036"),
                CInfo2iExpression.c_categorieMathematiques);

            info.AddDefinitionParametres(
                new CInfo2iDefinitionParametres(typeof(double), typeof(double), typeof(double), typeof(double)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                "NullIfZero",
                typeof(double),
                I.TT(GetType(), "NullSiZero(valeur)\nReturn null if value equal 0, else, return value|126"),
                CInfo2iExpression.c_categorieConversion);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(int)));
            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(double)));
            return(info);
        }
        /// //////////////////////////////////////////
        protected override CInfo2iExpression GetInfosSansCache()
        {
            CInfo2iExpression info = new CInfo2iExpression(
                0,
                ":" + m_strUnitId,
                typeof(CValeurUnite),
                I.TT(GetType(), "@1(value) \nConvert value into @1|20116"),
                CInfo2iExpression.c_categorieConversion);

            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(double)));
            info.AddDefinitionParametres(new CInfoUnParametreExpression(I.T("Value|20039"), typeof(CValeurUnite)));
            return(info);
        }