you cannot apply for work permit or residence permit on your arrival. if you are coming on a visit visa... it is just that - a visit visa. only employers can apply for work visas for potential employees, Residence permit would be an automatic thing once you have work visa.
you have to find a job first - your employer will take care of the rest. DO NOT WORK on a visit visa.