Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub FixKitchen()
- Dim KitchenIni As New PrivateIniFile("c:\iris\ini\kitchen.ini")
- 'Clear Monitors Numbers
- For xLoop As Integer = 1 To 99
- KitchenIni.DeleteKey("Monitors", xLoop.ToString)
- Next
- 'Clear Forwarding Mask
- KitchenIni.DeleteKey("Grill", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillTop", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillBottom", "ForwardingMask")
- KitchenIni.DeleteKey("Grill3", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop3", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom3", "ForwardingMask")
- KitchenIni.DeleteKey("Grill<2>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop<2>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom<2>", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillTop<2>", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillBottom<2>", "ForwardingMask")
- KitchenIni.DeleteKey("Grill3<2>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop3<2>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom3<2>", "ForwardingMask")
- KitchenIni.DeleteKey("Grill<3>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop<3>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom<3>", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillTop<3>", "ForwardingMask")
- KitchenIni.DeleteKey("HvGrillBottom<3>", "ForwardingMask")
- KitchenIni.DeleteKey("Grill3<3>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillTop3<3>", "ForwardingMask")
- KitchenIni.DeleteKey("GrillBottom3<3>", "ForwardingMask")
- KitchenIni.DeleteKey("Expedite", "ForwardingMask")
- KitchenIni.DeleteKey("Expedite2", "ForwardingMask")
- KitchenIni.DeleteKey("Drive", "ForwardingMask")
- KitchenIni.DeleteKey("Drive2", "ForwardingMask")
- KitchenIni.DeleteKey("Fountain", "ForwardingMask")
- KitchenIni.DeleteKey("FountainTop", "ForwardingMask")
- KitchenIni.DeleteKey("FountainBottom", "ForwardingMask")
- KitchenIni.DeleteKey("Fountain2", "ForwardingMask")
- KitchenIni.DeleteKey("FountainTop2", "ForwardingMask")
- KitchenIni.DeleteKey("FountainBottom2", "ForwardingMask")
- KitchenIni.DeleteKey("Fry", "ForwardingMask")
- KitchenIni.DeleteKey("FryTop", "ForwardingMask")
- KitchenIni.DeleteKey("FryBottom", "ForwardingMask")
- 'Clear Master Bump
- KitchenIni.DeleteKey("Grill", "MasterBump")
- KitchenIni.DeleteKey("GrillTop", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom", "MasterBump")
- KitchenIni.DeleteKey("HvGrillTop", "MasterBump")
- KitchenIni.DeleteKey("HvGrillBottom", "MasterBump")
- KitchenIni.DeleteKey("Grill3", "MasterBump")
- KitchenIni.DeleteKey("GrillTop3", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom3", "MasterBump")
- KitchenIni.DeleteKey("Grill<2>", "MasterBump")
- KitchenIni.DeleteKey("GrillTop<2>", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom<2>", "MasterBump")
- KitchenIni.DeleteKey("HvGrillTop<2>", "MasterBump")
- KitchenIni.DeleteKey("HvGrillBottom<2>", "MasterBump")
- KitchenIni.DeleteKey("Grill3<2>", "MasterBump")
- KitchenIni.DeleteKey("GrillTop3<2>", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom3<2>", "MasterBump")
- KitchenIni.DeleteKey("Grill<3>", "MasterBump")
- KitchenIni.DeleteKey("GrillTop<3>", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom<3>", "MasterBump")
- KitchenIni.DeleteKey("HvGrillTop<3>", "MasterBump")
- KitchenIni.DeleteKey("HvGrillBottom<3>", "MasterBump")
- KitchenIni.DeleteKey("Grill3<3>", "MasterBump")
- KitchenIni.DeleteKey("GrillTop3<3>", "MasterBump")
- KitchenIni.DeleteKey("GrillBottom3<3>", "MasterBump")
- KitchenIni.DeleteKey("Expedite", "MasterBump")
- KitchenIni.DeleteKey("Expedite2", "MasterBump")
- KitchenIni.DeleteKey("Drive", "MasterBump")
- KitchenIni.DeleteKey("Drive2", "MasterBump")
- KitchenIni.DeleteKey("Fountain", "MasterBump")
- KitchenIni.DeleteKey("FountainTop", "MasterBump")
- KitchenIni.DeleteKey("FountainBottom", "MasterBump")
- KitchenIni.DeleteKey("Fountain2", "MasterBump")
- KitchenIni.DeleteKey("FountainTop2", "MasterBump")
- KitchenIni.DeleteKey("FountainBottom2", "MasterBump")
- KitchenIni.DeleteKey("Fry", "MasterBump")
- KitchenIni.DeleteKey("FryTop", "MasterBump")
- KitchenIni.DeleteKey("FryBottom", "MasterBump")
- '*********************************************************************************
- 'Set Monitor Names and Numbers
- KitchenIni.WriteInteger("Monitors", "NumMonitors", PosMaint.NumberOfMonitors)
- For xLoop As Integer = 0 To PosMaint.MonitorsDef.Count - 1
- KitchenIni.WriteString("Monitors", PosMaint.MonitorsDef(xLoop).MonitorNumber.ToString, PosMaint.MonitorsDef(xLoop).KitchenININame)
- KitchenIni.WriteString(PosMaint.MonitorsDef(xLoop).KitchenININame, "MasterBump", PosMaint.MonitorsDef(xLoop).MasterBump.ToString)
- If PosMaint.MonitorsDef(xLoop).FowardingMask > 0 Then
- KitchenIni.WriteString(PosMaint.MonitorsDef(xLoop).KitchenININame, "ForwardingMask", PosMaint.MonitorsDef(xLoop).FowardingMask.ToString)
- End If
- Next
- '*********************************************************************************
- '*********************************************************************************
- 'Load up Monitors Class
- Dim MonitorDefGrill As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Grill, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefGrillTop As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Grill, PosMaint10.eKitchenMonitorPostion.Top)
- Dim MonitorDefGrillBottom As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Grill, PosMaint10.eKitchenMonitorPostion.Bottom)
- Dim MonitorDefGrill3Top As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Grill3, PosMaint10.eKitchenMonitorPostion.Top)
- Dim MonitorDefGrill3Bottom As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Grill3, PosMaint10.eKitchenMonitorPostion.Bottom)
- Dim MonitorDefFry As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fry, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefFryTop As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fry, PosMaint10.eKitchenMonitorPostion.Top)
- Dim MonitorDefFryBottom As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fry, PosMaint10.eKitchenMonitorPostion.Bottom)
- Dim MonitorDefFountain As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fountain, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefFountainTop As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fountain, PosMaint10.eKitchenMonitorPostion.Top)
- Dim MonitorDefFountainBottom As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fountain, PosMaint10.eKitchenMonitorPostion.Bottom)
- Dim MonitorDefFountain2Top As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fountain2, PosMaint10.eKitchenMonitorPostion.Top)
- Dim MonitorDefFountain2Bottom As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Fountain2, PosMaint10.eKitchenMonitorPostion.Bottom)
- Dim MonitorDefExpedite As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Expedite, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefDrive As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Drive, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefExpedite2 As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Expedite2, PosMaint10.eKitchenMonitorPostion.None)
- Dim MonitorDefDrive2 As PosMaint10.clsMonitorDef = PosMaint.MonitorDef(PosMaint10.eKitchenMonitorName.Drive2, PosMaint10.eKitchenMonitorPostion.None)
- '*********************************************************************************
- '*********************************************************************************
- 'Set Monitor Titles, Dest, and DestMast
- 'Grill(s)
- If MonitorDefGrill IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefGrill.KitchenININame, "Title", (MonitorDefGrill.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefGrill.KitchenININame, "Mask", MonitorDefGrill.Mask(0))
- KitchenIni.WriteString(MonitorDefGrill.KitchenININame, "DestMask", MonitorDefGrill.DestMaskFlags(0))
- Else
- 'Grill Top
- Dim GrillTopSplitName As String = MonitorDefGrillTop.SplitName.ToString
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame, "Title", (MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefGrillTop.KitchenININame, "Mask", MonitorDefGrillTop.Mask(0))
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame, "DestMask", MonitorDefGrillTop.DestMaskFlags(0))
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame & "<2>", "Title", (MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " (HV)")
- KitchenIni.WriteInteger(MonitorDefGrillTop.KitchenININame & "<2>", "Mask", MonitorDefGrillTop.Mask(2))
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame & "<2>", "DestMask", MonitorDefGrillTop.DestMaskFlags(2))
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame & "<3>", "Title", (MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " (OD)")
- KitchenIni.WriteInteger(MonitorDefGrillTop.KitchenININame & "<3>", "Mask", MonitorDefGrillTop.Mask(3))
- KitchenIni.WriteString(MonitorDefGrillTop.KitchenININame & "<3>", "DestMask", MonitorDefGrillTop.DestMaskFlags(3))
- 'Grill Bottom
- Dim GrillBottomSplitName As String = MonitorDefGrillBottom.SplitName.ToString
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame, "Title", (MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefGrillBottom.KitchenININame, "Mask", MonitorDefGrillBottom.Mask(0))
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame, "DestMask", MonitorDefGrillBottom.DestMaskFlags(0))
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame & "<2>", "Title", (MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " (HV)")
- KitchenIni.WriteInteger(MonitorDefGrillBottom.KitchenININame & "<2>", "Mask", MonitorDefGrillBottom.Mask(2))
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame & "<2>", "DestMask", MonitorDefGrillBottom.DestMaskFlags(2))
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame & "<3>", "Title", (MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " (OD)")
- KitchenIni.WriteInteger(MonitorDefGrillBottom.KitchenININame & "<3>", "Mask", MonitorDefGrillBottom.Mask(3))
- KitchenIni.WriteString(MonitorDefGrillBottom.KitchenININame & "<3>", "DestMask", MonitorDefGrillBottom.DestMaskFlags(3))
- 'HVGrill Top
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame, "Title", ("HV" & MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillTop.KitchenININame, "Mask", MonitorDefGrillTop.Mask(0))
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame, "DestMask", MonitorDefGrillTop.DestMaskFlags(0))
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame & "<2>", "Title", ("HV" & MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillTop.KitchenININame & "<2>", "Mask", MonitorDefGrillTop.Mask(2))
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame & "<2>", "DestMask", MonitorDefGrillTop.DestMaskFlags(2))
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame & "<3>", "Title", ("HV" & MonitorDefGrillTop.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillTop.KitchenININame & "<3>", "Mask", MonitorDefGrillTop.Mask(3))
- KitchenIni.WriteString("HV" & MonitorDefGrillTop.KitchenININame & "<3>", "DestMask", MonitorDefGrillTop.DestMaskFlags(3))
- 'HVGrill Bottom
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame, "Title", ("HV" & MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillBottom.KitchenININame, "Mask", MonitorDefGrillBottom.Mask(0))
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame, "DestMask", MonitorDefGrillBottom.DestMaskFlags(0))
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame & "<2>", "Title", ("HV" & MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " (HV)")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillBottom.KitchenININame & "<2>", "Mask", MonitorDefGrillBottom.Mask(2))
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame & "<2>", "DestMask", MonitorDefGrillBottom.DestMaskFlags(2))
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame & "<3>", "Title", ("HV" & MonitorDefGrillBottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " (OD)")
- KitchenIni.WriteInteger("HV" & MonitorDefGrillBottom.KitchenININame & "<3>", "Mask", MonitorDefGrillBottom.Mask(3))
- KitchenIni.WriteString("HV" & MonitorDefGrillBottom.KitchenININame & "<3>", "DestMask", MonitorDefGrillBottom.DestMaskFlags(3))
- 'Grill3 Top
- If PosMaint.MonitorsDefinedList.Contains("Grill3") Then
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame, "Title", (MonitorDefGrill3Top.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger(MonitorDefGrill3Top.KitchenININame, "Mask", MonitorDefGrill3Top.Mask(0))
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame, "DestMask", MonitorDefGrill3Top.DestMaskFlags(0))
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame & "<2>", "Title", (MonitorDefGrill3Top.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger(MonitorDefGrill3Top.KitchenININame & "<2>", "Mask", MonitorDefGrill3Top.Mask(2))
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame & "<2>", "DestMask", MonitorDefGrill3Top.DestMaskFlags(2))
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame & "<3>", "Title", (MonitorDefGrill3Top.Monitor.ToString & " " & GrillTopSplitName.ToString).Trim & " (OD)")
- KitchenIni.WriteInteger(MonitorDefGrill3Top.KitchenININame & "<3>", "Mask", MonitorDefGrill3Top.Mask(3))
- KitchenIni.WriteString(MonitorDefGrill3Top.KitchenININame & "<3>", "DestMask", MonitorDefGrill3Top.DestMaskFlags(3))
- 'Grill3 Bottom
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame, "Title", (MonitorDefGrill3Bottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger(MonitorDefGrill3Bottom.KitchenININame, "Mask", MonitorDefGrill3Bottom.Mask(0))
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame, "DestMask", MonitorDefGrill3Bottom.DestMaskFlags(0))
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame & "<2>", "Title", (MonitorDefGrill3Bottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " Closed")
- KitchenIni.WriteInteger(MonitorDefGrill3Bottom.KitchenININame & "<2>", "Mask", MonitorDefGrill3Bottom.Mask(2))
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame & "<2>", "DestMask", MonitorDefGrill3Bottom.DestMaskFlags(2))
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame & "<3>", "Title", (MonitorDefGrill3Bottom.Monitor.ToString & " " & GrillBottomSplitName.ToString).Trim & " (OD)")
- KitchenIni.WriteInteger(MonitorDefGrill3Bottom.KitchenININame & "<3>", "Mask", MonitorDefGrill3Bottom.Mask(3))
- KitchenIni.WriteString(MonitorDefGrill3Bottom.KitchenININame & "<3>", "DestMask", MonitorDefGrill3Bottom.DestMaskFlags(3))
- End If
- End If
- 'Fry
- If MonitorDefFry IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefFry.KitchenININame, "Title", (MonitorDefFry.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefFry.KitchenININame, "Mask", MonitorDefFry.Mask(0))
- KitchenIni.WriteString(MonitorDefFry.KitchenININame, "DestMask", MonitorDefFry.DestMaskFlags(0))
- Else
- If MonitorDefFryTop IsNot Nothing Then
- 'Fry Top
- Dim FryTopSplitName As String = MonitorDefFryTop.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFryTop.KitchenININame, "Title", (MonitorDefFryTop.Monitor.ToString & " " & FryTopSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFryTop.KitchenININame, "Mask", MonitorDefFryTop.Mask(0))
- KitchenIni.WriteString(MonitorDefFryTop.KitchenININame, "DestMask", MonitorDefFryTop.DestMaskFlags(0))
- End If
- If MonitorDefFryBottom IsNot Nothing Then
- 'Fry Bottom
- Dim FryBottomSplitName As String = MonitorDefFryBottom.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFryBottom.KitchenININame, "Title", (MonitorDefFryBottom.Monitor.ToString & " " & FryBottomSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFryBottom.KitchenININame, "Mask", MonitorDefFryBottom.Mask(0))
- KitchenIni.WriteString(MonitorDefFryBottom.KitchenININame, "DestMask", MonitorDefFryBottom.DestMaskFlags(0))
- End If
- End If
- 'Fountain(s)
- If MonitorDefFountain IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefFountain.KitchenININame, "Title", (MonitorDefFountain.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefFountain.KitchenININame, "Mask", MonitorDefFountain.Mask(0))
- KitchenIni.WriteString(MonitorDefFountain.KitchenININame, "DestMask", MonitorDefFountain.DestMaskFlags(0))
- Else
- If MonitorDefFountainTop IsNot Nothing Then
- 'Fountain Top
- Dim FountainTopSplitName As String = MonitorDefFountainTop.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFountainTop.KitchenININame, "Title", (MonitorDefFountainTop.Monitor.ToString & " " & FountainTopSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFountainTop.KitchenININame, "Mask", MonitorDefFountainTop.Mask(0))
- KitchenIni.WriteString(MonitorDefFountainTop.KitchenININame, "DestMask", MonitorDefFountainTop.DestMaskFlags(0))
- End If
- If MonitorDefFountainBottom IsNot Nothing Then
- 'Fountain Bottom
- Dim FountainBottomSplitName As String = MonitorDefFountainBottom.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFountainBottom.KitchenININame, "Title", (MonitorDefFountainBottom.Monitor.ToString & " " & FountainBottomSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFountainBottom.KitchenININame, "Mask", MonitorDefFountainBottom.Mask(0))
- KitchenIni.WriteString(MonitorDefFountainBottom.KitchenININame, "DestMask", MonitorDefFountainBottom.DestMaskFlags(0))
- End If
- End If
- 'Fountain2
- If PosMaint.MonitorsDefinedList.Contains("Fountain2") Then
- ' Fountain2 Top
- Dim Fountain2TopSplitName As String = MonitorDefFountainTop.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFountain2Top.KitchenININame, "Title", (MonitorDefFountain2Top.Monitor.ToString & " " & Fountain2TopSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFountain2Top.KitchenININame, "Mask", MonitorDefFountain2Top.Mask(0))
- KitchenIni.WriteString(MonitorDefFountain2Top.KitchenININame, "DestMask", MonitorDefFountain2Top.DestMaskFlags(0))
- ' Fountain2 Bottom
- Dim Fountain2BottomSplitName As String = MonitorDefFountainBottom.SplitName.ToString
- KitchenIni.WriteString(MonitorDefFountain2Bottom.KitchenININame, "Title", (MonitorDefFountain2Bottom.Monitor.ToString & " " & Fountain2BottomSplitName).Trim)
- KitchenIni.WriteInteger(MonitorDefFountain2Bottom.KitchenININame, "Mask", MonitorDefFountain2Bottom.Mask(0))
- KitchenIni.WriteString(MonitorDefFountain2Bottom.KitchenININame, "DestMask", MonitorDefFountain2Bottom.DestMaskFlags(0))
- 'Expedite
- If MonitorDefExpedite IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefExpedite.KitchenININame, "Title", (MonitorDefExpedite.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefExpedite.KitchenININame, "Mask", MonitorDefExpedite.Mask(0))
- KitchenIni.WriteString(MonitorDefExpedite.KitchenININame, "DestMask", MonitorDefExpedite.DestMaskFlags(0))
- End If
- End If
- 'Drive
- If MonitorDefDrive IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefDrive.KitchenININame, "Title", (MonitorDefDrive.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefDrive.KitchenININame, "Mask", MonitorDefDrive.Mask(0))
- KitchenIni.WriteString(MonitorDefDrive.KitchenININame, "DestMask", MonitorDefDrive.DestMaskFlags(0))
- End If
- 'Drive2
- If MonitorDefDrive2 IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefDrive2.KitchenININame, "Title", (MonitorDefDrive2.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefDrive2.KitchenININame, "Mask", MonitorDefDrive2.Mask(0))
- KitchenIni.WriteString(MonitorDefDrive2.KitchenININame, "DestMask", MonitorDefDrive2.DestMaskFlags(0))
- End If
- 'Expedite
- If MonitorDefExpedite IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefExpedite.KitchenININame, "Title", (MonitorDefExpedite.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefExpedite.KitchenININame, "Mask", MonitorDefExpedite.Mask(0))
- KitchenIni.WriteString(MonitorDefExpedite.KitchenININame, "DestMask", MonitorDefExpedite.DestMaskFlags(0))
- End If
- 'Expedite2
- If MonitorDefExpedite2 IsNot Nothing Then
- KitchenIni.WriteString(MonitorDefExpedite2.KitchenININame, "Title", (MonitorDefExpedite2.Monitor.ToString).Trim)
- KitchenIni.WriteInteger(MonitorDefExpedite2.KitchenININame, "Mask", MonitorDefExpedite2.Mask(0))
- KitchenIni.WriteString(MonitorDefExpedite2.KitchenININame, "DestMask", MonitorDefExpedite2.DestMaskFlags(0))
- End If
- '*********************************************************************************
- '*********************************************************************************
- 'Set Redundant Kitchen
- If PosMaint.RedundantKitchen Then
- KitchenIni.WriteInteger("Monitors", "RedundantID", 0)
- KitchenIni.WriteInteger("Monitors", "LocateActiveTimeout", 15)
- KitchenIni.WriteInteger("Monitors", "SendOrderTimeout", 5)
- Else
- KitchenIni.DeleteKey("Monitors", "RedundantID")
- KitchenIni.DeleteKey("Monitors", "LocateActiveTimeout")
- KitchenIni.DeleteKey("Monitors", "SendOrderTimeout")
- End If
- '*********************************************************************************
- '**********************************************************************************************
- 'P.E. 7/16/2018
- 'Start of clean up of ResequenceOrderOnPaid
- 'Scheme 1 clean up of ResequenceOrderOnPaid
- KitchenIni.DeleteKey("Grill", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillTop", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillBottom", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillTop", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillBottom", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Drive", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fry", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryTop", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryBottom", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fountain", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainTop", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainBottom", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite2", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite3", "ResequenceOrderOnPaid")
- 'Scheme 2 needs in case Load Balancing
- KitchenIni.DeleteKey("Grill<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillTop<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillBottom<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillTop<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillBottom<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Drive<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fry<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryTop<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryBottom<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fountain<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainTop<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainBottom<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite2<2>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite3<2>", "ResequenceOrderOnPaid")
- 'Might as well cleanup Scheme 3 in case
- KitchenIni.DeleteKey("Grill<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillTop<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("GrillBottom<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillTop<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("HVGrillBottom<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Drive<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fry<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryTop<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FryBottom<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Fountain<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainTop<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("FountainBottom<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite2<3>", "ResequenceOrderOnPaid")
- KitchenIni.DeleteKey("Expedite3<3>", "ResequenceOrderOnPaid")
- 'End of clean up of ResequenceOrderOnPaid
- If PosMaint.DriveOrderTaker = PosMaint10.eDriveOrderTaker.Dual Then
- KitchenIni.WriteString("Drive", "ResequenceOrderOnPaid", "1")
- KitchenIni.WriteString("Drive2", "ResequenceOrderOnPaid", "1")
- End If
- '**********************************************************************************************
- 'Set according to Monitor Types
- If PosMaint.KitchenMonitorType = PosMaint10.eKitchenMonitorType.LS6000 Then
- 'Address of LS6000
- 'Grill = 41
- 'Drive = 42
- 'Fountain = 43
- 'Fountain2 = 44
- 'Expedite = 45
- 'Expedite2 = 46
- 'HVGrill = 47
- 'Grill3 = 48
- 'Fry = 49
- 'Drive2 = 50
- 'Grill
- KitchenIni.WriteString("grill", "MonType", "LS6000")
- KitchenIni.WriteString("grill", "Address", "1")
- KitchenIni.WriteString("grill", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("grill", "netport", "8888")
- 'GrillTop
- KitchenIni.WriteString("GrillTop", "MonType", "LS6000")
- KitchenIni.WriteString("GrillTop", "Address", "1")
- KitchenIni.WriteString("GrillTop", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("GrillTop", "netport", "8888")
- 'GrillTop<2>
- KitchenIni.WriteString("GrillTop<2>", "Address", "1")
- 'GrillTop<3>
- KitchenIni.WriteString("GrillTop<3>", "Address", "1")
- 'GrillBottom
- KitchenIni.WriteString("GrillBottom", "MonType", "LS6000")
- KitchenIni.WriteString("GrillBottom", "Address", "1")
- KitchenIni.WriteString("GrillBottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("GrillBottom", "netport", "8888")
- 'GrillBottom<2>
- KitchenIni.WriteString("GrillBottom<2>", "Address", "32")
- 'GrillBottom<3>
- KitchenIni.WriteString("GrillBottom<3>", "Address", "32")
- 'HVGrillTop
- KitchenIni.WriteString("HVGrillTop", "MonType", "LS6000")
- KitchenIni.WriteString("HVGrillTop", "Address", "1")
- KitchenIni.WriteString("HVGrillTop", "netaddr", "10.77.77.47")
- KitchenIni.WriteString("HVGrillTop", "netport", "8888")
- 'HVGrillTop<2>
- KitchenIni.WriteString("HVGrillTop<2>", "Address", "32")
- 'HVGrillTopTop<3>
- KitchenIni.WriteString("HVGrillTop<3>", "Address", "32")
- 'HVGrillBottom
- KitchenIni.WriteString("HVGrillBottom", "MonType", "LS6000")
- KitchenIni.WriteString("HVGrillBottom", "Address", "1")
- KitchenIni.WriteString("HVGrillBottom", "netaddr", "10.77.77.47")
- KitchenIni.WriteString("HVGrillBottom", "netport", "8888")
- 'HVGrillBottom<2>
- KitchenIni.WriteString("HVGrillBottom<2>", "Address", "1")
- 'HVGrillTopBottom<3>
- KitchenIni.WriteString("HVGrillTopBottom", "Address", "1")
- 'Grill3Top
- KitchenIni.WriteString("Grill3Top", "MonType", "LS6000")
- KitchenIni.WriteString("Grill3Top", "Address", "1")
- KitchenIni.WriteString("Grill3Top", "netaddr", "10.77.77.48")
- KitchenIni.WriteString("Grill3Top", "netport", "8888")
- 'Grill3Top<2>
- KitchenIni.WriteString("Grill3Top<2>", "Address", "1")
- 'GrillTop<3>
- KitchenIni.WriteString("Grill3Top<3>", "Address", "1")
- 'Grill3Bottom
- KitchenIni.WriteString("Grill3Bottom", "MonType", "LS6000")
- KitchenIni.WriteString("Grill3Bottom", "Address", "1")
- KitchenIni.WriteString("Grill3Bottom", "netaddr", "10.77.77.48")
- KitchenIni.WriteString("Grill3Bottom", "netport", "8888")
- 'Grill3Bottom<2>
- KitchenIni.WriteString("Grill3Bottom<2>", "Address", "1")
- 'Grill3Bottom<3>
- KitchenIni.WriteString("Grill3Bottom<3>", "Address", "1")
- 'Drive
- KitchenIni.WriteString("Drive", "MonType", "LS6000")
- KitchenIni.WriteString("Drive", "Address", "1")
- KitchenIni.WriteString("Drive", "netaddr", "10.77.77.42")
- KitchenIni.WriteString("Drive", "netport", "8888")
- 'Fry
- KitchenIni.WriteString("Fry", "MonType", "LS6000")
- KitchenIni.WriteString("Fry", "Address", "1")
- KitchenIni.WriteString("Fry", "netaddr", "10.77.77.49")
- KitchenIni.WriteString("Fry", "netport", "8888")
- 'FryTop
- KitchenIni.WriteString("FryTop", "MonType", "LS6000")
- KitchenIni.WriteString("FryTop", "Address", "1")
- KitchenIni.WriteString("FryTop", "netaddr", "10.77.77.49")
- KitchenIni.WriteString("FryTop", "netport", "8888")
- 'FryBottom
- KitchenIni.WriteString("FryBottom", "MonType", "LS6000")
- KitchenIni.WriteString("FryBottom", "Address", "1")
- KitchenIni.WriteString("FryBottom", "netaddr", "10.77.77.49")
- KitchenIni.WriteString("FryBottom", "netport", "8888")
- 'Fountain
- KitchenIni.WriteString("Fountain", "MonType", "LS6000")
- KitchenIni.WriteString("Fountain", "Address", "1")
- KitchenIni.WriteString("Fountain", "netaddr", "10.77.77.43")
- KitchenIni.WriteString("Fountain", "netport", "8888")
- 'FountainTop
- KitchenIni.WriteString("FountainTop", "MonType", "LS6000")
- KitchenIni.WriteString("FountainTop", "Address", "1")
- KitchenIni.WriteString("FountainTop", "netaddr", "10.77.77.43")
- KitchenIni.WriteString("FountainTop", "netport", "8888")
- 'FountainBottom
- KitchenIni.WriteString("FountainBottom", "MonType", "LS6000")
- KitchenIni.WriteString("FountainBottom", "Address", "1")
- KitchenIni.WriteString("FountainBottom", "netaddr", "10.77.77.43")
- KitchenIni.WriteString("FountainBottom", "netport", "8888")
- 'Fountain2Top
- KitchenIni.WriteString("Fountain2Top", "MonType", "LS6000")
- KitchenIni.WriteString("Fountain2Top", "Address", "1")
- KitchenIni.WriteString("Fountain2Top", "netaddr", "10.77.77.44")
- KitchenIni.WriteString("Fountain2Top", "netport", "8888")
- 'Fountain2Bottom
- KitchenIni.WriteString("Fountain2Bottom", "MonType", "LS6000")
- KitchenIni.WriteString("Fountain2Bottom", "Address", "1")
- KitchenIni.WriteString("Fountain2Bottom", "netaddr", "10.77.77.44")
- KitchenIni.WriteString("Fountain2Bottom", "netport", "8888")
- 'Expedite
- KitchenIni.WriteString("Expedite", "MonType", "LS6000")
- KitchenIni.WriteString("Expedite", "Address", "1")
- KitchenIni.WriteString("Expedite", "netaddr", "10.77.77.45")
- KitchenIni.WriteString("Expedite", "netport", "8888")
- 'Expedite2
- KitchenIni.WriteString("Expedite2", "MonType", "LS6000")
- KitchenIni.WriteString("Expedite2", "Address", "1")
- KitchenIni.WriteString("Expedite2", "netaddr", "10.77.77.46")
- KitchenIni.WriteString("Expedite2", "netport", "8888")
- 'Drive2
- KitchenIni.WriteString("Drive2", "MonType", "LS6000")
- KitchenIni.WriteString("Drive2", "Address", "1")
- KitchenIni.WriteString("Drive2", "netaddr", "10.77.77.50")
- KitchenIni.WriteString("Drive2", "netport", "8888")
- ElseIf PosMaint.KitchenMonitorType = PosMaint10.eKitchenMonitorType.EKitchen Then
- 'Grill
- KitchenIni.WriteString("grill", "MonType", "ekitchen")
- KitchenIni.WriteString("grill", "Address", "1")
- KitchenIni.WriteString("grill", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("grill", "netport", "6969")
- 'GrillTop
- KitchenIni.WriteString("GrillTop", "MonType", "ekitchen")
- KitchenIni.WriteString("GrillTop", "Address", "1")
- KitchenIni.WriteString("GrillTop", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("GrillTop", "netport", "6969")
- KitchenIni.WriteString("GrillTop", "eKitchenIndex", "1")
- KitchenIni.WriteString("GrillTop", "left", "0")
- KitchenIni.WriteString("GrillTop", "right", "79")
- KitchenIni.WriteString("GrillTop", "top", "0")
- KitchenIni.WriteString("GrillTop", "bottom", "15")
- KitchenIni.WriteString("GrillTop", "fontsize", "31")
- 'GrillTop<2>
- KitchenIni.WriteString("GrillTop<2>", "Address", "1")
- 'GrillTop<3>
- KitchenIni.WriteString("GrillTop<3>", "Address", "1")
- 'GrillBottom
- KitchenIni.WriteString("GrillBottom", "MonType", "ekitchen")
- KitchenIni.WriteString("GrillBottom", "Address", "1")
- KitchenIni.WriteString("GrillBottom", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("GrillBottom", "netport", "6969")
- KitchenIni.WriteString("GrillBottom", "eKitchenIndex", "2")
- KitchenIni.WriteString("GrillBottom", "left", "0")
- KitchenIni.WriteString("GrillBottom", "right", "79")
- KitchenIni.WriteString("GrillBottom", "top", "15")
- KitchenIni.WriteString("GrillBottom", "bottom", "30")
- KitchenIni.WriteString("GrillBottom", "fontsize", "31")
- 'GrillBottom<2>
- KitchenIni.WriteString("GrillBottom<2>", "Address", "32")
- 'GrillBottom<3>
- KitchenIni.WriteString("GrillBottom<3>", "Address", "32")
- 'HVGrillTop
- KitchenIni.WriteString("HVGrillTop", "MonType", "ekitchen")
- KitchenIni.WriteString("HVGrillTop", "Address", "7")
- KitchenIni.WriteString("HVGrillTop", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("HVGrillTop", "netport", "6969")
- KitchenIni.WriteString("HVGrillTop", "FontSize", "31")
- 'HVGrillTop<2>
- KitchenIni.WriteString("HVGrillTop<2>", "Address", "32")
- 'HVGrillTop<3>
- KitchenIni.WriteString("HVGrillTop<3>", "Address", "7")
- 'HVGrillBottom
- KitchenIni.WriteString("HVGrillBottom", "MonType", "ekitchen")
- KitchenIni.WriteString("HVGrillBottom", "Address", "7")
- KitchenIni.WriteString("HVGrillBottom", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("HVGrillBottom", "netport", "6969")
- KitchenIni.WriteString("HVGrillBottom", "FontSize", "31")
- 'HVGrillBottom<2>
- KitchenIni.WriteString("HVGrillBottom<2>", "Address", "7")
- 'HVGrillBottom<3>
- KitchenIni.WriteString("HVGrillBottom<3>", "Address", "7")
- 'Drive
- KitchenIni.WriteString("Drive", "MonType", "ekitchen")
- KitchenIni.WriteString("Drive", "Address", "2")
- KitchenIni.WriteString("Drive", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Drive", "netport", "6969")
- KitchenIni.WriteString("Drive", "FontSize", "31")
- 'Fry
- KitchenIni.WriteString("Fry", "MonType", "ekitchen")
- KitchenIni.WriteString("Fry", "Address", "9")
- KitchenIni.WriteString("Fry", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Fry", "netport", "6969")
- KitchenIni.WriteString("Fry", "FontSize", "31")
- 'FryTop
- KitchenIni.WriteString("FryTop", "MonType", "ekitchen")
- KitchenIni.WriteString("FryTop", "Address", "9")
- KitchenIni.WriteString("FryTop", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("FryTop", "netport", "6969")
- KitchenIni.WriteString("FryTop", "eKitchenIndex", "1")
- KitchenIni.WriteString("FryTop", "left", "0")
- KitchenIni.WriteString("FryTop", "right", "79")
- KitchenIni.WriteString("FryTop", "top", "0")
- KitchenIni.WriteString("FryTop", "bottom", "15")
- KitchenIni.WriteString("FryTop", "FontSize", "31")
- 'FryBottom
- KitchenIni.WriteString("FryBottom", "MonType", "ekitchen")
- KitchenIni.WriteString("FryBottom", "Address", "9")
- KitchenIni.WriteString("FryBottom", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("FryBottom", "netport", "6969")
- KitchenIni.WriteString("FryBottom", "eKitchenIndex", "2")
- KitchenIni.WriteString("FryBottom", "left", "0")
- KitchenIni.WriteString("FryBottom", "right", "79")
- KitchenIni.WriteString("FryBottom", "top", "15")
- KitchenIni.WriteString("FryBottom", "bottom", "30")
- KitchenIni.WriteString("FryBottom", "FontSize", "31")
- 'Fountain
- KitchenIni.WriteString("Fountain", "MonType", "ekitchen")
- KitchenIni.WriteString("Fountain", "Address", "3")
- KitchenIni.WriteString("Fountain", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Fountain", "netport", "6969")
- KitchenIni.WriteString("Fountain", "FontSize", "31")
- 'FountainTop
- KitchenIni.WriteString("FountainTop", "MonType", "ekitchen")
- KitchenIni.WriteString("FountainTop", "Address", "3")
- KitchenIni.WriteString("FountainTop", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("FountainTop", "netport", "6969")
- KitchenIni.WriteString("FountainTop", "eKitchenIndex", "1")
- KitchenIni.WriteString("FountainTop", "left", "0")
- KitchenIni.WriteString("FountainTop", "right", "79")
- KitchenIni.WriteString("FountainTop", "top", "0")
- KitchenIni.WriteString("FountainTop", "bottom", "15")
- KitchenIni.WriteString("FountainTop", "FontSize", "31")
- 'FountainBottom
- KitchenIni.WriteString("FountainBottom", "MonType", "ekitchen")
- KitchenIni.WriteString("FountainBottom", "Address", "3")
- KitchenIni.WriteString("FountainBottom", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("FountainBottom", "netport", "6969")
- KitchenIni.WriteString("FountainBottom", "eKitchenIndex", "2")
- KitchenIni.WriteString("FountainBottom", "left", "0")
- KitchenIni.WriteString("FountainBottom", "right", "79")
- KitchenIni.WriteString("FountainBottom", "top", "15")
- KitchenIni.WriteString("FountainBottom", "bottom", "30")
- KitchenIni.WriteString("FountainBottom", "FontSize", "31")
- 'Expedite
- KitchenIni.WriteString("Expedite", "MonType", "ekitchen")
- KitchenIni.WriteString("Expedite", "Address", "5")
- KitchenIni.WriteString("Expedite", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Expedite", "netport", "6969")
- KitchenIni.WriteString("Expedite", "FontSize", "31")
- 'Expedite2
- KitchenIni.WriteString("Expedite2", "MonType", "ekitchen")
- KitchenIni.WriteString("Expedite2", "Address", "6")
- KitchenIni.WriteString("Expedite2", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Expedite2", "netport", "6969")
- KitchenIni.WriteString("Expedite2", "FontSize", "31")
- 'Expedite3
- KitchenIni.WriteString("Expedite3", "MonType", "ekitchen")
- KitchenIni.WriteString("Expedite3", "Address", "10")
- KitchenIni.WriteString("Expedite3", "netaddr", "127.0.0.1")
- KitchenIni.WriteString("Expedite3", "netport", "6969")
- KitchenIni.WriteString("Expedite3", "FontSize", "31")
- ElseIf PosMaint.KitchenMonitorType = PosMaint10.eKitchenMonitorType.LS3000 Then
- 'Address of LS3000
- 'Grill = 1
- 'Drive = 2
- 'Fountain = 3
- 'Fountain2 = 4
- 'Expedite = 5
- 'Expedite2 = 6
- 'HVGrill = 7
- 'Grill3 = 8
- 'Fry = 9
- 'Drive2 = 10
- 'Grill
- KitchenIni.WriteString("grill", "MonType", "jl")
- KitchenIni.WriteString("grill", "Address", "1")
- KitchenIni.WriteString("grill", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("grill", "netport", "3000")
- 'GrillTop
- KitchenIni.WriteString("GrillTop", "MonType", "jl")
- KitchenIni.WriteString("GrillTop", "Address", "1")
- KitchenIni.WriteString("GrillTop", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("GrillTop", "netport", "3000")
- 'GrillTop<2>
- KitchenIni.WriteString("GrillTop<2>", "Address", "1")
- 'GrillTop<3>
- KitchenIni.WriteString("GrillTop<3>", "Address", "1")
- 'GrillBottom
- KitchenIni.WriteString("GrillBottom", "MonType", "jl")
- KitchenIni.WriteString("GrillBottom", "Address", "1")
- KitchenIni.WriteString("GrillBottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("GrillBottom", "netport", "3000")
- 'GrillBottom<2>
- KitchenIni.WriteString("GrillBottom<2>", "Address", "32")
- 'GrillBottom<3>
- KitchenIni.WriteString("GrillBottom<3>", "Address", "32")
- 'HVGrillTop
- KitchenIni.WriteString("HVGrillTop", "MonType", "jl")
- KitchenIni.WriteString("HVGrillTop", "Address", "7")
- KitchenIni.WriteString("HVGrillTop", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("HVGrillTop", "netport", "3000")
- 'HVGrillTop<2>
- KitchenIni.WriteString("HVGrillTop<2>", "Address", "32")
- 'HVGrillTop<3>
- KitchenIni.WriteString("HVGrillTop<3>", "Address", "7")
- 'HVGrillBottom
- KitchenIni.WriteString("HVGrillBottom", "MonType", "jl")
- KitchenIni.WriteString("HVGrillBottom", "Address", "7")
- KitchenIni.WriteString("HVGrillBottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("HVGrillBottom", "netport", "3000")
- 'HVGrillBottom<2>
- KitchenIni.WriteString("HVGrillBottom<2>", "Address", "7")
- 'HVGrillBottom<3>
- KitchenIni.WriteString("HVGrillBottom<3>", "Address", "7")
- 'Grill3Top
- KitchenIni.WriteString("Grill3Top", "MonType", "jl")
- KitchenIni.WriteString("Grill3Top", "Address", "8")
- KitchenIni.WriteString("Grill3Top", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Grill3Top", "netport", "3000")
- 'Grill3Top<2>
- KitchenIni.WriteString("Grill3Top<2>", "Address", "8")
- 'Grill3Top<3>
- KitchenIni.WriteString("Grill3Top<3>", "Address", "8")
- 'Grill3Bottom
- KitchenIni.WriteString("Grill3Bottom", "MonType", "jl")
- KitchenIni.WriteString("Grill3Bottom", "Address", "8")
- KitchenIni.WriteString("Grill3Bottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Grill3Bottom", "netport", "3000")
- 'Grill3Bottom<2>
- KitchenIni.WriteString("Grill3Bottom<2>", "Address", "8")
- 'Grill3Bottom<3>
- KitchenIni.WriteString("Grill3Bottom<3>", "Address", "8")
- 'Drive
- KitchenIni.WriteString("Drive", "MonType", "jl")
- KitchenIni.WriteString("Drive", "Address", "2")
- KitchenIni.WriteString("Drive", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Drive", "netport", "3000")
- 'Fry
- KitchenIni.WriteString("Fry", "MonType", "jl")
- KitchenIni.WriteString("Fry", "Address", "9")
- KitchenIni.WriteString("Fry", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Fry", "netport", "3000")
- 'FryTop
- KitchenIni.WriteString("FryTop", "MonType", "jl")
- KitchenIni.WriteString("FryTop", "Address", "9")
- KitchenIni.WriteString("FryTop", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("FryTop", "netport", "3000")
- 'FryBottom
- KitchenIni.WriteString("FryBottom", "MonType", "jl")
- KitchenIni.WriteString("FryBottom", "Address", "9")
- KitchenIni.WriteString("FryBottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("FryBottom", "netport", "3000")
- 'Fountain
- KitchenIni.WriteString("Fountain", "MonType", "jl")
- KitchenIni.WriteString("Fountain", "Address", "3")
- KitchenIni.WriteString("Fountain", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Fountain", "netport", "3000")
- 'FountainTop
- KitchenIni.WriteString("FountainTop", "MonType", "jl")
- KitchenIni.WriteString("FountainTop", "Address", "3")
- KitchenIni.WriteString("FountainTop", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("FountainTop", "netport", "3000")
- 'FountainBottom
- KitchenIni.WriteString("FountainBottom", "MonType", "jl")
- KitchenIni.WriteString("FountainBottom", "Address", "3")
- KitchenIni.WriteString("FountainBottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("FountainBottom", "netport", "3000")
- 'Fountain2Top
- KitchenIni.WriteString("Fountain2Top", "MonType", "jl")
- KitchenIni.WriteString("Fountain2Top", "Address", "4")
- KitchenIni.WriteString("Fountain2Top", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Fountain2Top", "netport", "3000")
- 'Fountain2Bottom
- KitchenIni.WriteString("Fountain2Bottom", "MonType", "jl")
- KitchenIni.WriteString("Fountain2Bottom", "Address", "4")
- KitchenIni.WriteString("Fountain2Bottom", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Fountain2Bottom", "netport", "3000")
- 'Expedite
- KitchenIni.WriteString("Expedite", "MonType", "jl")
- KitchenIni.WriteString("Expedite", "Address", "5")
- KitchenIni.WriteString("Expedite", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Expedite", "netport", "3000")
- 'Expedite2
- KitchenIni.WriteString("Expedite2", "MonType", "jl")
- KitchenIni.WriteString("Expedite2", "Address", "6")
- KitchenIni.WriteString("Expedite2", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Expedite2", "netport", "3000")
- 'Drive2
- KitchenIni.WriteString("Drive2", "MonType", "jl")
- KitchenIni.WriteString("Drive2", "Address", "10")
- KitchenIni.WriteString("Drive2", "netaddr", "10.77.77.41")
- KitchenIni.WriteString("Drive2", "netport", "3000")
- End If
- ''**********************************************************************************************
- 'When moving to More than 10 Reg, I left this code from old, but did not do anything withit
- ''PE 1/4/2016 Added Switches for Load Balancing. All sections are clean up above as needed
- 'If PosMaint.IsLoadBalancing Then
- ' KitchenIni.WriteString("Monitors", "LoadBalanceLine1", BitWeightValue_GrillTop.ToString)
- ' KitchenIni.WriteString("Monitors", "LoadBalanceLine2", BitWeightValue_HVGrillBottom.ToString)
- ' KitchenIni.WriteString("GrillTop<2>", "EnableLoadBalancing", "1")
- ' KitchenIni.WriteString("HVGrillBottom<2>", "EnableLoadBalancing", "1")
- ' KitchenIni.WriteString("GrillTop<2>", "Title", "Grill Line 1 (HV)")
- ' KitchenIni.WriteString("HVGrillBottom<2>", "Title", "Grill Line 2 (HV)")
- ' KitchenIni.WriteString("Drive<2>", "head2", "~loadballine,1~~dest,c16~~regnum,1~")
- ' KitchenIni.WriteString("Expedite<2>", "head2", "~loadballine,1~~dest,c16~~regnum,1~")
- ' KitchenIni.WriteString("Expedite<2>2", "head2", "~loadballine,1~~dest,c16~~regnum,1~")
- ' KitchenIni.WriteString("Expedite<3>2", "head2", "~loadballine,1~~dest,c16~~regnum,1~")
- ' For xLoop As Integer = 1 To 9
- ' If RegisterTypeToConfig(xLoop) = eRegisterType.Lobby Then
- ' KitchenIni.WriteInteger("GrillTop<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Lobby_Grill)
- ' KitchenIni.WriteInteger("HVGrillBottom<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Lobby_Grill)
- ' ElseIf RegisterTypeToConfig(xLoop) = eRegisterType.SplitScreen OrElse
- ' RegisterTypeToConfig(xLoop) = eRegisterType.Tender OrElse
- ' RegisterTypeToConfig(xLoop) = eRegisterType.TenderBlockReg OrElse
- ' RegisterTypeToConfig(xLoop) = eRegisterType.DualLane1 OrElse
- ' RegisterTypeToConfig(xLoop) = eRegisterType.DualLane2 Then
- ' KitchenIni.WriteInteger("GrillTop<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Drive_Grill)
- ' KitchenIni.WriteInteger("HVGrillBottom<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Drive_Grill)
- ' ElseIf RegisterTypeToConfig(xLoop) = eRegisterType.Package Then
- ' KitchenIni.WriteInteger("GrillTop<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Package_Grill)
- ' KitchenIni.WriteInteger("HVGrillBottom<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Package_Grill)
- ' ElseIf RegisterTypeToConfig(xLoop) = eRegisterType.Fountain Then
- ' KitchenIni.WriteInteger("GrillTop<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Fountain_Grill)
- ' KitchenIni.WriteInteger("HVGrillBottom<2>", "Reg" & xLoop.ToString.PadLeft(2, "0"c) & "Mask", PosMaint.Fountain_Grill)
- ' End If
- ' Next
- 'Else
- ' KitchenIni.WriteString("GrillTop<2>", "EnableLoadBalancing", "0")
- ' KitchenIni.WriteString("HVGrillBottom<2>", "EnableLoadBalancing", "0")
- ' KitchenIni.DeleteKey("Monitors", "LoadBalanceLine1")
- ' KitchenIni.DeleteKey("Monitors", "LoadBalanceLine2")
- 'End If
- ' KitchenIni.WriteString("grill", "Line", "1")
- ' KitchenIni.WriteString("GrillTop", "Line", "1")
- ' KitchenIni.WriteString("GrillBottom", "Line", "1")
- ' KitchenIni.WriteString("HVGrillTop", "Line", "1")
- ' KitchenIni.WriteString("HVGrillBottom", "Line", "1")
- ' KitchenIni.WriteString("Drive", "Line", "1")
- ' KitchenIni.WriteString("Fountain", "Line", "1")
- ' KitchenIni.WriteString("FountainTop", "Line", "1")
- ' KitchenIni.WriteString("FountainBottom", "Line", "1")
- ' KitchenIni.WriteString("Expedite", "Line", "1")
- ' KitchenIni.WriteString("Expedite2", "Line", "1")
- ' KitchenIni.WriteString("Expedite3", "Line", "1")
- ''****************************************************************************************************
- 'Move to registers
- For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
- Dim RegisterNumber As Integer = PosMaint.RegisterInformations(xLoop).RegisterNumber
- Dim INIFileName As String = "c:\iris\reginfo\Reg" & RegisterNumber & "\ini\kitchen.ini"
- IO.File.Copy("c:\iris\ini\kitchen.ini", INIFileName, True)
- KitchenIni.SetFileName(INIFileName)
- KitchenIni.WriteString("grill", "Line", "3086")
- KitchenIni.WriteString("GrillTop", "Line", "3086")
- KitchenIni.WriteString("GrillBottom", "Line", "3086")
- KitchenIni.WriteString("HVGrillTop", "Line", "3086")
- KitchenIni.WriteString("HVGrillBottom", "Line", "3086")
- KitchenIni.WriteString("Drive", "Line", "3086")
- KitchenIni.WriteString("Fry", "Line", "3086")
- KitchenIni.WriteString("FryTop", "Line", "3086")
- KitchenIni.WriteString("FryBottom", "Line", "3086")
- KitchenIni.WriteString("Fountain", "Line", "3086")
- KitchenIni.WriteString("FountainTop", "Line", "3086")
- KitchenIni.WriteString("FountainBottom", "Line", "3086")
- KitchenIni.WriteString("Expedite", "Line", "3086")
- KitchenIni.WriteString("Expedite2", "Line", "3086")
- KitchenIni.WriteString("Drive2", "Line", "3086")
- If PosMaint.RedundantKitchen Then
- KitchenIni.WriteString("Monitors", "RedundantID", CStrNull(1))
- KitchenIni.WriteString("Monitors", "LocateActiveTimeout", CStrNull(15))
- KitchenIni.WriteString("Monitors", "SendOrderTimeout", CStrNull(5))
- Else
- KitchenIni.DeleteKey("Monitors", "RedundantID")
- KitchenIni.DeleteKey("Monitors", "LocateActiveTimeout")
- KitchenIni.DeleteKey("Monitors", "SendOrderTimeout")
- End If
- Next
- KitchenIni = Nothing
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement