%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
<%
/*
Author: undefined 2016-09-01
Content:
History Log:
*/
String flowunid=CurPage.getParameter("ObjectNo");
String sObjectType=CurPage.getParameter("FlowNo");
String proj_id = CurPage.getParameter("proj_id");
String contract_id = CurPage.getParameter("contract_id");
String isProduct = "Y";//是否产品相关流程Y:是,N:否
if(proj_id==null||contract_id==null){
isProduct = "N";
}
String type=CurPage.getParameter("type");
if(type==null)type="";
String otherWhere="";
if(type==""){
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);//流程对象
otherWhere=DocListInitAction.getFlowWhere(flow,"","O");
//otherWhere=" and O.proj_id='"+proj_id+"' order by O.INPUTTIME DESC";
}else if("proj".equals(type)){
otherWhere=" and O.proj_id='"+proj_id+"' order by O.INPUTTIME DESC";
}else if("contract".equals(type)){
otherWhere=" and (O.contract_id='"+contract_id+"' OR O.proj_id='"+proj_id+"') ";
}
String isHistory=CurPage.getParameter("IsHistory");
String RightType=CurPage.getParameter("RightType");
String userName=CurUser.getUserName();
String compClientID = request.getParameter("CompClientID");
ASObjectModel doTemp = new ASObjectModel("LBDocumentList");
doTemp.appendJboWhere(otherWhere);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1";
dwTemp.MultiSelect=true;//多选
dwTemp.setPageSize(50);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] =null;
if((RightType!=null&&RightType.equals("ReadOnly"))||(null!=isHistory&&isHistory.equals("true"))){
RightType="ReadOnly";
sButtons=new String[][]{
};
}else{
sButtons=new String[][]{
{"true","All","Button","上传","上传","upload()","","","","btn_icon_up"},
{"true","","Button","批量下载","批量下载","downloadZipFile()","","","","btn_icon_down"},
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>