public ActionResult INV_003(cl_filtros_inventario_Info model) { INV_003_Rpt report = new INV_003_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.p_IdProducto.Value = model.IdProducto ?? 0; report.p_IdCategoria.Value = model.IdCategoria; report.p_IdLinea.Value = model.IdLinea; report.p_IdGrupo.Value = model.IdGrupo; report.p_IdSubgrupo.Value = model.IdSubGrupo; report.p_fecha_corte.Value = model.fecha_fin; report.p_mostrar_stock_0.Value = model.mostrar_saldos_en_0; report.p_mostrar_agrupados.Value = model.mostrar_agrupado; report.p_IdMarca.Value = model.IdMarca; report.p_AgruparPorID.Value = model.mostrar_detallado; cargar_combos(model); report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult INV_003() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdCategoria = "", IdMarca = 0, IdProducto = 0 }; cargar_combos(model); INV_003_Rpt report = new INV_003_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_IdCategoria.Value = model.IdCategoria; report.p_IdLinea.Value = model.IdLinea; report.p_IdGrupo.Value = model.IdGrupo; report.p_IdSubgrupo.Value = model.IdSubGrupo; report.p_fecha_corte.Value = model.fecha_fin; report.p_mostrar_stock_0.Value = model.mostrar_saldos_en_0; report.p_IdMarca.Value = model.IdMarca; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }