public override void EjecutarNuevo()
        {
            var fListaPrecio = new _00026_ABM_ListaPrecios(TipoOp.Nuevo, EntidadId);

            fListaPrecio.ShowDialog();
            ActualizarSegunOperacion(fListaPrecio.RealizoAlgunaOperacion);
        }
        public override void EjecutarEliminar()
        {
            if (!EntidadId.HasValue)
            {
                MessageBox.Show("¡La grilla esta vacia!", "Atencion", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return;
            }

            if (!((ListaPreciosDto)EntidadSeleccionada).EstaEliminado)
            {
                base.EjecutarEliminar();

                if (!PuedeEjecutarComando)
                {
                    return;
                }

                var fListaPrecio = new _00026_ABM_ListaPrecios(TipoOp.Eliminar, EntidadId);

                fListaPrecio.ShowDialog();

                ActualizarSegunOperacion(fListaPrecio.RealizoAlgunaOperacion);
            }
            else
            {
                MessageBox.Show(@"La Lista de Precios se encuetra Eliminada", @"Atención", MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
            }
        }
        private void btnAgregarLista_Click(object sender, EventArgs e)
        {
            var fLista = new _00026_ABM_ListaPrecios(TipoOp.Nuevo);

            fLista.ShowDialog();
            if (fLista.RealizoAlgunaOperacion)
            {
                CargarComboBox(cmbLista, _listaPreciosServicio.Obtener(string.Empty), "Descripcion", "Id");
            }
        }
Ejemplo n.º 4
0
        private void nuevaListaDePreciosToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            var fLista = new _00026_ABM_ListaPrecios(TipoOp.Nuevo);

            fLista.ShowDialog();
        }