Bladeren bron

公告通知查看页面嵌套iframe

临城职教中职
liangkun 2 jaren geleden
bovenliggende
commit
ac64cf6f86
3 gewijzigde bestanden met toevoegingen van 16 en 3 verwijderingen
  1. +11
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs
  2. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js

+ 11
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs Bestand weergeven

@@ -5,7 +5,9 @@ using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Web.Mvc;
using Learun.Application.OA;

namespace Learun.Application.Web.Controllers
{
@@ -595,6 +597,15 @@ namespace Learun.Application.Web.Controllers
{
return View();
}

private NoticeIBLL noticeIBLL = new NoticeBLL();
[HttpGet]
public ActionResult ListContentView(string keyValue)
{
var data = noticeIBLL.GetEntity(keyValue);
data.F_NewsContent = WebHelper.HtmlDecode(data.F_NewsContent);
return Content(data.F_NewsContent);
}
/// <summary>
/// 失物招领
/// </summary>


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml Bestand weergeven

@@ -23,9 +23,10 @@
<span id="msgSource">信息来源:<span id="F_CreateUserName"></span></span>
<span id="newType">公告类别:<span id="F_Category"></span></span>
</div>
<div class="listDotBox" id="F_NewsContent">
@*<div class="listDotBox" id="F_NewsContent">
</div>
</div>*@
<iframe id="newscontentframe"scrolling="auto" frameborder="0" width="100%" height="400px"></iframe>
<div id="F_NewsImage"></div>
</div>
</div>


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js Bestand weergeven

@@ -27,7 +27,8 @@ var bootstrap = function ($, learun) {
$("#F_CreateDate").text(data.F_CreateDate);
$("#F_CreateUserName").text(data.F_SourceName == null ? "" : data.F_SourceName);
$("#F_Category").text(data.F_Category);
$("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));
//$("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));
$("#newscontentframe").attr("src","/Utility/ListContentView?keyValue="+id);
$('#F_NewsImage').lrUploaderSet(data.F_NewsImage);
});
}


Laden…
Annuleren
Opslaan