コード例 #1
0
        public static DataTable ObtenerPuestos(EntidadPuestos entidad)
        {
            Estado = Funciones.ObtenerEstadoToken(entidad.txtToken);
            DT.Clear();

            // 0 expirado, 1 vigente
            if (Estado == 1)
            {
                SqlCommand Comando = Conexion.crearComandoProc("RRHH.SPObtenerPuestos");
                DT = Conexion.ejecutarComandoSelect(Comando);
                DT = Funciones.AgregarEstadoToken(DT, Estado.ToString());
            }
            else
            {
                DT = Funciones.AgregarEstadoToken(DT, "0");
            }

            return(DT);
        }
コード例 #2
0
        public static DataTable ObtenerDatosPuesto(EntidadPuestos entidad)
        {
            Estado = Funciones.ObtenerEstadoToken(entidad.txtToken);
            DT.Clear();

            // 0 expirado, 1 vigente
            if (Estado == 1)
            {
                SqlCommand Comando = Conexion.crearComandoProc("RRHH.SPObtenerDatosPuesto");
                Comando.Parameters.AddWithValue("@_IdRegistro", entidad.IdPuesto);

                DT = Conexion.ejecutarComandoSelect(Comando);
                DT = Funciones.AgregarEstadoToken(DT, Estado.ToString());
            }
            else
            {
                DT = Funciones.AgregarEstadoToken(DT, "0");
            }

            return(DT);
        }
コード例 #3
0
 public DataTable EliminarPuesto(EntidadPuestos entidad)
 {
     return(DatosPuestos.EliminarPuesto(entidad));
 }
コード例 #4
0
 public DataTable ObtenerDatosPuesto(EntidadPuestos entidad)
 {
     return(DatosPuestos.ObtenerDatosPuesto(entidad));
 }
コード例 #5
0
 public DataTable ActualizarPuesto(EntidadPuestos entidad)
 {
     return(DatosPuestos.ActualizarPuesto(entidad));
 }
コード例 #6
0
 public DataTable AgregarPuesto(EntidadPuestos entidad)
 {
     return(DatosPuestos.AgregarPuesto(entidad));
 }