Browse Source

分割称重打码客户端 条码重复上传弹窗提示;

master
yibo 3 years ago
parent
commit
4fc01ee2ea
2 changed files with 16 additions and 6 deletions
  1. +1
    -1
      ButcherFactory.BO/LocalBL/SegmentProductionBL.cs
  2. +15
    -5
      ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs

+ 1
- 1
ButcherFactory.BO/LocalBL/SegmentProductionBL.cs View File

@ -478,7 +478,7 @@ namespace ButcherFactory.BO.LocalBL
return list;
}
public static string UploadSegmentInfo(bool throwEx=false)
public static string UploadSegmentInfo(bool throwEx = false)
{
try
{


+ 15
- 5
ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs View File

@ -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);
}


Loading…
Cancel
Save