|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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 HardFormulaHPEntity
|
|
|
{
|
|
|
public bool IsBlow { get; set; }
|
|
|
public bool IsCover { get; set; }
|
|
|
public bool IsEmpty { get; set; }
|
|
|
public string StationCode { get; set; }
|
|
|
public int ProgressTime { get; set; }
|
|
|
|
|
|
public ExecuteStatusEnum Status { get; set; }
|
|
|
|
|
|
private HardFormulaHPEntity _Copy;
|
|
|
public HardFormulaHPEntity Copy
|
|
|
{
|
|
|
get { return _Copy; }
|
|
|
set
|
|
|
{
|
|
|
_Copy = value;
|
|
|
OnPropertyChanged("Copy");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// HardFormulaHP
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class HardFormulaHPEntity : ViewModelBase, ICloneable
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _RecId;
|
|
|
public string RecId
|
|
|
{
|
|
|
get { return _RecId; }
|
|
|
set
|
|
|
{
|
|
|
_RecId = value;
|
|
|
OnPropertyChanged("RecId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 步骤顺序
|
|
|
/// </summary>
|
|
|
private int _StepIndex;
|
|
|
public int StepIndex
|
|
|
{
|
|
|
get { return _StepIndex; }
|
|
|
set
|
|
|
{
|
|
|
_StepIndex = value;
|
|
|
OnPropertyChanged("StepIndex");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 烘烤时间
|
|
|
/// </summary>
|
|
|
private decimal _StepTime;
|
|
|
public decimal StepTime
|
|
|
{
|
|
|
get { return _StepTime; }
|
|
|
set
|
|
|
{
|
|
|
_StepTime = value;
|
|
|
OnPropertyChanged("StepTime");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 烘烤间隙
|
|
|
/// </summary>
|
|
|
private decimal _HPSpace;
|
|
|
public decimal HPSpace
|
|
|
{
|
|
|
get { return _HPSpace; }
|
|
|
set
|
|
|
{
|
|
|
_HPSpace = value;
|
|
|
OnPropertyChanged("HPSpace");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 顶针速度
|
|
|
/// </summary>
|
|
|
private decimal _HPSpeed;
|
|
|
public decimal HPSpeed
|
|
|
{
|
|
|
get { return _HPSpeed; }
|
|
|
set
|
|
|
{
|
|
|
_HPSpeed = value;
|
|
|
OnPropertyChanged("HPSpeed");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 吹氮气
|
|
|
/// </summary>
|
|
|
private bool _Blow;
|
|
|
public bool Blow
|
|
|
{
|
|
|
get { return _Blow; }
|
|
|
set
|
|
|
{
|
|
|
_Blow = value;
|
|
|
OnPropertyChanged("Blow");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 遮挡(OFF/ON)
|
|
|
/// </summary>
|
|
|
private bool _Cover;
|
|
|
public bool Cover
|
|
|
{
|
|
|
get { return _Cover; }
|
|
|
set
|
|
|
{
|
|
|
_Cover = value;
|
|
|
OnPropertyChanged("Cover");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 吸真空(OFF/ON)
|
|
|
/// </summary>
|
|
|
private bool _Empty;
|
|
|
public bool Empty
|
|
|
{
|
|
|
get { return _Empty; }
|
|
|
set
|
|
|
{
|
|
|
_Empty = value;
|
|
|
OnPropertyChanged("Empty");
|
|
|
}
|
|
|
}
|
|
|
/// <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 _FormulaId;
|
|
|
public string FormulaId
|
|
|
{
|
|
|
get { return _FormulaId; }
|
|
|
set
|
|
|
{
|
|
|
_FormulaId = value;
|
|
|
OnPropertyChanged("FormulaId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int? _OrderBy;
|
|
|
public int? OrderBy
|
|
|
{
|
|
|
get { return _OrderBy; }
|
|
|
set
|
|
|
{
|
|
|
_OrderBy = value;
|
|
|
OnPropertyChanged("OrderBy");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 烘烤温度
|
|
|
/// </summary>
|
|
|
private decimal _Temperature;
|
|
|
public decimal Temperature
|
|
|
{
|
|
|
get { return _Temperature; }
|
|
|
set
|
|
|
{
|
|
|
_Temperature = value;
|
|
|
OnPropertyChanged("Temperature");
|
|
|
}
|
|
|
}
|
|
|
/// <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()
|
|
|
{
|
|
|
HardFormulaHPEntity obj = new HardFormulaHPEntity();
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
} |