@@ -93,7 +93,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
newsIBLL.SaveEntity(keyValue, entity); | newsIBLL.SaveEntity(keyValue, entity); | ||||
#region 发送到网站 | #region 发送到网站 | ||||
if (entity.IsSend == "1") | |||||
if (entity.F_IsSendCMS == 1) | |||||
{ | { | ||||
//获取配置文件 | //获取配置文件 | ||||
string siteId = ConfigurationManager.AppSettings["SiteId"]; | string siteId = ConfigurationManager.AppSettings["SiteId"]; | ||||
@@ -133,7 +133,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers | |||||
listCon.Add(con); | listCon.Add(con); | ||||
AList.contents = listCon; | AList.contents = listCon; | ||||
//AList.reasons = "终审通过"; | //AList.reasons = "终审通过"; | ||||
Util.HttpMethods.HttpPosts("http://"+Ports+"/api/v1/contents/check", AList.ToJson(), ApiId); | |||||
Util.HttpMethods.HttpPosts("http://" + Ports + "/api/v1/contents/check", AList.ToJson(), ApiId); | |||||
//Util.HttpMethods.HttpPosts("http://"+Ports+"/api/v1/contents/actions/check", AList.ToJson(), ApiId); | //Util.HttpMethods.HttpPosts("http://"+Ports+"/api/v1/contents/actions/check", AList.ToJson(), ApiId); | ||||
} | } | ||||
#endregion | #endregion | ||||
@@ -9,8 +9,8 @@ | |||||
<input id="F_FullHead" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" /> | <input id="F_FullHead" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请输入标题" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">是否下发到CMS</div> | |||||
<div id="IsSend" ></div> | |||||
<div class="lr-form-item-title">是否下发CMS</div> | |||||
<div id="F_IsSendCMS" ></div> | |||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">新闻栏目<font face="宋体">*</font></div> | <div class="lr-form-item-title">新闻栏目<font face="宋体">*</font></div> | ||||
@@ -17,11 +17,11 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#IsSend').lrselect({ | |||||
$('#F_IsSendCMS').lrselect({ | |||||
data: [{ text: "是", value: "1" }, { text: "否", value: "0" }], | data: [{ text: "是", value: "1" }, { text: "否", value: "0" }], | ||||
text: "text", | text: "text", | ||||
value: "value" | value: "value" | ||||
}) | |||||
}); | |||||
//新闻栏目 | //新闻栏目 | ||||
$('#F_CategoryId').lrDataItemSelect({ code: 'NewsCategory', maxHeight: 230 }); | $('#F_CategoryId').lrDataItemSelect({ code: 'NewsCategory', maxHeight: 230 }); | ||||
//内容编辑器 | //内容编辑器 | ||||
@@ -82,7 +82,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: '标题', name: 'F_FullHead', width: 500, align: 'left' }, | { label: '标题', name: 'F_FullHead', width: 500, align: 'left' }, | ||||
{ label: '作者', name: 'F_AuthorName', width: 100, align: 'left' }, | { label: '作者', name: 'F_AuthorName', width: 100, align: 'left' }, | ||||
{ label: '小编', name: 'F_CompileName', width: 100, align: 'left' }, | { label: '小编', name: 'F_CompileName', width: 100, align: 'left' }, | ||||
{ label: '栏目', name: 'F_Category', width: 100, align: 'left' }, | |||||
{ label: '栏目', name: 'F_CategoryId', width: 100, align: 'left' }, | |||||
{ | { | ||||
label: "发布时间", name: "F_ReleaseTime", width: 140, align: "left", | label: "发布时间", name: "F_ReleaseTime", width: 140, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
@@ -67,7 +67,7 @@ namespace Learun.Application.Language | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var sql = "select * from LR_Lg_Map where F_TypeCode='" + TypeCode + "' AND t.F_Code <>'' AND t.F_Code<>'undefined'"; | |||||
var sql = "select * from LR_Lg_Map t where F_TypeCode='" + TypeCode + "' AND t.F_Code <>'' AND t.F_Code<>'undefined'"; | |||||
return this.BaseRepository().FindList<LGMapEntity>(sql); | return this.BaseRepository().FindList<LGMapEntity>(sql); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -196,6 +196,11 @@ namespace Learun.Application.OA | |||||
[Column("F_STATUS")] | [Column("F_STATUS")] | ||||
public string F_Status { get; set; } | public string F_Status { get; set; } | ||||
/// <summary> | |||||
/// 是否下发到CMS | |||||
/// </summary> | |||||
[Column("F_ISSENDCMS")] | |||||
public int? F_IsSendCMS { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// 阅读Id | /// 阅读Id | ||||