using Learun.Util; using System; using System.Collections.Generic; namespace Learun.Application.Base.Files { /// /// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架 /// Copyright (c) 2013-2018 上海力软信息技术有限公司 /// 创 建:超级管理员 /// 日 期:2019-11-29 14:04 /// 描 述:文件管理 /// public class FileInfoBLL: FileInfoIBLL { private FileInfoService fileInfoService = new FileInfoService(); #region 获取数据 /// /// 获取表实体数据 /// /// 主键 /// public FileBInfoEntity GetEntity(string keyValue) { try { return fileInfoService.GetEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取文件列表实体 /// /// /// public FilelistEntity GetListEntity(string keyValue) { try { return fileInfoService.GetListEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取文件列表实体 /// /// /// public FilelistEntity GetListEntityByInfoId(string fileInfoId) { try { return fileInfoService.GetListEntityByInfoId(fileInfoId); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } } /// /// 文件审核列表 /// /// 查询语句 /// 分页参数 /// 查询关键字 /// 当前登陆者用户 /// public IEnumerable GetWfPageList(string strWfSql, Pagination pagination, string keyword,string userId) { return fileInfoService.GetWfPageList(strWfSql, pagination, keyword, userId); } /// /// 获取正式发布的文件 /// /// 查询关键字 /// 文件夹id /// public IEnumerable GetAllPublishPageList(string keyword, string folderId) { return fileInfoService.GetAllPublishPageList(keyword, folderId); } /// /// 获取正式发布的文件 /// /// 查询关键字 /// 文件夹id /// public IEnumerable GetPublishList(string keyword, string folderId) { return fileInfoService.GetPublishList(keyword, folderId); } /// /// 获取文件的历史信息 /// /// 主键 /// public IEnumerable GetHistoryList(string fileInfoId) { return fileInfoService.GetHistoryList(fileInfoId); } /// /// 获取正式发布的文件 /// /// 查询关键字 /// public IEnumerable GetDeleteList(string keyword) { return fileInfoService.GetDeleteList(keyword); } #endregion #region 提交数据 /// /// 保存数据 /// /// 文件列表主键 /// 文件主信息 /// 文件列表信息 public void SaveEntity(string keyValue, FileBInfoEntity fileBInfoEntity, FilelistEntity filelistEntity) { try { fileInfoService.SaveEntity(keyValue, fileBInfoEntity, filelistEntity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 更新文件发布状态 /// /// 流程实例主键 public void UpdateEntity(string processId) { fileInfoService.UpdateEntity(processId); } /// /// 虚拟删除文件 /// /// 主键 public void VDeleteEntity(string keyValue) { fileInfoService.VDeleteEntity(keyValue); } /// /// 还原虚拟删除文件 /// /// 主键 public void RecoveryEntity(string keyValue) { fileInfoService.RecoveryEntity(keyValue); } /// /// 彻底删除 /// /// public void DeleteEntity(string keyValue) { fileInfoService.DeleteEntity(keyValue); } #endregion } }