/**
*
* 描述:重写父类方法;提示不能为空的信息(改字段名称)
*
* @author:win
* @see com.kingdee.eas.framework.client.EditUI#beforeStoreFields(java.awt.event.ActionEvent)
*/
protected void beforeStoreFields(ActionEvent arg0) throws Exception {
if (com.kingdee.bos.ui.face.UIRuleUtil.isNull(txtNumber.getText())) {
throw new com.kingdee.eas.common.EASBizException(com.kingdee.eas.common.EASBizException.CHECKBLANK, new Object[] { "企业编码" });
}
if (com.kingdee.bos.ui.face.UIRuleUtil.isNull(txtName.getDefaultLangItemData())) {
throw new com.kingdee.eas.common.EASBizException(com.kingdee.eas.common.EASBizException.CHECKBLANK, new Object[] { "企业名称" });
}
if (com.kingdee.bos.ui.face.UIRuleUtil.isNull(prmtType.getData())) {
throw new com.kingdee.eas.common.EASBizException(com.kingdee.eas.common.EASBizException.CHECKBLANK, new Object[] { "所属行业" });
}
if (com.kingdee.bos.ui.face.UIRuleUtil.isNull(prmtChuShi.getData())) {
throw new com.kingdee.eas.common.EASBizException(com.kingdee.eas.common.EASBizException.CHECKBLANK, new Object[] { "所属处室" });
}
super.beforeStoreFields(arg0);
}
检验判断控件值不能为空
最新推荐文章于 2021-01-15 11:14:55 发布