辞职 means employees don't want to do the jobs and leave the job initiatively.
离职 is a more euphemistic saying about leaving the position because it can mean either you choose to leave or you've been fired. 离职 refer to a state of leaving.
辞退 has the same meaning of 炒鱿鱼, but 辞退 is a formal word used in files and docunments or something like an official word, while 炒鱿鱼 is informal often used in daily life with friends.
About 炒鱿鱼:Now we don't always say "我被炒鱿鱼了",instead we say "我被炒了" for convenience.