Beispiel #1
0
        /// <summary>
        /// Implementa Save_button_Click
        /// </summary>
        protected override void SaveAction()
        {
            if (_entity.OidInstructorEfectivo == 0)
            {
                _entity.OidInstructorEfectivo = _entity.OidInstructor;
            }

            //if (_entity.Confirmada)
            //{
            //    if (!_entity.GeneraAlbaran())
            //    {
            //        MessageBox.Show(Resources.Messages.ERROR_GENERACION_ALBARAN_INSTRUCTOR);
            //        _action_result = DialogResult.Ignore;
            //        return;
            //    }

            //}

            _entity.UpdateAlumnosPracticas();

            _action_result = SaveObject() ? DialogResult.OK : DialogResult.Ignore;
        }