最后,为了每次打开项目后,都能得到最新的工龄数据,可以在AfterOpenProject事件中,设置下面的代码:
DataTables("员工").DataCols("入职日期").RaiseDataColChanged()