예제 #1
0
        private void BtnReporteCotizaciones_Click(object sender, EventArgs e)
        {
            //BUSCAMOS EL HISTORIAL DE CAJA SEGUN LA FECHA

            var BuscarHistorialCaja = ObjDataCaja.Value.BuscaHistorialCaja(
                new Nullable <decimal>(),
                null,
                DateTime.Now,
                DateTime.Now);

            if (BuscarHistorialCaja.Count() < 1)
            {
                MessageBox.Show("No se encontraron registros para generar este reporte", VariablesGlobales.NombreSistema, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                //ELIMINAMOS LOS REGISTROS

                DSMarket.Logica.Entidades.EntidadesConfiguracion.EProcesarReporteCuadreCaja Eliminar = new Logica.Entidades.EntidadesConfiguracion.EProcesarReporteCuadreCaja();
                Eliminar.IdUsuario = VariablesGlobales.IdUsuario;
                var MANEliminar = ObjdataConfiguracion.Value.ProcesarCuadreCaja(Eliminar, "DELETE");

                foreach (var n in BuscarHistorialCaja)
                {
                    DSMarket.Logica.Entidades.EntidadesConfiguracion.EProcesarReporteCuadreCaja Procesar = new Logica.Entidades.EntidadesConfiguracion.EProcesarReporteCuadreCaja();

                    Procesar.IdUsuario        = VariablesGlobales.IdUsuario;
                    Procesar.IdCaja           = 1;
                    Procesar.Monto            = Convert.ToDecimal(n.Monto);
                    Procesar.Concepto         = n.Concepto;
                    Procesar.FechaProcesado   = Convert.ToDateTime(n.Fecha0);
                    Procesar.FechaDesde       = DateTime.Now;
                    Procesar.FechaHasta       = DateTime.Now;
                    Procesar.NumeroReferencia = Convert.ToDecimal(n.NumeroReferencia);
                    Procesar.IdTipoPago       = Convert.ToDecimal(n.IdTipoPago);

                    var MANProcesar = ObjdataConfiguracion.Value.ProcesarCuadreCaja(Procesar, "INSERT");
                }


                DSMarket.Solucion.Pantallas.Pantallas.Reportes.Reportes Invocar = new Pantallas.Reportes.Reportes();

                Invocar.GenerarCuadreCaja(
                    VariablesGlobales.IdUsuario);
                Invocar.ShowDialog();
            }
        }
예제 #2
0
 private void btnReporteComprobantesFiscales_Click(object sender, EventArgs e)
 {
     DSMarket.Solucion.Pantallas.Pantallas.Reportes.Reportes Invocar = new Pantallas.Reportes.Reportes();
     Invocar.GenerarReporteComprobantes();
     Invocar.ShowDialog();
 }