fixing bug and refatoring
open and edit oficio finished.
field chek implemented.