/**
* 新增版本
*
* @return
*/
public String AddVersionInfo() {
// 快捷菜单
Integer code = Integer.parseInt(get("code").toString().trim());
this.getmenu(code, this.getRequest());
Baseversion entity = new Baseversion();
this.copyPropertiesToBean(entity);
if (this.bscs.AddBaseversion(entity)) {
// hql.delete(0, hql.length());
// hql.append("<script>alert('添加成功!可在配置标准版本中添加监测标准及标准元素');if(window!=parent){parent.frames['ovfirame'].location='QueryBasespace.action?code=")
// .append(get("code")).append("&dic=").append(get("dic")).append("&xmlb=").append(get("xmlb"))
// .append("';parent.document.getElementById('popCloseBox').click();};</script>");
// out.print(hql.toString());
this.hql.delete(0, hql.length());
hql.append("<script> if(confirm('添加成功!是否现在配置元素?')){")
.append("if(window!=parent){parent.document.getElementById('popCloseBox').click();")
.append("parent.frames['ovfirame'].location='OpenConfigVersionElement.action?id=").append(entity.getId()).append("&code=").append(code).append("'")
.append("}")
.append("}else{")
.append("if(window!=parent){parent.document.getElementById('popCloseBox').click();")
.append("parent.frames['ovfirame'].location='../Baseversion/QueryVersion.action?").append("&code=").append(code).append("'")
.append("}")
.append("}</script>");
out.print(hql.toString());
// out
// .println("<script> "
// + "if(confirm('添加成功!是否现在配置元素?')){"
// + "window.location.href='OpenConfigVersionElement.action?id="
// + entity.getId() + "&code=" + code + "' }else{window.history.go(-1);}"
// + "</script>");
} else {
out
.println("<script>alert('添加失败!');window.history.go(-1);</script>");
}
return null;
}