25 lines
1.1 KiB
Java
25 lines
1.1 KiB
Java
package tqq9.lc123.cloud.app.plugin.operate.sys;
|
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
import kd.sdk.plugin.Plugin;
|
|
|
|
/**
|
|
* 单据操作插件
|
|
* 物料 修改个性字段 操作 将 是否修改个性字段置为true
|
|
*/
|
|
public class MaterialXggxzdOp extends AbstractOperationServicePlugIn implements Plugin {
|
|
// @Override
|
|
// public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
|
// super.afterExecuteOperationTransaction(e);
|
|
// DynamicObject[] dataEntities = e.getDataEntities();
|
|
// for (DynamicObject material : dataEntities) {
|
|
// material = BusinessDataServiceHelper.loadSingle(material.getPkValue(), material.getDynamicObjectType().getName());
|
|
// material.set("tqq9_checkboxfield", true);
|
|
// SaveServiceHelper.save(new DynamicObject[]{material});
|
|
// }
|
|
// }
|
|
} |