Files
zszq-trs/YLErpDAL/ModelBase/Departments.cs
T
2024-05-09 14:06:26 +08:00

99 lines
2.2 KiB
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BaseOUDAL
{
public class Department
{
[NotMapped]
[DisplayName("详细部门名称")]
public string AllDepName { get; set; }
public int Id { get; set; }
[Required]
public int PId { get; set; }
[Required]
[MaxLength(50)]
[DisplayName("名称")]
public string Name { get; set; }
[DisplayFormat(ConvertEmptyStringToNull = false)]
[DisplayName("类别")]
[MaxLength(50)]
public string DepartmentType { get; set; }
[DisplayName("区域")]
[MaxLength(150)]
public string Area { get; set; }
[DisplayName("电话")]
[MaxLength(50)]
public string Tel { get; set; }
[MaxLength(50)]
public string State { get; set; }
//[DisplayName("物业类型")]
//public string WuYeClass { get; set; }
[DisplayName("营业部代码")]
[MaxLength(255)]
public string Code { get; set; }
[DisplayName("描述")]
[MaxLength(255)]
public string Description { get; set; }
public Department()
{
DepartmentType = "";
}
public static string LogClass = "Departments";
[DisplayName("站点公司")]
[NotMapped]
public string Name1
{
get { return Name; }
set {; }
}
[DisplayName("所属分公司")]
[NotMapped]
public string Name2
{
get { return Name; }
set {; }
}
}
public partial class DepartmentReq : BaseSearchReq
{
public int Id { get; set; }
public int PId { get; set; }
public string Name { get; set; }
public string DepartmentType { get; set; }
public string Area { get; set; }
public string Tel { get; set; }
public string State { get; set; }
public string WuYeClass { get; set; }
public string Code { get; set; }
public string Description { get; set; }
}
}