using Admin.NET.Core; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FZCZTB.NET.MD { /// /// 投诉质疑结果 /// [SugarTable("FB_ProcurementComplaints")] public partial class ProcurementComplaint: EntityBase { /// /// 投诉ID,主键 /// [SugarColumn(IsPrimaryKey = true)] public Guid Id { get; set; } /// /// 项目编号 /// [SugarColumn(Length = 50, IsNullable = false, ColumnDescription = "项目编号")] public string ProjectCode { get; set; } /// /// 项目名称 /// [SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "项目名称")] public string ProjectName { get; set; } /// /// 决定日期 /// [SugarColumn(IsNullable = false, ColumnDescription = "决定日期")] public DateTime DecisionDate { get; set; } /// /// 采购人 /// [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "采购人")] public string Purchaser { get; set; } /// /// 采购代理机构 /// [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "采购代理机构")] public string ProcurementAgency { get; set; } /// /// 投诉人 /// [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "投诉人")] public string? Complainant { get; set; } /// /// 采购监督部门 /// [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "采购监督部门")] public string? ProcurementSupervisionDepartment { get; set; } /// /// 线上地址 /// [SugarColumn(Length = 255, IsNullable = true, ColumnDescription = "线上地址")] public string Url { get; set; } /// /// 投诉事项 /// [Navigate(NavigateType.OneToMany,nameof(ProcurementComplaintItems.ComplaintId))] public List? Complaints { get; set; } } /// /// 投诉事项子表模型 /// [SugarTable("FB_ProcurementComplaintItems")] public partial class ProcurementComplaintItems { /// /// 投诉事项ID,主键 /// [SugarColumn(IsPrimaryKey = true)] public Guid Id { get; set; } /// /// 关联的主投诉ID /// [SugarColumn(IsNullable = false, ColumnDescription = "关联的主投诉ID")] public Guid ComplaintId { get; set; } /// /// 具体投诉事项 /// [SugarColumn(Length = 1000, IsNullable = false, ColumnDescription = "具体投诉事项")] public string ItemDescription { get; set; } /// /// 处理结果 /// [SugarColumn(IsNullable = true, ColumnDescription = "处理结果")] public PComplaintStatus HandlingStatus { get; set; } /// /// 处理描述 /// [SugarColumn(Length = 1000,IsNullable = true, ColumnDescription = "处理结果")] public string? HandlingResult { get; set; } } public enum PComplaintStatus { /// /// 其他 /// Other = 0, /// /// 成立 /// Valid = 1, /// /// 驳回 /// Rejected = 2, /// /// 部分成立 /// PartiallyValid = 3 } }