89 lines
3.0 KiB
Plaintext
89 lines
3.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
|
|
<%
|
|
String PG_TITLE = "核算交易定义列表"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("TransactionConfigList");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage ,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.setPageSize(20);
|
|
//生成HTMLObjectWindow
|
|
dwTemp.genHTMLObjectWindow("%");
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增","新增一条记录","newRecord()","","","",""},
|
|
{"true","","Button","删除","删除一条记录","delRecord()","","","",""},
|
|
{"true","","Button","详情","详细信息","myDetail()","","","",""},
|
|
{"true","","Button","分录模板","会计分录模板定义","viewTransEntry()","","","","btn_icon_detail"},
|
|
{"true","","Button","交易参数列表","交易参数列表","viewDoNo()","","","","btn_icon_detail"}
|
|
};
|
|
%>
|
|
|
|
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
|
|
<script language=javascript>
|
|
|
|
//---------------------定义按钮事件------------------------------------
|
|
function newRecord(){
|
|
AsControl.OpenView("/Accounting/Config/TransactionConfigInfo.jsp","","right","");
|
|
}
|
|
|
|
function viewDoNo(){
|
|
//【过滤未选择记录可以弹出空记录的界面。By ghshi 2013-07-30】
|
|
var sItemNo = getItemValue(0,getRow(),"ItemNo");
|
|
if (typeof(sItemNo) == "undefined" || sItemNo.length == 0){
|
|
alert(getHtmlMessage('1'));//请选择一条信息
|
|
return;
|
|
}
|
|
|
|
var attribute1 = getItemValue(0,getRow(),"attribute1");
|
|
if(typeof(attribute1) == "undefined" || attribute1=="")
|
|
alert("没有配置相应的显示模板。");
|
|
else
|
|
AsControl.OpenView("/Accounting/Config/TransactionParameterList.jsp","attribute1="+attribute1,"_blank","");
|
|
}
|
|
|
|
function myDetail(){
|
|
var sitemno = getItemValue(0,getRow(),"ItemNo");
|
|
var scodeno = getItemValue(0,getRow(),"CodeNo");
|
|
if (typeof(sitemno) == "undefined" || sitemno.length == 0){
|
|
alert(getHtmlMessage('1'));
|
|
return;
|
|
}
|
|
AsControl.OpenView("/Accounting/Config/TransactionConfigInfo.jsp","ItemNo="+sitemno+"&CodeNo="+scodeno,"right","");
|
|
}
|
|
|
|
function viewTransEntry(){
|
|
var sitemno = getItemValue(0,getRow(),"ItemNo");
|
|
var status = getItemValue(0,getRow(),"Status");
|
|
var attribute1 = getItemValue(0,getRow(),"attribute1");
|
|
if (typeof(sitemno) == "undefined" || sitemno.length == 0){
|
|
alert(getHtmlMessage('1'));
|
|
return;
|
|
}
|
|
AsControl.OpenView("/Accounting/Config/TransEntryConfigFrame.jsp","ItemNo="+sitemno+"&attribute1="+attribute1,"_blank","");
|
|
}
|
|
|
|
|
|
function delRecord()
|
|
{
|
|
var sCodeno = getItemValue(0,getRow(),"CodeNo");
|
|
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"%> |