123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- 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
- {
-
-
-
- public class UserDto : DtoBase
- {
-
-
-
- public int CompanyId { get; set; }
-
-
-
- public int DepId { get;set; }
-
-
-
- public int JobPostId { get; set; }
- }
-
-
-
- public class EditUserDto
- {
-
-
-
- public int Id { get; set; }
-
-
-
- public string Number { get; set; }
-
-
-
- public int CompanyId { get; set; }
-
-
-
- public int DepId { get; set; }
-
-
-
- public int JobPostId { get; set; }
-
-
-
- public string Ext { get; set; }
-
-
-
- public string UsePeriod { get; set; }
-
-
-
- public int HrAudit { get; set; }
- }
-
-
-
- public class EditMyUserDto
- {
-
-
-
- public int Id { get; set; }
-
-
-
- public string CnName { get; set; }
-
-
-
- public string EnName { get; set; }
-
-
-
- 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
- {
-
-
-
- public int Id { get; set; }
-
-
-
- public int OperateUserId { get; set; }
- }
- }
|