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 AddCompanyDto
{
///
/// 公司Code
///
public string CompanyCode { get; set; }
///
/// 公司名称
///
public string CompanyName { get; set; }
///
/// 公司所在地
///
public string Address { get; set; }
///
/// 负责人Id
///
public int ContactUserId { get; set; }
///
/// 联系方式
///
private string tel;
public string Tel
{
get
{
return tel;
}
set
{
if (Regex.IsMatch(value, @"^[1]+[2,3,4,5,6,7,8,9]+\d{9}"))
{
tel = value;
}
else
{
tel = "";
}
}
}
///
/// 父级公司Id
///
public int ParentCompanyId { get; set; }
///
/// 创建者Id
///
public int CreateUserId { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
///
/// 修改企业dto
///
public class EditCompanyDto
{
///
/// 公司Id
///
public int Id { get; set; }
///
/// 公司Code
///
public string CompanyCode { get; set; }
///
/// 公司名称
///
public string CompanyName { get; set; }
///
/// 公司所在地
///
public string Address { get; set; }
///
/// 负责人Id
///
public int ContactUserId { get; set; }
///
/// 联系方式
///
private string tel;
public string Tel
{
get
{
return tel;
}
set
{
if (Regex.IsMatch(value, @"^[1]+[2,3,4,5,6,7,8,9]+\d{9}"))
{
tel = value;
}
else
{
tel = "";
}
}
}
///
/// 父级公司Id
///
public int ParentCompanyId { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
///
/// 删除企业dto
///
public class DelCompanyDto
{
///
/// 公司Id
///
public int Id { get; set; }
}
}