EAS BOS 后台弹窗提示

//MsgBox.showInfo("")弹窗提示只能在UI界面使用,后台使用会报错
//如果想在后台弹窗提示,可以使用以下抛异常的方式,
//相当于前台的 MsgBox.showInfo(""); abort();

if(info.getUnit() == null || info.getUnit().getId() == null){
    //此语句会弹窗提示并终止程序
    throw new EASBizException(new NumericExceptionSubItem("","计量单位不能为空!"));
}



猜你喜欢

转载自blog.csdn.net/qq_25170493/article/details/83893331