日期:2014-05-18 浏览次数:20656 次
try {
boolean bool = DataSourse.coreServeice.saveOrUpdateNurse(tzyzss,
thlxls, tjss, tjls, tperson, tnurse,tjcqks);
if (bool) {
DialogManager.invokeWarnDlg("保存基本信息成功!");
bool = DataSourse.coreServeice.saveOrUpdate(tkzperson);
if(!bool){
DialogManager.invokeWarnDlg("保存家属关系信息失败!");
}
} else {
DialogManager.invokeWarnDlg("保存失败!");
}
} catch (BusinessException e) {
e.printStackTrace();
}
public boolean saveOrUpdate(Object obj) throws DaoException {
try{
this.getHibernateTemplate().saveOrUpdate(obj);
}catch (Exception e) {
throw new DaoException(GlobalFun.getErrCauseMsg(e));
}
return true;
}