|
|
@ -5,6 +5,7 @@ using EC.AutoWeightServer.IfManager.Pos; |
|
|
|
using EC.AutoWeightServer.IfManager.Scales; |
|
|
|
using EC.AutoWeightServer.IfManager.YkPos; |
|
|
|
using EC.AutoWeightServer.Model.Config; |
|
|
|
using EC.AutoWeightServer.Model.State; |
|
|
|
using EC.AutoWeightServer.UI; |
|
|
|
using EC.AutoWeightServer.UI.UC; |
|
|
|
using EC.Entity.Transport; |
|
|
@ -321,7 +322,7 @@ namespace EC.AutoWeightServer.Center |
|
|
|
/// 打印运单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="billEntity"></param>
|
|
|
|
public void PrintBill(TransportBillEntity billEntity) |
|
|
|
public void PrintYkPosBill(TransportBillEntity billEntity) |
|
|
|
{ |
|
|
|
if (billEntity == null) |
|
|
|
return; |
|
|
@ -377,7 +378,7 @@ namespace EC.AutoWeightServer.Center |
|
|
|
content.Append($"达标率:\t{billEntity.StandardRate}%\n"); |
|
|
|
content.Append($"入场时间:\t{billEntity.InStartTime:yyyy/MM/dd HH:mm:ss}\n"); |
|
|
|
content.Append($"出场时间:\t{billEntity.OutFinishTime:yyyy/MM/dd HH:mm:ss}\n"); |
|
|
|
//content.Append($"运单状态:\t{BillStateExt.GetBillStateDesc(billEntity.State)}\n");
|
|
|
|
content.Append($"运单状态:\t{BillStateExt.GetBillStateDesc(billEntity.State)}\n"); |
|
|
|
YkPosManager.PrintStr(content);//打印内容
|
|
|
|
|
|
|
|
YkPosManager.InitPrinter();//重置
|
|
|
@ -409,11 +410,11 @@ namespace EC.AutoWeightServer.Center |
|
|
|
PosManager = null; |
|
|
|
} |
|
|
|
|
|
|
|
public void PrintBIll(TransportBillEntity billEntity) |
|
|
|
public void PrintPosBill(TransportBillEntity billEntity) |
|
|
|
{ |
|
|
|
if (PosManager == null || billEntity == null) |
|
|
|
if (PosManager == null || billEntity == null || !PosManager.IsConnected()) |
|
|
|
return; |
|
|
|
if (!PosManager.IsConnected() || PosManager.IsPaperExhaust()) |
|
|
|
if (PosManager.IsPaperExhaust()) |
|
|
|
{ |
|
|
|
var msg = "打印接口纸尽,请联系管理人员"; |
|
|
|
_mainServer?.SetScrollLabelText(msg); |
|
|
@ -469,7 +470,7 @@ namespace EC.AutoWeightServer.Center |
|
|
|
content.Append($"达标率:\t{billEntity.StandardRate}%\n"); |
|
|
|
content.Append($"入场时间:\t{billEntity.InStartTime:yyyy/MM/dd HH:mm:ss}\n"); |
|
|
|
content.Append($"出场时间:\t{billEntity.OutFinishTime:yyyy/MM/dd HH:mm:ss}\n"); |
|
|
|
//content.Append($"运单状态:\t{BillStateExt.GetBillStateDesc(billEntity.State)}\n");
|
|
|
|
content.Append($"运单状态:\t{BillStateExt.GetBillStateDesc(billEntity.State)}\n"); |
|
|
|
PosManager.PrintStr(0, 0, 0, 0, 0, content.ToString()); |
|
|
|
//打印分隔符
|
|
|
|
PosManager.SetAlign(1); |
|
|
|