|
|
|
@ -612,12 +612,22 @@ namespace ButcherFactory.SegmentProductionAuto_ |
|
|
|
while (true) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
if (netStateWatch1.NetState) |
|
|
|
SegmentProductionBL.UploadSegmentInfo(); |
|
|
|
{ |
|
|
|
if (netStateWatch1.NetState) |
|
|
|
{ |
|
|
|
var msg = SegmentProductionBL.UploadSegmentInfo(true); |
|
|
|
if (!string.IsNullOrEmpty(msg) && msg.EndsWith("重复上传")) |
|
|
|
{ |
|
|
|
this.Invoke(new Action(() => |
|
|
|
{ |
|
|
|
MessageBox.Show(msg); |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch { |
|
|
|
|
|
|
|
catch |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
Thread.Sleep(2000); |
|
|
|
} |
|
|
|
|