package yem.wmc.ca.opplugin.op;

import java.util.List;

import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs;
import kd.bos.entity.plugin.args.EndOperationTransactionArgs;

/**
 * 关务单据注册保存校
 *
 * @author lzb
 */
public class BilllogonSaveOp extends AbstractOperationServicePlugIn {
    @Override
    public void onPreparePropertys(PreparePropertysEventArgs e) {
        super.onPreparePropertys(e);
        List<String> keys = e.getFieldKeys();
        keys.add("");
    }

    @Override
    public void onAddValidators(AddValidatorsEventArgs e) {
        // TODO Auto-generated method stub
        super.onAddValidators(e);
        e.addValidator(new BilllogonSaveValidator());
    }

    @Override
    public void endOperationTransaction(EndOperationTransactionArgs e) {
        super.endOperationTransaction(e);
        String operationKey = e.getOperationKey();
        DynamicObject[] bills = e.getDataEntities();
        for (DynamicObject bill : bills) {

        }
    }
}
