登录时用户名;

查看图片;
This commit is contained in:
G 2018-11-08 19:20:36 +08:00
parent 15ddbfa6e4
commit adde7eb4d3
5 changed files with 22 additions and 8 deletions

View File

@ -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<BizObject> list=JBOFactory.createBizObjectQuery("jbo.app.tenwa.doc.LB_DOCATTRIBUTE", sql).getResultList(false);

View File

@ -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"%>
<script type="text/javascript">

View File

@ -7,14 +7,14 @@ com.amarsoft.are.log.SimpleLog.handlers=com.amarsoft.are.log.impl.ConsoleHandler
com.amarsoft.are.log.impl.simple.WarnFileHandler.level = error;
com.amarsoft.are.log.impl.simple.WarnFileHandler.pattern = /tmp/log/a3web_warn_%g.log
com.amarsoft.are.log.impl.simple.WarnFileHandler.pattern = D:/tmp/log/a3web_warn_%g.log
com.amarsoft.are.log.impl.simple.WarnFileHandler.limit = 1024000
com.amarsoft.are.log.impl.FileHandler.level = info
#com.amarsoft.are.log.impl.FileHandler.pattern = {$ARE.APP_HOME}/log/a3web_%D_%g.log
com.amarsoft.are.log.impl.FileHandler.pattern = /tmp/log/a3web_%D_%g.log
com.amarsoft.are.log.impl.FileHandler.pattern = D:/tmp/log/a3web_%D_%g.log
com.amarsoft.are.log.impl.FileHandler.limit = 10240000
com.amarsoft.are.log.impl.FileHandler.count = 10

View File

@ -99,6 +99,12 @@ function chkForm(theForm){
}
writeCookie("UserID",theForm.UserID.value, 240);
writeCookie("UserIDSelected",theForm.UserIDSelected.value, 240);
theForm.action = theForm.action + "?UserID=" + theForm.UserID.value + "&Password=" + theForm.Password.value;
theForm.UserID.value = "";
theForm.Password.value = "";
return true;
}

View File

@ -423,7 +423,7 @@ public class DocListInitAction {
}
for(BizObject bol:boLDL){
String library_id = bol.getAttribute("id").getString();
List<BizObject> boLDA = bomLDA.createQuery("library_id=:library_id and content_type LIKE '%image%'").setParameter("library_id", library_id).getResultList(false);
List<BizObject> boLDA = bomLDA.createQuery("library_id=:library_id and content_type LIKE '%image%' and (DELETEED<>'Y' or DELETEED is null)").setParameter("library_id", library_id).getResultList(false);
if(boLDA.size()>0){
for(BizObject bo:boLDA){
// LM_NC_VERIFICATION