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. 2
0
 private void cargar_combos(int IdNomina_Tipo, int IdNomina_Tipo_Liqui)
 {
     try
     {
         int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
         lista_nomina            = bus_nomina.get_list(IdEmpresa, false);
         lst_nomina_tipo         = bus_nomina_tipo.get_list(IdEmpresa, IdNomina_Tipo);
         lst_periodos            = bus_periodos_x_nomina.get_list_utimo_periodo_aprocesar(IdEmpresa, IdNomina_Tipo, IdNomina_Tipo_Liqui);
         ViewBag.lst_nomina      = lista_nomina;
         ViewBag.lst_nomina_tipo = lst_nomina_tipo;
         ViewBag.lst_periodos    = lst_periodos;
         var lst_sucursal = bus_sucursal.GetList(IdEmpresa, SessionFixed.IdUsuario, false);
         ViewBag.lst_sucursal = lst_sucursal;
     }
     catch (Exception)
     {
         throw;
     }
 }