|
|
@@ -27,7 +27,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers |
|
|
|
[HttpGet] |
|
|
|
public ActionResult Index() |
|
|
|
{ |
|
|
|
return View(); |
|
|
|
return View(); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 表单页 |
|
|
@@ -85,8 +85,9 @@ namespace Learun.Application.Web.Areas.Ask.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult GetFormData(string keyValue) |
|
|
|
{ |
|
|
|
var Ask_TypeData = ask_TypeIBLL.GetAsk_TypeEntity( keyValue ); |
|
|
|
var jsonData = new { |
|
|
|
var Ask_TypeData = ask_TypeIBLL.GetAsk_TypeEntity(keyValue); |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
Ask_Type = Ask_TypeData, |
|
|
|
}; |
|
|
|
return Success(jsonData); |
|
|
@@ -104,6 +105,11 @@ namespace Learun.Application.Web.Areas.Ask.Controllers |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult DeleteForm(string keyValue) |
|
|
|
{ |
|
|
|
var SonList = ask_TypeIBLL.GetAsk_TypeEntity(keyValue); |
|
|
|
if (SonList != null) |
|
|
|
{ |
|
|
|
return Fail("删除失败,请先删除子项!"); |
|
|
|
} |
|
|
|
ask_TypeIBLL.DeleteEntity(keyValue); |
|
|
|
return Success("删除成功!"); |
|
|
|
} |
|
|
@@ -118,7 +124,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers |
|
|
|
public ActionResult SaveForm(string keyValue, string strEntity) |
|
|
|
{ |
|
|
|
Ask_TypeEntity entity = strEntity.ToObject<Ask_TypeEntity>(); |
|
|
|
ask_TypeIBLL.SaveEntity(keyValue,entity); |
|
|
|
ask_TypeIBLL.SaveEntity(keyValue, entity); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
#endregion |
|
|
|