使用EDT:HcmWorkerRecId做lookup下拉后设置过滤条件默认值
executiveDF.registerOverrideMethod(methodStr(FormReferenceControl, lookupReference),
methodStr(class, executiveDF_lookup),
this);
public void executiveDF_lookup(FormReferenceControl _formStringControl)
{
HcmWorkerLookup::newCustomOptions(true, true, true, false, false, true, true, true, true).lookupWorker(_formStringControl);
参数1 boolean _includeEmployees, // 包含员工
参数2 boolean _includeContractors, // 包含合同工
参数3 boolean _includeActive, // 已雇佣
参数4 boolean _includePending, // 挂起
参数5 boolean _includeTerminated, // 已终止
参数6 boolean _includeOnlyCurrentLegalEntity, // 当前法人
参数7 boolean _lockWorkerTypeFilters, // 锁定员工过滤
参数8 boolean _lockWorkerStatusFilters, // 锁定员工状态
参数9 boolean _lockLegalEntityFilters, // 锁定法人实体过滤
}
代码修改后效果: