diff --git a/WebContent/Tenwa/Comm/Document/DocImageShow.jsp b/WebContent/Tenwa/Comm/Document/DocImageShow.jsp index 113a7f64c..78d0c842e 100644 --- a/WebContent/Tenwa/Comm/Document/DocImageShow.jsp +++ b/WebContent/Tenwa/Comm/Document/DocImageShow.jsp @@ -43,7 +43,7 @@ border-bottom:1px solid #BCBCBC;} } String compClientID = request.getParameter("CompClientID"); String sql="select O.id,lib.doc_name,filename from O left join jbo.app.tenwa.doc.LB_DOCLIBRARY lib on o.library_id=lib.id left join jbo.app.tenwa.doc.LB_DOCRELATIVE rela on lib.relative_id=rela.id"; - sql+=" where O.content_type LIKE '%image%' "+otherWhere+" order by lib.doc_name,O.filename"; + sql+=" where O.content_type LIKE '%image%' and O.DELETEED<>'Y' or O.DELETEED is null"+otherWhere+" order by lib.doc_name,O.filename"; System.out.println(sql); List list=JBOFactory.createBizObjectQuery("jbo.app.tenwa.doc.LB_DOCATTRIBUTE", sql).getResultList(false); diff --git a/WebContent/Version/VersionList.jsp b/WebContent/Version/VersionList.jsp index d4cd59cc6..ac6e280ba 100644 --- a/WebContent/Version/VersionList.jsp +++ b/WebContent/Version/VersionList.jsp @@ -1,6 +1,7 @@ <%@ page contentType="text/html; charset=GBK"%><%@ include file="/Frame/resources/include/include_begin_list.jspf"%> + <% ASObjectModel doTemp = new ASObjectModel("VERSION_LIST"); doTemp.setLockCount(2); //锁定两列 @@ -11,11 +12,18 @@ dwTemp.setPageSize(10); dwTemp.ConvertCode2Title = "1"; dwTemp.genHTMLObjectWindow(""); - + String userName =CurUser.getUserID();//登录人 + String Jurisdiction=""; + if("administrator".equals(userName)){ + Jurisdiction="true"; + + }else{ + Jurisdiction="false"; + } String sButtons[][] = { - {"true","","Button","新增应用","新增一个版本","newRecord()","","","","btn_icon_add"}, - {"true","","Button","应用信息","查看版本信息","viewAndEdit()","","","","btn_icon_detail"}, - {"true","","Button","删除该应用","删除该版本","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"}, + {Jurisdiction,"","Button","新增应用","新增一个版本","newRecord()","","","","btn_icon_add"}, + {Jurisdiction,"","Button","应用信息","查看版本信息","viewAndEdit()","","","","btn_icon_detail"}, + {Jurisdiction,"","Button","删除该应用","删除该版本","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"}, }; %><%@include file="/Frame/resources/include/ui/include_list.jspf"%>