制度模型增加默认附件
This commit is contained in:
parent
2a08379fa6
commit
4a6c560244
Binary file not shown.
@ -9176,23 +9176,31 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int lastDotIndex = formFile.getFileName().lastIndexOf(".");
|
}else{
|
||||||
String name = formFile.getFileName().substring(0, lastDotIndex);
|
for (String key : elements.keySet()) {
|
||||||
|
JSONObject shape1 = elements.getJSONObject(key);
|
||||||
boolean writeFileTodisk = writeFileTodisk(this.getContext(), shpId, formFile.getFileName(),
|
if ("regulation".equals(shape1.getString("name"))) {
|
||||||
originfile, uuid, "s");
|
shpId = key;
|
||||||
System.out.println("writeFileTodisk = " + writeFileTodisk);
|
break;
|
||||||
|
}
|
||||||
//往合同正文里新建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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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");
|
ro.put("result", "ok");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user