package com.yem.wm.im.xcsrcreditline;

import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.entity.datamodel.IDataModel;

import java.util.EventObject;

/**
 * @author zhouc
 * @date 2024/1/17 20:32
 * @className csrcreditlineFromEdut
 * @description 客户信保额度申请变更表单插件
 */
public class csrcreditlineFromEdut extends AbstractBillPlugIn {
    @Override
    public void afterBindData(EventObject e) {
        super.afterBindData(e);
        IDataModel model = this.getModel();
//        Long yem_masterid = (Long) model.getValue("yem_masterid");
//        if (yem_masterid > 0) {
//            DynamicObject component = BusinessDataServiceHelper.loadSingle(yem_masterid, "yem_im_csrcreditline");
//            if (component != null) {
//                BigDecimal yem_replylimit = component.getBigDecimal("yem_replylimit");
//                model.setValue("yem_orireplylimit", yem_replylimit);
//            }
//        }
    }

    @Override
    public void afterCreateNewData(EventObject e) {
        super.afterCreateNewData(e);

    }
}