State tax filing

Do I file as Form 140PY - Part-Year Resident or Form 140 - Resident? how does that work?