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 #region Permisos seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Facturacion", "PuntoVenta", "Index"); ViewBag.Nuevo = info.Nuevo; ViewBag.Modificar = info.Modificar; ViewBag.Anular = info.Anular; #endregion cl_filtros_Info model = new cl_filtros_Info { IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession), IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), CodDocumentoTipo = "" }; cargar_combos_consulta(); var lst = bus_punto.get_list(model.IdEmpresa, model.IdSucursal, model.CodDocumentoTipo, true); Lista_PuntoVenta.set_list(lst, model.IdTransaccionSession); return(View(model)); }
public JsonResult CargarPuntosDeVenta(int IdSucursal = 0) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var resultado = bus_punto_venta.get_list(IdEmpresa, IdSucursal, false); return(Json(resultado, JsonRequestBehavior.AllowGet)); }
private void cargar_combos(fa_notaCreDeb_Info model) { var lst_sucursal = bus_sucursal.GetList(model.IdEmpresa, SessionFixed.IdUsuario, false); ViewBag.lst_sucursal = lst_sucursal; var lst_punto_venta = bus_punto_venta.get_list(model.IdEmpresa, model.IdSucursal, false); ViewBag.lst_punto_venta = lst_punto_venta; var lst_contacto = bus_contacto.get_list(model.IdEmpresa, model.IdCliente); ViewBag.lst_contacto = lst_contacto; Dictionary <string, string> lst_naturaleza = new Dictionary <string, string>(); lst_naturaleza.Add("INT", "INTERNO"); lst_naturaleza.Add("SRI", "SRI"); ViewBag.lst_naturaleza = lst_naturaleza; var lst_tipo_nota = bus_tipo_nota.get_list(model.IdEmpresa, "C", false); ViewBag.lst_tipo_nota = lst_tipo_nota; fa_Vendedor_Bus bus_vendedor = new fa_Vendedor_Bus(); var lst_vendedor = bus_vendedor.get_list(model.IdEmpresa, false); ViewBag.lst_vendedor = lst_vendedor; var lst_cliente_contactos = bus_cliente_contactos.get_list(model.IdEmpresa, model.IdCliente); ViewBag.lst_cliente_contactos = lst_cliente_contactos; }
public ActionResult GridViewPartial_puntoventa() { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); List <fa_PuntoVta_Info> model = bus_punto.get_list(IdEmpresa); return(PartialView("_GridViewPartial_puntoventa", model)); }
public ActionResult GridViewPartial_puntoventa(int IdSucursal = 0, string CodDocumentoTipo = "") { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); ViewBag.IdEmpresa = IdEmpresa; ViewBag.IdSucursal = IdSucursal; ViewBag.CodDocumentoTipo = CodDocumentoTipo; List <fa_PuntoVta_Info> model = bus_punto.get_list(IdEmpresa, IdSucursal, CodDocumentoTipo, true); return(PartialView("_GridViewPartial_puntoventa", model)); }
private void cargar_combos(fa_guia_remision_Info model) { var lst_sucursal = bus_sucursal.get_list(model.IdEmpresa, false); ViewBag.lst_sucursal = lst_sucursal; var lst_punto_venta = bus_punto_venta.get_list(model.IdEmpresa, model.IdSucursal, false); ViewBag.lst_punto_venta = lst_punto_venta; var lst_transportista = bus_transportista.get_list(model.IdEmpresa, false); ViewBag.lst_transportista = lst_transportista; var lst_contacto = bus_contacto.get_list(model.IdEmpresa, model.IdCliente); ViewBag.lst_contacto = lst_contacto; var lst_tipo_traslado = bus_catalogo.get_list(14, false); ViewBag.lst_tipo_traslado = lst_tipo_traslado; }