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

            OidConvocatoria = parent.Oid;

            try
            {
                ValidationRules.CheckRules();

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

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

            MarkOld();
        }
Exemple #2
0
        public virtual void CopyValues(AlumnoCursoRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid               = source.Oid;
            _empresa          = source.Empresa;
            _nombre           = source.Nombre;
            _oid_convocatoria = source.OidConvocatoria;
            _apellidos        = source.Apellidos;
            _ident            = source.Ident;
        }