<%@ page contentType="text/html; charset=GBK"%> <%@ include file="/IncludeBeginMD.jsp"%><%@ page import="com.amarsoft.awe.res.AppBizObject"%><%@ page import="com.amarsoft.awe.res.ErrMsgManager"%><% //获取页面参数:对象类型、对象编号、视图编号 String sObjectType = CurPage.getParameter("ObjectType"); String sObjectNo = CurPage.getParameter("ObjectNo"); String sViewID = CurPage.getParameter("ViewID"); String sParam = CurPage.getParameter("Param"); //将空值转化为空字符串 if(sObjectType == null) sObjectType = ""; if(sObjectNo == null) sObjectNo = ""; if(sViewID == null) sViewID = ""; if(sParam==null) sParam=""; AppBizObject bom = new AppBizObject(Sqlca,sObjectType,sObjectNo); String sRightType = bom.getRightType(Sqlca,CurUser.getUserID(),sViewID); if(sRightType == null) sRightType="None"; String sViewToOpen = ""; if (sViewID.equals("") || sViewID.equalsIgnoreCase("null")) sViewToOpen = bom.getType().getDefaultView(); else sViewToOpen = sViewID; String sViews = bom.getType().getViewType(); String sOjbectTypeURL = (String)bom.getType().getPagePath(); String sObjectTitle = bom.getType().getObjectName()+"-"+bom.getName()+"-详情"+(sRightType.equalsIgnoreCase("ReadOnly")?"-只读":(sRightType.equalsIgnoreCase("all")?"-可修改":"-无权限")); CurComp.setAttribute("CompObjectType",sObjectType); CurComp.setAttribute("CompObjectNo",sObjectNo); CurComp.setAttribute("RightType",sRightType); %> <%=sObjectTitle%>
<%if (sRightType!=null && sRightType.equalsIgnoreCase("None")){%> 对不起,您没有查看[<%if(bom.getName()!=null){%><%=bom.getName()%><%} %>]视图["+sViewToOpen+"]的权限. <%}else{%> <%}%>
<%@ include file="/IncludeEnd.jsp"%>