This commit is contained in:
赵正易 2025-05-15 10:53:09 +08:00
parent e8e5b22407
commit d16f11a07c

View File

@ -74,7 +74,7 @@ namespace RIZO_Application.Modules.ModuleName.ViewModels
{
_eventAggregator.GetEvent<SystemLogEvent>().Publish($"收到打印请求: {printDto.Name}");
// 准备打印参数
// 1.准备全部打印参数
var printParameters = new Dictionary<string, string>
{
{ "10", printDto.PartNumber },
@ -89,6 +89,16 @@ namespace RIZO_Application.Modules.ModuleName.ViewModels
{ "10011", printDto.LabelType.ToString() }
};
//2.TODO 根据地址抓取需要的Key字段
//3.TODO 根据全部打印参数表,剔除不要的字段
//4.TODO 进行打印
// 执行打印
bool printSuccess = _printHelper.PrintLabel(
templatePath: printDto.Path,