Beispiel #1
0
        //----------------------------------------------------------------------------------------------
        public static object GetValeurChamp(IElementAChamps eltAChamps, string strIdChamp)
        {
            CRelationElementAChamp_ChampCustom rel = GetRelationToChamp(eltAChamps, strIdChamp);

            if (rel != null)
            {
                return(rel.GetValeur());
            }
            return(null);
        }
Beispiel #2
0
        //----------------------------------------------------------------------------------------------
        public static void SetValeurChamp(IElementAChamps eltAChamps, string strIdChamp, object valeur)
        {
            CRelationElementAChamp_ChampCustom rel = GetRelationToChamp(eltAChamps, strIdChamp);

            if (rel == null)
            {
                rel = eltAChamps.GetNewRelationToChamp();
                rel.CreateNew();
                rel.Row[CChampCustom.c_champId] = strIdChamp;
                rel.ElementAChamps = eltAChamps;
            }
            rel.Valeur = valeur;
        }