009_DI-Elec/Learun.Application.Web/Areas/ZZDT_EC/Controllers/ec_enginedata_pixelController.cs

70 lines
2.0 KiB
C#
Raw Normal View History

2025-08-13 11:14:39 +08:00
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
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创 建:超级管理员
/// 日 期2022-03-07 13:45
/// 描 述:工程数据图元
/// </summary>
public class ec_enginedata_pixelController : MvcControllerBase
{
private ec_enginedata_pixelIBLL ec_enginedata_pixelIBLL = new ec_enginedata_pixelBLL();
#region
/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
#endregion
#region
2025-08-13 11:14:39 +08:00
/// <summary>
/// 获取工程数据图元表数据
/// <summary>
/// <param name="EngineDataID">工程数据ID</param>
/// <param name="ProjectId">项目ID</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetEnginePixelById(string ProjectId, string EngineDataID)
{
var data = ec_enginedata_pixelIBLL.GetEnginePixelById(ProjectId, EngineDataID);
return Success(data);
}
#endregion
#region
/// <summary>
/// 保存工程数据图元表数据(新增)
/// <param name="engineDataID">工程数据ID</param>
/// <summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult SaveEnginePixel(string engineDataID, string strEntity, string ProjectId)
{
List<ec_enginedata_pixelEntity> entityList = strEntity.ToList<ec_enginedata_pixelEntity>();
ec_enginedata_pixelIBLL.SavePixelsWeb(engineDataID, entityList, ProjectId);
return Success("保存成功!");
}
#endregion
}
}