|
@@ -27,24 +27,24 @@ import java.util.Map;
|
|
|
public class AmountOpPlugin extends AbstractOperationServicePlugIn {
|
|
|
|
|
|
private static String er_prepaybill="er_prepaybill";
|
|
|
- @Override
|
|
|
- public void endOperationTransaction(EndOperationTransactionArgs e) {
|
|
|
- super.endOperationTransaction(e);
|
|
|
-
|
|
|
- DynamicObject[] dynamicObjects = e.getDataEntities();
|
|
|
- for (int i = 0; i < dynamicObjects.length; i++) {
|
|
|
- JSONObject object = new JSONObject();
|
|
|
-
|
|
|
- DynamicObject info = BusinessDataServiceHelper.loadSingle(dynamicObjects[i].getPkValue(), dynamicObjects[i].getDynamicObjectType().getName());
|
|
|
- DynamicObjectCollection writeoffapply = info.getDynamicObjectCollection("writeoffapply");
|
|
|
- if(writeoffapply.size()<=0){
|
|
|
- List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachments("er_tripreimbursebill", info.getLong("id"), "nckd_attachmentpanelsq", true);
|
|
|
- if(attachments.size()<=0){
|
|
|
- throw new KDBizException("请上传出差申请附件!");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public void beginOperationTransaction(BeginOperationTransactionArgs e){
|