|
@@ -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 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){
|