// === EIP4 P4 脚本迁移产出 === // template_id : 087739c4-3dee-4bac-b031-772497addc6b // template_name: 部版安管人员证书 // seq : 1 // label : NO_S3 // 处置 : 无 S3 模式,原样进 P4 def list = new DateTime[2]; def time1 = GetDefaultValueFunction.currentDate(); //def time2 = GetValueFunction.lastDateOfMonth(GetDefaultValueFunction.currentDate()); list[0]=time1; //list[1] = time2; bindField("VALIDDATE",list); def searchMap=[:]; def solvelist=[]; searchMap["SYS_ENUMERATETYPE_ID"] = 'HR_EMPLOYEE_STATUS'; //searchMap["CODEDES"]=["处理中","已派工"]; searchMap["CODEVALUE"]=[1,4,5]; def list2 = GetServicesFunction.listSelectResult(searchMap,"SYS_ENUMERATE"); if(list2!=null && list2.size()>0){ list2.each{ solvelist.add(it.get_ID()); } } bindField("JOBSTATUSS",solvelist);