diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs index eeca1f1b5..d86b5e4b1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs @@ -51,6 +51,11 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers public ActionResult GetList(string keyword) { var data = companyIBLL.GetList(keyword); + foreach (var item in data) + { + item.F_BriefIntroduction = WebHelper.HtmlDecode(item.F_BriefIntroduction); + item.F_EnrollmentInformation = WebHelper.HtmlDecode(item.F_EnrollmentInformation); + } return JsonResult(data); } /// @@ -105,6 +110,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers { entity.SyncFlag = false; var list = companyIBLL.GetList(); + entity.F_BriefIntroduction = WebHelper.HtmlEncode(entity.F_BriefIntroduction); + entity.F_EnrollmentInformation = WebHelper.HtmlEncode(entity.F_EnrollmentInformation); if (!string.IsNullOrEmpty(keyValue)) { entity.SyncFlag = true; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml index 1c4675d7b..c9715b76f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml @@ -2,78 +2,85 @@ ViewBag.Title = "学校添加"; Layout = "~/Views/Shared/_Form.cshtml"; } -
-
-
学校名称*
- -
-
-
学校编码*
- -
-
-
学校简称*
- -
-
-
上级学校
-
-
-
-
成立时间
- -
-
-
负责人
- -
-
-
电话
- -
+
+
+
学校名称*
+ +
+
+
学校编码*
+ +
+
+
学校简称*
+ +
+
+
上级学校
+
+
+
+
成立时间
+ +
+
+
负责人
+ +
+
+
电话
+ +
-
-
电子邮箱
- -
-
-
照片
-
-
-
-
校区简介
-
-
-
-
招生简介
-
-
-
-
传真
- -
-
-
学校地点
-
-
-
-
-
-
- -
-
-
-
邮编
- -
-
-
学校官网
- +
+
电子邮箱
+ +
+
+
照片
+
+
+
+
校区简介
+ @*
*@ + +
+
+
招生简介
+ @*
*@ + +
+
+
传真
+ +
+
+
学校地点
+
+
+
+
-
-
备注
- +
+
+
+
邮编
+ +
+
+
学校官网
+ +
+
+
备注
+ +
+
+ + + @Html.AppendJsFile("/Areas/LR_OrganizationModule/Views/Company/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js index 7314020ad..dfeacc4d3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js @@ -10,6 +10,8 @@ var acceptClick; var keyValue = ''; var bootstrap = function ($, learun) { "use strict"; + var F_BriefIntroductionUE; + var F_EnrollmentInformationUE; var selectedRow = learun.frameTab.currentIframe().selectedRow; var page = { init: function () { @@ -24,15 +26,25 @@ var bootstrap = function ($, learun) { // 省市区 $('#area').lrAreaSelect(); $('#F_Photo').lrUploader(); - var F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction'); - $('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE; - var F_EnrollmentInformationUE = UE.getEditor('F_EnrollmentInformation'); - $('#F_EnrollmentInformation')[0].ue = F_EnrollmentInformationUE; + F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction'); + F_EnrollmentInformationUE = UE.getEditor('F_EnrollmentInformation'); }, initData: function () { if (!!selectedRow) { keyValue = selectedRow.F_CompanyId; $('#form').lrSetFormData(selectedRow); + if (selectedRow.F_BriefIntroduction) { + setTimeout(function () { + F_BriefIntroductionUE.setContent(selectedRow.F_BriefIntroduction); + }, 100); + + }; + if (selectedRow.F_EnrollmentInformation) { + setTimeout(function () { + F_EnrollmentInformationUE.setContent(selectedRow.F_EnrollmentInformation); + }, 100); + + }; } } }; @@ -45,7 +57,12 @@ var bootstrap = function ($, learun) { if (postData["F_ParentId"] == '' || postData["F_ParentId"] == ' ') { postData["F_ParentId"] = '0'; } - $.lrSaveForm(top.$.rootUrl + '/LR_OrganizationModule/Company/SaveForm?keyValue=' + keyValue, postData, function (res) { + postData["F_BriefIntroduction"] = F_BriefIntroductionUE.getContent(null, null, true); + postData["F_EnrollmentInformation"] = F_EnrollmentInformationUE.getContent(null, null, true); + var postDatas = { + strEntity: JSON.stringify(postData) + }; + $.lrSaveForm(top.$.rootUrl + '/LR_OrganizationModule/Company/SaveForm?keyValue=' + keyValue, postDatas, function (res) { // 保存成功后才回调 if (!!callBack) { callBack(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Index.js index 491a608b2..08293666a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Index.js @@ -28,7 +28,7 @@ var bootstrap = function ($, learun) { title: '添加学校', url: top.$.rootUrl + '/LR_OrganizationModule/Company/Form', width: 750, - height: 500, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -44,7 +44,7 @@ var bootstrap = function ($, learun) { title: '编辑学校', url: top.$.rootUrl + '/LR_OrganizationModule/Company/Form', width: 750, - height: 500, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); }