Esempio n. 1
0
 private void cargar_combos()
 {
     try
     {
         IdEmpresa                       = GetIdEmpresa();
         ViewBag.lst_area                = bus_area.get_list(IdEmpresa, false);
         ViewBag.lst_banco               = bus_banco.get_list(false);
         ViewBag.lst_cargo               = bus_cargo.get_list(IdEmpresa, false);
         ViewBag.lst_division            = bus_division.get_list(IdEmpresa, false);
         ViewBag.lst_departamento        = bus_departamento.get_list(IdEmpresa, false);
         ViewBag.lst_documento           = bus_catalogo_general.get_list(3, false);
         ViewBag.lst_sexo                = bus_catalogo_general.get_list(1, false);
         ViewBag.lst_estado_civil        = bus_catalogo_general.get_list(2, false);
         ViewBag.lst_tipo_docu           = bus_catalogo_general.get_list(3, false);
         ViewBag.lst_estado_empleado     = bus_catalogorrhh.get_list_x_tipo(25);
         ViewBag.lst_pais                = bus_pais.get_list(false);
         ViewBag.lst_ciudad              = bus_ciudad.get_list("", false);
         ViewBag.lst_empleado            = bus_empleado.get_list_combo(IdEmpresa);
         ViewBag.lst_punto_cargo         = bus_puntocargo.get_list(IdEmpresa, false);
         ViewBag.lst_horario             = bus_horario.get_list(IdEmpresa, false);
         ViewBag.lst_tipo_discapacidad   = bus_catalogorrhh.get_list_x_tipo(26);
         ViewBag.lst_tipo_doc_sustutuido = bus_catalogorrhh.get_list_x_tipo(29);
         ViewBag.lst_tipo_sangre         = bus_catalogorrhh.get_list_x_tipo(7);
         ViewBag.lst_tipo_licencia       = bus_catalogorrhh.get_list_x_tipo(10);
         ViewBag.lst_tipo_cuenta         = bus_catalogorrhh.get_list_x_tipo(9);
         ViewBag.lst_tipo_empleado       = bus_catalogorrhh.get_list_x_tipo(8);
         ViewBag.lst_sucursal            = bus_sucursal.get_list(IdEmpresa, false);
     }
     catch (Exception)
     {
         throw;
     }
 }
 private void cargar_combos()
 {
     IdEmpresa                = Convert.ToInt32(Session["IdEmpresa"].ToString());
     ViewBag.lst_division     = bus_divisiaon.get_list(IdEmpresa, false);
     ViewBag.lst_area         = bus_area.get_list(IdEmpresa, false);
     ViewBag.lst_departamento = bus_departamento.get_list(IdEmpresa, false);
 }
        private void cargar_combos()
        {
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);

            ViewBag.lst_division     = bus_divisiaon.get_list(IdEmpresa, false);
            ViewBag.lst_area         = bus_area.get_list(IdEmpresa, false);
            ViewBag.lst_departamento = bus_departamento.get_list(IdEmpresa, false);
        }
Esempio n. 4
0
 private void cargar_combos()
 {
     IdEmpresa                = Convert.ToInt32(Session["IdEmpresa"].ToString());
     ViewBag.lst_nomina       = bus_nomina.get_list(IdEmpresa, false);
     ViewBag.lst_sucursal     = bus_sucursal.get_list(IdEmpresa, false);
     ViewBag.lst_division     = bus_division.get_list(IdEmpresa, false);
     ViewBag.lst_area         = bus_area.get_list(IdEmpresa, false);
     ViewBag.lst_departamento = bus_departamento.get_list(IdEmpresa, false);
     ViewBag.lst_cargo        = bus_cargo.get_list(IdEmpresa, false);
     ViewBag.lst_horario      = bus_horario.get_list(IdEmpresa, false);
 }
 public ActionResult GridViewPartial_departamento()
 {
     try
     {
         List <ro_departamento_Info> model = bus_departamento.get_list(GetIdEmpresa(), true);
         return(PartialView("_GridViewPartial_departamento", model));
     }
     catch (Exception)
     {
         throw;
     }
 }
        private void cargar_combos(int IdEmpresa)
        {
            ro_nomina_tipo_Bus bus_nomina = new ro_nomina_tipo_Bus();

            var lst_nomina = bus_nomina.get_list(IdEmpresa, false);

            ViewBag.lst_nomina = lst_nomina;

            var lst_nomina_tipo = bus_nomina_tipo.get_list(IdEmpresa, false);

            lst_nomina_tipo.Add(new ro_Nomina_Tipoliqui_Info
            {
                IdEmpresa     = IdEmpresa,
                IdNomina_Tipo = 0,
                Descripcion   = "TODAS"
            });
            ViewBag.lst_nomina_tipo = lst_nomina_tipo;

            var lst_area = bus_area.get_list(IdEmpresa, false);

            lst_area.Add(new ro_area_Info
            {
                IdEmpresa   = IdEmpresa,
                IdArea      = 0,
                Descripcion = "TODAS"
            });
            ViewBag.lst_area = lst_area;

            var lst_periodos = bus_periodo_x_nominas.get_list_utimo_periodo_aprocesar(IdEmpresa, 0, 0);

            ViewBag.lst_periodos = lst_periodos;

            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;

            ro_departamento_Bus bus_dep = new ro_departamento_Bus();
            var lst_dep = bus_dep.get_list(IdEmpresa, false);

            ViewBag.lst_dep = lst_dep;

            tb_banco_procesos_bancarios_x_empresa_Bus bus_procesos = new tb_banco_procesos_bancarios_x_empresa_Bus();
            var lst_proceso = bus_procesos.get_list(IdEmpresa, false);

            ViewBag.lst_proceso = lst_proceso;
        }
Esempio n. 7
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

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

            List <ro_departamento_Info> lista = bus_departamento.get_list(model.IdEmpresa, true);
            Lista_Departamento.set_list(lista, Convert.ToDecimal(SessionFixed.IdTransaccionSession));

            return(View(model));
        }