コード例 #1
0
        public ActionResult INV_012()
        {
            cl_filtros_inventario_Info model = new cl_filtros_inventario_Info
            {
                IdEmpresa  = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdMarca    = 0,
                IdProducto = 0,
                dIAS       = 40
            };

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

            report.p_IdEmpresa.Value  = model.IdEmpresa;
            report.p_IdSucursal.Value = model.IdSucursal;
            report.p_IdBodega.Value   = model.IdBodega;
            report.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre;
            report.p_IdMarca.Value    = model.IdMarca;
            report.p_fechaIni.Value   = model.fecha_fin;
            report.p_dIAS.Value       = model.dIAS;
            report.usuario            = SessionFixed.IdUsuario.ToString();
            report.empresa            = SessionFixed.NomEmpresa.ToString();

            ViewBag.Report = report;
            return(View(model));
        }
コード例 #2
0
        public ActionResult Index(cl_filtros_inventario_Info model)
        {
            INV_004_Rpt report = new INV_004_Rpt();

            report.p_IdEmpresa.Value  = model.IdEmpresa;
            report.p_IdSucursal.Value = model.IdSucursal;
            report.p_IdBodega.Value   = model.IdBodega;
            report.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre;
            report.p_IdMarca.Value    = model.IdMarca;
            report.usuario            = SessionFixed.IdUsuario.ToString();
            report.empresa            = SessionFixed.NomEmpresa.ToString();
            cargar_combos(model.IdEmpresa);
            ViewBag.Report_s = report;

            INV_012_Rpt report_list = new INV_012_Rpt();

            report_list.p_IdEmpresa.Value  = model.IdEmpresa;
            report_list.p_IdSucursal.Value = model.IdSucursal;
            report_list.p_IdBodega.Value   = model.IdBodega;
            report_list.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre;
            report_list.p_IdMarca.Value    = model.IdMarca;
            report_list.p_fechaIni.Value   = model.fecha_fin;
            report_list.p_dIAS.Value       = model.dIAS;
            report_list.usuario            = SessionFixed.IdUsuario.ToString();
            report_list.empresa            = SessionFixed.NomEmpresa.ToString();
            cargar_combos(model.IdEmpresa);
            ViewBag.Report_l = report_list;
            return(View(model));
        }