Within 15 days after a foreigner enters the country with a valid visa, the employer shall apply for a foreigner's work permit online and obtain the certificate from the local foreigner work management department. Within 30 days after entering the country with a valid visa, foreigners need to apply for work-related residence certificates at the exit-entry administration department of the public security organ where the employer is located.