You have to apply for your work permit at the Pretoria Visa Office. South Africa is not a visa exempt country, which means you can't apply for your work permit at a port of entry. Regarding applying for PR at the same time as work permit all depends on the kind of stream you are applying under...