feat 营业点消费明细导出
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
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;
|
||||
|
||||
@@ -40,41 +42,55 @@ public class BalanceRecordDetailPageResponse
|
||||
/// <summary>
|
||||
/// 工号
|
||||
/// </summary>
|
||||
[Excel("工号")]
|
||||
public string UserCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Excel("姓名")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门名称
|
||||
/// </summary>
|
||||
[Excel("部门")]
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成本日期
|
||||
/// </summary>
|
||||
[Excel("成本日期", "yyyy-MM-dd")]
|
||||
[JsonConverter(typeof(ToDateJsonConverter))]
|
||||
public DateTime CostDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费时间
|
||||
/// </summary>
|
||||
[Excel("消费时间", "yyyy-MM-dd HH:mm:ss")]
|
||||
public DateTime CostDateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费金额
|
||||
/// </summary>
|
||||
[Excel("金额", "0.00")]
|
||||
public string Amount => CurrentAmount.ToString("f2");
|
||||
|
||||
[JsonIgnore]
|
||||
public decimal CurrentAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费来源
|
||||
/// </summary>
|
||||
[Excel("消费来源")]
|
||||
public string SourceDesc => Source.GetDescription();
|
||||
|
||||
/// <summary>
|
||||
/// 营业点
|
||||
/// </summary>
|
||||
[Excel("营业点")]
|
||||
public string BusinessPlaceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐次
|
||||
/// </summary>
|
||||
@@ -83,30 +99,30 @@ public class BalanceRecordDetailPageResponse
|
||||
/// <summary>
|
||||
/// 餐次
|
||||
/// </summary>
|
||||
[Excel("餐次")]
|
||||
public string ShiftTypeDesc => ShiftType?.GetDescription();
|
||||
|
||||
/// <summary>
|
||||
/// 营业点
|
||||
/// </summary>
|
||||
public string BusinessPlaceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扣款方式
|
||||
/// 消费来源
|
||||
/// </summary>
|
||||
public BalanceRecordSourceEnumType Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扣款方式
|
||||
/// </summary>
|
||||
public string SourceDesc => Source.GetDescription();
|
||||
|
||||
/// <summary>
|
||||
/// 厂区
|
||||
/// </summary>
|
||||
[Excel("厂区")]
|
||||
public string Factory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人事范围
|
||||
/// </summary>
|
||||
[Excel("人事范围")]
|
||||
public string Werks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[Excel("备注")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user