<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.io.FileInputStream" %>
<%@ page import="java.io.File" %>
<%@ page import="org.apache.poi.ss.usermodel.Workbook" %>
<%@ page import="org.apache.poi.xssf.usermodel.XSSFWorkbook" %>
<%@ page import="org.apache.poi.ss.usermodel.Sheet" %>
<%@ page import="org.apache.poi.ss.usermodel.Row" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="com.engine.custom.archives.entity.Dept" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.soa.workflow.request.RequestService" %>
<%@ page import="weaver.soa.workflow.request.RequestInfo" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="com.engine.custom.archives.action.WorkflowToDocCus" %>
<%@ page import="com.engine.custom.archives.util.ArchivesUtil" %>
<%@ page import="com.alibaba.fastjson.JSON" %>


<%

        generaRequestFormPdf(895895,0);

%>

<%!
    /**
     * 生成主流程承办单
     *
     * @param requestid
     * 生成表单时的签字意见是否需要子流程的签字意见
     *
     */
    public static List<String> generaRequestFormPdf(int requestid ,int reqType) {
        // log.error("generaRequestFormPdf,requestid:{}",requestid);
        RequestService requestService = new RequestService();
        RequestInfo requestInfo = requestService.getRequest(Util.getIntValue(requestid), 100);
        WorkflowToDocCus workflowToDoc = new WorkflowToDocCus();
        requestInfo.setLastoperator("1");
        requestInfo.setDescription(ArchivesUtil.getWfNameByid(requestInfo.getWorkflowid()) + "-" + requestInfo.getDescription());
        // log.error("generaRequestFormPdf,requestInfo:{}", JSON.toJSONString(requestInfo));
        return workflowToDoc.execute(requestInfo, reqType);
    }
%>


