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.
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace BarTenderPrint
|
|
{
|
|
public class BigPrintEquip : PrintEquip
|
|
{
|
|
public override bool AddPara()
|
|
{
|
|
var para = base.ParaClass as BigLable;
|
|
|
|
if (para != null)
|
|
{
|
|
try
|
|
{
|
|
BigLableManager manager = new BigLableManager(para);
|
|
BigLableInfo labelInfo = manager.ConfigBigLableInfo();
|
|
|
|
Console.WriteLine("checkCode:" + labelInfo.CheckCode + ",产品信息:" + labelInfo.ProductInfo + "条码:" + labelInfo.barcode);
|
|
base.EngineFormat.SubStrings["CheckCode"].Value = labelInfo.CheckCode;
|
|
base.EngineFormat.SubStrings["ProductInfo"].Value = labelInfo.ProductInfo;
|
|
base.EngineFormat.SubStrings["barcode"].Value = labelInfo.barcode;
|
|
return true;
|
|
}
|
|
catch
|
|
{
|
|
return false;
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|