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.

268 lines
6.6 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 System.Windows;
using GummingCommon;
namespace GummingEntity
{
public partial class SysSettingEntity
{
public SysSettingEntity Copy { get; set; }
private bool _Status;
public bool Status
{
get { return _Status; }
set
{
_Status = value;
OnPropertyChanged("Status");
}
}
private Visibility _StatusVisible;
public Visibility StatusVisible
{
get { return _StatusVisible; }
set
{
_StatusVisible = value;
OnPropertyChanged("StatusVisible");
}
}
private Visibility _InputVisible;
public Visibility InputVisible
{
get { return _InputVisible; }
set
{
_InputVisible = value;
OnPropertyChanged("InputVisible");
}
}
}
/// <summary>
/// SysSetting
/// </summary>
[Serializable]
public partial class SysSettingEntity : ViewModelBase, ICloneable
{
/// <summary>
///
/// </summary>
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
/// <summary>
/// 分组
/// </summary>
private string _SettingGroup;
public string SettingGroup
{
get { return _SettingGroup; }
set
{
_SettingGroup = value;
OnPropertyChanged("SettingGroup");
}
}
/// <summary>
/// 关联分组
/// </summary>
private string _RefGroup;
public string RefGroup
{
get { return _RefGroup; }
set
{
_RefGroup = value;
OnPropertyChanged("RefGroup");
}
}
/// <summary>
/// 关联Id
/// </summary>
private string _RefId;
public string RefId
{
get { return _RefId; }
set
{
_RefId = value;
OnPropertyChanged("RefId");
}
}
/// <summary>
/// 设定值
/// </summary>
private decimal _SettingValue;
public decimal SettingValue
{
get { return _SettingValue; }
set
{
_SettingValue = value;
OnPropertyChanged("SettingValue");
}
}
/// <summary>
/// 是否开启
/// </summary>
private int? _SettingStatus;
public int? SettingStatus
{
get { return _SettingStatus; }
set
{
_SettingStatus = value;
OnPropertyChanged("SettingStatus");
}
}
/// <summary>
/// 编码
/// </summary>
private string _SettingCode;
public string SettingCode
{
get { return _SettingCode; }
set
{
_SettingCode = value;
OnPropertyChanged("SettingCode");
}
}
/// <summary>
/// 名称
/// </summary>
private string _SettingName;
public string SettingName
{
get { return _SettingName; }
set
{
_SettingName = value;
OnPropertyChanged("SettingName");
}
}
/// <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()
{
SysSettingEntity obj = new SysSettingEntity();
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;
}
}
}