|
@@ -17,6 +17,7 @@ import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
|
import kd.bos.util.StringUtils;
|
|
|
+import nckd.base.helper.CommonHelperUtils;
|
|
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
import java.util.*;
|
|
@@ -80,8 +81,18 @@ public class DailyApplyBillEditPlugin extends AbstractBillPlugIn implements Befo
|
|
|
parameter.setFormId(formId);
|
|
|
if(StringUtils.isNotEmpty(formId)) {
|
|
|
this.getModel().setValue("nckd_pageid", formId);
|
|
|
+
|
|
|
+ //处理单据类型
|
|
|
+ QFilter f = new QFilter("number", "=", formId);
|
|
|
+ DynamicObject layoutInfo = BusinessDataServiceHelper.loadSingle("bos_formmeta", "id, number,name, basedatafield", f.toArray());
|
|
|
+
|
|
|
+ if(layoutInfo != null) {
|
|
|
+ DynamicObject billTypeInfo = CommonHelperUtils.queryBaseDynamicObject("bos_billtype", "layoutsolution", layoutInfo.getString("id"));
|
|
|
+ this.getModel().setValue("stdbilltype", billTypeInfo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if(customParams.get("viewType") != null){
|
|
|
String[] typeStrings = customParams.get("viewType").toString().split(",");
|
|
|
QFilter qFilter = new QFilter("number", QCP.in, typeStrings);
|