|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (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");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// SysUser
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class SysUserEntity : ViewModelBase, ICloneable
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
private string _RecId;
|
|
|
public string RecId
|
|
|
{
|
|
|
get { return _RecId; }
|
|
|
set
|
|
|
{
|
|
|
_RecId = value;
|
|
|
OnPropertyChanged("RecId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 用户类型
|
|
|
/// </summary>
|
|
|
private int? _UserType;
|
|
|
public int? UserType
|
|
|
{
|
|
|
get { return _UserType; }
|
|
|
set
|
|
|
{
|
|
|
_UserType = value;
|
|
|
OnPropertyChanged("UserType");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 密码
|
|
|
/// </summary>
|
|
|
private string _Password;
|
|
|
public string Password
|
|
|
{
|
|
|
get { return _Password; }
|
|
|
set
|
|
|
{
|
|
|
_Password = value;
|
|
|
OnPropertyChanged("Password");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// ClientId
|
|
|
/// </summary>
|
|
|
private string _ClientId;
|
|
|
public string ClientId
|
|
|
{
|
|
|
get { return _ClientId; }
|
|
|
set
|
|
|
{
|
|
|
_ClientId = value;
|
|
|
OnPropertyChanged("ClientId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 默认角色
|
|
|
/// </summary>
|
|
|
private string _RoleId;
|
|
|
public string RoleId
|
|
|
{
|
|
|
get { return _RoleId; }
|
|
|
set
|
|
|
{
|
|
|
_RoleId = value;
|
|
|
OnPropertyChanged("RoleId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 部门
|
|
|
/// </summary>
|
|
|
private string _DeptId;
|
|
|
public string DeptId
|
|
|
{
|
|
|
get { return _DeptId; }
|
|
|
set
|
|
|
{
|
|
|
_DeptId = value;
|
|
|
OnPropertyChanged("DeptId");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 手机
|
|
|
/// </summary>
|
|
|
private string _Mobile;
|
|
|
public string Mobile
|
|
|
{
|
|
|
get { return _Mobile; }
|
|
|
set
|
|
|
{
|
|
|
_Mobile = value;
|
|
|
OnPropertyChanged("Mobile");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 电话
|
|
|
/// </summary>
|
|
|
private string _Tel;
|
|
|
public string Tel
|
|
|
{
|
|
|
get { return _Tel; }
|
|
|
set
|
|
|
{
|
|
|
_Tel = value;
|
|
|
OnPropertyChanged("Tel");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 分机
|
|
|
/// </summary>
|
|
|
private string _Ext;
|
|
|
public string Ext
|
|
|
{
|
|
|
get { return _Ext; }
|
|
|
set
|
|
|
{
|
|
|
_Ext = value;
|
|
|
OnPropertyChanged("Ext");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
/// </summary>
|
|
|
private string _UserDesc;
|
|
|
public string UserDesc
|
|
|
{
|
|
|
get { return _UserDesc; }
|
|
|
set
|
|
|
{
|
|
|
_UserDesc = value;
|
|
|
OnPropertyChanged("UserDesc");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 用户名
|
|
|
/// </summary>
|
|
|
private string _UserCode;
|
|
|
public string UserCode
|
|
|
{
|
|
|
get { return _UserCode; }
|
|
|
set
|
|
|
{
|
|
|
_UserCode = value;
|
|
|
OnPropertyChanged("UserCode");
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 姓名
|
|
|
/// </summary>
|
|
|
private string _UserName;
|
|
|
public string UserName
|
|
|
{
|
|
|
get { return _UserName; }
|
|
|
set
|
|
|
{
|
|
|
_UserName = value;
|
|
|
OnPropertyChanged("UserName");
|
|
|
}
|
|
|
}
|
|
|
/// <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()
|
|
|
{
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
} |