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

            ct_plancta_Info model = new ct_plancta_Info
            {
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession),
                IdEmpresa            = Convert.ToInt32(SessionFixed.IdEmpresa),
            };

            var lst = bus_plancta.get_list(model.IdEmpresa, true, false);
            ListaPlancta.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
예제 #2
0
        public ActionResult GridViewPartial_plancta()
        {
            int IdEmpresa = Convert.ToInt32(Session["IdEmpresa"]);
            List <ct_plancta_Info> model = bus_plancta.get_list(IdEmpresa, true, false);

            return(PartialView("_GridViewPartial_plancta", model));
        }
예제 #3
0
        public ActionResult GridViewPartial_plancta()
        {
            int IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa);
            List <ct_plancta_Info> model = bus_plancta.get_list(IdEmpresa, true, false);

            return(PartialView("_GridViewPartial_plancta", model));
        }
예제 #4
0
        private void cargar_combos(int IdEmpresa)
        {
            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cuentas = lst_ctacble;
        }
예제 #5
0
        private void cargar_combos_detalle()
        {
            int IdEmpresa   = Convert.ToInt32(SessionFixed.IdEmpresa);
            var lst_cuentas = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;
        }
예제 #6
0
        private void cargar_combos(int IdEmpresa, string IdTipoSRI = "")
        {
            var lst_banco = bus_banco.get_list(false);

            ViewBag.lst_banco = lst_banco;
            var lst_tipo_cta = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIP_CTA_AC), false);

            ViewBag.lst_tipo_cta = lst_tipo_cta;
            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;


            var lst_cuentas = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;

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

            ViewBag.lst_ciudad = lst_ciudad;

            var lst_codigo = bus_codigo.get_list(IdTipoSRI, false);

            ViewBag.lst_codigo = lst_codigo;

            var lst_clase = bus_clase.get_list(IdEmpresa, false);

            ViewBag.lst_clase = lst_clase;
        }
        private void cargar_combos_detalle()
        {
            int            IdEmpresa   = Convert.ToInt32(Session["IdEmpresa"]);
            ct_plancta_Bus bus_cuenta  = new ct_plancta_Bus();
            var            lst_cuentas = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;
        }
예제 #8
0
        private void cargar_combos_detalle()
        {
            int IdEmpresa = Convert.ToInt32(Session["IdEmpresa"]);

            ViewBag.lst_catalogo     = bus_catalogo.get_list_x_tipo(34);
            ViewBag.lst_cta_contable = bus_cuenta.get_list(IdEmpresa, false, true);
            ViewBag.lst_nomina       = bus_nomina.get_list(IdEmpresa, false);
            ViewBag.lst_nomina_tipo  = bus_nomina_tipo.get_list(IdEmpresa, false);
        }
예제 #9
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_cuentas = bus_plancta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;
        }
예제 #10
0
        private void cargar_combos()
        {
            var lst_codigo_tipo = bus_tipo_codigo.get_list(true);

            ViewBag.lst_tipo = lst_codigo_tipo;

            var lst_ctacble = bus_plancta.get_list(Convert.ToInt32(SessionFixed.IdEmpresa), false, false);

            ViewBag.lst_cuentas = lst_ctacble;
        }
예제 #11
0
        private void cargar_combos()
        {
            var lst_impuesto_tipo = bus_impuesto_tipo.get_list();

            ViewBag.lst_tipo = lst_impuesto_tipo;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(Convert.ToInt32(Session["IdEmpresa"]), false, false);

            ViewBag.lst_cuentas = lst_ctacble;
        }
예제 #12
0
        private void cargar_combos_detalle()
        {
            int            IdEmpresa   = Convert.ToInt32(SessionFixed.IdEmpresa);
            ct_plancta_Bus bus_cuenta  = new ct_plancta_Bus();
            var            lst_cuentas = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;
            var lista_cp_codigo_SRI = bus_codigo_ret.get_list_cod_ret(false, IdEmpresa);

            ViewBag.lst_codigo_retencion = lista_cp_codigo_SRI;
        }
예제 #13
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_cuentas = bus_plancta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cuentas = lst_cuentas;

            Dictionary <string, string> lst_signo = new Dictionary <string, string>();

            lst_signo.Add("+", "+");
            lst_signo.Add("-", "-");
            ViewBag.lst_signo = lst_signo;
        }
