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:46
/// 描 述:工程数据属性表
///
public class ec_enginedata_propertyController : MvcControllerBase
{
private ec_enginedata_propertyIBLL ec_enginedata_propertyIBLL = new ec_enginedata_propertyBLL();
#region 视图功能
///
/// 主页面
///
///
[HttpGet]
public ActionResult Index()
{
return View();
}
#endregion
#region 获取数据
///
/// 获取工程数据属性表数据
///
/// 工程数据ID
/// 项目ID
///
[HttpGet]
[AjaxOnly]
public ActionResult GetEnginePropById(string ProjectId, string EngineDataID)
{
var data = ec_enginedata_propertyIBLL.GetEnginePropById(ProjectId, EngineDataID);
return Success(data);
}
#endregion
#region 提交数据
///
/// 保存工程数据属性表数据(新增)
///
///
[HttpPost]
[AjaxOnly]
public ActionResult SaveEngineProp(string ProjectId, string strEntity)
{
List entityList = strEntity.ToList();
ec_enginedata_propertyIBLL.SaveEngineProp(ProjectId, entityList);
return Success("保存成功!");
}
#endregion
}
}