how to create number sequence based on hiring type value

Are you talking about \Data Dictionary\Tables\HcmWorker\Fields\PersonnelNumber?