|
@@ -1,16 +1,13 @@
|
|
|
package nckd.base.helper;
|
|
|
|
|
|
-import kd.bos.dataentity.OperateOption;
|
|
|
-import kd.bos.dataentity.entity.DynamicObject;
|
|
|
+
|
|
|
import kd.bos.entity.EntityMetadataCache;
|
|
|
import kd.bos.entity.MainEntityType;
|
|
|
import kd.bos.entity.datamodel.ListSelectedRowCollection;
|
|
|
import kd.bos.entity.operate.result.OperationResult;
|
|
|
import kd.bos.ext.fi.bei.util.EmptyUtil;
|
|
|
-import kd.bos.ext.fi.plugin.ArApConvert.util.EmptyUtils;
|
|
|
import kd.bos.fileservice.FileService;
|
|
|
import kd.bos.fileservice.FileServiceFactory;
|
|
|
-import kd.bos.fileservice.extension.FileServiceExtFactory;
|
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
|
import kd.bos.list.BillList;
|
|
|
import kd.bos.list.IListView;
|
|
@@ -22,21 +19,10 @@ import kd.bos.metadata.dao.MetadataDao;
|
|
|
import kd.bos.metadata.form.ControlAp;
|
|
|
import kd.bos.metadata.form.FormMetadata;
|
|
|
import kd.bos.metadata.form.control.AttachmentPanelAp;
|
|
|
-import kd.bos.orm.query.QCP;
|
|
|
-import kd.bos.orm.query.QFilter;
|
|
|
-import kd.bos.servicehelper.AttachmentDto;
|
|
|
import kd.bos.servicehelper.AttachmentServiceHelper;
|
|
|
-import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
-import kd.bos.servicehelper.attachment.AttachmentFieldServiceHelper;
|
|
|
-import kd.bos.servicehelper.operation.OperationServiceHelper;
|
|
|
import kd.bos.util.StringUtils;
|
|
|
import kd.sdk.plugin.Plugin;
|
|
|
-
|
|
|
-import java.io.File;
|
|
|
-import java.io.FileInputStream;
|
|
|
-import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -70,22 +56,6 @@ public class AttachmentDownloadListPlugin extends AbstractListPlugin implements
|
|
|
|
|
|
if (operationResult != null && operationResult.isSuccess() && "downloadfile".equals(operateKey)) {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (StringUtils.isEmpty(attForm) && EmptyUtil.isEmpty(billid)) {
|
|
|
this.getView().showErrorNotification("没有附件可下载!");
|
|
|
return;
|