• 上传


    /**
    	 * 上传附件按钮
    	 * @param processInstanceId
    	 * @param taskId
    	 * @param rootDir
    	 * @param maxSize
    	 * @param flag
    	 * @return
    	 */
    	public String getUploadButton(int processInstanceId, int taskId, String entityType, String rootDir, int maxSize, boolean flag){
    		StringBuffer button = new StringBuffer();
    		if(flag){
    			button.append("<div style="float: right;">")
    			.append("<input type=button value="上 传" onClick="openModalWindow('./login.wf?sid=").append(uc.getSessionId()).append("&cmd=TBS_OPEN_UPLOAD_PAGE&flowInstanceId=")
    			.append(processInstanceId).append("&taskId=").append(taskId).append("&rootDir=").append(rootDir).append("&maxFileSize=").append(maxSize)
    			.append("',680,480,'"+entityType+"');" style="background-image:url(../tbs_img/work/button.gif); border:0; font-size:12px; color:#FFFFFF; 76;" /></div>");
    		}
    		return button.toString();
    	}
    	
    	/**
    	 * 上传附件按钮(自定义group名、file名)
    	 * @param flag1
    	 * @param flag2
    	 * @param entityType
    	 * @param rootDir
    	 * @param maxSize
    	 * @param flag
    	 * @return
    	 */
    	public String getUploadButton(String flag1, String flag2, String entityType, String rootDir, int maxSize, boolean flag){
    		StringBuffer button = new StringBuffer();
    		if(flag){
    			button.append("<div style="float: right;">")
    				.append("<input type=button value="上 传" onClick="openModalWindow('./login.wf?sid=").append(uc.getSessionId())
    				.append("&cmd=TBS_OPEN_UPLOAD_PAGE&flowInstanceId=").append(flag1).append("&taskId=").append(flag2)
    				.append("&rootDir=").append(rootDir).append("&maxFileSize=").append(maxSize).append("',680,480,'").append(entityType)
    				.append("');" style="background-image:url(../tbs_img/work/button.gif); border:0; font-size:12px; color:#FFFFFF; 76;" /></div>");
    		}else {
    			button.append(" ");
    		}
    		return button.toString();
    	}
    

      

  • 相关阅读:
    js三大弹出消息框
    HDU
    BZOJ 1101 Zap 莫比乌斯反演
    竞赛常用STL备忘录
    K-query SPOJ
    HDU 3333 Turing Tree 离线 线段树/树状数组 区间求和单点修改
    2018 Multi-University Training Contest
    多校补完计划 2017-02
    CodeForces 931C Laboratory Work 水题,构造
    CodeForces 937D 936B Sleepy Game 有向图判环,拆点,DFS
  • 原文地址:https://www.cnblogs.com/demon09/p/9089903.html
Copyright © 2020-2023  润新知