ComplianceServer/code/Hg.Core.Domain/Dto/InComplaint/InComplaintDto.cs

194 lines
5.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hg.Core.Domain.Dto.InComplaint
{
public class InComplaintDto
{
public int Id { get; set; }
public string? ComplaintId { get; set; }
public string? Resid { get; set; }
public string? UMID { get; set; }
public string? Cname { get; set; }
public int? Deptid { get; set; }
public string? Deptname { get; set; }
public int? Eid { get; set; }
public string Euser { get; set; }
public int? InComplaintChannel { get; set; }
public List<int>? InComplaintChannels
{
get
{
var data = new List<int>();
foreach (var item in Enum.GetValues<InComplaintChannel>())
{
if (InComplaintChannel.HasValue && ((int)item & InComplaintChannel.Value) > 0)
{
data.Add((int)item);
}
}
return data == null ? null : data;
}
}
public List<string>? InComplaintChannelList
{
get
{
var data = new List<string>();
foreach (var item in Enum.GetValues<InComplaintChannel>())
{
if (InComplaintChannel.HasValue && ((int)item & InComplaintChannel.Value) > 0)
{
data.Add(item.GetDescription());
}
}
return data == null ? null : data;
}
}
public int? Reason { get; set; }
public List<int>? Reasons
{
get
{
var reasons = new List<int>();
foreach (var reason in Enum.GetValues<InComplaintReason>())
{
if (Reason.HasValue && ((int)reason & Reason.Value) > 0)
{
reasons.Add((int)reason);
}
}
return Reason == null ? null : reasons;
}
}
public List<string>? ReasonList
{
get
{
var reasons = new List<string>();
foreach (var reason in Enum.GetValues<InComplaintReason>())
{
if (Reason.HasValue && ((int)reason & Reason.Value) > 0)
{
reasons.Add(reason.GetDescription());
}
}
return Reason == null ? null : reasons;
}
}
public InComplaintStatus? InComplaintStatus { get; set; }
public string? InComplaintStatusStr
{
get
{
return InComplaintStatus?.GetDescription();
}
}
public InComplaintBusinessStatus? BusinessStatus { get; set; }
public string? BusinessStatusStr
{
get
{
return BusinessStatus?.GetDescription();
}
}
public string? Content { get; set; }
public string? Follow { get; set; }
public string? Remark { get; set; }
public InComplaintDueStatus? DueStatus { get; set; }
public string? DueStatusStr
{
get
{
return DueStatus?.GetDescription();
}
}
public DateTime BusinessDeadline { get; set; }
public string? BusinessDeadlineSpan { get; set; }
public DateTime? InComplaintDate { get; set; }
public string? InComplaintDateStr
{
get
{
return InComplaintDate?.ToString("yyyy-MM-dd");
}
}
public string? Creator { get; set; }
public DateTime? CreateTime { get; set; }
public string? Updater { get; set; }
public DateTime? UpdateTime { get; set; }
public string? Restorer { get; set; }
public DateTime? RestoreTime { get; set; }
public string? HGRestorer { get; set; }
public DateTime? HGRestoreTime { get; set; }
public ICollection<int> OrderList { get; set; }
public ICollection<decimal> PriceList { get; set; }
public int NeedRestoreCount { get; set; }
public int RestoreCount { get; set; }
public int FollowUpCount { get; set; }
public int DueCount { get; set; }
public bool IsAdjustDeadline { get; set; }
public DateTime TimeSort { get; set; }
public int? Age { get; set; }
public List<string>? Products { get; set; }
public List<int>? OrderIds { get; set; }
public List<DateTime?> OTimes { get; set; }
public List<decimal?> ArrivalPays { get; set; }
public List<string>? ArrivalStatus { get; set; }
public string? Verifyier { get; set; }
public DateTime? VerifyTime { get; set; }
public string IsOutComplaint { get; set; }
public string? RiskSituation { get; set; }
public int? ComplaintCycle { get; set; }
public OrderRefundStatus? RefundStatus { get; set; }
public string? RefundStatusStr
{
get
{
return RefundStatus?.GetDescription();
}
}
}
}