using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.Utils.Converters;
using Kurisu.AspNetCore.Utils.Extensions;
using Newtonsoft.Json;
namespace Dlhis.Canteen.Order.Response;
public class BalanceRecordEMealVoucherResponse
{
public long Id { get; set; }
///
/// 流水号
///
public string No { get; set; }
///
/// 档案号/QRCode
///
public string UserNo { get; set; }
///
/// 姓名
///
public string Name { get; set; }
///
/// 学工号
///
public string UserCode { get; set; }
///
/// 部门号
///
public string DepartmentNo { get; set; }
///
/// 部门
///
public string DepartmentName { get; set; }
///
/// 所属成本日期
///
[JsonConverter(typeof(ToDateJsonConverter))]
public DateTime CostDate { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 来源
///
public BalanceRecordSourceEnumType Source { get; set; }
///
/// 消费识别来源
///
public string SourceDesc => Source.GetDescription();
///
/// 收入/支出
///
public BalanceRecordTypeEnumType Type { get; set; }
public string TypeDesc => Type.GetDescription();
///
/// 金额
///
public decimal Amount { get; set; }
///
/// 营业点
///
public string BusinessPlaceName { get; set; }
///
/// 餐次
///
public ShiftEnumType? ShiftType { get; set; }
///
/// 餐次
///
public string ShiftTypeDesc => ShiftType?.GetDescription();
///
/// 消费机器唯一信息
///
public string DeviceInfo { get; set; }
///
/// 成本中心
///
public string CostId { get; set; }
///
/// 消费者所在基地
///
public string OriginTenantId { get; set; }
///
/// 数据状态
///
public BalanceRecordStatusEnumType Status { get; set; }
///
/// 数据状态描述
///
public string StatusDesc => Status.GetDescription();
///
/// 记录产生时间
///
public DateTime CostDateTime { get; set; }
///
/// 厂区
///
public string Factory { get; set; }
///
/// 人事范围
///
public string Werks { get; set; }
}