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); }
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); }
public DataTable EliminarPuesto(EntidadPuestos entidad) { return(DatosPuestos.EliminarPuesto(entidad)); }
public DataTable ObtenerDatosPuesto(EntidadPuestos entidad) { return(DatosPuestos.ObtenerDatosPuesto(entidad)); }
public DataTable ActualizarPuesto(EntidadPuestos entidad) { return(DatosPuestos.ActualizarPuesto(entidad)); }
public DataTable AgregarPuesto(EntidadPuestos entidad) { return(DatosPuestos.AgregarPuesto(entidad)); }