44 lines
2.2 KiB
Plaintext
44 lines
2.2 KiB
Plaintext
<%@page import="jbo.prd.BUSINESS_TYPE"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ page import="com.tenwa.reckon.product.ASObjectWindowCalc" %>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2018-10-25
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
String contractId = CurPage.getParameter("ContractId");
|
|
String productId=CurPage.getParameter("ProductId");
|
|
String projectid=CurPage.getParameter("ProjectId");
|
|
String compClientID = request.getParameter("CompClientID");
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
|
|
//获取产品名称
|
|
BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID")
|
|
.setParameter("productID", productId).getSingleResult(false);
|
|
String productName = (bo==null)?"":bo.getAttribute("typename").getString();
|
|
|
|
String sTempletNo = "LoanSimulationBasicInfo_Query";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
//doTemp.setColTips("", "测试");
|
|
// ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
dwTemp.genHTMLObjectWindow(contractId);
|
|
dwTemp.replaceColumn("condition_plan", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"600px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/conditionQuery_plan.jsp?CompClientID="+compClientID+"&ContractId="+contractId+"&ProjectId="+projectid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
String sButtons[][] = {
|
|
{"false","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
var productName="<%=productName%>";
|
|
setItemValue(0, 0, "PRODUCT_NAME", productName);
|
|
var flag = getItemValue(0, 0, "DefaultDueDay");
|
|
if(flag==null||flag==""){
|
|
hideItem(0, "DefaultDueDay");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |