public void generarRemito(Entrega instaciaEntrega, List <DetalleLogistica> instanciaListaDetalle)
        {
            IU_VistaPrevia vistaPrevia = new IU_VistaPrevia();

            vistaPrevia.tomarModelo(modeloRemito, "Orden de Remito");
            vistaPrevia.generarRemito(instaciaEntrega, instanciaListaDetalle);
            vistaPrevia.ShowDialog();
        }
 //PENDIENTE
 private bool mostrarVistaPrevia()
 {
     vistaPrevia = new IU_VistaPrevia();
     vistaPrevia.tomarModelo(modeloPresupuesto, "Presupuesto");
     vistaPrevia.generarPresupuesto(listaDetalle, presupuesto);
     vistaPrevia.btn_imprimir.Text = "Confirmar";
     vistaPrevia.ShowDialog();
     return(vistaPrevia.confirmacion);
 }
 private bool mostrarVistaPrevia()
 {
     vistaPrevia = new IU_VistaPrevia();
     vistaPrevia.tomarModelo(modeloNotaCredito, "Note de Credito");
     vistaPrevia.btn_imprimir.Text = "Confirmar";
     vistaPrevia.generarNotaDeCredito(listaDetalleNotaCredito, notaCredito);
     vistaPrevia.ShowDialog();
     return(vistaPrevia.confirmacion);
 }
Exemplo n.º 4
0
        public void nuevoRegistroPedido()
        {
            if (_detalleCompra.Count == 0)
            {
                _interfazPedidoCompra.mostrarMensajeErrorListaVacia();
            }
            else
            {
                int b = 0;
                foreach (var item in _detalleCompra)
                {
                    if (item.Cantidad == 0)
                    {
                        b = 1;
                    }
                    else if (item.CodigoProveedor == 0)
                    {
                        b = 1;
                    }
                }
                if (b == 0)
                {
                    //REGISTRO MASIVO
                    registrarCompra();
                    registrarDetalleCompra();
                    registrarRecepcion();
                    registrarDetalleLogistica();

                    //VISTA PREVIA
                    _interfazVistaPrevia.tomarModelo(modeloPedido, "Orden de compra");
                    _interfazVistaPrevia.generarPedido(_compra, _detalleCompra);
                    _interfazVistaPrevia.ShowDialog();
                    //Mensaje confirmacion
                    _interfazPedidoCompra.mostrarMensajeConfirmacion();
                }
                else
                {
                    //Mensaje error
                    _interfazPedidoCompra.mostrarMensajeErrorCampos();
                }
            }
        }