112 lines
3.7 KiB
Plaintext
112 lines
3.7 KiB
Plaintext
<%@page import="com.amarsoft.app.base.util.SystemHelper"%>
|
|
<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%>
|
|
<%@page import="com.amarsoft.app.base.businessobject.*"%>
|
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
/*
|
|
页面说明: 示例列表页面
|
|
*/
|
|
String PG_TITLE = "产品组件详情";
|
|
BusinessObject inputParameter=SystemHelper.getPageComponentParameters(CurPage);
|
|
ASObjectWindow dwTemp =ObjectWindowHelper.createObjectWindow_Info("PRD_ComponentInfo", inputParameter, CurPage, request);
|
|
ASDataObject doTemp=dwTemp.getDataObject();
|
|
doTemp.setBusinessProcess("com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor");
|
|
//将ParaID作为参数传给显示模板
|
|
dwTemp.genHTMLObjectWindow("");
|
|
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","as_save(0,'format()')","","","",""}
|
|
};
|
|
|
|
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function changeFormat(){
|
|
// format();
|
|
//as_save(0,"openRule();");
|
|
}
|
|
|
|
function format()
|
|
{
|
|
var id = getItemValue(0,getRow(),"ID");
|
|
if(!id)
|
|
{
|
|
document.all("A_Group_0020").style.display = "none";
|
|
document.all("A_Group_0030").style.display = "none";
|
|
document.all("A_Group_0040").style.display = "none";
|
|
document.all("A_Group_0050").style.display = "none";
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
document.all("A_Group_0020").style.display = "";
|
|
document.all("A_Group_0030").style.display = "";
|
|
document.all("A_Group_0040").style.display = "";
|
|
document.all("A_Group_0050").style.display = "";
|
|
}
|
|
|
|
var format = getItemValue(0,getRow(),"FORMAT");
|
|
if(format == "3")
|
|
{
|
|
document.all("A_Group_0030").style.display = "";
|
|
document.all("A_Group_0040").style.display = "none";
|
|
document.all("A_Group_0050").style.display = "none";
|
|
}
|
|
else if(format == "4")
|
|
{
|
|
document.all("A_Group_0030").style.display = "none";
|
|
document.all("A_Group_0040").style.display = "none";
|
|
document.all("A_Group_0050").style.display = "";
|
|
}
|
|
else if(format == "6")//自定义
|
|
{
|
|
document.all("A_Group_0030").style.display = "none";
|
|
document.all("A_Group_0040").style.display = "none";
|
|
document.all("A_Group_0050").style.display = "none";
|
|
}
|
|
else
|
|
{
|
|
document.all("A_Group_0030").style.display = "none";
|
|
document.all("A_Group_0040").style.display = "";
|
|
document.all("A_Group_0050").style.display = "none";
|
|
}
|
|
openRule();
|
|
}
|
|
|
|
function openRule(){
|
|
var format = getItemValue(0,getRow(),"FORMAT");
|
|
var id = getItemValue(0,getRow(),"ID");
|
|
|
|
if(!id || !format) return;
|
|
|
|
var iframe = "sys_sub_page_frame_CSDY";
|
|
var obj = document.getElementById(iframe);
|
|
if(typeof(obj) == "undefined" || obj == null) return;
|
|
AsControl.OpenView("/ProductManage/ComponentConfig/ComponentParameterList.jsp","XMLTags=<%=CurPage.getParameter("XMLTags")%> or ID='"+id+"'//Parameters//Parameter&Keys=PARAMETERID",iframe,"");
|
|
|
|
if(format == "3")
|
|
{
|
|
|
|
}
|
|
else if(format == "4")
|
|
{
|
|
var iframe = "sys_sub_page_frame_PFK";
|
|
var obj = document.getElementById(iframe);
|
|
if(typeof(obj) == "undefined" || obj == null) return;
|
|
AsControl.OpenView("/ProductManage/ComponentConfig/ComponentScoreCard.jsp","XMLTags=<%=CurPage.getParameter("XMLTags")%> or ID='"+id+"'&ComponentID="+id+"&Format="+format,iframe,"");
|
|
}
|
|
else
|
|
{
|
|
var iframe = "sys_sub_page_frame_GZDY";
|
|
var obj = document.getElementById(iframe);
|
|
if(typeof(obj) == "undefined" || obj == null) return;
|
|
AsControl.OpenView("/ProductManage/ComponentConfig/ComponentRule.jsp","XMLTags=<%=CurPage.getParameter("XMLTags")%> or ID='"+id+"'&ComponentID="+id+"&Format="+format,iframe,"");
|
|
}
|
|
}
|
|
|
|
$().ready(function(){
|
|
format();
|
|
});
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |