|
@@ -1,5 +1,6 @@
|
|
|
package nckd.jxccl.swc.hsbs.formplugin.web.basedata.salarygroup;
|
|
package nckd.jxccl.swc.hsbs.formplugin.web.basedata.salarygroup;
|
|
|
|
|
|
|
|
|
|
+import kd.bos.form.IFormView;
|
|
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
|
|
import kd.sdk.plugin.Plugin;
|
|
import kd.sdk.plugin.Plugin;
|
|
|
|
|
|
|
@@ -13,13 +14,16 @@ public class PerSalaryGroupEdit extends AbstractFormPlugin implements Plugin {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void afterCreateNewData(EventObject e) {
|
|
public void afterCreateNewData(EventObject e) {
|
|
|
- Object employeeIdObj = this.getView().getParentView().getFormShowParameter().getCustomParam("employeeId");
|
|
|
|
|
- if (null != employeeIdObj) {
|
|
|
|
|
- this.getView().getModel().setValue("nckd_employee", Long.parseLong(String.valueOf(employeeIdObj)));
|
|
|
|
|
- }
|
|
|
|
|
- Object salaryFileObj = this.getView().getParentView().getFormShowParameter().getCustomParam("salaryfileId");
|
|
|
|
|
- if (null != salaryFileObj) {
|
|
|
|
|
- this.getView().getModel().setValue("nckd_salaryfile", Long.parseLong(String.valueOf(salaryFileObj)));
|
|
|
|
|
|
|
+ IFormView parentView = this.getView().getParentView();
|
|
|
|
|
+ if(parentView != null) {
|
|
|
|
|
+ Object employeeIdObj = this.getView().getParentView().getFormShowParameter().getCustomParam("employeeId");
|
|
|
|
|
+ if (null != employeeIdObj) {
|
|
|
|
|
+ this.getView().getModel().setValue("nckd_employee", Long.parseLong(String.valueOf(employeeIdObj)));
|
|
|
|
|
+ }
|
|
|
|
|
+ Object salaryFileObj = this.getView().getParentView().getFormShowParameter().getCustomParam("salaryfileId");
|
|
|
|
|
+ if (null != salaryFileObj) {
|
|
|
|
|
+ this.getView().getModel().setValue("nckd_salaryfile", Long.parseLong(String.valueOf(salaryFileObj)));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|