79 lines
3.1 KiB
Plaintext
79 lines
3.1 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
/*
|
|
页面说明: 公告列表
|
|
*/
|
|
ASObjectModel doTemp = new ASObjectModel("BoardList");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="1"; //设置为Grid风格
|
|
dwTemp.ReadOnly = "1"; //设置为只读
|
|
dwTemp.setPageSize(10);
|
|
dwTemp.genHTMLObjectWindow("");
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","新增公告","新增公告","my_add()","","","",""},
|
|
{"true","All","Button","编辑正文","编辑正文","add_content()","","","",""},
|
|
{"true","All","Button","删除公告","删除公告","my_del()","","","",""},
|
|
{"false","","Button","公告详情","查看公告详情","my_detail()","","","",""},
|
|
{"false","","Button","公告附件","查看公告附件","DocDetail()","","","",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function my_add(){
|
|
AsControl.OpenView("/Tenwa/Comm/Board/BoardInfo.jsp","","rightdown","");
|
|
|
|
}
|
|
|
|
function my_detail(){
|
|
var sBoardNo = getItemValue(0,getRow(),"BoardNo");
|
|
if (typeof(sBoardNo)=="undefined" || sBoardNo.length==0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
AsControl.OpenView("/Tenwa/Comm/Board/BoardInfo.jsp","BoardNo="+sBoardNo,"rightdown","");
|
|
}
|
|
function add_content(){
|
|
var sBoardNo = getItemValue(0,getRow(),"BoardNo");
|
|
var sBoardTitle = getItemValue(0,getRow(),"BOARDTITLE");
|
|
if (typeof(sBoardNo)=="undefined" || sBoardNo.length==0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
AsDialog.PopView("/Tenwa/Comm/Board/BoardText.jsp", "BoardNo="+sBoardNo, "dialogWidth=730px;dialogHeight=450px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",null,sBoardTitle+"的正文");
|
|
}
|
|
<%/*[Describe=查看公告附件;]*/%>
|
|
function DocDetail(){
|
|
var sDocNo = getItemValue(0,getRow(),"DocNo");
|
|
if(typeof(sDocNo)=="undefined" || sDocNo.length==0) {
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
var rightType = "ReadOnly";
|
|
if(<%=CurUser.hasRole("099")%>||<%=CurUser.hasRole("299")%>||<%=CurUser.hasRole("399")%>){
|
|
rightType = "notReadOnly";
|
|
}
|
|
parent.AsDialog.PopView("/AppConfig/Document/AttachmentFrame.jsp", "DocNo="+sDocNo+"&RightType=ReadOnly&RightType2="+rightType, "dialogWidth=650px;dialogHeight=350px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",null,"附件管理");
|
|
}
|
|
|
|
function my_del(){
|
|
var sBoardNo = getItemValue(0,getRow(),"BoardNo");
|
|
if (typeof(sBoardNo)=="undefined" || sBoardNo.length==0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
if(confirm(getMessageText('AWEW1002'))){ //您真的想删除该信息吗?
|
|
as_delete('myiframe0');
|
|
}
|
|
}
|
|
|
|
<%/*~[Describe=单击事件;]~*/%>
|
|
function mySelectRow(){
|
|
var sBoardNo = getItemValue(0,getRow(),"BoardNo");
|
|
if (typeof(sBoardNo)=="undefined" || sBoardNo.length==0){
|
|
AsControl.OpenView("/Blank.jsp","TextToShow=请先选择相应的信息!","rightdown","");
|
|
}else{
|
|
AsControl.OpenView("/Tenwa/Comm/Board/BoardInfo.jsp","BoardNo="+sBoardNo,"rightdown","");
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |