diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 4cd17dca..a777a887 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index 9f036c50..30e6be59 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -9176,23 +9176,31 @@ public class CoeProcessLevelWeb extends ActionWeb { break; } } - int lastDotIndex = formFile.getFileName().lastIndexOf("."); - String name = formFile.getFileName().substring(0, lastDotIndex); - - boolean writeFileTodisk = writeFileTodisk(this.getContext(), shpId, formFile.getFileName(), - originfile, uuid, "s"); - System.out.println("writeFileTodisk = " + writeFileTodisk); - - //往合同正文里新建dc - DCPluginProfile dcProfilepdf = DCProfileManager.getDCProfile("com.actionsoft.apps.coe.pal.datamigration", - "migration"); - DCContext dcContextpdf = new DCContext(this.getContext(), dcProfilepdf, "com.actionsoft.apps.coe.pal.datamigration", - "policyFile", uuid, formFile.getFileName()); - boolean write = SDK.getDCAPI().write(originfile, dcContextpdf); - System.out.println("write = " + write); - + }else{ + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + if ("regulation".equals(shape1.getString("name"))) { + shpId = key; + break; + } + } } + int lastDotIndex = formFile.getFileName().lastIndexOf("."); + String name = formFile.getFileName().substring(0, lastDotIndex); + + boolean writeFileTodisk = writeFileTodisk(this.getContext(), shpId, formFile.getFileName(), + originfile, uuid, "s"); + System.out.println("writeFileTodisk = " + writeFileTodisk); + + //往合同正文里新建dc + DCPluginProfile dcProfilepdf = DCProfileManager.getDCProfile("com.actionsoft.apps.coe.pal.datamigration", + "migration"); + DCContext dcContextpdf = new DCContext(this.getContext(), dcProfilepdf, "com.actionsoft.apps.coe.pal.datamigration", + "policyFile", uuid, formFile.getFileName()); + boolean write = SDK.getDCAPI().write(originfile, dcContextpdf); + System.out.println("write = " + write); + ro.put("result", "ok");