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_010() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdCategoria = "", fecha_ini = new DateTime(DateTime.Now.Year, 1, 1), fecha_fin = new DateTime(DateTime.Now.Year, 12, 31) }; cargar_combos(model); INV_010_Rpt report = new INV_010_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdMarca.Value = model.IdMarca; report.p_IdUsuario.Value = SessionFixed.IdUsuario; report.p_IdProducto.Value = 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_fechaIni.Value = model.fecha_ini; report.p_fechaFin.Value = model.fecha_fin; report.p_mostrarSinMovimiento.Value = model.mostrarSinMovimiento; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
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)); }
public ActionResult INV_015() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdProducto = 0, IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCategoria = "", IdLinea = 0, IdGrupo = 0, IdSubGrupo = 0 }; cargar_combos(model); INV_015_Rpt report = new INV_015_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 == null ? "" : model.IdCategoria; report.p_IdLinea.Value = model.IdLinea; report.p_IdGrupo.Value = model.IdGrupo; report.p_IdSubgrupo.Value = model.IdSubGrupo; report.p_MostrarAgrupado.Value = model.mostrar_agrupado; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
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)); }
public ActionResult INV_016() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCategoria = "", IdLinea = 0, IdGrupo = 0, IdSubGrupo = 0 }; cargar_combos(model); INV_016_Rpt report = new INV_016_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCategoria.Value = model.IdCategoria == null ? "" : model.IdCategoria; report.p_IdLinea.Value = model.IdLinea; report.p_IdGrupo.Value = model.IdGrupo; report.p_IdSubGrupo.Value = model.IdSubGrupo; report.p_noMostrarSinVenta.Value = model.no_mostrar_valores_en_0; report.p_IdUsuario.Value = model.IdUsuario; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult CmbProducto_Inventario() { SessionFixed.IdProducto_padre_dist = (!string.IsNullOrEmpty(Request.Params["IdProductoPadre"])) ? Request.Params["IdProductoPadre"].ToString() : "-1"; cl_filtros_inventario_Info model = new cl_filtros_inventario_Info(); return(PartialView("_CmbProducto_Inventario", model)); }
public ActionResult INV_013(cl_filtros_inventario_Info model) { INV_013_Rpt report = new INV_013_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; ViewBag.Report = report; return(View(model)); }
public ActionResult INV_006() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdProducto = 0, IdProductoPadre = 0 }; cargar_combos(model); if (model.mostrar_detallado) { INV_006_detalle_Rpt model_detalle = new INV_006_detalle_Rpt(); model_detalle.p_IdEmpresa.Value = model.IdEmpresa; model_detalle.p_IdSucursal.Value = model.IdSucursal; model_detalle.p_IdBodega.Value = model.IdBodega; model_detalle.P_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; model_detalle.p_IdProducto.Value = model.IdProducto ?? 0; model_detalle.p_IdUsuario.Value = SessionFixed.IdUsuario; model_detalle.p_fecha_ini.Value = model.fecha_ini; model_detalle.p_fecha_fin.Value = model.fecha_fin; model_detalle.p_mostrar_detallado.Value = model.mostrar_detallado; model_detalle.p_no_mostrar_valores_en_0.Value = model.no_mostrar_valores_en_0; model_detalle.usuario = SessionFixed.IdUsuario; model_detalle.empresa = SessionFixed.NomEmpresa; ViewBag.report = model_detalle; } else { INV_006_resumen_Rpt model_resumen = new INV_006_resumen_Rpt(); model_resumen.p_IdEmpresa.Value = model.IdEmpresa; model_resumen.p_IdSucursal.Value = model.IdSucursal; model_resumen.p_IdBodega.Value = model.IdBodega; model_resumen.P_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; model_resumen.p_IdProducto.Value = model.IdProducto ?? 0; model_resumen.p_IdUsuario.Value = SessionFixed.IdUsuario; model_resumen.p_fecha_ini.Value = model.fecha_ini; model_resumen.p_fecha_fin.Value = model.fecha_fin; model_resumen.p_mostrar_detallado.Value = model.mostrar_detallado; model_resumen.p_no_mostrar_valores_en_0.Value = model.no_mostrar_valores_en_0; model_resumen.usuario = SessionFixed.IdUsuario; model_resumen.empresa = SessionFixed.NomEmpresa; ViewBag.report = model_resumen; } return(View(model)); }
public ActionResult INV_009(cl_filtros_inventario_Info model) { INV_009_Rpt report = new INV_009_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.p_IdMarca.Value = model.IdMarca; report.p_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : Convert.ToDecimal(model.IdProductoPadre); report.p_fechaCorte.Value = model.fecha_fin; cargar_combos(model); ViewBag.Report = report; return(View(model)); }
public ActionResult INV_008(cl_filtros_inventario_Info model) { INV_008_Rpt report = new INV_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.p_mostrar_saldos_en_0.Value = model.mostrar_saldos_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.lst_producto = List_decimal.get_list(); cargar_combos(model); ViewBag.Report = report; return(View(model)); }
public ActionResult INV_013() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdProducto = 0, }; INV_013_Rpt report = new INV_013_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; ViewBag.Report = report; return(View(model)); }
public ActionResult INV_004(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; cargar_combos(model); report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult INV_006(cl_filtros_inventario_Info model) { if (model.mostrar_detallado) { INV_006_detalle_Rpt report = new INV_006_detalle_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.P_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; report.p_IdProducto.Value = model.IdProducto ?? 0; report.p_IdUsuario.Value = SessionFixed.IdUsuario; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_detallado.Value = model.mostrar_detallado; report.p_no_mostrar_valores_en_0.Value = model.no_mostrar_valores_en_0; cargar_combos(model); report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; } else { INV_006_resumen_Rpt report = new INV_006_resumen_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.P_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; report.p_IdProducto.Value = model.IdProducto ?? 0; report.p_IdUsuario.Value = SessionFixed.IdUsuario; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_detallado.Value = model.mostrar_detallado; report.p_no_mostrar_valores_en_0.Value = model.no_mostrar_valores_en_0; cargar_combos(model); report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; } return(View(model)); }
public ActionResult INV_008() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa) }; List_decimal.set_list(new List <in_Producto_Info>()); cargar_combos(model); INV_008_Rpt report = new INV_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.p_mostrar_saldos_en_0.Value = model.mostrar_saldos_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult INV_009() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa) }; List_decimal.set_list(new List <in_Producto_Info>()); cargar_combos(model); INV_009_Rpt report = new INV_009_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdBodega.Value = model.IdBodega; report.p_IdMarca.Value = model.IdMarca; report.p_IdProductoPadre.Value = model.IdProductoPadre == null ? 0 : Convert.ToDecimal(model.IdProductoPadre); report.p_fechaCorte.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult INV_010(cl_filtros_inventario_Info model) { INV_010_Rpt report = new INV_010_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdMarca.Value = model.IdMarca; report.p_IdUsuario.Value = SessionFixed.IdUsuario; report.p_IdProducto.Value = 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_fechaIni.Value = model.fecha_ini; report.p_fechaFin.Value = model.fecha_fin; report.p_mostrarSinMovimiento.Value = model.mostrarSinMovimiento; cargar_combos(model); report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult CmbProductoPadre_Inventario() { cl_filtros_inventario_Info model = new cl_filtros_inventario_Info(); return(PartialView("_CmbProductoPadre_Inventario", model)); }
private void cargar_combos(cl_filtros_inventario_Info model) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); int IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal); tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus(); var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false); lst_sucursal.Add(new tb_sucursal_Info { IdEmpresa = IdEmpresa, IdSucursal = 0, Su_Descripcion = "TODAS" }); ViewBag.lst_sucursal = lst_sucursal; tb_bodega_Bus bus_bodega = new tb_bodega_Bus(); var lst_bodega = bus_bodega.get_list(IdEmpresa, IdSucursal, false); ViewBag.lst_bodega = lst_bodega; in_Producto_Bus bus_producto = new in_Producto_Bus(); var lst_producto = bus_producto.get_list(IdEmpresa, false); ViewBag.lst_producto = lst_producto; in_categorias_Bus bus_categoria = new in_categorias_Bus(); var lst_categoria = bus_categoria.get_list(IdEmpresa, false); lst_categoria.Add(new in_categorias_Info { IdEmpresa = model.IdEmpresa, IdCategoria = "", ca_Categoria = "Todos" }); ViewBag.lst_categoria = lst_categoria; in_linea_Bus bus_linea = new in_linea_Bus(); var lst_linea = bus_linea.get_list(IdEmpresa, model.IdCategoria, false); lst_linea.Add(new in_linea_Info { IdEmpresa = model.IdEmpresa, IdLinea = 0, nom_linea = "Todos" }); ViewBag.lst_linea = lst_linea; in_grupo_Bus bus_grupo = new in_grupo_Bus(); var lst_grupo = bus_grupo.get_list(IdEmpresa, model.IdCategoria, model.IdLinea, false); lst_grupo.Add(new in_grupo_Info { IdEmpresa = model.IdEmpresa, IdGrupo = 0, nom_grupo = "Todos" }); ViewBag.lst_grupo = lst_grupo; in_subgrupo_Bus bus_subgrupo = new in_subgrupo_Bus(); var lst_subgrupo = bus_subgrupo.get_list(IdEmpresa, model.IdCategoria, model.IdLinea, model.IdGrupo, false); lst_subgrupo.Add(new in_subgrupo_Info { IdEmpresa = model.IdEmpresa, IdSubgrupo = 0, nom_subgrupo = "Todos" }); ViewBag.lst_subgrupo = lst_subgrupo; in_Marca_Bus bus_marca = new in_Marca_Bus(); var lst_marca = bus_marca.get_list(IdEmpresa, false); lst_marca.Add(new Info.Inventario.in_Marca_Info { IdMarca = 0, Descripcion = "Todas" }); ViewBag.lst_marca = lst_marca; }