namespace FoodLabeling.Application.Contracts.Dtos.UsAppLabeling;
///
/// 打印日志列表项
///
public class PrintLogItemDto
{
/// 任务Id(fl_label_print_task.Id)
public string TaskId { get; set; } = string.Empty;
/// 批次Id(同一次点击 Print 共享)
public string? BatchId { get; set; }
/// 第几份(从 1 开始)
public int CopyIndex { get; set; }
///
/// 列表 Label ID:门店当日打印序号(yyyyMMdd-n,如 20260513-1),非 fl_label.LabelCode。
///
public string LabelId { get; set; } = string.Empty;
/// 标签主键(fl_label.Id),重打/内部关联用
public string LabelEntityId { get; set; } = string.Empty;
/// 标签编码(fl_label.LabelCode),重打预览/打印入参用
public string LabelCode { get; set; } = string.Empty;
/// 产品Id
public string? ProductId { get; set; }
/// 产品名称
public string ProductName { get; set; } = "无";
/// 标签类型名称(来自 fl_label_type.TypeName)
public string TypeName { get; set; } = string.Empty;
/// 模板尺寸(来自 fl_label_template.Width/Height/Unit)
public string? LabelSizeText { get; set; }
/// 打印入参 JSON(直接来自 fl_label_print_task.PrintInputJson 列)
public string? PrintInputJson { get; set; }
/// 打印时间(PrintedAt ?? CreationTime)
public DateTime PrintedAt { get; set; }
/// 操作人姓名(任务 CreatedBy 对应用户;查看全店日志时为实际打印人)
public string OperatorName { get; set; } = string.Empty;
/// 门店名称
public string LocationName { get; set; } = "无";
}