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