Files
jinko.yikatong/Src/Dlhis.Canteen/Voucher/Response/EMealVoucherPageResponse.cs

77 lines
1.7 KiB
C#

using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.Utils.Extensions;
using Mapster.Utils;
using Newtonsoft.Json;
namespace Dlhis.Canteen.Voucher.Response;
public class EMealVoucherPageResponse
{
/// <summary>
/// OA流程号
/// </summary>
public string No { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 申请人工号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 申请人手机号
/// </summary>
public string Phone { get; set; }
[JsonIgnore]
public string CurrentFactories { get; set; }
/// <summary>
/// 可使用的厂区编码
/// </summary>
public List<string> Factories => CurrentFactories.ToObject<List<string>>();
/// <summary>
/// 申请时间
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// 成本日期
/// </summary>
public string CostId { get; set; }
/// <summary>
/// 来源
/// </summary>
public string Source { get; set; }
/// <summary>
/// 申请事由
/// </summary>
public string Reason { get; set; }
[JsonIgnore]
public string CurrentShifts { get; set; }
/// <summary>
/// 使用餐次
/// </summary>
public List<string> Shifts
{
get
{
var a = CurrentShifts.ToObject<List<int>>().Select(x => (ShiftEnumType)(x * 10)).ToList();
return a.Select(x=>x.GetDescription()).ToList();
}
}
/// <summary>
/// 消费券明细
/// </summary>
public List<EMealVoucherDetailResponse> Details { get; set; }
}