资料清单重复和退回不允许删除已经上传的资料清单附件

This commit is contained in:
tangfutang 2019-07-25 15:47:03 +08:00
parent 4127bd6416
commit fa14cfee75
2 changed files with 4 additions and 3 deletions

View File

@ -10,6 +10,7 @@
*/
String flowunid=CurPage.getParameter("FlowUnid");
String flowstate=CurPage.getParameter("flowstate");
String CustomerType=CurPage.getParameter("CustomerType");
String carAttributes=CurPage.getParameter("carAttributes");//获取车类型
if(flowunid==""||flowunid==null){
@ -152,7 +153,7 @@ function afterSearch(){
html+='【上传时间:'+obj[file]['inputtime']+'】';
html+='【上传人:'+obj[file]['inputuser']+'】';
// html+='【大小:'+Math.floor(obj[file]['FileSize']/1024*100)/100+'kb】<a class="btn_icon_detail" onclick="editOffice(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\',\''+sRightType+'\')">&nbsp;</a> ';
if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']){
if(isReview!="true"&&sRightType!="ReadOnly"&&(sObjectType==obj[file]['objecttype'])&&username==obj[file]['inputuser']&&"ANYBACK"!="<%=flowstate%>"){
html+='<a class="btn_icon btn_icon_close" onclick="deleteFile(\''+obj[file]['id']+'\');">&nbsp;</a>';
}
if(obj[file]['image']=="true"){

View File

@ -51,7 +51,7 @@ public class DocListInitAction {
* @throws Exception
*/
@SuppressWarnings("unchecked")
public static void initDocList(Map<String, String> param,
public static synchronized void initDocList(Map<String, String> param,
Map<String, String> other, String docno, Configure curConfig)
throws Exception {
String CustomerType = other.get("CustomerType");
@ -162,7 +162,7 @@ public class DocListInitAction {
}
@SuppressWarnings("unchecked")
public static void initDocListForMail(Map<String, String> param,
public static synchronized void initDocListForMail(Map<String, String> param,
Map<String, String> other, String docno, Configure curConfig,JBOTransaction Sqlca)
throws Exception {
String CustomerType = other.get("CustomerType");