public ActionResult GridViewPartial_ParametrizacionContableProducto(int IdSucursal = 0, int IdBodega = 0) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); SessionFixed.IdTransaccionSessionActual = Request.Params["TransaccionFixed"] != null ? Request.Params["TransaccionFixed"].ToString() : SessionFixed.IdTransaccionSessionActual; ViewBag.IdEmpresa = IdEmpresa; ViewBag.IdSucursal = IdSucursal; ViewBag.IdBodega = IdBodega; List <in_producto_x_tb_bodega_Info> model = bus_producto_x_tbbodega.get_list_x_bodega(IdEmpresa, IdSucursal, IdBodega); Lis_in_producto_x_tb_bodega_Info_List.set_list(model, Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); return(PartialView("_GridViewPartial_ParametrizacionContableProducto", model)); }
public ActionResult Index() { #region Validar Session if (string.IsNullOrEmpty(SessionFixed.IdTransaccionSession)) { return(RedirectToAction("Login", new { Area = "", Controller = "Account" })); } SessionFixed.IdTransaccionSession = (Convert.ToDecimal(SessionFixed.IdTransaccionSession) + 1).ToString(); SessionFixed.IdTransaccionSessionActual = SessionFixed.IdTransaccionSession; #endregion cl_filtros_Info model = new cl_filtros_Info { IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual), IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdBodega = 0 }; CargarCombosConsulta(model); var lst = bus_producto_x_tbbodega.get_list_x_bodega(model.IdEmpresa, model.IdSucursal, model.IdBodega); Lis_in_producto_x_tb_bodega_Info_List.set_list(lst, Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)); return(View(model)); }