using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DOAN.Model.MES.group.Dto
{
public class HandleSkillQueryDto
{
///
/// 人员清单
///
public string[] person_id { get; set; }
///
/// 路线id
///
public int Route_id { get; set; }
}
///
/// 人员技能矩阵
///
public class HandleSkillInfoDto
{
///
/// 工艺流程名称
///
public string RouteName { get; set; }
///
/// 工艺流程绑定的工序
///
public List colums { get; set; }
///
/// 人员技能列表
///
public List tableList { get; set; }
}
///
/// 工序详情
///
public class Columprocesses
{
///
/// 工序名称
///
public string processesName { get; set; }
///
/// 工序绑定的工位
///
public List children { get; set; }
}
///
/// 工位
///
public class StationChlidren
{
///
/// 工位名称
///
public string stationName { get; set; }
///
/// 技能描述
///
public List children { get; set; }
}
///
/// 技能描述
///
public class Skillschlidren
{
///
/// 技能id
///
public string skillId { get; set; }
///
/// 技能名称
///
public string skillName { get; set; }
}
///
/// 个人的技能
///
public class PersonOfKillsBase
{
///
/// 个人id
///
public string personId { get; set; }
///
/// 工号
///
public string workNum { get; set; }
///
/// 职位
///
public string postName { get; set; }
///
/// 姓名
///
public string personName { get; set; }
}
///
/// 人员技能增加属性
///
public static class PersonOfKillsExtensions
{
///
/// 获取属性
///
///
///
///
public static string GetScore(this PersonOfKills person, string Property)
{
return person.GetType().GetProperty(Property).GetValue(person)?.ToString();
}
///
/// 设置属性
///
///
///
///
public static void SetScore(this PersonOfKills person, string Property, int value)
{
var propertyInfo = person.GetType().GetProperty(Property);
if (propertyInfo != null && propertyInfo.CanWrite)
{
propertyInfo.SetValue(person, value);
}
}
}
///
/// 增加属性
///
public class PersonOfKills : PersonOfKillsBase
{
private readonly Dictionary _additionalProperties = new Dictionary();
public object this[string name]
{
get => _additionalProperties[name];
set => _additionalProperties[name] = value;
}
}
}