Пример #1
0
        public ActionResult FAC_001()
        {
            cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info
            {
                IdEmpresa  = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal),
                IdCliente  = 0,
                IdProducto = 0,
                Check1     = false
            };

            cargar_combos(model);
            FAC_001_Rpt report = new FAC_001_Rpt();

            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_fecha_ini.Value        = model.fecha_ini;
            report.p_fecha_fin.Value        = model.fecha_fin;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_IdCliente.Value        = model.IdCliente;
            report.p_IdVendedor.Value       = model.IdVendedor;
            report.p_IdProducto.Value       = model.IdProducto;
            report.p_mostrar_anulados.Value = model.Check1;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;
            return(View(model));
        }
        public ActionResult FAC_001(cl_filtros_facturacion_Info model)
        {
            FAC_001_Rpt report = new FAC_001_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_001");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_fecha_ini.Value        = model.fecha_ini;
            report.p_fecha_fin.Value        = model.fecha_fin;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_IdCliente.Value        = model.IdCliente;
            report.p_IdVendedor.Value       = model.IdVendedor;
            report.p_IdProducto.Value       = model.IdProducto;
            report.p_mostrar_anulados.Value = model.Check1;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_combos(model);
            ViewBag.Report = report;
            return(View(model));
        }
Пример #3
0
        public ActionResult FAC_001(cl_filtros_facturacion_Info model)
        {
            FAC_001_Rpt report = new FAC_001_Rpt();

            report.p_IdEmpresa.Value          = model.IdEmpresa;
            report.p_fecha_ini.Value          = model.fecha_ini;
            report.p_fecha_fin.Value          = model.fecha_fin;
            report.p_IdSucursal.Value         = model.IdSucursal;
            report.p_IdCliente.Value          = model.IdCliente;
            report.p_IdCliente_contacto.Value = model.IdClienteContacto;
            report.p_IdVendedor.Value         = model.IdVendedor;
            report.p_IdProducto.Value         = model.IdProducto;
            report.p_IdProducto_padre.Value   = model.IdProductoPadre;
            report.p_mostrar_anulados.Value   = model.Check1;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_combos(model);
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }