31 lines
1006 B
Java
31 lines
1006 B
Java
|
package shkd.repc.rebm.opplugin;
|
||
|
|
||
|
import kd.bos.dataentity.entity.DynamicObject;
|
||
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
||
|
|
||
|
/**
|
||
|
* 采购需求单
|
||
|
* qeug_purchaseapplybill
|
||
|
*/
|
||
|
public class PurapplyAuditOPPlugin extends AbstractOperationServicePlugIn {
|
||
|
|
||
|
@Override
|
||
|
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
||
|
super.afterExecuteOperationTransaction(e);
|
||
|
String operationKey = e.getOperationKey();
|
||
|
if ("audit".equals(operationKey)) {
|
||
|
DynamicObject[] dataEntities = e.getDataEntities();
|
||
|
DynamicObject dataEntity = dataEntities[0];
|
||
|
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("qeug_entryentity");
|
||
|
if (collection.isEmpty()) {
|
||
|
DynamicObject add = collection.addNew();
|
||
|
// add.set("",);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|