department model and view fixed.

fixed the possibility of duplication when editing semester record