init commit

This commit is contained in:
路 范
2022-03-30 17:54:33 +08:00
parent df01841625
commit 904bdd16cd
500 changed files with 217251 additions and 0 deletions

View File

@@ -0,0 +1,157 @@
using Ewide.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RoadFlow.Model.FlowRunModel
{
/// <summary>
/// 用户实体类
/// </summary>
public class User : IEqualityComparer<User>
{
/// <summary>
/// Id
/// </summary>
[DisplayName("Id")]
[Key]
public string Id { get; set; }
/// <summary>
/// 姓名
/// </summary>
[DisplayName("姓名")]
[Required(ErrorMessage = "姓名不能为空")]
public string Name { get; set; }
/// <summary>
/// 帐号
/// </summary>
[DisplayName("帐号")]
[Required(ErrorMessage = "帐号不能为空")]
public string Account { get; set; }
/// <summary>
/// 密码
/// </summary>
[DisplayName("密码")]
[Required(ErrorMessage = "密码不能为空")]
public string Password { get; set; }
/// <summary>
/// 性别 0男 1女
/// </summary>
[DisplayName("性别 0男 1女")]
public int? Sex { get; set; }
/// <summary>
/// 状态 0 正常 1 冻结
/// </summary>
[DisplayName("状态 0 正常 1 冻结")]
public int Status { get; set; }
/// <summary>
/// 职务
/// </summary>
[DisplayName("职务")]
public string Job { get; set; } = string.Empty;
/// <summary>
/// 备注
/// </summary>
[DisplayName("备注")]
public string Note { get; set; } = string.Empty;
/// <summary>
/// 手机
/// </summary>
[DisplayName("手机")]
public string Mobile { get; set; } = string.Empty;
/// <summary>
/// 办公电话
/// </summary>
[DisplayName("办公电话")]
public string Tel { get; set; } = string.Empty;
/// <summary>
/// 其它联系方式
/// </summary>
[DisplayName("其它联系方式")]
public string OtherTel { get; set; } = string.Empty;
/// <summary>
/// 传真
/// </summary>
[DisplayName("传真")]
public string Fax { get; set; } = string.Empty;
/// <summary>
/// 邮箱
/// </summary>
[DisplayName("邮箱")]
public string Email { get; set; } = string.Empty;
/// <summary>
/// QQ(此字段不保存QQ号了用来保存流程处理时有时需要人员分组)
/// </summary>
[DisplayName("QQ")]
public string QQ { get; set; } = string.Empty;
/// <summary>
/// 头像
/// </summary>
[DisplayName("头像")]
public string HeadImg { get; set; } = string.Empty;
/// <summary>
/// 微信号(此字段不保存微信号,用来保存用户选择的当前语言)
/// </summary>
[DisplayName("微信号")]
public string WeiXin { get; set; } = string.Empty;
/// <summary>
/// 人员兼职的机构ID(兼职时有用)(organizeuser表ID)
/// </summary>
[DisplayName("人员兼职的机构ID")]
public string PartTimeId { get; set; }
/// <summary>
/// 微信openid
/// </summary>
[DisplayName("微信openid")]
public string WeiXinOpenId { get; set; }
public override string ToString()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}
public bool Equals(User u1, User u2)
{
return u1.Id == u2.Id;
}
public int GetHashCode(User u)
{
return u.Id.GetHashCode();
}
public User Clone()
{
return (User)MemberwiseClone();
}
public static User FromSysUser(SysUser u)
{
User rtn = new User();
rtn.Id = u.Id;
rtn.Name = u.Name;
return rtn;
}
}
}