parent
440817d8a4
commit
3e97a8a7a1
|
@ -0,0 +1,40 @@
|
||||||
|
package shkd.repc.recon.formplugin;
|
||||||
|
|
||||||
|
import kd.bos.context.RequestContext;
|
||||||
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
|
import kd.bos.dataentity.utils.StringUtils;
|
||||||
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||||
|
import kd.bos.form.field.events.BeforeF7SelectListener;
|
||||||
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||||
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
|
import kd.sdk.plugin.Plugin;
|
||||||
|
|
||||||
|
import java.util.EventObject;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态表单插件
|
||||||
|
* 【工程进度汇报】
|
||||||
|
* wanc
|
||||||
|
* 2025-07-16
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class ContractProgressFormPlugin extends AbstractFormPlugin {
|
||||||
|
private final static String qeug_contractbill = "qeug_contractbill";//合同
|
||||||
|
@Override
|
||||||
|
public void afterCreateNewData(EventObject e) {
|
||||||
|
super.afterCreateNewData(e);
|
||||||
|
long orgId = RequestContext.get().getOrgId();
|
||||||
|
DynamicObject orgInfo = BusinessDataServiceHelper.loadSingle(orgId, "bos_org", "id,number,name");
|
||||||
|
this.getModel().setValue("qeug_org", orgInfo);//所属组织
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
public void propertyChanged(PropertyChangedArgs e) {
|
||||||
|
String fieldKey = e.getProperty().getName();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue