Beispiel #1
0
        /// <summary>
        /// Instancia un ElementoDeDatos desde un registro de la base de datos.
        /// </summary>
        protected void FromRow(Lfx.Data.Row row)
        {
            this.m_Etiquetas    = null;
            this.m_ImagenCambio = false;
            this.m_Imagen       = null;

            m_Registro = row;
            if (m_Registro != null)
            {
                m_ItemId              = System.Convert.ToInt32(m_Registro[this.CampoId]);
                m_Registro.IsNew      = row.IsNew;
                m_Registro.IsModified = row.IsModified;
                m_RegistroOriginal    = m_Registro.Clone();
                this.OnLoad();
            }
            else
            {
                m_ItemId           = 0;
                m_Registro         = new Lfx.Data.Row();
                m_RegistroOriginal = m_Registro.Clone();
            }
        }