Visa information

I have submitted all the medical documents to QP on last week.They interviewed me in India.I have done the medical in India and send the document.They will send the entry visa first or the work permit visa.How much time it will take to get a visa after submittig the medical documents.If they are sending the entry visa ,work permit visa will be getting only after arriving in qatar.In that case family can also take along with entry visa.