|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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
|
|
|
{
|
|
|
[Serializable]
|
|
|
public partial class ArmPrsEntity : ViewModelBase
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 胶臂PR
|
|
|
/// </summary>
|
|
|
private string _ArmPr;
|
|
|
public string ArmPr
|
|
|
{
|
|
|
get { return _ArmPr; }
|
|
|
set
|
|
|
{
|
|
|
_ArmPr = value;
|
|
|
OnPropertyChanged("ArmPr");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int _Tag;
|
|
|
public int Tag
|
|
|
{
|
|
|
get { return _Tag; }
|
|
|
set
|
|
|
{
|
|
|
_Tag = value;
|
|
|
OnPropertyChanged("Tag");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[Serializable]
|
|
|
public partial class ArmEbrEntity : ViewModelBase
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 去边臂Ebr
|
|
|
/// </summary>
|
|
|
private string _ArmEbr;
|
|
|
public string ArmEbr
|
|
|
{
|
|
|
get { return _ArmEbr; }
|
|
|
set
|
|
|
{
|
|
|
_ArmEbr = value;
|
|
|
OnPropertyChanged("ArmEbr");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private int _Tag;
|
|
|
public int Tag
|
|
|
{
|
|
|
get { return _Tag; }
|
|
|
set
|
|
|
{
|
|
|
_Tag = value;
|
|
|
OnPropertyChanged("Tag");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public partial class HardFormulaCOTEntity
|
|
|
{
|
|
|
public bool IsPr { get; set; }//手臂
|
|
|
public bool IsPr1 { get; set; }
|
|
|
public bool IsPr2 { get; set; }
|
|
|
public bool IsStillicide { get; set; }//滴液
|
|
|
public bool IsEbr { get; set; }//手臂
|
|
|
public bool IsEbr1 { get; set; }
|
|
|
public bool IsEbr2 { get; set; }
|
|
|
public bool IsBsr { get; set; }
|
|
|
public bool IsArmUD { get; set; }
|
|
|
public int ProgressTime { get; set; }
|
|
|
|
|
|
public string StationCode { get; set; }
|
|
|
|
|
|
public ExecuteStatusEnum Status { get; set; }
|
|
|
|
|
|
private HardFormulaCOTEntity _Copy;
|
|
|
public HardFormulaCOTEntity Copy
|
|
|
{
|
|
|
get { return _Copy; }
|
|
|
set
|
|
|
{
|
|
|
_Copy = value;
|
|
|
OnPropertyChanged("Copy");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// HardFormulaCOT
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class HardFormulaCOTEntity : 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 _MainAxisSpeed;
|
|
|
public decimal MainAxisSpeed
|
|
|
{
|
|
|
get { return _MainAxisSpeed; }
|
|
|
set
|
|
|
{
|
|
|
_MainAxisSpeed = value;
|
|
|
OnPropertyChanged("MainAxisSpeed");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 加速度
|
|
|
/// </summary>
|
|
|
private decimal _MainAxisAcc;
|
|
|
public decimal MainAxisAcc
|
|
|
{
|
|
|
get { return _MainAxisAcc; }
|
|
|
set
|
|
|
{
|
|
|
_MainAxisAcc = value;
|
|
|
OnPropertyChanged("MainAxisAcc");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 胶臂PR
|
|
|
/// </summary>
|
|
|
private int? _ArmPr;
|
|
|
public int? ArmPr
|
|
|
{
|
|
|
get { return _ArmPr; }
|
|
|
set
|
|
|
{
|
|
|
_ArmPr = value;
|
|
|
OnPropertyChanged("ArmPr");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 去边臂EBR
|
|
|
/// </summary>
|
|
|
private int? _ArmEbr;
|
|
|
public int? ArmEbr
|
|
|
{
|
|
|
get { return _ArmEbr; }
|
|
|
set
|
|
|
{
|
|
|
_ArmEbr = value;
|
|
|
OnPropertyChanged("ArmEbr");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 手臂位置1
|
|
|
/// </summary>
|
|
|
private decimal _ArmPosition1;
|
|
|
public decimal ArmPosition1
|
|
|
{
|
|
|
get { return _ArmPosition1; }
|
|
|
set
|
|
|
{
|
|
|
_ArmPosition1 = value;
|
|
|
OnPropertyChanged("ArmPosition1");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 手臂位置2
|
|
|
/// </summary>
|
|
|
private decimal _ArmPosition2;
|
|
|
public decimal ArmPosition2
|
|
|
{
|
|
|
get { return _ArmPosition2; }
|
|
|
set
|
|
|
{
|
|
|
_ArmPosition2 = value;
|
|
|
OnPropertyChanged("ArmPosition2");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 手臂速度
|
|
|
/// </summary>
|
|
|
private decimal _ArmSpeed;
|
|
|
public decimal ArmSpeed
|
|
|
{
|
|
|
get { return _ArmSpeed; }
|
|
|
set
|
|
|
{
|
|
|
_ArmSpeed = value;
|
|
|
OnPropertyChanged("ArmSpeed");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 手臂扫描次数
|
|
|
/// </summary>
|
|
|
private int? _ArmScanTimer;
|
|
|
public int? ArmScanTimer
|
|
|
{
|
|
|
get { return _ArmScanTimer; }
|
|
|
set
|
|
|
{
|
|
|
_ArmScanTimer = value;
|
|
|
OnPropertyChanged("ArmScanTimer");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 滴液
|
|
|
/// </summary>
|
|
|
private bool _Stillicide;
|
|
|
public bool Stillicide
|
|
|
{
|
|
|
get { return _Stillicide; }
|
|
|
set
|
|
|
{
|
|
|
_Stillicide = value;
|
|
|
OnPropertyChanged("Stillicide");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 背清BSR
|
|
|
/// </summary>
|
|
|
private bool _Bsr;
|
|
|
public bool Bsr
|
|
|
{
|
|
|
get { return _Bsr; }
|
|
|
set
|
|
|
{
|
|
|
_Bsr = value;
|
|
|
OnPropertyChanged("Bsr");
|
|
|
}
|
|
|
}
|
|
|
/// <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");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private ArmPrsEntity _SelecedArmPr;
|
|
|
public ArmPrsEntity SelecedArmPr
|
|
|
{
|
|
|
get { return _SelecedArmPr; }
|
|
|
set
|
|
|
{
|
|
|
_SelecedArmPr = value;
|
|
|
OnPropertyChanged("SelecedArmPr");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private List<ArmPrsEntity> _ArmPrs;
|
|
|
public List<ArmPrsEntity> ArmPrs
|
|
|
{
|
|
|
get { return _ArmPrs; }
|
|
|
set
|
|
|
{
|
|
|
_ArmPrs = value;
|
|
|
OnPropertyChanged("ArmPrs");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
private ArmEbrEntity _SelecedArmEbr;
|
|
|
public ArmEbrEntity SelecedArmEbr
|
|
|
{
|
|
|
get { return _SelecedArmEbr; }
|
|
|
set
|
|
|
{
|
|
|
_SelecedArmEbr = value;
|
|
|
OnPropertyChanged("SelecedArmEbr");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private List<ArmEbrEntity> _ArmEbrs;
|
|
|
public List<ArmEbrEntity> ArmEbrs
|
|
|
{
|
|
|
get { return _ArmEbrs; }
|
|
|
set
|
|
|
{
|
|
|
_ArmEbrs = value;
|
|
|
OnPropertyChanged("ArmEbrs");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 去边臂IO
|
|
|
/// </summary>
|
|
|
private bool _ArmUD;
|
|
|
public bool ArmUD
|
|
|
{
|
|
|
get { return _ArmUD; }
|
|
|
set
|
|
|
{
|
|
|
_ArmUD = value;
|
|
|
OnPropertyChanged("ArmUD");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <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()
|
|
|
{
|
|
|
HardFormulaCOTEntity obj = new HardFormulaCOTEntity();
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
} |