|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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>
|
|
|
/// Testphotograph
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public class TestphotographEntity : ICloneable, INotifyPropertyChanged
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public string RecId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 标识
|
|
|
/// </summary>
|
|
|
public string TpCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 标识
|
|
|
/// </summary>
|
|
|
public string TpName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 区域类型
|
|
|
/// </summary>
|
|
|
public string TpTool { get; set; }
|
|
|
/// <summary>
|
|
|
/// Tester
|
|
|
/// </summary>
|
|
|
public string Tester { get; set; }
|
|
|
/// <summary>
|
|
|
/// TestPhoto
|
|
|
/// </summary>
|
|
|
public string TestPhoto { get; set; }
|
|
|
public string GraphContent { get; set; }
|
|
|
/// <summary>
|
|
|
/// 平均温度
|
|
|
/// </summary>
|
|
|
private decimal? _TpAvg;
|
|
|
public decimal? TpAvg
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
return _TpAvg;
|
|
|
}
|
|
|
set
|
|
|
{
|
|
|
_TpAvg = value;
|
|
|
OnPropertyChanged("TpAvg");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private decimal? _TpMin;
|
|
|
public decimal? TpMin
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
return _TpMin;
|
|
|
}
|
|
|
set
|
|
|
{
|
|
|
_TpMin = value;
|
|
|
OnPropertyChanged("TpMin");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private decimal? _TpMax;
|
|
|
public decimal? TpMax
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
return _TpMax;
|
|
|
}
|
|
|
set
|
|
|
{
|
|
|
_TpMax = value;
|
|
|
OnPropertyChanged("TpMax");
|
|
|
}
|
|
|
}
|
|
|
/// <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()
|
|
|
{
|
|
|
TestphotographEntity obj = new TestphotographEntity();
|
|
|
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<TestphotographEntity> _children = new ObservableCollection<TestphotographEntity>();
|
|
|
public ObservableCollection<TestphotographEntity> 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 TestphotographEntityExtension : TestphotographEntity
|
|
|
{
|
|
|
public string CreateByDisplayer { get; set; }
|
|
|
public string ModifyByDisplayer { get; set; }
|
|
|
|
|
|
public string TpAvgDisplayer { get; set; }
|
|
|
|
|
|
public string TpMaxDisplayer { get; set; }
|
|
|
|
|
|
public string TpMinDisplayer { get; set; }
|
|
|
|
|
|
public GraphEntity GraphObject{ get; set; }
|
|
|
}
|
|
|
|
|
|
[Serializable]
|
|
|
public class TestphotographLogEntityExtension : TestphotographEntityExtension
|
|
|
{
|
|
|
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; }
|
|
|
}
|
|
|
} |