using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace OASystem.Domain.Dtos.System
{
///
/// 员工表查询dto
///
public class UserDto : DtoBase
{
///
/// 公司Id
///
public int CompanyId { get; set; }
///
/// 部门Id
///
public int DepId { get;set; }
///
/// 岗位Id
///
public int JobPostId { get; set; }
}
///
/// 修改用户信息
///
public class EditUserDto
{
///
/// 用户Id
///
public int Id { get; set; }
///
/// 工号
///
public string Number { get; set; }
///
/// 公司Id
///
public int CompanyId { get; set; }
///
/// 部门Id
///
public int DepId { get; set; }
///
/// 岗位Id
///
public int JobPostId { get; set; }
///
/// 分机号
///
public string Ext { get; set; }
///
/// 试用期
///
public string UsePeriod { get; set; }
///
/// 人事审核 0未审核(初始状态) 1 已通过(可用)2已拒绝
///
public int HrAudit { get; set; }
}
///
/// 修改个人信息
///
public class EditMyUserDto
{
///
/// 用户Id
///
public int Id { get; set; }
///
/// 中文姓名
///
public string CnName { get; set; }
///
/// 英文姓名
///
public string EnName { get; set; }
///
/// 性别0 男1 女 2 未设置
///
public int Sex { get; set; }
private string phone;
///
/// 手机号
///
public string Phone
{
get
{
return phone;
}
set
{
if (Regex.IsMatch(value, @"^[1]+[2,3,4,5,6,7,8,9]+\d{9}"))
{
phone = value;
}
else
{
phone = "";
}
}
}
private string urgentPhone;
///
/// 紧急联系人 手机号
///
public string UrgentPhone
{
get { return urgentPhone; }
set
{
if (Regex.IsMatch(value, @"^[1]+[2,3,4,5,6,7,8,9]+\d{9}"))
{
urgentPhone = value;
}
else
{
urgentPhone = "";
}
}
}
private string email;
///
/// 邮箱
///
public string Email
{
get { return email; }
set
{
if (Regex.IsMatch(value, @"^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(com|cn|net)$"))
{
email = value;
}
else
{
email = "";
}
}
}
///
/// 住址
///
public string Address { get; set; }
///
/// 入职时间
///
public DateTime Edate { get; set; }
///
/// 生日
///
public DateTime Birthday { get; set; }
///
/// 身份证号码
///
public string IDCard { get; set; }
///
/// 毕业学校
///
public string GraduateInstitutions { get; set; }
///
/// 专业
///
public string Professional { get; set; }
///
/// 学历
///
public int Education { get; set; }
///
/// 学历类型
///
public int TheOrAdultEducation { get; set; }
///
/// 婚姻状态
///
public string MaritalStatus { get; set; }
///
/// 家庭地址
///
public string HomeAddress { get; set; }
///
/// 工作经历
///
public string WorkExperience { get; set; }
///
/// 证书上传
///
public string Certificate { get; set; }
}
///
/// 删除用户信息
/// 即为离职
///
public class UserDelDto : PortDtoBase
{
///
/// 数据Id
///
public int Id { get; set; }
///
/// 操作人Id
///
public int OperateUserId { get; set; }
}
}