public bool changeDept() { bool result = false; DBaction db = new DBaction(); result = (db.ChangeDept(this.opCode, this.dept) > 0) ? true : false; db.Close(); return(result); }