My understanding is you should get a working permit first before you apply the working entry visa Z. May be someone who knows the case can share his experience.