1
This commit is contained in:
parent
646ee1e7ea
commit
0ccb756362
@ -61,8 +61,8 @@ namespace MDM.Controllers.Process
|
||||
{
|
||||
var response = _ProcessOperationService.GetInfo(OperationId);
|
||||
|
||||
var info = response.Adapt<ProcessOperation>();
|
||||
return SUCCESS(info);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -181,7 +181,10 @@ namespace MDM.Controllers.Process
|
||||
|
||||
//TODO 新增工艺参数数采
|
||||
//[HttpPost("operation_add_datacollection")]
|
||||
//public IActionResult Operation
|
||||
//public IActionResult OperationAddDatacollection([FromBody])
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
115
MDM/Models/Process/Dto/ProcessOperationCollectParameterDto.cs
Normal file
115
MDM/Models/Process/Dto/ProcessOperationCollectParameterDto.cs
Normal file
@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MDM.Models.Process.Dto
|
||||
{
|
||||
public class ProcessOperationCollectParameterDto
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属工艺路线code
|
||||
/// </summary>
|
||||
|
||||
public string FkRoutingCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属工序code
|
||||
/// </summary>
|
||||
|
||||
public string FkOperationCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属流程code
|
||||
/// </summary>
|
||||
|
||||
public string FkFlowCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 参数名称,如:温度、压力、时间
|
||||
/// </summary>
|
||||
|
||||
public string ParameterCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显示名称(用于UI展示,可和name一样)
|
||||
/// </summary>
|
||||
|
||||
public string ParameterName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数描述,如:模具温度,用于热压工序
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据类型:FLOAT, INT, STRING, BOOL, AI(模拟量输入)等
|
||||
/// </summary>
|
||||
|
||||
public string DataType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位,如:℃、MPa、秒、mm
|
||||
/// </summary>
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准/目标值(如目标温度 200.0 ℃)
|
||||
/// </summary>
|
||||
|
||||
public decimal StandardValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最小允许值(用于报警/校验)
|
||||
/// </summary>
|
||||
|
||||
public decimal MinValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大允许值(用于报警/校验)
|
||||
/// </summary>
|
||||
|
||||
public decimal MaxValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为控制参数:1=是(如PID控制),0=否(仅采集)
|
||||
/// </summary>
|
||||
|
||||
public string IsControlled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为监控参数(是否采集/显示):1=是,0=否
|
||||
/// </summary>
|
||||
|
||||
public string IsMonitored { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 控制类型(如PID、ON/OFF、手动设定等,可选)
|
||||
/// </summary>
|
||||
|
||||
public string ControlType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认值(如未采集时使用)
|
||||
/// </summary>
|
||||
|
||||
public decimal DefaultValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否必填/必采:1=是,0=否
|
||||
/// </summary>
|
||||
public string IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数排序(用于UI展示顺序)
|
||||
/// </summary>
|
||||
public int? Sequence { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user