using Learun.Application.TwoDevelopment.ZZDT_EC;
using Learun.Util;
using System.Collections.Generic;
using System.Data;
using System.Web.Mvc;
namespace Learun.Application.Web.Areas.ZZDT_EC.Controllers
{
///
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创 建:超级管理员
/// 日 期:2022-03-07 13:45
/// 描 述:工程数据图元
///
public class ec_enginedata_pixelController : MvcControllerBase
{
private ec_enginedata_pixelIBLL ec_enginedata_pixelIBLL = new ec_enginedata_pixelBLL();
#region 视图功能
///
/// 主页面
///
///
[HttpGet]
public ActionResult Index()
{
return View();
}
#endregion
#region 获取数据
///
/// 获取工程数据图元表数据
///
/// 工程数据ID
/// 项目ID
///
[HttpGet]
[AjaxOnly]
public ActionResult GetEnginePixelById(string ProjectId, string EngineDataID)
{
var data = ec_enginedata_pixelIBLL.GetEnginePixelById(ProjectId, EngineDataID);
return Success(data);
}
#endregion
#region 提交数据
///
/// 保存工程数据图元表数据(新增)
/// 工程数据ID
///
///
[HttpPost]
[AjaxOnly]
public ActionResult SaveEnginePixel(string engineDataID, string strEntity, string ProjectId)
{
List entityList = strEntity.ToList();
ec_enginedata_pixelIBLL.SavePixelsWeb(engineDataID, entityList, ProjectId);
return Success("保存成功!");
}
#endregion
}
}