예제 #14
0
 private void cargar_combo_detalle()
 {
     try
     {
         int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
         ViewBag.lst_cuentas = bus_cuentas.get_list(IdEmpresa, false, true);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #15
0
 private void cargar_combo_detalle()
 {
     try
     {
         IdEmpresa           = GetIdEmpresa();
         ViewBag.lst_cuentas = bus_cuentas.get_list(IdEmpresa, false, true);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #16
0
        private void cargar_combos_det()
        {
            int             IdEmpresa    = Convert.ToInt32(SessionFixed.IdEmpresa);
            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            ct_plancta_Bus bus_cuenta = new ct_plancta_Bus();
            var            lst_cuenta = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuenta = lst_cuenta;
        }
예제 #17
0
        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_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;
        }
예제 #18
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_cuentas = bus_plancta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cuentas = lst_cuentas;

            var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_responsable = bus_usuario.get_list(false);

            ViewBag.lst_responsable = lst_responsable;
        }
예제 #19
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_cuentas = bus_plancta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cuentas = lst_cuentas;

            var lst_sucursal = bus_sucursal.GetList(IdEmpresa, Convert.ToString(SessionFixed.IdUsuario), false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_responsable = bus_usuario.get_list(false);

            ViewBag.lst_responsable = lst_responsable;
        }
예제 #20
0
        private void cargar_combos(int IdEmpresa)
        {
            Dictionary <string, string> lst_tipo_nota = new Dictionary <string, string>();

            lst_tipo_nota.Add("CHEQ", "Cheque");
            lst_tipo_nota.Add("DEPO", "Depósito");
            lst_tipo_nota.Add("NCBA", "Nota de crédito");
            lst_tipo_nota.Add("NDBA", "Nota de débito");
            ViewBag.lst_tipo_nota = lst_tipo_nota;

            var lst_cuenta = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuenta = lst_cuenta;
        }
        private void cargar_combos_detalle()
        {
            var lst_undades = bus_unidad_medida.get_list(false);

            ViewBag.lst_undades = lst_undades;

            int            IdEmpresa   = Convert.ToInt32(SessionFixed.IdEmpresa);
            ct_plancta_Bus bus_cuenta  = new ct_plancta_Bus();
            var            lst_cuentas = bus_cuenta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_cuentas;

            var lst_gastos = bus_gastos_tipo.get_list();

            ViewBag.lst_gastos = lst_gastos;
        }
예제 #22
0
        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_cta = bus_cta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cta = lst_cta;

            Dictionary <string, string> lst_forma = new Dictionary <string, string>();

            lst_forma.Add("Por_Activo", "Por activo");
            lst_forma.Add("Por_Tipo_CtaCble", "Por tipo");
            lst_forma.Add("¨Por_CtaCble", "Por parámetros");
            ViewBag.lst_forma = lst_forma;
        }
        private void cargar_combos(int IdEmpresa)
        {
            ct_plancta_Bus bus_cta = new ct_plancta_Bus();
            var            lst_cta = bus_cta.get_list(IdEmpresa, false, false);

            ViewBag.lst_cta = lst_cta;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            lst_sucursal.Add(new Info.General.tb_sucursal_Info
            {
                IdSucursal     = 0,
                Su_Descripcion = "TODOS"
            });
            ViewBag.lst_sucursal = lst_sucursal;
        }
예제 #24
0
        private void cargar_combos(int IdEmpresa)
        {

            Dictionary<string, string> lst_cta = new Dictionary<string, string>();
            lst_cta.Add("cuenta de ahorro", "Cuenta de ahorro");
            lst_cta.Add("cuenta corriente", "Cuenta corriente");
            ViewBag.lst_cta = lst_cta;

            Dictionary<bool, string> lst_impresion = new Dictionary<bool, string>();
            lst_impresion.Add(true, "solo cheque");
            lst_impresion.Add(false, "Cheque y comprobante");
            ViewBag.lst_impresion = lst_impresion;

            var lst_banco = bus_banco.get_list(false);
            ViewBag.lst_banco = lst_banco;

            var lst_cuenta = bus_cuentacontable.get_list(IdEmpresa, false, false);
            ViewBag.lst_cuenta = lst_cuenta;
        }
예제 #25
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;
        }
예제 #26
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;
        }
예제 #27
0
        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_ban_tipo_cbte = bus_ban_cbte.get_list();

            ViewBag.lst_ban_tipo_cbte = lst_ban_tipo_cbte;

            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;

            Dictionary <string, string> lst_DebCre = new Dictionary <string, string>();

            lst_DebCre.Add("D", "Débito");
            lst_DebCre.Add("C", "Crédito");
            ViewBag.lst_DebCre = lst_DebCre;
        }
예제 #28
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_ctacble = bus_plancta.get_list(IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;
        }
예제 #29
0
        private void cargar_combos()
        {
            var lst_ctacble = bus_plancta.get_list(Convert.ToInt32(Session["IdEmpresa"]), false, true);

            ViewBag.lst_cuentas = lst_ctacble;
        }
예제 #30
0
 private void cargar_combos(int IdEmpresa)
 {
     ViewBag.lst_tipo_comprobante = bus_tipo_comprobante.get_list(IdEmpresa, false);
     ViewBag.lst_cuenta_contable  = bus_pla_cuenta.get_list(IdEmpresa, false, true);
     ViewBag.lst_estado           = bus_estado_op.get_list();
 }