internal void Update(Cronograma parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            OidPromocion = parent.Oid;
            Tipo         = 2;

            try
            {
                ValidationRules.CheckRules();

                if (!IsValid)
                {
                    throw new iQValidationException(moleQule.Library.Resources.Messages.GENERIC_VALIDATION_ERROR);
                }

                Sesion_PromocionRecord obj = parent.Session().Get <Sesion_PromocionRecord>(Oid);
                obj.CopyValues(this.Base.Record);
                parent.Session().Update(obj);
            }
            catch (Exception ex)
            {
                iQExceptionHandler.TreatException(ex);
            }

            MarkOld();
        }
        public virtual void CopyValues(Sesion_PromocionRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid            = source.Oid;
            _oid_promocion = source.OidPromocion;
            _hora_inicio   = source.HoraInicio;
            _n_horas       = source.NHoras;
            _sabado        = source.Sabado;
            _tipo          = source.Tipo;
        }