1.产品页面增加权限,只有超级管理员才能修改产品具体参数。
This commit is contained in:
parent
81c21e5b18
commit
3cd1b33dc3
@ -2,6 +2,7 @@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
<%
|
||||
String sortNo = CurPage.getParameter("SortNo");
|
||||
String userId = CurPage.getUserId();
|
||||
if(sortNo == null) sortNo = "";
|
||||
ASObjectModel doTemp = new ASObjectModel("PRD_ProductCatalogList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
@ -9,14 +10,18 @@
|
||||
dwTemp.setPageSize(20);
|
||||
dwTemp.setParameter("SortNo", sortNo+"%");
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
String flag="false";
|
||||
if("administrator".equals(userId)){
|
||||
flag="true";
|
||||
}
|
||||
String sButtons[][] = {
|
||||
//{"true","","Button","新增产品","新增产品","addProduct()","","","","btn_icon_add",""},
|
||||
{flag,"","Button","新增产品","新增产品","addProduct()","","","","btn_icon_add",""},
|
||||
{"true","","Button","复制产品","复制产品","copyProduct()","","","","btn_icon_copy",""},
|
||||
{"true","","Button","修改产品","修改产品","viewEditProduct()","","","","btn_icon_edit",""},
|
||||
{"true","","Button","启动/停用","启动按钮","publishProduct()","","","","btn_icon_power",""},
|
||||
{"true","","Button","产品详情","产品详情","viewProduct()","","","","btn_icon_detail",""},
|
||||
{"true","","Button","删除产品","删除产品","deleteProduct()","","","","btn_icon_delete",""},
|
||||
{"true","","Button","产品相关信息配置","产品相关信息配置","productNodeInfoConfig()","","","","btn_icon_setting",""},
|
||||
{flag,"","Button","产品相关信息配置","产品相关信息配置","productNodeInfoConfig()","","","","btn_icon_setting",""},
|
||||
{"true","","Button","更新产品配置","更新产品配置","refreshProduct()","","","","btn_icon_refresh",""}
|
||||
};
|
||||
%>
|
||||
|
||||
@ -11,7 +11,10 @@
|
||||
if(isInUse == null) isInUse = "";
|
||||
String userid=CurUser.getUserID();
|
||||
String condition ="";
|
||||
if("administrator".equals(userid)||"admin".equals(userid)){}else{
|
||||
String flag="false";
|
||||
if("administrator".equals(userid)||"admin".equals(userid)){
|
||||
flag="true";
|
||||
}else{
|
||||
condition =ObjectWindowHelper.getProductList(userid);
|
||||
}
|
||||
//¶¨ÒåTreeview
|
||||
@ -30,8 +33,8 @@
|
||||
}
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","新增目录","","addCatalog()","","","","btn_icon_add"},
|
||||
{"true","","Button","删除目录","","deleteCatalog()","","","","btn_icon_delete"}
|
||||
{flag,"","Button","新增目录","","addCatalog()","","","","btn_icon_add"},
|
||||
{flag,"","Button","删除目录","","deleteCatalog()","","","","btn_icon_delete"}
|
||||
};
|
||||
%><%@include file="/Resources/CodeParts/View07.jsp"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
<%@ page import="com.amarsoft.dict.als.cache.CodeCache"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
|
||||
<%
|
||||
String userId = CurPage.getUserId();
|
||||
String PG_TITLE = "产品管理"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
String PG_CONTENT_TITLE = " 产品组件管理 "; //默认的内容区标题
|
||||
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
||||
@ -11,16 +12,17 @@
|
||||
//定义Treeview
|
||||
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "产品管理","right");
|
||||
int i = 0;
|
||||
//组件参数定义
|
||||
tviTemp.insertPage("root","产品参数定义","OpenComp(\"ParameterConfigFrame\",\"/ProductManage/ParameterConfig/ParameterConfigFrame.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/component-parameter-config.xml&XMLTags=Parameter&Keys=ParameterID\",\"right\");",i++);
|
||||
//tviTemp.insertPage("root","额度产品要素定义","OpenComp(\"ElementLimitFrame\",\"/Tenwa/Core/CreditLimit/LALimitElementList.jsp\",\"\",\"right\");",i++);
|
||||
|
||||
String p = tviTemp.insertFolder("root", "产品组件", "", i++);
|
||||
tviTemp.insertPage(p,"组件类型","OpenComp(\"ComponentTypeList\",\"/ProductManage/ComponentConfig/ComponentTypeList.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/componenttype-config.xml&XMLTags=ComponentType&Keys=ID\",\"right\");",i++);
|
||||
List<BusinessObject> list = XMLHelper.getBusinessObjectList("{$ARE.PRD_HOME}/etc/app/component/componenttype-config.xml", "ComponentType||length(ID)=5", "ID");
|
||||
//定义树图结构
|
||||
for(BusinessObject l:list){
|
||||
tviTemp.insertPage(p,l.getString("Name"),"OpenComp(\"ComponentLibraryList\",\"/ProductManage/ComponentConfig/ComponentLibraryList.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/component-config.xml&XMLTags=Component||TYPE like '"+l.getString("ID")+"'&Keys=ID\",\"right\");",i++);
|
||||
if("administrator".equals(userId)){
|
||||
//组件参数定义
|
||||
tviTemp.insertPage("root","产品参数定义","OpenComp(\"ParameterConfigFrame\",\"/ProductManage/ParameterConfig/ParameterConfigFrame.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/component-parameter-config.xml&XMLTags=Parameter&Keys=ParameterID\",\"right\");",i++);
|
||||
//tviTemp.insertPage("root","额度产品要素定义","OpenComp(\"ElementLimitFrame\",\"/Tenwa/Core/CreditLimit/LALimitElementList.jsp\",\"\",\"right\");",i++);
|
||||
String p = tviTemp.insertFolder("root", "产品组件", "", i++);
|
||||
tviTemp.insertPage(p,"组件类型","OpenComp(\"ComponentTypeList\",\"/ProductManage/ComponentConfig/ComponentTypeList.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/componenttype-config.xml&XMLTags=ComponentType&Keys=ID\",\"right\");",i++);
|
||||
List<BusinessObject> list = XMLHelper.getBusinessObjectList("{$ARE.PRD_HOME}/etc/app/component/componenttype-config.xml", "ComponentType||length(ID)=5", "ID");
|
||||
//定义树图结构
|
||||
for(BusinessObject l:list){
|
||||
tviTemp.insertPage(p,l.getString("Name"),"OpenComp(\"ComponentLibraryList\",\"/ProductManage/ComponentConfig/ComponentLibraryList.jsp\",\"XMLFile={$ARE.PRD_HOME}/etc/app/component/component-config.xml&XMLTags=Component||TYPE like '"+l.getString("ID")+"'&Keys=ID\",\"right\");",i++);
|
||||
}
|
||||
}
|
||||
tviTemp.insertPage("root","产品定义","OpenComp(\"ParameterConfigFrame\",\"/ProductManage/ProductConfig/ProductViewPage.jsp\",\"IsInUse=1\",\"right\");",i++);
|
||||
%><%@ include file="/Frame/resources/include/include_main.jspf"%>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user