Resignation to be submitted with one month work notice, at the end of notice period your residence visa will be cancelled and send back to your home country.
Employer might refuse to provide you with NOC to get employment in Qatar with another company since you did not completed his contract period.