A police officer carried out pub shifts while off sick and accessed confidential records linked to an ex-partner, a misconduct panel has heard.