|
|
@@ -37,7 +37,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
[HttpGet] |
|
|
|
public ActionResult Form() |
|
|
|
{ |
|
|
|
ViewBag.EnCode = "JFKZ_" + CommonHelper.CreateNo(); |
|
|
|
ViewBag.EnCode = fundsApplyIBLL.GetCode(); |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
@@ -136,10 +136,11 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
{ |
|
|
|
FundsApplyEntity entity = strEntity.ToObject<FundsApplyEntity>(); |
|
|
|
List<FundsApplyDetailEntity> detailList = fundsApplyDetailList.ToObject<List<FundsApplyDetailEntity>>(); |
|
|
|
fundsApplyIBLL.SaveEntity(keyValue, entity, detailList); |
|
|
|
if (string.IsNullOrEmpty(keyValue)) |
|
|
|
if (entity.EnCode.Length > 15) |
|
|
|
{ |
|
|
|
return Fail("保存失败,经费开支单号今日数量已超上限,请明日提交!"); |
|
|
|
} |
|
|
|
fundsApplyIBLL.SaveEntity(keyValue, entity, detailList); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
|
|
|
|