去除产品版本列表,一个产品只有一个版本

This commit is contained in:
zhulianghua 2018-08-06 22:01:35 +08:00
parent e8f09283ee
commit 56f2bfdae2
4 changed files with 10 additions and 5 deletions

View File

@ -11,6 +11,8 @@
String type = CurPage.getAttribute("type");
BusinessObject inputParameter=SystemHelper.getPageComponentParameters(CurPage);
Map<String,Object> map =inputParameter.convertToMap();
String typeNo = map.get("TypeNo").toString();
String serialNo = Sqlca.getString("select serialno from prd_specific_library where businesstype = '" + typeNo + "'");
String catalogNo = (String)map.get("SortNo");
ASObjectWindow dwTemp =ObjectWindowHelper.createObjectWindow_Info("PRD_ProductInfo", inputParameter, CurPage, request);
ASDataObject doTemp=dwTemp.getDataObject();
@ -35,6 +37,7 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
}
function specificInfo(){
document.getElementById("sys_sub_page_frame_GGDY").parentNode.parentNode.style.display = "none";
var typeNo = getItemValue(0,getRow(),"TypeNo");
var productType1 = getItemValue(0,getRow(),"Attribute1");//²úÆ·ÀàÐÍ
var productType2 = getItemValue(0,getRow(),"Attribute2");//²úÆ·ÀàÐÍ
@ -53,7 +56,9 @@ include file="/Frame/resources/include/ui/include_info.jspf"%>
}
}
document.all("A_Group_0020").style.display = "";
AsControl.OpenView("/ProductManage/ProductConfig/ProductSpecificList.jsp","ProductID="+typeNo+"&ProductType1="+productType1+"&ProductType2="+productType2,"sys_sub_page_frame_GGDY","");
var serialNo = "<%=serialNo %>";
/* AsControl.OpenView("/ProductManage/ProductConfig/ProductSpecificList.jsp","ProductID="+typeNo+"&ProductType1="+productType1+"&ProductType2="+productType2,"sys_sub_page_frame_GGDY",""); */
AsControl.OpenView("/ProductManage/ProductConfig/ProductSpecificInfo.jsp","SerialNo=" + serialNo + "&ProductID="+typeNo+"&ProductType1="+productType1+"&ProductType2="+productType2,"sys_sub_page_frame_GGXX","");
}
//´ò¿ª¹æ¸ñÒ³Ãæ

View File

@ -24,7 +24,7 @@
include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveRecord(){
as_save(0,"parent.specificInfo();openComponentDef();");
as_save(0,"openComponentDef();");
}
<%-- function openComponentDef(){

View File

@ -14,8 +14,8 @@
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增规格","新增规格","newSpecific()","","","","",""},
{"true","All","Button","删除规格","删除规格","deleteSpecific()","","","","",""},
/* {"true","All","Button","新增规格","新增规格","newSpecific()","","","","",""},
{"true","All","Button","删除规格","删除规格","deleteSpecific()","","","","",""}, */
};
%>
<script type="text/javascript">

View File

@ -34,8 +34,8 @@ public class RedirectorServlet extends HttpServlet
return;
}
synchronized (this) {//为避免缓存连接时因处理快慢的问题导致连接编号被覆盖的问题将此对象加锁
RuntimeContext CurARC = (RuntimeContext)session.getAttribute("CurARC");
synchronized (CurARC) {//为避免缓存连接时因处理快慢的问题导致连接编号被覆盖的问题将此对象加锁
if (CurARC == null) {
ARE.getLog().info("[RED]TimeOut[" + session.getId() + ":" + session.getCreationTime() + ":" + session.getLastAccessedTime() + "] Page=[" + req.getParameter("ComponentURL") + "]");
resp.sendRedirect(req.getContextPath() + "/Frame/page/sys/SessionExpire.jsp");