Beispiel #1
0
        public System.Windows.Forms.DialogResult NuevoEdicion()
        {
            try
            {
                MView.ClearItem(true);
                //this.Item = new NaveViaje();
                //this.Item.NAVE_Codigo = Item.NAVE_Codigo;
                //this.Item.NAVE_Nombre = Item.NAVE_Nombre;

                //this.Item.ENTC_CodTransportista = ItemTransportista.ENTC_Codigo;
                this.Item.AUDI_UsrCrea = Session.UserName;
                this.Item.AUDI_FecCrea = Session.Fecha;
                this.Item.Instance     = Infrastructure.Aspect.BusinessEntity.InstanceEntity.Added;
                MView.SetItem(true);
                MView.DisableFromOV();
                return(((MAN011MView)MView).ShowDialog());
            }
            catch (Exception ex)
            {
                Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, Infrastructure.Aspect.Constants.Mensajes.NewPresenter, ex);
                return(System.Windows.Forms.DialogResult.Cancel);
            }
        }