37 lines
1.4 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
页面说明: 公告详情
*/
//获得页面参数
String sBoardNo = CurPage.getParameter("BoardNo");
if(sBoardNo==null) sBoardNo="";
ASObjectModel doTemp = new ASObjectModel("BoardInfo");
doTemp.setDefaultValue("SHOWTOORG", CurUser.getOrgID());
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
dwTemp.genHTMLObjectWindow(sBoardNo);
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","saveRecord()","","","",""},
//{"true","","Button","上传文件","上传文件","fileadd()","","","","btn_icon_up"},
};
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveRecord(sPostEvents){
as_save("myiframe0","parent.window.location.reload()");
}
function fileadd(){
var sDocNo = getItemValue(0,getRow(),"RELATIVE_ID");
if(typeof(sDocNo)=="undefined" || sDocNo.length==0) {
alert("先保存信息再上传文件!");
return ;
}else{
parent.AsDialog.PopView("/Tenwa/Comm/Board/LBDocListFrame.jsp", "RELATIVE_ID="+sDocNo+"&RightType=notReadOnly", "dialogWidth=650px;dialogHeight=350px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",null,"附件管理");
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>