You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4C/GummingEntity/Model/HardFormulaDispenseProperty.cs

285 lines
7.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/////////////////////////////////////////////////////////////////
//
// (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开发版权所有违者必究32032519810221811023810511@qq.com
//
/////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using GummingCommon;
namespace GummingEntity
{
public enum ModeType
{
None = 0,
Interval = 1,
}
public partial class HardFormulaDispenseEntity
{
private HardFormulaDispenseEntity _Copy;
public HardFormulaDispenseEntity Copy
{
get { return _Copy; }
set
{
_Copy = value;
OnPropertyChanged("Copy");
}
}
private ComboEntity _SelecedMode;
public ComboEntity SelecedMode
{
get { return _SelecedMode; }
set
{
_SelecedMode = value;
OnPropertyChanged("SelecedMode");
}
}
private List<ComboEntity> _Modes;
public List<ComboEntity> Modes
{
get { return _Modes; }
set
{
_Modes = value;
OnPropertyChanged("Modes");
}
}
public int CurCount { get; set; }
public DateTime StartTime { get; set; }
}
/// <summary>
/// HardFormulaDispense
/// </summary>
[Serializable]
public partial class HardFormulaDispenseEntity : ViewModelBase, ICloneable
{
/// <summary>
///
/// </summary>
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
/// <summary>
/// Mode
/// </summary>
private int? _Mode;
public int? Mode
{
get { return _Mode; }
set
{
_Mode = value;
OnPropertyChanged("Mode");
}
}
/// <summary>
/// IntervalTime
/// </summary>
private decimal _IntervalTime;
public decimal IntervalTime
{
get { return _IntervalTime; }
set
{
_IntervalTime = value;
OnPropertyChanged("IntervalTime");
}
}
/// <summary>
/// DispenseCount
/// </summary>
private int _DispenseCount;
public int DispenseCount
{
get { return _DispenseCount; }
set
{
_DispenseCount = value;
OnPropertyChanged("DispenseCount");
}
}
/// <summary>
/// DispenseInterval
/// </summary>
private decimal _DispenseInterval;
public decimal DispenseInterval
{
get { return _DispenseInterval; }
set
{
_DispenseInterval = value;
OnPropertyChanged("DispenseInterval");
}
}
/// <summary>
/// DispenseTime
/// </summary>
private decimal _DispenseTime;
public decimal DispenseTime
{
get { return _DispenseTime; }
set
{
_DispenseTime = value;
OnPropertyChanged("DispenseTime");
}
}
/// <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 _StationCode;
public string StationCode
{
get { return _StationCode; }
set
{
_StationCode = value;
OnPropertyChanged("StationCode");
}
}
/// <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()
{
HardFormulaDispenseEntity obj = new HardFormulaDispenseEntity();
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;
}
}
}