using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 添加机构输入参数
///
public class AddSysOrgInput
{
///
/// 父机构ID
///
[Required]
public short Pid { get; set; } = 0;
///
/// 机构类型
///
[Required]
public OrgType OrgType { get; set; }
///
/// 办学性质
///
[Required]
public OrgFundSource OrgFundSource { get; set; }
///
/// 学段
///
[Required]
public EducationStage EducationStage { get; set; }
///
/// 城乡类型
///
[Required]
public UrbanRuralType UrbanRuralType { get; set; }
///
/// 所属学区ID(机构ID)
///
public short? SchoolDistrictId { get; set; }
///
/// 名称
///
[Required, StringLength(100)]
public string Name { get; set; }
///
/// 名称
///
[Required, StringLength(200)]
public string FullName { get; set; }
///
/// 简称
///
[Required, StringLength(50)]
public string ShortName { get; set; }
///
/// 简称2
///
[StringLength(50)]
public string ShortName2 { get; set; } = "";
///
/// 编码
///
[Required, StringLength(20)]
public string Code { get; set; }
///
/// 带前缀唯一代码
///
[Required, StringLength(20)]
public string UniqueCode { get; set; }
///
/// 经度
///
public decimal Longitude { get; set; } = 0;
///
/// 纬度
///
public decimal Latitude { get; set; } = 0;
///
/// 地址
///
public string Address { get; set; } = "";
///
/// 备注
///
public string Remark { get; set; } = "";
///
/// 状态
///
[Required]
public CommonStatus Status { get; set; }
}
///
/// 更新机构输入参数
///
public class UpdateSysOrgInput : AddSysOrgInput
{
///
/// 主键
///
[Required]
public short Id { get; set; }
///
/// 排序
///
[Required]
public int Sort { get; set; }
}
///
/// 查询机构输入参数
///
public class QuerySysOrgInput
{
///
/// 名称
///
public string Name { get; set; }
///
/// 编码
///
public string Code { get; set; }
///
/// 机构类型
///
public OrgType? OrgType { get; set; }
///
/// 办学性质
///
public OrgFundSource? OrgFundSource { get; set; }
///
/// 学段
///
public EducationStage? EducationStage { get; set; }
///
/// 城乡类型
///
public UrbanRuralType? UrbanRuralType { get; set; }
///
/// 所属学区ID(机构ID)
///
public short? SchoolDistrictId { get; set; }
///
/// 状态
///
public CommonStatus? Status { get; set; }
}
///
/// 分页查询机构输入参数
///
public class SysOrgPageInput : PageInputBase
{
///
/// 名称
///
public string Name { get; set; }
///
/// 编码
///
public string Code { get; set; }
///
/// 机构类型
///
public OrgType? OrgType { get; set; }
///
/// 办学性质
///
public OrgFundSource? OrgFundSource { get; set; }
///
/// 学段
///
public EducationStage? EducationStage { get; set; }
///
/// 城乡类型
///
public UrbanRuralType? UrbanRuralType { get; set; }
///
/// 所属学区ID(机构ID)
///
public short? SchoolDistrictId { get; set; }
///
/// 状态
///
public CommonStatus? Status { get; set; }
}