A 28-year-old Queensland man will face court after he allegedly fired a shotgun more than 16 times in an attack at his workplace in Gympie.