74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
|
|
<%
|
|
String PG_TITLE = "会计分录列表"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
CurPage.setAttribute("ShowDetailArea","true");
|
|
CurPage.setAttribute("DetailAreaHeight","200");
|
|
CurPage.setAttribute("DetailFrameInitialText","请选择一笔记录");
|
|
|
|
//定义变量
|
|
String sTransID = (String)CurComp.getParameter("ItemNo");
|
|
String inputparatemplete = CurComp.getParameter("attribute1");
|
|
if(sTransID==null) sTransID="";
|
|
if(inputparatemplete==null) inputparatemplete="";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("TransEntryConfigList");
|
|
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
|
|
|
|
//生成HTMLObjectWindow
|
|
dwTemp.genHTMLObjectWindow(sTransID);
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增","新增一条记录","newRecord()","","","",""},
|
|
{"true","","Button","删除","删除","deleteRecord()","","","",""},
|
|
};
|
|
%>
|
|
|
|
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
|
|
|
|
<script language=javascript>
|
|
|
|
function newRecord(){
|
|
var transID = "<%=sTransID%>";
|
|
AsControl.OpenView("/Accounting/Config/TransEntryConfigInfo.jsp","TransID="+transID+"&Inputparatemplete=<%=inputparatemplete%>&ToInheritObj=y","DetailFrame","");
|
|
}
|
|
|
|
function mySelectRow(){
|
|
var transID = getItemValue(0,getRow(),"TransID");
|
|
var sortID = getItemValue(0,getRow(),"SortID");
|
|
if (typeof(transID) == "undefined" || transID.length == 0) return;
|
|
parent.OpenInfo("TransID="+transID+"&SortID="+sortID+"&Inputparatemplete=<%=inputparatemplete%>&ToInheritObj=y");
|
|
}
|
|
|
|
/*~[Describe=删除;InputParam=无;OutPutParam=无;]~*/
|
|
function deleteRecord(){
|
|
var sortID = getItemValue(0,getRow(),"SortID");
|
|
if (typeof(sortID)=="undefined" || sortID.length==0){
|
|
alert("请选择一条记录!");
|
|
return;
|
|
}
|
|
|
|
if(confirm("确定删除该信息吗?")){
|
|
as_delete("myiframe0");
|
|
as_save("myiframe0"); //如果单个删除,则要调用此语句
|
|
}
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
bHighlightFirst = true;
|
|
mySelectRow();
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
<script language=javascript>
|
|
var bHighlightFirst = true;
|
|
</script>
|
|
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |