You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB
C#

using SlnMesnac.LabelPrint.Common;
using SlnMesnac.LabelPrint.Log4net;
using SlnMesnac.LabelPrint.Model;
using System;
namespace SlnMesnac.LabelPrint.Bartender.equip
{
public class LabelPrintEquip : PrintEquip
{
private readonly LogHelper logHelper = LogHelper.Instance;
private readonly JsonChange jsonChange = JsonChange.Instance;
public override bool AddPara()
{
var para = base.ParaClass as BaseLabelInfo;
if (para != null)
{
try
{
logHelper.Info($"打印标签信息:{jsonChange.ModeToJson(para)}");
base.EngineFormat.SubStrings["barcode"].Value = para.column_A.ToString();
return true;
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
return false;
}
}
else
{
return false;
}
}
}
}