|
@@ -24,6 +24,7 @@ using Mapster;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics;
|
|
using SciChart.Charting.Common.Extensions;
|
|
using SciChart.Charting.Common.Extensions;
|
|
using DocumentFormat.OpenXml.EMMA;
|
|
using DocumentFormat.OpenXml.EMMA;
|
|
|
|
+using MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory;
|
|
|
|
|
|
namespace MECF.Framework.UI.Client.CenterViews.Editors.Recipe
|
|
namespace MECF.Framework.UI.Client.CenterViews.Editors.Recipe
|
|
{
|
|
{
|
|
@@ -320,19 +321,21 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Recipe
|
|
public void ShallowCopyStep(ref Step destinationStep, Step originalStep)
|
|
public void ShallowCopyStep(ref Step destinationStep, Step originalStep)
|
|
{
|
|
{
|
|
int stepNo = destinationStep.StepNo;
|
|
int stepNo = destinationStep.StepNo;
|
|
- Type type = originalStep.GetType();
|
|
|
|
- PropertyInfo[] properties = type.GetProperties();
|
|
|
|
- // 遍历属性并赋值
|
|
|
|
- foreach (PropertyInfo property in properties)
|
|
|
|
- {
|
|
|
|
- // 判断属性是否可写
|
|
|
|
- if (property.CanWrite)
|
|
|
|
- {
|
|
|
|
- // 设置属性的值
|
|
|
|
- property.SetValue(destinationStep, property.GetValue(originalStep));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ //Type type = originalStep.GetType();
|
|
|
|
+ //PropertyInfo[] properties = type.GetProperties();
|
|
|
|
+ //// 遍历属性并赋值
|
|
|
|
+ //foreach (PropertyInfo property in properties)
|
|
|
|
+ //{
|
|
|
|
+ // // 判断属性是否可写
|
|
|
|
+ // if (property.CanWrite)
|
|
|
|
+ // {
|
|
|
|
+ // // 设置属性的值
|
|
|
|
+ // property.SetValue(destinationStep, property.GetValue(originalStep));
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
+ originalStep.Adapt(destinationStep);
|
|
destinationStep.StepNo = stepNo;
|
|
destinationStep.StepNo = stepNo;
|
|
|
|
+ SetDelegateEvent(destinationStep);
|
|
}
|
|
}
|
|
public void CloneStep(ref Step destinationStep, Step originalStep)
|
|
public void CloneStep(ref Step destinationStep, Step originalStep)
|
|
{
|
|
{
|