Exemplo n.º 1
0
 /// <summary>
 /// Abre el formulario para editar item
 /// <returns>void</returns>
 /// </summary>
 public override void OpenEditForm()
 {
     try
     {
         AlumnoEditForm form = new AlumnoEditForm(ActiveOID);
         if (form.Entity != null)
         {
             AddForm(form);
             _entity = form.Entity;
         }
     }
     catch (Csla.DataPortalException ex)
     {
         MessageBox.Show(ex.BusinessException.ToString(),
                         moleQule.Face.Resources.Labels.ERROR_TITLE,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Exclamation);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(),
                         moleQule.Face.Resources.Labels.ERROR_TITLE,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Exclamation);
     }
 }
Exemplo n.º 2
0
        protected override void  EditarAlumnoAction()
        {
            try
            {
                Alumno item = Alumno.GetForForm((Alumnos_Grid.CurrentRow.DataBoundItem as AlumnoInfo).Oid, true, _entity.SessionCode);
                item.SharedTransaction = true;
                AlumnoEditForm form = new AlumnoEditForm(item, true, this);
                form.ShowDialog();

                if (form.ActionResult == DialogResult.OK)
                {
                    //_entity.LoadChilds(typeof(Alumno_Promocion));
                    Datos_Alumnos.DataSource = Datos_Alumnos.DataSource = AlumnoList.GetListByPromocion(EntityInfo.Oid, false);
                }
            }
            catch { }
        }