|
|
@ -68,8 +68,8 @@ namespace EC.AutoWeightServer.Center |
|
|
|
OpenLightServer(); |
|
|
|
OpenLedServer(); |
|
|
|
OpenFingerPrintServer(); |
|
|
|
//OpenYkPosServer();
|
|
|
|
OpenPosServer(); |
|
|
|
OpenYkPosServer(); |
|
|
|
//OpenPosServer();
|
|
|
|
} |
|
|
|
|
|
|
|
public void CloseDevices() |
|
|
@ -102,28 +102,28 @@ namespace EC.AutoWeightServer.Center |
|
|
|
msgList.Add("指纹接口未连接"); |
|
|
|
if (LedZKManager == null || !LedZKManager.IsConnected()) |
|
|
|
msgList.Add("Led屏未连接"); |
|
|
|
//if (!YkPosManager.IsConnected())
|
|
|
|
//{
|
|
|
|
// msgList.Add("打印接口未连接");
|
|
|
|
//}
|
|
|
|
//else
|
|
|
|
//{
|
|
|
|
// if (YkPosManager.IsPaperExhaust())
|
|
|
|
// msgList.Add("打印接口纸尽");
|
|
|
|
// //if (YkPosManager.IsPaperWillExhaust())
|
|
|
|
// // msgList.Add("打印接口纸将尽");
|
|
|
|
//}
|
|
|
|
if (!PosManager.IsConnected()) |
|
|
|
if (!YkPosManager.IsConnected()) |
|
|
|
{ |
|
|
|
msgList.Add("打印接口未连接"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (PosManager.IsPaperExhaust()) |
|
|
|
if (YkPosManager.IsPaperExhaust()) |
|
|
|
msgList.Add("打印接口纸尽"); |
|
|
|
//if (YkPosManager.IsPaperWillExhaust())
|
|
|
|
// msgList.Add("打印接口纸将尽");
|
|
|
|
} |
|
|
|
//if (!PosManager.IsConnected())
|
|
|
|
//{
|
|
|
|
// msgList.Add("打印接口未连接");
|
|
|
|
//}
|
|
|
|
//else
|
|
|
|
//{
|
|
|
|
// if (PosManager.IsPaperExhaust())
|
|
|
|
// msgList.Add("打印接口纸尽");
|
|
|
|
// //if (YkPosManager.IsPaperWillExhaust())
|
|
|
|
// // msgList.Add("打印接口纸将尽");
|
|
|
|
//}
|
|
|
|
var msg = string.Join("\n", msgList.ToArray()); |
|
|
|
if (!string.IsNullOrEmpty(msg)) |
|
|
|
UiExtendCenter.ShowErrorMsgBox(msg); |
|
|
@ -321,7 +321,7 @@ namespace EC.AutoWeightServer.Center |
|
|
|
/// 打印运单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="billEntity"></param>
|
|
|
|
public void PrintBill(TransportBillEntity billEntity) |
|
|
|
public void PrintYkPosBill(TransportBillEntity billEntity) |
|
|
|
{ |
|
|
|
if (billEntity == null) |
|
|
|
return; |
|
|
@ -409,7 +409,7 @@ namespace EC.AutoWeightServer.Center |
|
|
|
PosManager = null; |
|
|
|
} |
|
|
|
|
|
|
|
public void PrintBIll(TransportBillEntity billEntity) |
|
|
|
public void PrintPosBill(TransportBillEntity billEntity) |
|
|
|
{ |
|
|
|
if (PosManager == null || billEntity == null) |
|
|
|
return; |
|
|
|