PrintLogItemDto.cs
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace FoodLabeling.Application.Contracts.Dtos.UsAppLabeling;
/// <summary>
/// 打印日志列表项
/// </summary>
public class PrintLogItemDto
{
/// <summary>任务Id(fl_label_print_task.Id)</summary>
public string TaskId { get; set; } = string.Empty;
/// <summary>批次Id(同一次点击 Print 共享)</summary>
public string? BatchId { get; set; }
/// <summary>第几份(从 1 开始)</summary>
public int CopyIndex { get; set; }
/// <summary>
/// 列表 Label ID:门店当日打印序号(<c>yyyyMMdd-n</c>,如 <c>20260513-1</c>),非 <c>fl_label.LabelCode</c>。
/// </summary>
public string LabelId { get; set; } = string.Empty;
/// <summary>标签主键(<c>fl_label.Id</c>),重打/内部关联用</summary>
public string LabelEntityId { get; set; } = string.Empty;
/// <summary>标签编码(<c>fl_label.LabelCode</c>),重打预览/打印入参用</summary>
public string LabelCode { get; set; } = string.Empty;
/// <summary>产品Id</summary>
public string? ProductId { get; set; }
/// <summary>产品名称</summary>
public string ProductName { get; set; } = "无";
/// <summary>标签类型名称(来自 fl_label_type.TypeName)</summary>
public string TypeName { get; set; } = string.Empty;
/// <summary>模板尺寸(来自 fl_label_template.Width/Height/Unit)</summary>
public string? LabelSizeText { get; set; }
/// <summary>打印入参 JSON(直接来自 fl_label_print_task.PrintInputJson 列)</summary>
public string? PrintInputJson { get; set; }
/// <summary>打印时间(PrintedAt ?? CreationTime)</summary>
public DateTime PrintedAt { get; set; }
/// <summary>操作人姓名(任务 CreatedBy 对应用户;查看全店日志时为实际打印人)</summary>
public string OperatorName { get; set; } = string.Empty;
/// <summary>门店名称</summary>
public string LocationName { get; set; } = "无";
}