48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
/*
|
|
Author: 2017-05-08
|
|
Tester:
|
|
Content: 示例详情页面
|
|
Input Param:
|
|
Output param:
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
String sObjectType = CurPage.getParameter("ObjectType");
|
|
String sRelationShip = CurPage.getParameter("RelationShip");
|
|
|
|
if(sRelationShip == null) sRelationShip = "";
|
|
if(sObjectType == null) sObjectType = "";
|
|
String sTempletNo = "DetailTABInfo1";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(sObjectType+","+sRelationShip);
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
|
{"true","All","Button","返回","返回列表","returnList()","","","",""}
|
|
};
|
|
sButtonPosition = "south";
|
|
%>
|
|
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function returnList(){
|
|
|
|
parent.AsDialog.ClosePage();
|
|
|
|
}
|
|
|
|
|
|
function initRow(){
|
|
if (getRowCount(0)==0) //如果没有找到对应记录,则新增一条,并设置字段默认值
|
|
{
|
|
setItemValue(0,0,"ObjectType","<%=sObjectType%>");
|
|
}
|
|
}
|
|
initRow();
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |