Bladeren bron

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

临城职教中职
ndbs 2 jaren geleden
bovenliggende
commit
107200e654
3 gewijzigde bestanden met toevoegingen van 19 en 0 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan