コード例 #1
0
        /// //////////////////////////////////////
        public CResultAErreur Serialize(C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }

            m_parametre = (CParametreEntreeAgenda)serializer.GetObjetAttache(typeof(CParametreEntreeAgenda));

            serializer.TraiteInt(ref m_nIdChamp);

            I2iSerializable objet = m_formuleValeur;

            result          = serializer.TraiteObject(ref objet);
            m_formuleValeur = (C2iExpression)objet;
            return(result);
        }
コード例 #2
0
        public CResultAErreur Serialize(C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }

            m_parametre = (CParametreEntreeAgenda)serializer.GetObjetAttache(typeof(CParametreEntreeAgenda));

            int nIdRelation = -1;

            if (m_relation != null)
            {
                nIdRelation = m_relation.Id;
            }
            serializer.TraiteInt(ref nIdRelation);
            if (serializer.Mode == ModeSerialisation.Lecture)
            {
                CRelationTypeEntreeAgenda_TypeElementAAgenda relation = new CRelationTypeEntreeAgenda_TypeElementAAgenda((CContexteDonnee)serializer.GetObjetAttache(typeof(CContexteDonnee)));
                if (relation.ReadIfExists(nIdRelation))
                {
                    m_relation = relation;
                }
                else
                {
                    relation = null;                    //Si la relation n'existe plus, elle sera supprimée du paramètre
                }
            }

            I2iSerializable objet = m_formuleLien;

            result        = serializer.TraiteObject(ref objet);
            m_formuleLien = (C2iExpression)objet;

            return(result);
        }
コード例 #3
0
 /// //////////////////////////////////////
 public CParametreRelationEntreeAgenda_ChampCustom(CParametreEntreeAgenda parametre)
 {
     m_parametre = parametre;
 }
コード例 #4
0
 public CParametreRelationEntreeAgenda_TypeElement(CParametreEntreeAgenda parametre)
 {
     m_parametre = parametre;
 }