|
|
@@ -1,4 +1,5 @@ |
|
|
|
using Learun.Application.Form; |
|
|
|
using System; |
|
|
|
using Learun.Application.Form; |
|
|
|
using Learun.Util; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Web.Mvc; |
|
|
@@ -331,12 +332,20 @@ namespace Learun.Application.Web.Areas.LR_FormModule.Controllers |
|
|
|
[ValidateInput(false)] |
|
|
|
public ActionResult SaveInstanceForms(string data) |
|
|
|
{ |
|
|
|
List<SaveModel> list = data.ToObject<List<SaveModel>>(); |
|
|
|
foreach (var item in list) |
|
|
|
try |
|
|
|
{ |
|
|
|
formSchemeIBLL.SaveInstanceForm(item.schemeInfoId, item.processIdName, item.keyValue, item.formData); |
|
|
|
List<SaveModel> list = data.ToObject<List<SaveModel>>(); |
|
|
|
foreach (var item in list) |
|
|
|
{ |
|
|
|
formSchemeIBLL.SaveInstanceForm(item.schemeInfoId, item.processIdName, item.keyValue, item.formData); |
|
|
|
} |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
return Success("保存成功!"); |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
return Fail("sql执行错误,数据溢出"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 删除自定义表单数据 |
|
|
|