产品类型的配置,选择不同的功能模块
This commit is contained in:
parent
90827a3cbf
commit
3e77a9141a
@ -22,10 +22,10 @@
|
||||
|
||||
%><%@include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function changeFormat(){
|
||||
// format();
|
||||
//as_save(0,"openRule();");
|
||||
}
|
||||
// function changeFormat(){
|
||||
// // format();
|
||||
// //as_save(0,"openRule();");
|
||||
// }
|
||||
|
||||
function format()
|
||||
{
|
||||
|
||||
@ -13,13 +13,14 @@
|
||||
ASDataObject doTemp=dwTemp.getDataObject();
|
||||
doTemp.setBusinessProcess("com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor");
|
||||
dwTemp.Style="1"; //设置为Grid风格
|
||||
dwTemp.ReadOnly="1";
|
||||
dwTemp.ReadOnly="0";
|
||||
dwTemp.setPageSize(20);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
String sButtons[][] = {
|
||||
{(StringX.isEmpty(componentRightType) ? "true" : "false" ),"All","Button","新增","新增","newComponent()","","","","",""},
|
||||
{"true","","Button","编辑","编辑","editComponent()","","","","",""},
|
||||
{(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","±£´æ","±£´æ","as_save(0)","","","","",""},
|
||||
{(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","复制","复制","copyComponent()","","","","",""},
|
||||
{(StringX.isEmpty(componentRightType) ? "true" : "false" ),"All","Button","删除","删除","deleteComponent()","","","","",""},
|
||||
{(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","组件同步","组件同步","synchronize()","","","","",""},
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<%
|
||||
String specificSerialNo = CurPage.getParameter("SpecificSerialNo");
|
||||
String productID = CurPage.getParameter("ProductID");
|
||||
String productType2 = CurPage.getParameter("ProductType2");
|
||||
//产品组件类型文件
|
||||
String xmlFile = "{$ARE.PRD_HOME}/etc/app/component/componenttype-config.xml";
|
||||
xmlFile = ARE.replaceARETags(xmlFile);
|
||||
@ -28,7 +29,7 @@
|
||||
String xmlComponentFile = "{$ARE.PRD_HOME}/etc/app/component/component-config.xml";
|
||||
xmlComponentFile = ARE.replaceARETags(xmlComponentFile);
|
||||
//产品组件筛选条件
|
||||
String xmlComponentTags = "Component||Status='1'";
|
||||
String xmlComponentTags = "Component||Status='1' and PRODUCT_TYPE like '" + productType2 + "'";
|
||||
//产品组件关键字
|
||||
String componentKeys = "ID";
|
||||
|
||||
|
||||
@ -40,18 +40,32 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
AsControl.OpenView("/Tenwa/Core/CreditLimit/LALimitConfigList.jsp","SpecificId="+serialNo+"&ProductId=<%=productID%>&RightType=<%=CurPage.getParameter("RightType")%>","sys_sub_page_frame_GGCS","");
|
||||
}
|
||||
} --%>
|
||||
// function openComponentDef(){
|
||||
// var serialNo = getItemValue(0,getRow(),"SerialNo");
|
||||
// var versionID = getItemValue(0,getRow(),"VERSIONID");
|
||||
// if(typeof(serialNo) != "undefined" && serialNo != "")
|
||||
// {
|
||||
<%-- AsControl.OpenView("/ProductManage/ProductConfig/ProductComponentDef.jsp","SpecificSerialNo="+serialNo+"&ProductID=<%=productID%>","sys_sub_page_frame_GGCS",""); --%>
|
||||
<%-- }else if(typeof(serialNo) != "undefined" && serialNo != "" && typeof(versionID) != "undefined" && versionID != "" && '<%=productType2%>'=='2' ) --%>
|
||||
// {
|
||||
<%-- AsControl.OpenView("/Tenwa/Core/CreditLimit/LALimitConfigList.jsp","SpecificId="+serialNo+"&ProductId=<%=productID%>&RightType=<%=CurPage.getParameter("RightType")%>","sys_sub_page_frame_GGCS",""); --%>
|
||||
// }
|
||||
// }
|
||||
|
||||
function openComponentDef(){
|
||||
var serialNo = getItemValue(0,getRow(),"SerialNo");
|
||||
var versionID = getItemValue(0,getRow(),"VERSIONID");
|
||||
if(typeof(serialNo) != "undefined" && serialNo != "")
|
||||
if(typeof(serialNo) != "undefined" && serialNo != "" && typeof(versionID) != "undefined" && versionID != "") {
|
||||
AsControl.OpenView("/ProductManage/ProductConfig/ProductComponentDef.jsp","CompClientID=<%=sCompClientID%>&SpecificSerialNo="+serialNo+"&ProductID=<%=productID%>&ProductType2=<%=productType2%>","sys_sub_page_frame_GGCS","");
|
||||
}
|
||||
<%-- if(typeof(serialNo) != "undefined" && serialNo != "" && typeof(versionID) != "undefined" && versionID != "" && '<%=productType2%>'=='1' )
|
||||
{
|
||||
AsControl.OpenView("/ProductManage/ProductConfig/ProductComponentDef.jsp","SpecificSerialNo="+serialNo+"&ProductID=<%=productID%>","sys_sub_page_frame_GGCS","");
|
||||
}else if(typeof(serialNo) != "undefined" && serialNo != "" && typeof(versionID) != "undefined" && versionID != "" && '<%=productType2%>'=='2' )
|
||||
{
|
||||
AsControl.OpenView("/Tenwa/Core/CreditLimit/LALimitConfigList.jsp","SpecificId="+serialNo+"&ProductId=<%=productID%>&RightType=<%=CurPage.getParameter("RightType")%>","sys_sub_page_frame_GGCS","");
|
||||
}
|
||||
} --%>
|
||||
}
|
||||
|
||||
$().ready(function(){
|
||||
openComponentDef();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user