using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Entity
{
public class UserEntity : TUserManage
{
///
/// 子类构造函数
///
/// 父类对象
public void Copy(TUserManage parent)
{
var parentProperties = parent.GetType().GetProperties();
foreach (var parentProperty in parentProperties)
{
var thisProperty = this.GetType().GetProperty(parentProperty.Name, parentProperty.PropertyType);
var value = parentProperty.GetValue(parent);
if (thisProperty != null && value != null && thisProperty.CanWrite)
{
thisProperty.SetValue(this, value);
}
}
}
public List Menus { get; set; } = new List();
///
/// 工单
///
public string JobNum { get; set; }
///
/// 工艺
///
public string ProcessParamName { get; set; }
}
}