You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using NFine.Application.ProductManage; using NFine.Code; using NFine.Domain.Entity.ProductManage; using System.Collections.Generic; using System.Linq; using System.Web.Mvc;
namespace NFine.Web.Areas.ProductManage.Controllers { public class MaintainController : ControllerBase { private MaintainApp maintainAppApp = new MaintainApp();
[HttpGet] [HandlerAjaxOnly] public ActionResult GetGridJson(Pagination pagination, string queryJson) { var data = new { rows = maintainAppApp.GetList(pagination, queryJson), total = pagination.total, page = pagination.page, records = pagination.records }; return Content(data.ToJson()); }
[HttpGet] [HandlerAjaxOnly] public ActionResult GetFormJson(string keyValue) { var data = maintainAppApp.GetForm(keyValue); return Content(data.ToJson()); }
[HttpPost] [HandlerAjaxOnly] [ValidateAntiForgeryToken] public ActionResult SubmitForm(ICSProductEntity productEntity, string keyValue) { maintainAppApp.SubmitForm(productEntity, keyValue); return Success("Successful operation."); }
[HttpPost] [HandlerAjaxOnly] [HandlerAuthorize] [ValidateAntiForgeryToken] public ActionResult DeleteForm(string keyValue) { maintainAppApp.DeleteForm(keyValue); return Success("Delete success."); } } }
|