以操作插件为例
public class DownlaodContract extends AbstractOperationServicePlugIn implements Plugin {
@Override
public void onPreparePropertys(PreparePropertysEventArgs e) {
super.onPreparePropertys(e);
e.getFieldKeys().add("yfsw_htzhuangtai");
}
@Override
public void onAddValidators(AddValidatorsEventArgs e) {
e.addValidator(new AbstractValidator() {
public void validate() {
for (ExtendedDataEntity rowDataEntity : this.getDataEntities()) {
DynamicObject dataEntity = rowDataEntity.getDataEntity();
String zhuangtai = dataEntity.getString("yfsw_htzhuangtai");
if(zhuangtai != "B" || zhuangtai != "C"){
this.addErrorMessage(rowDataEntity,"合同未签署或已作废");
}
}
}
});
}
@Override
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
String privapi_url = "";
String documentId = "";
String url = privapi_url + "/document/download?documentId="+documentId;
super.afterExecuteOperationTransaction(e);
CloseableHttpClient httpClient = HttpClients.createDefault();
StringBuilder entityStringBuilder = null;
try {
HttpGet get = new HttpGet(url);
CloseableHttpResponse httpResponse = null;
httpResponse = httpClient.execute(get);
try {
HttpEntity entity = httpResponse.getEntity();
entityStringBuilder = new StringBuilder();
if (null != entity) {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent(), "UTF-8"), 8 * 1024);
String line = null;
while ((line = bufferedReader.readLine()) != null) {
entityStringBuilder.append(line + "/n");
}
}
} finally {
httpResponse.close();
}
} catch (Exception a) {
a.printStackTrace();
} finally {
try {
if (httpClient != null) {
httpClient.close();
}
} catch (IOException a) {
a.printStackTrace();
}
}
}
}
![1 1]()
本文链接:https://www.naiteiy.site/index.php/archives/82/
《华纳圣淘沙开户步骤详解》→ 」专属通道快速办理??? 安全联系:183第三段8890第四段9465
《华纳圣淘沙账户注册指南》→ 扫码获取完整资料清单?「微?? 安全联系:183第三段8890第四段9465
《新手开通华纳圣淘沙公司账户指南》→ 限时免费咨询开放??? 安全联系:183第三段8890第四段9465
《华纳圣淘沙企业开户标准流程》→ 资深顾问实时解答疑问??? 安全联系:183第三段8890第四段9465
《华纳圣淘沙开户步骤全景图》→ 点击获取极速开户方案??? 安全联系:183第三段8890第四段9465
《华纳圣淘沙账户创建全流程手册》→ 预约顾问免排队服务?9?? 安全联系:183第三段8890第四段9465 《从零开通华纳圣淘沙公司账户》→ 添加客服领取开户工具包?? 安全联系:183第三段8890第四段9465
《官方授权:华纳圣淘沙开户流程》→ 认证顾问全程代办?」?? 安全联系:183第三段8890第四段9465
《华纳圣淘沙开户说明书》→立即联系获取电子版文件??? 安全联系:183第三段8890第四段9465
华纳圣淘沙公司开户华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)华纳圣淘沙公司开户分步图解首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)华纳圣淘沙公司开户分步图解首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)华纳圣淘沙公司开户分步图解首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)华纳圣淘沙公司开户分步图解首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)