|
@@ -129,6 +129,26 @@ public class BusinessProcessingUnAuditEditPlugin extends AbstractListPlugin imp
|
|
|
draw.getOption().setVariableValue("orgnumber", number);
|
|
|
draw.getOption().setVariableValue("JSONArray", jSONArray.toString());
|
|
|
draw.getOption().setVariableValue("type", "draw-ssysd");
|
|
|
+ }else if (draw.getOperateKey().equals("draw-clyf")) {
|
|
|
+ //诉讼核销
|
|
|
+ Object values = this.getModel().getValue("applier");//获取当前单据报销人
|
|
|
+ DynamicObject dynamicObjects = (DynamicObject) values;
|
|
|
+ if (dynamicObjects == null) {
|
|
|
+ throw new KDBizException("报销人为空!");
|
|
|
+ }
|
|
|
+ DynamicObjectCollection nckdEntryentity1 = this.getModel().getEntryEntity("nckd_clearloanentry");
|
|
|
+ JSONArray jSONArray = new JSONArray();
|
|
|
+ for(int i=0;i<nckdEntryentity1.size();i++){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ DynamicObject dynamicObject1 = nckdEntryentity1.get(i);
|
|
|
+ String nckdTextfield7 = dynamicObject1.getString("nckd_bigintfield2");
|
|
|
+ jsonObject.put("id",nckdTextfield7);
|
|
|
+ jSONArray.add(jsonObject);
|
|
|
+ }
|
|
|
+ String userid = dynamicObjects.getString("id");//当前单据报销人id
|
|
|
+ draw.getOption().setVariableValue("userid", userid);
|
|
|
+ draw.getOption().setVariableValue("JSONArray", jSONArray.toString());
|
|
|
+ draw.getOption().setVariableValue("type", "draw-clyf");
|
|
|
}
|
|
|
}
|
|
|
super.beforeDoOperation(args);
|