|
|
@@ -129,9 +129,19 @@ namespace Learun.Application.WebApi |
|
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
|
FundsApplyEntity entity = parameter.strEntity.ToObject<FundsApplyEntity>(); |
|
|
|
List<FundsApplyDetailEntity> detailList = parameter.fundsApplyDetailList.ToObject<List<FundsApplyDetailEntity>>(); |
|
|
|
if (entity.EnCode.Length > 15) |
|
|
|
var code = entity.EnCode; |
|
|
|
var savecode = fundsApplyIBLL.SaveCode(entity.EnCode, parameter.keyValue); |
|
|
|
|
|
|
|
var encode = savecode.Substring(13).ToInt(); |
|
|
|
if (encode > 99) |
|
|
|
{ |
|
|
|
return Fail("保存失败,经费开支单今日数量已超上限,请您明日编辑!"); |
|
|
|
} |
|
|
|
entity.EnCode = savecode; |
|
|
|
if (code != entity.EnCode) |
|
|
|
{ |
|
|
|
return Fail("保存失败,经费开支单号今日数量已超上限,请明日提交!"); |
|
|
|
fundsApplyIBLL.SaveEntity(parameter.keyValue, entity, detailList); |
|
|
|
return Success("保存成功,经费开支申报单号已重复,系统已为您自动变更!"); |
|
|
|
} |
|
|
|
fundsApplyIBLL.SaveEntity(parameter.keyValue, entity, detailList); |
|
|
|
return Success("保存成功!"); |
|
|
|