123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using LeaRun.Application.Busines.DMAManage;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace LeaRun.Application.Web.Areas.DMAManage.Controllers
- {
- public class PartitionDrawController : MvcControllerBase
- {
- // 分区绘制
- // GET: /DMAManage/PartitionDraw/
- PartitionDrawBLL partitionDrawBLL = new PartitionDrawBLL();
- #region 视图区域
- public ActionResult Index()
- {
- return View();
- }
- #endregion
- #region 获取所有分区数据
- /// <summary>
- /// 获取所有分区数据
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult GetAllPartitions()
- {
- return Content(partitionDrawBLL.GetAllPartitions());
- }
- #endregion
- #region 保存数据
- /// <summary>
- /// 保存数据
- /// </summary>
- /// <param name="datas"></param>
- /// <returns></returns>
- [HttpPost]
- [ValidateAntiForgeryToken]
- [AjaxOnly]
- public ActionResult SavePoints(string datas)
- {
- if (partitionDrawBLL.SavePoints(datas) == 0)
- {
- return Success("保存成功!");
- }
- else
- {
- return Error("保存失败!");
- }
- }
- #endregion
- }
- }
|