// === EIP4 P4 脚本迁移产出 === // template_id : a760fba0-693e-4f0a-8007-3bdca7fb0305 // template_name: 项目人员配置 // seq : 2 // label : NO_S3 // 处置 : 无 S3 模式,原样进 P4 def aa = getFieldValue("USERID"); def sql = "select PM_PROJECTUSERRECORD_ID FROM PM_PROJECTUSERRECORD WHERE USERID = '"+ aa+"' and ISLOCK = 1 "; Console.debug(sql); def list = GetServicesFunction.listSelectResultBySql([:],"PM_PROJECTUSERRECORD",sql,["PM_PROJECTUSERRECORD_ID"]); Console.debug(list); if(list != null && list.size()>0){ enableButton("删除",false); }