Bläddra i källkod

解决学校简介无法保存的问题

金隅分支
zhangli 3 år sedan
förälder
incheckning
5a12727249
3 ändrade filer med 12 tillägg och 4 borttagningar
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJYHC.cshtml
  2. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs
  3. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJYHC.cshtml Visa fil

@@ -14,8 +14,8 @@
<div id="AAITId" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">耗材编号<font face="宋体">*</font></div>
<input id="AAICode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<div class="lr-form-item-title">耗材编号</div>
<input id="AAICode" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">耗材名称<font face="宋体">*</font></div>


+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs Visa fil

@@ -106,8 +106,10 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, CompanyEntity entity)
[ValidateInput(false)]
public ActionResult SaveForm(string keyValue, string strEntity)
{
CompanyEntity entity = strEntity.ToObject<CompanyEntity>();
entity.SyncFlag = false;
entity.F_BriefIntroduction = WebHelper.HtmlEncode(entity.F_BriefIntroduction);
entity.F_EnrollmentInformation = WebHelper.HtmlEncode(entity.F_EnrollmentInformation);
@@ -126,6 +128,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
entity.SyncFlag = false;
}


list = list.Where(m => m.F_CompanyId != keyValue).ToList();
}
if (list.Any(a => a.F_FullName == entity.F_FullName))


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js Visa fil

@@ -61,7 +61,12 @@ var bootstrap = function ($, learun) {
if (postData["F_ParentId"] == '' || postData["F_ParentId"] == '&nbsp;') {
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();


Laddar…
Avbryt
Spara