///////////////////////////////////////////////////////////////// // // (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 class UnitTag : ViewModelBase { /// Row /// private int _Row; public int Row { get { return _Row; } set { _Row = value; OnPropertyChanged("Row"); } } /// Column /// private int _Column; public int Column { get { return _Column; } set { _Column = value; OnPropertyChanged("Column"); } } /// FormulaId /// private string _FormulaId; public string FormulaId { get { return _FormulaId; } set { _FormulaId = value; OnPropertyChanged("FormulaId"); } } /// FormulaText /// private string _FormulaText; public string FormulaText { get { return _FormulaText; } set { _FormulaText = value; OnPropertyChanged("FormulaText"); } } } public partial class HardUnitFlowStepEntity { /// Unit1Text /// private string _Unit1Text; public string Unit1Text { get { return _Unit1Text; } set { _Unit1Text = value; OnPropertyChanged("Unit1Text"); } } /// /// Unit2Text /// private string _Unit2Text; public string Unit2Text { get { return _Unit2Text; } set { _Unit2Text = value; OnPropertyChanged("Unit2Text"); } } /// /// Unit3Text /// private string _Unit3Text; public string Unit3Text { get { return _Unit3Text; } set { _Unit3Text = value; OnPropertyChanged("Unit3Text"); } } /// /// Unit4Text /// private string _Unit4Text; public string Unit4Text { get { return _Unit4Text; } set { _Unit4Text = value; OnPropertyChanged("Unit4Text"); } } /// /// Unit5Text /// /// private string _Unit5Text; public string Unit5Text { get { return _Unit5Text; } set { _Unit5Text = value; OnPropertyChanged("Unit5Text"); } } /// /// Unit6Text /// private string _Unit6Text; public string Unit6Text { get { return _Unit6Text; } set { _Unit6Text = value; OnPropertyChanged("Unit6Text"); } } /// /// Unit7Text /// private string _Unit7Text; public string Unit7Text { get { return _Unit7Text; } set { _Unit7Text = value; OnPropertyChanged("Unit7Text"); } } /// /// Unit8Text /// private string _Unit8Text; public string Unit8Text { get { return _Unit8Text; } set { _Unit8Text = value; OnPropertyChanged("Unit8Text"); } } /// /// Unit9Text /// private string _Unit9Text; public string Unit9Text { get { return _Unit9Text; } set { _Unit9Text = value; OnPropertyChanged("Unit9Text"); } } /// Unit1Tag /// private UnitTag _Unit1Tag; public UnitTag Unit1Tag { get { return _Unit1Tag; } set { _Unit1Tag = value; OnPropertyChanged("Unit1Tag"); } } /// /// Unit2Tag /// private UnitTag _Unit2Tag; public UnitTag Unit2Tag { get { return _Unit2Tag; } set { _Unit2Tag = value; OnPropertyChanged("Unit2Tag"); } } /// /// Unit3Tag /// private UnitTag _Unit3Tag; public UnitTag Unit3Tag { get { return _Unit3Tag; } set { _Unit3Tag = value; OnPropertyChanged("Unit3Tag"); } } /// /// Unit4Tag /// private UnitTag _Unit4Tag; public UnitTag Unit4Tag { get { return _Unit4Tag; } set { _Unit4Tag = value; OnPropertyChanged("Unit4Tag"); } } /// /// Unit5Tag /// /// private UnitTag _Unit5Tag; public UnitTag Unit5Tag { get { return _Unit5Tag; } set { _Unit5Tag = value; OnPropertyChanged("Unit5Tag"); } } /// /// Unit6Tag /// private UnitTag _Unit6Tag; public UnitTag Unit6Tag { get { return _Unit6Tag; } set { _Unit6Tag = value; OnPropertyChanged("Unit6Tag"); } } /// /// Unit7Tag /// private UnitTag _Unit7Tag; public UnitTag Unit7Tag { get { return _Unit7Tag; } set { _Unit7Tag = value; OnPropertyChanged("Unit7Tag"); } } /// /// Unit8Tag /// private UnitTag _Unit8Tag; public UnitTag Unit8Tag { get { return _Unit8Tag; } set { _Unit8Tag = value; OnPropertyChanged("Unit8Tag"); } } /// /// Unit9Tag /// private UnitTag _Unit9Tag; public UnitTag Unit9Tag { get { return _Unit9Tag; } set { _Unit9Tag = value; OnPropertyChanged("Unit9Tag"); } } } /// /// HardUnitFlowStep /// [Serializable] public partial class HardUnitFlowStepEntity : ViewModelBase, ICloneable { /// /// /// private string _RecId; public string RecId { get { return _RecId; } set { _RecId = value; OnPropertyChanged("RecId"); } } /// /// 步骤顺序 /// private int _StepIndex; public int StepIndex { get { return _StepIndex; } set { _StepIndex = value; OnPropertyChanged("StepIndex"); } } /// /// Unit2 /// private string _Unit2; public string Unit2 { get { return _Unit2; } set { _Unit2 = value; OnPropertyChanged("Unit2"); } } /// /// Unit3 /// private string _Unit3; public string Unit3 { get { return _Unit3; } set { _Unit3 = value; OnPropertyChanged("Unit3"); } } /// /// Unit4 /// private string _Unit4; public string Unit4 { get { return _Unit4; } set { _Unit4 = value; OnPropertyChanged("Unit4"); } } /// /// Unit5 /// private string _Unit5; public string Unit5 { get { return _Unit5; } set { _Unit5 = value; OnPropertyChanged("Unit5"); } } /// /// Unit6 /// private string _Unit6; public string Unit6 { get { return _Unit6; } set { _Unit6 = value; OnPropertyChanged("Unit6"); } } /// /// Unit7 /// private string _Unit7; public string Unit7 { get { return _Unit7; } set { _Unit7 = value; OnPropertyChanged("Unit7"); } } /// /// Unit8 /// private string _Unit8; public string Unit8 { get { return _Unit8; } set { _Unit8 = value; OnPropertyChanged("Unit8"); } } /// /// Unit9 /// private string _Unit9; public string Unit9 { get { return _Unit9; } set { _Unit9 = value; OnPropertyChanged("Unit9"); } } /// /// 步骤编号 /// private string _StepCode; public string StepCode { get { return _StepCode; } set { _StepCode = value; OnPropertyChanged("StepCode"); } } /// /// 步骤名称 /// private string _StepName; public string StepName { get { return _StepName; } set { _StepName = value; OnPropertyChanged("StepName"); } } /// /// 配方 /// private string _FlowId; public string FlowId { get { return _FlowId; } set { _FlowId = value; OnPropertyChanged("FlowId"); } } /// /// Unit1 /// private string _Unit1; public string Unit1 { get { return _Unit1; } set { _Unit1 = value; OnPropertyChanged("Unit1"); } } /// /// /// private int? _OrderBy; public int? OrderBy { get { return _OrderBy; } set { _OrderBy = value; OnPropertyChanged("OrderBy"); } } /// /// /// private string _CreateBy; public string CreateBy { get { return _CreateBy; } set { _CreateBy = value; OnPropertyChanged("CreateBy"); } } /// /// /// private DateTime? _CreateTime; public DateTime? CreateTime { get { return _CreateTime; } set { _CreateTime = value; OnPropertyChanged("CreateTime"); } } /// /// /// private string _ModifyBy; public string ModifyBy { get { return _ModifyBy; } set { _ModifyBy = value; OnPropertyChanged("ModifyBy"); } } /// /// /// private DateTime? _ModifyTime; public DateTime? ModifyTime { get { return _ModifyTime; } set { _ModifyTime = value; OnPropertyChanged("ModifyTime"); } } /// /// /// private int? _IsActive; public int? IsActive { get { return _IsActive; } set { _IsActive = value; OnPropertyChanged("IsActive"); } } public object Clone() { HardUnitFlowStepEntity obj = new HardUnitFlowStepEntity(); 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; } } }