fix bugs
This commit is contained in:
+29
-15
@@ -619,14 +619,7 @@ namespace SafeBagDE70
|
||||
AutoSerialGet();
|
||||
bIsCounted = true;
|
||||
Log.Information("After AutoCount: " + GetShortInforFromCountItems());
|
||||
var state=GetCDMState();
|
||||
if (state.IsError>0)
|
||||
{
|
||||
string str = "ĐÃ XẢY RA LỖI TRONG QUÁ TRÌNH NỘP TIỀN";
|
||||
Log.Information(str);
|
||||
DoCheck();
|
||||
EndSession(COUNTINGSTATE.FULLIFSTORE, str);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -1352,14 +1345,35 @@ namespace SafeBagDE70
|
||||
Task.Run(() =>
|
||||
{
|
||||
taskCounting.Wait();
|
||||
Dispatcher.Invoke(() =>
|
||||
var state = GetCDMState();
|
||||
if (state.IsError > 0)
|
||||
{
|
||||
btnCountStart.IsEnabled = true;
|
||||
btnCheck.IsEnabled = true;
|
||||
btnStoreStart.IsEnabled = true;
|
||||
ResetTimers();
|
||||
Log.Information("2. Count completed");
|
||||
});
|
||||
string str = "ĐÃ XẢY RA LỖI TRONG QUÁ TRÌNH NỘP TIỀN";
|
||||
Log.Information(str);
|
||||
DoCheck();
|
||||
EndSession(COUNTINGSTATE.FULLIFSTORE, str);
|
||||
}
|
||||
else if (state.IsStackerFull>0) {
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
btnCheck.IsEnabled = true;
|
||||
btnStoreStart.IsEnabled = true;
|
||||
ResetTimers();
|
||||
Log.Information("2. Count completed");
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
btnCountStart.IsEnabled = true;
|
||||
btnCheck.IsEnabled = true;
|
||||
btnStoreStart.IsEnabled = true;
|
||||
ResetTimers();
|
||||
Log.Information("2. Count completed");
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user