@@ -5,7 +5,9 @@ using System.Collections.Generic; | |||||
using System.Data; | using System.Data; | ||||
using System.IO; | using System.IO; | ||||
using System.Linq; | using System.Linq; | ||||
using System.Net.Http; | |||||
using System.Web.Mvc; | using System.Web.Mvc; | ||||
using Learun.Application.OA; | |||||
namespace Learun.Application.Web.Controllers | namespace Learun.Application.Web.Controllers | ||||
{ | { | ||||
@@ -595,6 +597,15 @@ namespace Learun.Application.Web.Controllers | |||||
{ | { | ||||
return View(); | 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> | ||||
/// 失物招领 | /// 失物招领 | ||||
/// </summary> | /// </summary> | ||||
@@ -23,9 +23,10 @@ | |||||
<span id="msgSource">信息来源:<span id="F_CreateUserName"></span></span> | <span id="msgSource">信息来源:<span id="F_CreateUserName"></span></span> | ||||
<span id="newType">公告类别:<span id="F_Category"></span></span> | <span id="newType">公告类别:<span id="F_Category"></span></span> | ||||
</div> | </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 id="F_NewsImage"></div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -27,7 +27,8 @@ var bootstrap = function ($, learun) { | |||||
$("#F_CreateDate").text(data.F_CreateDate); | $("#F_CreateDate").text(data.F_CreateDate); | ||||
$("#F_CreateUserName").text(data.F_SourceName == null ? "" : data.F_SourceName); | $("#F_CreateUserName").text(data.F_SourceName == null ? "" : data.F_SourceName); | ||||
$("#F_Category").text(data.F_Category); | $("#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); | $('#F_NewsImage').lrUploaderSet(data.F_NewsImage); | ||||
}); | }); | ||||
} | } | ||||