/////////////////////////////////////////////////////////////////
//
// (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开发,版权所有,违者必究,320325198102218110,23810511@qq.com
//
/////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using GummingCommon;
namespace GummingEntity
{
public partial class SysUserEntity
{
private bool _IsChecked;
public bool IsChecked
{
get { return _IsChecked; }
set
{
_IsChecked = value;
OnPropertyChanged("IsChecked");
}
}
private string _RoleName;
public string RoleName
{
get { return _RoleName; }
set
{
_RoleName = value;
OnPropertyChanged("RoleName");
}
}
private string _RoleDesc;
public string RoleDesc
{
get { return _RoleDesc; }
set
{
_RoleDesc = value;
OnPropertyChanged("RoleDesc");
}
}
}
///
/// SysUser
///
[Serializable]
public partial class SysUserEntity : ViewModelBase, ICloneable
{
///
///
///
private string _RecId;
public string RecId
{
get { return _RecId; }
set
{
_RecId = value;
OnPropertyChanged("RecId");
}
}
///
/// 用户类型
///
private int? _UserType;
public int? UserType
{
get { return _UserType; }
set
{
_UserType = value;
OnPropertyChanged("UserType");
}
}
///
/// 密码
///
private string _Password;
public string Password
{
get { return _Password; }
set
{
_Password = value;
OnPropertyChanged("Password");
}
}
///
/// ClientId
///
private string _ClientId;
public string ClientId
{
get { return _ClientId; }
set
{
_ClientId = value;
OnPropertyChanged("ClientId");
}
}
///
/// 默认角色
///
private string _RoleId;
public string RoleId
{
get { return _RoleId; }
set
{
_RoleId = value;
OnPropertyChanged("RoleId");
}
}
///
/// 部门
///
private string _DeptId;
public string DeptId
{
get { return _DeptId; }
set
{
_DeptId = value;
OnPropertyChanged("DeptId");
}
}
///
/// 手机
///
private string _Mobile;
public string Mobile
{
get { return _Mobile; }
set
{
_Mobile = value;
OnPropertyChanged("Mobile");
}
}
///
/// 电话
///
private string _Tel;
public string Tel
{
get { return _Tel; }
set
{
_Tel = value;
OnPropertyChanged("Tel");
}
}
///
/// 分机
///
private string _Ext;
public string Ext
{
get { return _Ext; }
set
{
_Ext = value;
OnPropertyChanged("Ext");
}
}
///
/// 备注
///
private string _UserDesc;
public string UserDesc
{
get { return _UserDesc; }
set
{
_UserDesc = value;
OnPropertyChanged("UserDesc");
}
}
///
/// 用户名
///
private string _UserCode;
public string UserCode
{
get { return _UserCode; }
set
{
_UserCode = value;
OnPropertyChanged("UserCode");
}
}
///
/// 姓名
///
private string _UserName;
public string UserName
{
get { return _UserName; }
set
{
_UserName = value;
OnPropertyChanged("UserName");
}
}
///
///
///
private int? _OrderBy;
public int? OrderBy
{
get { return _OrderBy; }
set
{
_OrderBy = value;
OnPropertyChanged("OrderBy");
}
}
///
///
///
private string _CreateBy;
public string CreateBy
{
get { return _CreateBy; }
set
{
_CreateBy = value;
OnPropertyChanged("CreateBy");
}
}
///
///
///
private DateTime? _CreateTime;
public DateTime? CreateTime
{
get { return _CreateTime; }
set
{
_CreateTime = value;
OnPropertyChanged("CreateTime");
}
}
///
///
///
private string _ModifyBy;
public string ModifyBy
{
get { return _ModifyBy; }
set
{
_ModifyBy = value;
OnPropertyChanged("ModifyBy");
}
}
///
///
///
private DateTime? _ModifyTime;
public DateTime? ModifyTime
{
get { return _ModifyTime; }
set
{
_ModifyTime = value;
OnPropertyChanged("ModifyTime");
}
}
///
///
///
private int? _IsActive;
public int? IsActive
{
get { return _IsActive; }
set
{
_IsActive = value;
OnPropertyChanged("IsActive");
}
}
public object Clone()
{
SysUserEntity obj = new SysUserEntity();
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;
}
}
}