using Dlhis.Entity.Canteen.Enums; using Dlhis.ExcelHelper; using Kurisu.AspNetCore.DataAccess.Dto; using Kurisu.AspNetCore.Utils.Converters; using Kurisu.AspNetCore.Utils.Extensions; using Newtonsoft.Json; namespace Dlhis.Canteen.Order.Response; public class BalanceRecordByBusinessPlaceResponse { /// /// 消费总金额 /// public decimal Amount { get; set; } /// /// 消费人数 /// public int Total { get; set; } /// /// 分页数据 /// public Pagination Pagination { get; set; } } [Excel("BalanceRecordDetail")] public class BalanceRecordDetailPageResponse : IExcelExportable { public long Id { get; set; } /// /// 流水号 /// public string No { get; set; } /// /// 档案号 /// public string UserNo { get; set; } /// /// 工号 /// [Excel("工号")] public string UserCode { get; set; } /// /// 名称 /// [Excel("姓名")] public string UserName { get; set; } /// /// 部门名称 /// [Excel("部门")] public string DepartmentName { get; set; } /// /// 成本日期 /// [Excel("成本日期", "yyyy-MM-dd")] [JsonConverter(typeof(ToDateJsonConverter))] public DateTime CostDate { get; set; } /// /// 消费时间 /// [Excel("消费时间", "yyyy-MM-dd HH:mm:ss")] public DateTime CostDateTime { get; set; } /// /// 消费金额 /// [Excel("金额", "0.00")] public string Amount => CurrentAmount.ToString("f2"); [JsonIgnore] public decimal CurrentAmount { get; set; } /// /// 消费来源 /// [Excel("消费来源")] public string SourceDesc => Source.GetDescription(); /// /// 营业点 /// [Excel("营业点")] public string BusinessPlaceName { get; set; } /// /// 餐次 /// public ShiftEnumType? ShiftType { get; set; } /// /// 餐次 /// [Excel("餐次")] public string ShiftTypeDesc => ShiftType?.GetDescription(); /// /// 消费来源 /// public BalanceRecordSourceEnumType Source { get; set; } /// /// 厂区 /// [Excel("厂区")] public string Factory { get; set; } /// /// 人事范围 /// [Excel("人事范围")] public string Werks { get; set; } /// /// 备注 /// [Excel("备注")] public string Remark { get; set; } }