private void cargar_FAC018(cl_filtros_facturacion_Info model) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); Dictionary <string, string> lst_naturaleza = new Dictionary <string, string>(); lst_naturaleza.Add("", "TODOS"); lst_naturaleza.Add("INT", "INTERNA"); lst_naturaleza.Add("SRI", "SRI"); ViewBag.lst_naturaleza = lst_naturaleza; fa_TipoNota_Bus bus_nota = new fa_TipoNota_Bus(); var lst_nota = bus_nota.get_list(IdEmpresa, false); lst_nota.Add(new fa_TipoNota_Info { No_Descripcion = "Todos", IdTipoNota = 0 }); ViewBag.lst_nota = lst_nota; Dictionary <string, string> lst_cre = new Dictionary <string, string>(); lst_cre.Add("C", "Nota de crédito"); lst_cre.Add("D", "Nota de débito"); ViewBag.lst_cre = lst_cre; }
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_tiponota() { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var model = bus_tiponota.get_list(IdEmpresa, true); return(PartialView("_GridViewPartial_tiponota", 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 #region Permisos seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Facturacion", "TipoNota", "Index"); ViewBag.Nuevo = info.Nuevo; ViewBag.Modificar = info.Modificar; ViewBag.Anular = info.Anular; #endregion fa_TipoNota_Info model = new fa_TipoNota_Info { IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession), IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), }; var lst = bus_tiponota.get_list(model.IdEmpresa, true); Lista_TipoNota.set_list(lst, model.IdTransaccionSession); return(View(model)); }
public JsonResult GetTipoNota(string CreDeb = "") { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); fa_TipoNota_Bus bus_nota = new fa_TipoNota_Bus(); var lst_nota = bus_nota.get_list(IdEmpresa, CreDeb, false); lst_nota.Add(new fa_TipoNota_Info { No_Descripcion = "Todos", IdTipoNota = 0 }); ViewBag.lst_nota = lst_nota; var resultado = lst_nota; return(Json(resultado, JsonRequestBehavior.AllowGet)); }
private void cargar_tiponota_check(int IdEmpresa, int[] intTipoArray) { fa_TipoNota_Bus bus_nota = new fa_TipoNota_Bus(); var lst_nota = bus_nota.get_list(IdEmpresa, false); if (intTipoArray == null || intTipoArray.Count() == 0) { } else { foreach (var item in lst_nota) { item.Seleccionado = (intTipoArray.Where(q => q == item.IdTipoNota).Count() > 0 ? true : false); } } ViewBag.lst_nota = lst_nota; }
private void cargar_combos(int IdEmpresa) { var lst_tipo_comprobante = bus_tipo_comprobante.get_list(IdEmpresa, false); ViewBag.lst_tipo_comprobante = lst_tipo_comprobante; var lst_tipo = bus_tipo.get_list(false); ViewBag.lst_tipo = lst_tipo; var lst_cta = bus_cta.get_list(IdEmpresa, false, false); ViewBag.lst_cta = lst_cta; var lst_ciudad = bus_ciudad.get_list("", false); ViewBag.lst_ciudad = lst_ciudad; }
private void cargar_combos(cxc_Parametro_Info model) { var lst_tipo_comprobante = bus_tipo_comprobante.get_list(model.IdEmpresa, false); ViewBag.lst_tipo_comprobante = lst_tipo_comprobante; var lst_cobrotipo = bus_cobrotipo.get_list(false); ViewBag.lst_cobrotipo = lst_cobrotipo; var lst_movimiento = bus_movimiento.get_list(model.IdEmpresa, false); ViewBag.lst_movimiento = lst_movimiento; var lst_caja = bus_caja.get_list(model.IdEmpresa, false); ViewBag.lst_caja = lst_caja; var lst_tiponota = bus_tiponota.get_list(model.IdEmpresa, "D", false); ViewBag.lst_tiponota = lst_tiponota; var lst_tipo_comprobante_ret = bus_tipo_comprobante.get_list(model.IdEmpresa, false); ViewBag.lst_tipo_comprobante_ret = lst_tipo_comprobante_ret; var lst_grupo_fuente = bus_grupo.GetList(model.IdEmpresa, false); ViewBag.lst_grupo_fuente = lst_grupo_fuente; var lst_punto_fuente = bus_punto.GetList(model.IdEmpresa, Convert.ToInt32(model.IdPunto_cargo_grupo_Fte), false, false); ViewBag.lst_punto_fuente = lst_punto_fuente; var lst_grupo_iva = bus_grupo.GetList(model.IdEmpresa, false); ViewBag.lst_grupo_iva = lst_grupo_iva; var lst_punto_iva = bus_punto.GetList(model.IdEmpresa, Convert.ToInt32(model.IdPunto_cargo_grupo_Iva), false, false); ViewBag.lst_punto_iva = lst_punto_iva; }
private void cargar_combos(int IdEmpresa) { var lst_tipo_comprobante = bus_tipo_comprobante.get_list(IdEmpresa, false); ViewBag.lst_tipo_comprobante = lst_tipo_comprobante; var lst_cobrotipo = bus_cobrotipo.get_list(false); ViewBag.lst_cobrotipo = lst_cobrotipo; var lst_movimiento = bus_movimiento.get_list(IdEmpresa, false); ViewBag.lst_movimiento = lst_movimiento; var lst_caja = bus_caja.get_list(IdEmpresa, false); ViewBag.lst_caja = lst_caja; var lst_tiponota = bus_tiponota.get_list(IdEmpresa, "D", false); ViewBag.lst_tiponota = lst_tiponota; }
private void cargar_combos(int IdEmpresa) { var lst_cuentas = bus_plancta.get_list(IdEmpresa, false, false); ViewBag.lst_cuentas = lst_cuentas; var lst_tipo_comprobante = bus_tipo_comprobante.get_list(IdEmpresa, false); ViewBag.lst_tipo_comprobante = lst_tipo_comprobante; var lst_tipo_movimiento = bus_tipo_movimiento.get_list(IdEmpresa, false); ViewBag.lst_tipo_movimiento_egr = lst_tipo_movimiento.Where(q => q.cm_tipo_movi == "-").ToList(); ViewBag.lst_tipo_movimiento_ing = lst_tipo_movimiento.Where(q => q.cm_tipo_movi == "+").ToList(); var lst_caja = bus_caja.get_list(IdEmpresa, false); ViewBag.lst_caja = lst_caja; var lst_nota = bus_nota.get_list(IdEmpresa, false); ViewBag.lst_nota = lst_nota; }
private void cargar_combos(fa_notaCreDeb_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_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", "Autorizado por el 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; }
public ActionResult GridViewPartial_tiponota() { var model = bus_tiponota.get_list(true); return(PartialView("_GridViewPartial_tiponota", model)); }