コード例 #1
0
        protected override CResultAErreur MyMajChamps()
        {
            CResultAErreur result = base.MyMajChamps();

            if (result && CurrentItem != null)
            {
                CValeurSequenceNumerotation valeur = CurrentItem.Tag as CValeurSequenceNumerotation;
                if (valeur != null && m_txtLastVal.IntValue != null)
                {
                    valeur.DerniereValeur = m_txtLastVal.IntValue.Value;
                }
            }
            return(result);
        }
コード例 #2
0
        //-------------------------------------------------------------------
        public override CResultAErreur VerifieDonnees(CObjetDonnee objet)
        {
            CResultAErreur result = CResultAErreur.True;

            try
            {
                CValeurSequenceNumerotation ValeurSequenceNumerotation = (CValeurSequenceNumerotation)objet;
            }
            catch (Exception e)
            {
                result.EmpileErreur(new CErreurException(e));
            }
            return(result);
        }
コード例 #3
0
        protected override CResultAErreur MyInitChamps(CCustomizableListItem item)
        {
            m_bIsInitializing = true;
            CResultAErreur result = base.MyInitChamps(item);

            if (result && item != null)
            {
                CValeurSequenceNumerotation val = item.Tag as CValeurSequenceNumerotation;
                if (val != null && val.IsValide())
                {
                    m_txtLastVal.IntValue = val.DerniereValeur;
                    m_lblCle.Text         = val.Cle;
                }
            }
            else
            {
                m_txtLastVal.IntValue = null;
                m_lblCle.Text         = "";
            }
            m_bIsInitializing = false;
            return(result);
        }