Compare commits
No commits in common. "266921822b3a104524db7296849aded73c6f3875" and "79a5bf13e465b93c46683ba5d8e2c726888f408b" have entirely different histories.
266921822b
...
79a5bf13e4
|
|
@ -1,32 +0,0 @@
|
||||||
package tqq9.lc123.cloud.app.api.plugin;
|
|
||||||
|
|
||||||
import kd.bos.bill.AbstractBillPlugIn;
|
|
||||||
import kd.bos.logging.Log;
|
|
||||||
import kd.bos.logging.LogFactory;
|
|
||||||
import kd.sdk.plugin.Plugin;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
|
|
||||||
import java.util.EventObject;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单据界面插件
|
|
||||||
* 在进入后采购变更单里的泛微状态显示为待提交
|
|
||||||
*/
|
|
||||||
public class FWDefaultApprovalStatusPlugin extends AbstractBillPlugIn implements Plugin {
|
|
||||||
private final static Log logger = LogFactory.getLog(FWDefaultApprovalStatusPlugin.class);
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void afterCreateNewData(EventObject e) {
|
|
||||||
super.afterCreateNewData(e);
|
|
||||||
//获取到单据界面的泛微审批状态
|
|
||||||
String tqq9_fwstate = (String) this.getModel().getValue("tqq9_fwstate");
|
|
||||||
//判断是否为空
|
|
||||||
if(StringUtils.isBlank(tqq9_fwstate)){
|
|
||||||
//设置默认值
|
|
||||||
this.getModel().setValue("tqq9_fwstate", "A");
|
|
||||||
logger.info("默认值设置成功");
|
|
||||||
} else {
|
|
||||||
logger.info("默认值已存在");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue