예제 #1
0
        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", "ClienteTipo", "Index");
            ViewBag.Nuevo     = info.Nuevo;
            ViewBag.Modificar = info.Modificar;
            ViewBag.Anular    = info.Anular;
            #endregion

            fa_TerminoPago_Info model = new fa_TerminoPago_Info
            {
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession)
            };

            var lst = bus_terminopago.get_list(true);
            Lista_TerminoPago.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
예제 #2
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_sucursal = bus_sucursal.GetList(IdEmpresa, SessionFixed.IdUsuario, false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;

            var lst_vendedor = bus_vendedor.get_list(IdEmpresa, false);

            ViewBag.lst_vendedor = lst_vendedor;

            var lst_pago = bus_pago.get_list(false);

            ViewBag.lst_pago = lst_pago;

            var lst_NivelDescuento = bus_nivel.GetList(IdEmpresa, false);

            ViewBag.lst_NivelDescuento = lst_NivelDescuento;

            var lst_formapago = bus_catalogo.get_list((int)cl_enumeradores.eTipoCatalogoFact.FormaDePago, false);

            ViewBag.lst_formapago = lst_formapago;
        }
예제 #3
0
        private void cargar_combos(fa_cliente_Info info)
        {
            fa_NivelDescuento_Bus bus_nivel = new fa_NivelDescuento_Bus();
            var lst_nivel = bus_nivel.GetList(info.IdEmpresa, false);

            ViewBag.lst_nivel = lst_nivel;

            fa_formaPago_Bus bus_formapago = new fa_formaPago_Bus();
            var lst_formapago = bus_formapago.get_list(false);

            ViewBag.lst_formapago = lst_formapago;

            fa_cliente_tipo_Bus bus_clientetipo = new fa_cliente_tipo_Bus();
            var lst_clientetipo = bus_clientetipo.get_list(info.IdEmpresa, false);

            ViewBag.lst_clientetipo = lst_clientetipo;


            fa_TerminoPago_Bus bus_termino_pago = new fa_TerminoPago_Bus();
            var lst_termino_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_termino_pago = lst_termino_pago;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(info.IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;

            tb_Catalogo_Bus bus_catalogo = new tb_Catalogo_Bus();
            var             lst_tipo_doc = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPODOC), false);

            ViewBag.lst_tipo_doc = lst_tipo_doc;

            var lst_tipo_naturaleza = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPONATPER), false);

            ViewBag.lst_tipo_naturaleza = lst_tipo_naturaleza;

            tb_ciudad_Bus bus_ciudad = new tb_ciudad_Bus();
            var           lst_ciudad = bus_ciudad.get_list("", false);

            ViewBag.lst_ciudad = lst_ciudad;
        }
예제 #4
0
        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_x_tipo_doc(model.IdEmpresa, model.IdSucursal, cl_enumeradores.eTipoDocumento.GUIA.ToString());

            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_traslado.get_list(model.IdEmpresa, false);

            ViewBag.lst_tipo_traslado = lst_tipo_traslado;

            var lst_punto_venta_factura = bus_punto_venta.get_list_x_tipo_doc(model.IdEmpresa, model.IdSucursal, cl_enumeradores.eTipoDocumento.FACT.ToString());

            ViewBag.lst_punto_venta_factura = lst_punto_venta_factura;

            var lst_vendedor = bus_vendedor.get_list(model.IdEmpresa, false);

            ViewBag.lst_vendedor = lst_vendedor;

            var lst_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_pago = lst_pago;

            var lst_formapago = bus_catalogo.get_list((int)cl_enumeradores.eTipoCatalogoFact.FormaDePago, false);

            ViewBag.lst_formapago = lst_formapago;

            var lst_cliente_contactos = bus_cliente_contactos.get_list(model.IdEmpresa, model.IdCliente);

            ViewBag.lst_cliente_contactos = lst_cliente_contactos;
        }
예제 #5
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;

            var lst_vendedor = bus_vendedor.get_list(IdEmpresa, false);

            ViewBag.lst_vendedor = lst_vendedor;

            var lst_pago = bus_pago.get_list(false);

            ViewBag.lst_pago = lst_pago;

            var lst_NivelDescuento = bus_nivel.GetList(IdEmpresa, false);

            ViewBag.lst_NivelDescuento = lst_NivelDescuento;
        }
예제 #6
0
        private void cargar_combos(int IdEmpresa)
        {
            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;

            fa_Vendedor_Bus bus_vendedor = new fa_Vendedor_Bus();
            var             lst_vendedor = bus_vendedor.get_list(IdEmpresa, false);

            ViewBag.lst_vendedor = lst_vendedor;

            fa_TerminoPago_Bus bus_pago = new fa_TerminoPago_Bus();
            var lst_pago = bus_pago.get_list(false);

            ViewBag.lst_pago = lst_pago;
        }
예제 #7
0
        private void cargar_combos(fa_cliente_Info info)
        {
            fa_formaPago_Bus bus_formapago = new fa_formaPago_Bus();
            var lst_formapago = bus_formapago.get_list();

            ViewBag.lst_formapago = lst_formapago;

            fa_cliente_tipo_Bus bus_clientetipo = new fa_cliente_tipo_Bus();
            var lst_clientetipo = bus_clientetipo.get_list(info.IdEmpresa, false);

            ViewBag.lst_clientetipo = lst_clientetipo;

            Dictionary <int, string> lst_nivel_precio = new Dictionary <int, string>();

            lst_nivel_precio.Add(1, "Nivel 1");
            lst_nivel_precio.Add(2, "Nivel 2");
            lst_nivel_precio.Add(3, "Nivel 3");
            lst_nivel_precio.Add(4, "Nivel 4");
            lst_nivel_precio.Add(5, "Nivel 5");
            ViewBag.lst_nivel_precio = lst_nivel_precio;

            fa_TerminoPago_Bus bus_termino_pago = new fa_TerminoPago_Bus();
            var lst_termino_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_termino_pago = lst_termino_pago;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(info.IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;

            tb_Catalogo_Bus bus_catalogo = new tb_Catalogo_Bus();
            var             lst_tipo_doc = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPODOC), false);

            ViewBag.lst_tipo_doc = lst_tipo_doc;
            var lst_tipo_naturaleza = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPONATPER), false);

            ViewBag.lst_tipo_naturaleza = lst_tipo_naturaleza;
        }
예제 #8
0
        public ActionResult GridViewPartial_terminopago()
        {
            List <fa_TerminoPago_Info> model = bus_terminopago.get_list(true);

            return(PartialView("_GridViewPartial_terminopago", model));
        }