2018-06-03 22:26:41 +08:00

134 lines
3.4 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Author: ltma 2010-08-04
Tester:
Content: 条款管理
History Log: cwzhan 2004-12-15
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = ""; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
CurPage.setAttribute("ShowDetailArea","true");
CurPage.setAttribute("DetailAreaHeight","150");
String termID = DataConvert.toRealString(iPostChange,(String)CurPage.getParameter("TermID"));
if(termID == null)
{
termID = "";
}
String objectType = DataConvert.toRealString(iPostChange,(String)CurPage.getParameter("ObjectType"));
if(objectType == null)
{
objectType = "Term";
}
String objectNo = DataConvert.toRealString(iPostChange,(String)CurPage.getParameter("ObjectNo"));
if(objectNo == null)
{
objectNo = "";
}
ASDataWindow dwTemp=com.amarsoft.app.accounting.product.ProductTermView.createTermDataWindow(objectType, objectNo, termID, Sqlca, CurPage);
ASDataObject doTemp = dwTemp.DataObject;
//生成HTMLDataWindow
Vector vTemp = dwTemp.genHTMLDataWindow("");
for(int i=0;i<vTemp.size();i++) out.print((String)vTemp.get(i));
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
//依次为:
//0.是否显示
//1.注册目标组件号(为空则自动取当前组件)
//2.类型(Button/ButtonWithNoAction/HyperLinkText/TreeviewItem/PlainText/Blank)
//3.按钮文字
//4.说明文字
//5.事件
//6.资源图片路径
String sButtons[][] = {
{"true","","Button","保存","保存","updateParaValues()",sResourcesPath},
};
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@include file="/Resources/CodeParts/List05.jsp"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script language=javascript>
//---------------------定义按钮事件------------------------------------
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
as_save("myiframe0","updateParaValues();");
}
function updateParaValues(){
var paraList="ObjectType=<%=objectType%>&VersionID=<%=objectNo%>&TermID=<%=termID%>";
<%
for(int i=0;i<doTemp.Columns.size();i++){
String paraname = doTemp.getColumnAttribute(i, "Name");
%>
var s=getItemValue(0,getRow(),"<%=paraname%>");
if(typeof(s) != "undefined" ){
s=real2Amarsoft(s);
paraList = paraList+"&<%=paraname%>="+s;
}
<%
}
%>
var result =PopPage("/Accounting/Config/TermParaSaveAction.jsp?"+paraList,"","dialogWidth=60;dialogheight=25;status:no;center:yes;help:no;minimize:no;maximize:no;border:thin;statusbar:no");
alert(result);//parent.reloadSelf(1);
}
function OpenSubPage()
{
OpenPage("/Accounting/Config/TermSetSegmentList.jsp?ObjectType=<%=objectType%>&ObjectNo=<%=objectNo%>&ParentTermID=<%=termID%>","DetailFrame");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=页面装载时,进行初始化;]~*/%>
<script language=javascript>
AsOne.AsInit();
init();
var bFreeFormMultiCol = true;
my_load(2,0,'myiframe0');
OpenSubPage();
</script>
<%/*~END~*/%>
<%@ include file="/IncludeEnd.jsp"%>