79 lines
2.4 KiB
Plaintext
79 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
|
|
<%
|
|
String PG_TITLE = "业务组件类别列表"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
|
|
|
|
//获取组件参数
|
|
|
|
//获取页面参数
|
|
String sBookType = (String)CurPage.getParameter("BookType");
|
|
|
|
|
|
//通过显示模版产生ASDataObject对象doTemp
|
|
String sTempletNo = "AccountCodeConfigList";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.setPageSize(200);
|
|
|
|
//定义后续事件
|
|
//dwTemp.setEvent("AfterDelete","!SystemManage.DeleteOrgBelong(#OrgID)");
|
|
|
|
//生成HTMLObjectWindow
|
|
dwTemp.genHTMLObjectWindow("AccountCodeConfig,"+sBookType);
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增","新增一条记录","newRecord()","","","",""},
|
|
{"true","","Button","详情","查看/修改详情","viewAndEdit()","","","",""},
|
|
{"true","","Button","删除","删除所选中的记录","deleteRecord()","","","",""}
|
|
};
|
|
%>
|
|
|
|
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
|
|
<script type="text/javascript">
|
|
var sCurCodeNo=""; //记录当前所选择行的代码号
|
|
|
|
//---------------------定义按钮事件------------------------------------
|
|
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
|
function newRecord()
|
|
{
|
|
AsControl.OpenView("/Accounting/Config/AccountCodeConfigInfo.jsp","BookType=<%=sBookType%>","_self","");
|
|
}
|
|
|
|
/*~[Describe=查看及修改详情;InputParam=无;OutPutParam=无;]~*/
|
|
function viewAndEdit()
|
|
{
|
|
var sItemNo = getItemValue(0,getRow(),"ItemNo"); //条款类别编号
|
|
if(typeof(sItemNo)=="undefined" || sItemNo.length==0) {
|
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return ;
|
|
}
|
|
AsControl.OpenView("/Accounting/Config/AccountCodeConfigInfo.jsp","ItemNo="+sItemNo+"&BookType=<%=sBookType%>","_self","");
|
|
}
|
|
|
|
/*~[Describe=删除记录;InputParam=无;OutPutParam=无;]~*/
|
|
function deleteRecord()
|
|
{
|
|
var sItemNo = getItemValue(0,getRow(),"ItemNo"); //条款类别编号
|
|
if(typeof(sItemNo) == "undefined" || sItemNo.length == 0) {
|
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return ;
|
|
}
|
|
|
|
if(confirm(getHtmlMessage('2'))) //您真的想删除该信息吗?
|
|
{
|
|
as_delete("myiframe0");
|
|
as_save("myiframe0"); //如果单个删除,则要调用此语句
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|