Explorar el Código

公文查看阅读 手机收件箱附件路径

临城职教中职
ndbs hace 2 años
padre
commit
107200e654
Se han modificado 3 ficheros con 19 adiciones y 0 borrados
  1. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs
  2. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageEntity.cs
  3. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageService.cs

+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Sys_ReceiveFileApi.cs Ver fichero

@@ -28,6 +28,8 @@ namespace Learun.Application.WebApi
Get["/form"] = GetForm;
Post["/delete"] = DeleteForm;
Post["/save"] = SaveForm;
Post["/read"] = NewsRead;
}
#region  获取数据

@@ -112,6 +114,17 @@ namespace Learun.Application.WebApi
sys_ReceiveFileIBLL.SaveEntity(this.userInfo, parameter.keyValue, entity);
return Success("保存成功!");
}

/// <summary>
/// 查阅公文
/// <summary>
/// <returns></returns>
public Response NewsRead(dynamic _)
{
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>();
sys_ReceiveFileIBLL.ReadEntity(parameter.keyValue);
return Success("查阅成功!");
}
#endregion

#region  私有类


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageEntity.cs Ver fichero

@@ -110,6 +110,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#region 扩展字段
/// <summary>
///
/// </summary>
[NotMapped]
public string FilePath { get; set; }
#endregion
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessageService.cs Ver fichero

@@ -166,6 +166,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var result = this.BaseRepository().FindEntity<SYS_ReceiveMessageEntity>(keyValue);
result.FilePath = result.URL;
result.URL = this.BaseRepository().FindEntity<AnnexesFileEntity>(a => a.F_FolderId == result.URL)?.F_FilePath;
if (!string.IsNullOrEmpty(result.URL))
{


Cargando…
Cancelar
Guardar