用款申请单业务组织赋值

This commit is contained in:
xuhaihui 2025-07-16 10:17:59 +08:00
parent a746bc7661
commit 0660fc913a
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package zcgj.zcdev.zcdev.fs.plugin.form;
import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.datamodel.events.ChangeData;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.IClientViewProxy;
import kd.bos.form.control.AttachmentPanel;
@ -42,7 +44,10 @@ public class ApplicationfundsPlugin extends AbstractBillPlugIn implements Attach
setAttFileVisble();
}else if (e.getProperty().getName().equals("zcgj_org")) {
//所属组织
this.getModel().setValue("useorg", this.getModel().getValue("zcgj_org"));//业务组织
ChangeData[] changeSet = e.getChangeSet();
ChangeData changeData = changeSet[0];
DynamicObject zcgj_org = (DynamicObject) changeData.getNewValue();//新值
this.getModel().setValue("useorg", zcgj_org);//业务组织
}
super.propertyChanged(e);
}