|
@@ -129,7 +129,15 @@ namespace SCADA_DAQ.Customer
|
|
|
Log.Info($"Excel表中此条码{Barcode}的长宽信息不完善");
|
|
|
return;
|
|
|
}
|
|
|
- var _string = $"{_long}#{_wide}#";
|
|
|
+ string _string;
|
|
|
+ if (Convert.ToDouble(_long) >= Convert.ToDouble(_wide))
|
|
|
+ {
|
|
|
+ _string = $"{_long}#{_wide}#";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ _string = $"{_wide}#{_long}#";
|
|
|
+ }
|
|
|
Log.Info($"收到条码信息{barCode},发送长宽信息{_string}");
|
|
|
var _byte = ASCIIEncoding.ASCII.GetBytes(_string);
|
|
|
Dispatcher.Invoke(() =>
|