// === EIP4 P4 脚本迁移产出 === // template_id : 56358546-3cc7-4041-ad27-c72737bfc925 // template_name: 批量打印进料入库单 // seq : 1 // label : NO_S3 // 处置 : 无 S3 模式,原样进 P4 def materiallists = getFieldValue("PM_MATERIALAPPLY_ID_OLD"); def strMaterial = ""; if(materiallists != null){ materiallists.each{ strMaterial = strMaterial + "," + "'" + it + "'"; } strMaterial = GetValueFunction.replaceFirst(strMaterial,',',''); bindField("PM_MATERIALAPPLY_ID",strPayment); }