using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using DataEntity;
|
namespace XImagingXhandler.XDAL
|
{
|
/// <summary>
|
/// 日志记录信息实体
|
/// </summary>
|
public class LogInformation:IEntity
|
{
|
/// <summary>
|
/// 日志编号
|
/// </summary>
|
public string log_id { get; set; }
|
|
private string _log_name = "";
|
/// <summary>
|
/// 日志名称
|
/// </summary>
|
public string log_name
|
{
|
get { return _log_name; }
|
set
|
{
|
if (log_name == value) return; // 避免重复设置相同的值
|
_log_name = value;
|
OnPropertyChanged(nameof(log_name));
|
}
|
}
|
/// <summary>
|
/// 更新时间
|
/// </summary>
|
public DateTime _time_stamp { get; set; }
|
/// <summary>
|
/// 更新时间
|
/// </summary>
|
public DateTime time_stamp
|
{
|
get { return _time_stamp; }
|
set
|
{
|
if (time_stamp == value) return; // 避免重复设置相同的值
|
_time_stamp = value;
|
OnPropertyChanged(nameof(time_stamp));
|
}
|
}
|
|
/// <summary>
|
/// 日志类型
|
/// </summary>
|
private string _log_type { get; set; }
|
/// <summary>
|
/// 日志类型
|
/// </summary>
|
public string log_type
|
{
|
get { return _log_type; }
|
set
|
{
|
if (log_type == value) return; // 避免重复设置相同的值
|
_log_type = value;
|
OnPropertyChanged(nameof(log_type));
|
}
|
}
|
/// <summary>
|
/// 日志内容描述
|
/// </summary>
|
private string _log_content { get; set; }
|
/// <summary>
|
/// 日志内容描述
|
/// </summary>
|
public string log_content
|
{
|
get { return _log_content; }
|
set
|
{
|
if (log_content == value) return; // 避免重复设置相同的值
|
_log_content = value;
|
OnPropertyChanged(nameof(log_content));
|
}
|
}
|
/// <summary>
|
/// 日志存储的路径文件
|
/// </summary>
|
private string _log_filepath { get; set; }
|
/// <summary>
|
/// 日志存储的路径文件
|
/// </summary>
|
public string log_filepath
|
{
|
get { return _log_filepath; }
|
set
|
{
|
if (log_filepath == value) return; // 避免重复设置相同的值
|
_log_filepath = value;
|
OnPropertyChanged(nameof(log_filepath));
|
}
|
}
|
|
}
|
}
|