1 TrainVerifyUtils
TrainVerifyUtils.verifyRepeatRow(this, kdtEntrys, "type", "试题类型");
2 TrainUtils
TrainUtils.getSelectedValues(tblMain);
3 commonUtilFacade
if (commonUtilFacade.checkColumnDup("CT_BD_QuaItem", "FNumber",
editData.getNumber(), editData.getId())) {
MsgBox.showInfo(this, EASResource.getString(RES, "number_repeat"));
SysUtil.abort();
}
4 必录项检查
// 检查必填项调用代码
KDLabelContainer[] container = new KDLabelContainer[] { contNumber,
conttitle,contsystem,contBizDate,contstartTime,contendTime,conttotalScore,conttotalTime,contstate };
STException exc = STRequiredUtils.checkRequiredItem(container);
if (STUtils.isNotNull(exc)) {
super.handUIExceptionAndAbort(exc);
}