|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (C) Copyright 2013, Kenneth, Inc.
|
|
|
// All rights reserved. Confidential. Except as pursuant
|
|
|
// to a written agreement with Kenneth, this software may
|
|
|
// not be used or distributed. This software may be covered
|
|
|
// by one or more patents.
|
|
|
//
|
|
|
// 本软件为Kenneth开发,版权所有,违者必究,320325198102218110,23810511@qq.com
|
|
|
//
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Reflection;
|
|
|
using GummingCommon;
|
|
|
|
|
|
namespace GummingEntity
|
|
|
{
|
|
|
public partial class HardSlotFlowStepEntity
|
|
|
{
|
|
|
private List<HardUnitFlowEntity> _UnitFlows;
|
|
|
public List<HardUnitFlowEntity> UnitFlows
|
|
|
{
|
|
|
get { return _UnitFlows; }
|
|
|
set
|
|
|
{
|
|
|
_UnitFlows = value;
|
|
|
OnPropertyChanged("UnitFlows");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private HardUnitFlowEntity _SelecedUnitFlow;
|
|
|
public HardUnitFlowEntity SelecedUnitFlow
|
|
|
{
|
|
|
get { return _SelecedUnitFlow; }
|
|
|
set
|
|
|
{
|
|
|
_SelecedUnitFlow = value;
|
|
|
OnPropertyChanged("SelecedUnitFlow");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// HardSlotFlowStep
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class HardSlotFlowStepEntity : ViewModelBase, ICloneable
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _RecId;
|
|
|
public string RecId
|
|
|
{
|
|
|
get { return _RecId; }
|
|
|
set
|
|
|
{
|
|
|
_RecId = value;
|
|
|
OnPropertyChanged("RecId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// SlotIndex
|
|
|
/// </summary>
|
|
|
private int _SlotIndex;
|
|
|
public int SlotIndex
|
|
|
{
|
|
|
get { return _SlotIndex; }
|
|
|
set
|
|
|
{
|
|
|
_SlotIndex = value;
|
|
|
OnPropertyChanged("SlotIndex");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 优先级
|
|
|
/// </summary>
|
|
|
private int _Priority;
|
|
|
public int Priority
|
|
|
{
|
|
|
get { return _Priority; }
|
|
|
set
|
|
|
{
|
|
|
_Priority = value;
|
|
|
OnPropertyChanged("Priority");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 步骤编号
|
|
|
/// </summary>
|
|
|
private string _StepCode;
|
|
|
public string StepCode
|
|
|
{
|
|
|
get { return _StepCode; }
|
|
|
set
|
|
|
{
|
|
|
_StepCode = value;
|
|
|
OnPropertyChanged("StepCode");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 步骤名称
|
|
|
/// </summary>
|
|
|
private string _StepName;
|
|
|
public string StepName
|
|
|
{
|
|
|
get { return _StepName; }
|
|
|
set
|
|
|
{
|
|
|
_StepName = value;
|
|
|
OnPropertyChanged("StepName");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 批配方
|
|
|
/// </summary>
|
|
|
private string _FlowId;
|
|
|
public string FlowId
|
|
|
{
|
|
|
get { return _FlowId; }
|
|
|
set
|
|
|
{
|
|
|
_FlowId = value;
|
|
|
OnPropertyChanged("FlowId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// UnitId
|
|
|
/// </summary>
|
|
|
private string _UnitFlowId;
|
|
|
public string UnitFlowId
|
|
|
{
|
|
|
get { return _UnitFlowId; }
|
|
|
set
|
|
|
{
|
|
|
_UnitFlowId = value;
|
|
|
OnPropertyChanged("UnitFlowId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int? _OrderBy;
|
|
|
public int? OrderBy
|
|
|
{
|
|
|
get { return _OrderBy; }
|
|
|
set
|
|
|
{
|
|
|
_OrderBy = value;
|
|
|
OnPropertyChanged("OrderBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _CreateBy;
|
|
|
public string CreateBy
|
|
|
{
|
|
|
get { return _CreateBy; }
|
|
|
set
|
|
|
{
|
|
|
_CreateBy = value;
|
|
|
OnPropertyChanged("CreateBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private DateTime? _CreateTime;
|
|
|
public DateTime? CreateTime
|
|
|
{
|
|
|
get { return _CreateTime; }
|
|
|
set
|
|
|
{
|
|
|
_CreateTime = value;
|
|
|
OnPropertyChanged("CreateTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _ModifyBy;
|
|
|
public string ModifyBy
|
|
|
{
|
|
|
get { return _ModifyBy; }
|
|
|
set
|
|
|
{
|
|
|
_ModifyBy = value;
|
|
|
OnPropertyChanged("ModifyBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private DateTime? _ModifyTime;
|
|
|
public DateTime? ModifyTime
|
|
|
{
|
|
|
get { return _ModifyTime; }
|
|
|
set
|
|
|
{
|
|
|
_ModifyTime = value;
|
|
|
OnPropertyChanged("ModifyTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int? _IsActive;
|
|
|
public int? IsActive
|
|
|
{
|
|
|
get { return _IsActive; }
|
|
|
set
|
|
|
{
|
|
|
_IsActive = value;
|
|
|
OnPropertyChanged("IsActive");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public object Clone()
|
|
|
{
|
|
|
HardSlotFlowStepEntity obj = new HardSlotFlowStepEntity();
|
|
|
Type t = this.GetType();
|
|
|
PropertyInfo[] properties = t.GetProperties();
|
|
|
foreach (PropertyInfo pi in properties)
|
|
|
{
|
|
|
if (pi.CanWrite)
|
|
|
{
|
|
|
object value = pi.GetValue(this, null);
|
|
|
if (obj.GetType().GetProperty(pi.Name) != null)
|
|
|
{
|
|
|
pi.SetValue(obj, value, null);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return obj;
|
|
|
}
|
|
|
}
|
|
|
} |