20130621 home combine

fix getOwnedDepartment function to make it be able to get all
sub-department
fix sales activity export issue