|
@@ -1,5 +1,6 @@
|
|
|
package fi.em.formPlugin;
|
|
|
|
|
|
+import kd.bos.context.RequestContext;
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
|
|
import kd.bos.entity.datamodel.events.ChangeData;
|
|
@@ -15,6 +16,7 @@ import kd.bos.form.operate.FormOperate;
|
|
|
import kd.bos.list.plugin.AbstractListPlugin;
|
|
|
import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
+import kd.bos.url.UrlService;
|
|
|
import kd.sdk.plugin.Plugin;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -154,6 +156,10 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl
|
|
|
}else {
|
|
|
this.setVieeVisible(nckd_generalemployees);
|
|
|
}
|
|
|
+ RequestContext ctx = RequestContext.get();
|
|
|
+ String clientPath = UrlService.getDomainContextUrlByTenantCode(ctx.getTenantCode());//拿到完整的客户端网址
|
|
|
+ String jspath = clientPath+"/public/thirdjs/salaryupload.js";
|
|
|
+ this.getView().executeClientCommand("loadThirdPartyJS",jspath);
|
|
|
}
|
|
|
//分录类型为薪酬明细(内退)
|
|
|
if (entrytype.equals("B")) {
|
|
@@ -164,6 +170,10 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl
|
|
|
}else {
|
|
|
this.setVieeVisible(nckd_earlyretired);
|
|
|
}
|
|
|
+ RequestContext ctx = RequestContext.get();
|
|
|
+ String clientPath = UrlService.getDomainContextUrlByTenantCode(ctx.getTenantCode());//拿到完整的客户端网址
|
|
|
+ String jspath = clientPath+"/public/thirdjs/salaryupload.js";
|
|
|
+ this.getView().executeClientCommand("loadThirdPartyJS",jspath);
|
|
|
}
|
|
|
//分录类型为薪酬明细退休
|
|
|
if (entrytype.equals("C")) {
|
|
@@ -174,6 +184,10 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl
|
|
|
}else {
|
|
|
this.setVieeVisible(nckd_retired);
|
|
|
}
|
|
|
+ RequestContext ctx = RequestContext.get();
|
|
|
+ String clientPath = UrlService.getDomainContextUrlByTenantCode(ctx.getTenantCode());//拿到完整的客户端网址
|
|
|
+ String jspath = clientPath+"/public/thirdjs/salaryupload.js";
|
|
|
+ this.getView().executeClientCommand("loadThirdPartyJS",jspath);
|
|
|
}
|
|
|
//分录类型为人力薪酬
|
|
|
if (entrytype.equals("D")) {
|
|
@@ -184,6 +198,10 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl
|
|
|
}else {
|
|
|
this.setVieeVisible(nckd_pay);
|
|
|
}
|
|
|
+ RequestContext ctx = RequestContext.get();
|
|
|
+ String clientPath = UrlService.getDomainContextUrlByTenantCode(ctx.getTenantCode());//拿到完整的客户端网址
|
|
|
+ String jspath = clientPath+"/public/thirdjs/salaryupload.js";
|
|
|
+ this.getView().executeClientCommand("loadThirdPartyJS",jspath);
|
|
|
}
|
|
|
//分录类型为人力薪酬(内退)
|
|
|
if (entrytype.equals("E")) {
|
|
@@ -195,6 +213,11 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl
|
|
|
this.setVieeVisible(nckd_payretird);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ RequestContext ctx = RequestContext.get();
|
|
|
+ String clientPath = UrlService.getDomainContextUrlByTenantCode(ctx.getTenantCode());//拿到完整的客户端网址
|
|
|
+ String jspath = clientPath+"/public/thirdjs/salaryupload.js";
|
|
|
+ this.getView().executeClientCommand("loadThirdPartyJS",jspath);
|
|
|
}
|
|
|
}
|
|
|
|