Back GetCassete
Chỉ cho phép login qrcode 1 lần Thêm timeout cho read cassete
This commit is contained in:
@@ -120,7 +120,6 @@ namespace SafeBagDE70
|
||||
notesInSession = new NotesInSession();
|
||||
spNotesInSession.DataContext = notesInSession;
|
||||
|
||||
|
||||
ResetButtons();
|
||||
btnStart.IsEnabled = true;
|
||||
btnLogout.IsEnabled = true;
|
||||
@@ -1053,7 +1052,13 @@ namespace SafeBagDE70
|
||||
if (CheckPreStoreValid(previousCassetData, AppData.MaxNotes, sessions))
|
||||
{
|
||||
cCmdRsp.SendXXCmd((byte)Command.CMD_DE_STORESTART);
|
||||
bSuccess = WaitUntilCountReady(10);
|
||||
bSuccess = WaitUntilCountReady(20);
|
||||
if (!bSuccess)
|
||||
{
|
||||
cCmdRsp.SendXXCmd((byte)Command.CMD_DE_STORESTART);
|
||||
bSuccess = WaitUntilCountReady(20);
|
||||
}
|
||||
|
||||
var newCasstData = AppData.GetCassetteData();
|
||||
|
||||
str = "AFTER STORE \r\n[CASSETTE]" + AppData.GetNotesString(newCasstData);
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace SafeBagDE70
|
||||
{
|
||||
gridInfor.Visibility = Visibility.Collapsed;
|
||||
gridMain.Visibility = Visibility.Visible;
|
||||
btnQRCodeLogin.IsEnabled = true;
|
||||
}
|
||||
public void ShowInfor(string strMessage)
|
||||
{
|
||||
@@ -122,7 +123,7 @@ namespace SafeBagDE70
|
||||
{
|
||||
QrCodePanel.Visibility = Visibility.Collapsed;
|
||||
PinCodePanel.Visibility = Visibility.Visible;
|
||||
|
||||
btnQRCodeLogin.IsEnabled = true;
|
||||
cCoreScannerClass.BarcodeEvent -= new _ICoreScannerEvents_BarcodeEventEventHandler(OnBarcodeEvent);
|
||||
}
|
||||
catch {
|
||||
@@ -134,9 +135,10 @@ namespace SafeBagDE70
|
||||
{
|
||||
PinCodePanel.Visibility = Visibility.Collapsed;
|
||||
QrCodePanel.Visibility=Visibility.Visible;
|
||||
btnQRCodeLogin.IsEnabled = false;
|
||||
cCoreScannerClass.BarcodeEvent -= new _ICoreScannerEvents_BarcodeEventEventHandler(OnBarcodeEvent);
|
||||
cCoreScannerClass.BarcodeEvent += new _ICoreScannerEvents_BarcodeEventEventHandler(OnBarcodeEvent);
|
||||
|
||||
|
||||
}
|
||||
public void InitQRCodeScanner()
|
||||
{
|
||||
@@ -222,7 +224,12 @@ namespace SafeBagDE70
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
btnQRCodeLogin.IsEnabled = true;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
private void VerifyQRCode(string decodedString,out string? ConsumerID)
|
||||
|
||||
Reference in New Issue
Block a user