Advertisement
penright

Untitled

Oct 3rd, 2023
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.53 KB | None | 0 0
  1.     Sub FixSelCheck()
  2.         'As we move more to using the concept ID, this sections will not be needed.
  3.  
  4.  
  5.         Dim SelCheckIni As New PrivateIniFile
  6.  
  7.         For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
  8.             Dim RegInfo As RegInfo = PosMaint.RegisterInformations(xLoop)
  9.             SelCheckIni.SetFileName("c:\iris\reginfo\Reg" & RegInfo.RegisterNumber & "\ini\selcheck.ini")
  10.             SelCheckIni.DeleteKey("SCR_CASHIER", "Default")
  11.             'PE 5/12/2022
  12.             'Removed new check key for cashier 4.0.10
  13.             'PE 6/6/2022
  14.             'Redid this section to hand the Fast drive style and Dual Lane Difference
  15.  
  16.             DispThis("   " & RegInfo.RegisterNumber.ToString & " is being updated" & NewLine)
  17.             For xLoop_btn As Integer = 0 To 99
  18.                 SelCheckIni.DeleteKey("SCR_CASHIER", "BTN" & xLoop_btn.ToString)
  19.             Next
  20.             'DispThis("Dual lane not adding new_check key" & NewLine)
  21.             If (RegInfo.DefaultConcept = eDefaultConcept.Tender OrElse
  22.                    RegInfo.DefaultConcept = eDefaultConcept.TenderBlockReg OrElse
  23.                    RegInfo.DefaultConcept = eDefaultConcept.RegisterDown OrElse
  24.                    RegInfo.DefaultConcept = eDefaultConcept.DualLane2) Then
  25.                 Dim intOnButton As Integer = 1
  26.                 SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "RETURN") : intOnButton += 1
  27.                 SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "PAGE_UP") : intOnButton += 1
  28.                 SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "PAGE_DOWN") : intOnButton += 1
  29.                 If PosMaint.DriveStyle.ToUpper = "FAST" Then
  30.                     If RegInfo.DefaultConcept = eDefaultConcept.TenderBlockReg OrElse
  31.                         RegInfo.DefaultConcept = eDefaultConcept.DualLane2 Then
  32.                         SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "NEW_CHECK") : intOnButton += 1
  33.                     End If
  34.                 Else
  35.                     SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "NEW_CHECK") : intOnButton += 1
  36.                 End If
  37.                 SelCheckIni.WriteString("SCR_CASHIER", "BTN" + intOnButton.ToString, "POS_FUNCTIONS") : intOnButton += 1
  38.                 SelCheckIni.WriteString("SCR_CASHIER", "Default", "Close_check")
  39.                 SelCheckIni.WriteInteger("SCR_CASHIER", "Count", (intOnButton - 1).ToString)
  40.             End If
  41.  
  42.         Next
  43.         SelCheckIni = Nothing
  44.     End Sub
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement