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.

161 lines
4.4 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.
//
// 本软件为 ** 公司开发版权所有违者必究23810511@qq.com
//
/////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using System.ComponentModel;
using System.Collections.ObjectModel;
namespace GummingCommon
{
/// <summary>
/// Testpartvalue
/// </summary>
[Serializable]
public class TestpartvalueEntity: ICloneable, INotifyPropertyChanged
{
/// <summary>
///
/// </summary>
public string RecId { get; set; }
/// <summary>
/// PartCode
/// </summary>
public string ValueCode { get; set; }
/// <summary>
/// PartName
/// </summary>
public string ValueName { get; set; }
/// <summary>
/// ReferenceId
/// </summary>
public string ReferenceId { get; set; }
/// <summary>
/// ReferenceType
/// </summary>
public string ReferenceType { get; set; }
/// <summary>
/// TestPart
/// </summary>
public string TestPart { get; set; }
/// <summary>
/// TestPartDisplayer
/// </summary>
public string TestPartDisplayer { get; set; }
/// <summary>
/// PartAvg
/// </summary>
public decimal? PartAvg { get; set; }
/// <summary>
/// PartMax
/// </summary>
public decimal? PartMax { get; set; }
/// <summary>
/// PartMin
/// </summary>
public decimal? PartMin { get; set; }
/// <summary>
/// AnalysisResult
/// </summary>
public string AnalysisResult { get; set; }
/// <summary>
///
/// </summary>
public string CreateBy { get; set; }
/// <summary>
///
/// </summary>
public DateTime? CreateTime { get; set; }
/// <summary>
///
/// </summary>
public string ModifyBy { get; set; }
/// <summary>
///
/// </summary>
public DateTime? ModifyTime { get; set; }
/// <summary>
///
/// </summary>
public int? IsActive { get; set; }
public object Clone()
{
TestpartvalueEntity obj = new TestpartvalueEntity();
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;
}
private bool _CheckStatus = false;
public bool CheckStatus
{
get { return _CheckStatus; }
set
{
_CheckStatus = value;
OnPropertyChanged("CheckStatus");
}
}
private ObservableCollection<TestpartvalueEntity> _children = new ObservableCollection<TestpartvalueEntity>();
public ObservableCollection<TestpartvalueEntity> Children
{
get { return _children; }
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged = delegate { };
private void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = this.PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
#endregion
}
[Serializable]
public partial class TestpartvalueEntityExtension : TestpartvalueEntity
{
public string CreateByDisplayer { get; set; }
public string ModifyByDisplayer { get; set; }
public decimal PartOffset { get; set; }
}
[Serializable]
public class TestpartvalueLogEntityExtension : TestpartvalueEntityExtension
{
public string LogId { get; set; }
public DateTime? OperTime { get; set; }
public string OperUser { get; set; }
public string OperType { get; set; }
public string OperInfo { get; set; }
public string OperUserDisplayer { get; set; }
}
}