Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub FixPosCfg()
- 'Dim rsTimePeriods As New clsDataTable
- Dim store As Integer
- Dim TaxId(9) As Double
- Dim tmpStoreNumber As String
- Dim tmpDriveRegCount As Integer
- Dim tmpPhone As String
- tmpStoreNumber = PosMaint.StoreNumber.ToString.PadLeft(3, "0"c)
- store = CIntNull(tmpStoreNumber)
- TaxId(1) = PosMaint.TaxFtn / 100
- TaxId(2) = 0
- TaxId(3) = PosMaint.TaxFoodPackage / 100
- TaxId(4) = PosMaint.TaxNonFoodPackage / 100
- TaxId(5) = 0
- TaxId(6) = 0
- '***************************************************************************
- 'Ready to update SQL's poscfg
- '***************************************************************************
- DispThis("Updating Tax Tables, ")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblTax", , , , , eErrReturn.Exception)
- For xLoop As Integer = 0 To dt.RowCount - 1
- DispThis(CIntNull(dt.Rows(xLoop)!TableID).ToString & ", ")
- dt.Rows(xLoop)!AmtOrPerc = TaxId(CIntNull(dt.Rows(xLoop)!TableID))
- Next
- DispThis("update data table, ")
- dt.UpdateData()
- End Using
- DispThis("Done" & NewLine)
- DispThis("Updating Tax Category 3 (TX taxable), ")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tbl_ItemTaxCategories order by TaxCatNum", , , , , eErrReturn.Exception)
- Dim drTmp As DataRow = dt.LocalWalkFindRow(New Dictionary(Of String, Object) From {{"TaxCatNum", 3}})
- If drTmp IsNot Nothing Then
- If PosMaint.State.ToUpper = "TX" Then
- DispThis("TX Store, ")
- drTmp!EatInMask = "NNNYNNNNNN"
- drTmp!EatOutMask = "NNNYNNNNNN"
- ElseIf Now >= #1/1/2018# AndAlso PosMaint.State.ToUpper = "AR" Then
- DispThis("AR Store, ")
- drTmp!EatInMask = "NNNYNNNNNN"
- drTmp!EatOutMask = "NNNYNNNNNN"
- Else
- DispThis("NON-TX Store, ")
- drTmp!EatInMask = "NNYNNNNNNN"
- drTmp!EatOutMask = "NNYNNNNNNN"
- End If
- DispThis("update data table, ")
- dt.UpdateData()
- Else
- End If
- End Using
- DispThis("Done" & NewLine)
- DispThis("Updating Tax Category 5 (TX taxable), ")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tbl_ItemTaxCategories order by TaxCatNum", , , , , eErrReturn.Exception)
- Dim drTmp As DataRow = dt.LocalWalkFindRow(New Dictionary(Of String, Object) From {{"TaxCatNum", 5}})
- If drTmp IsNot Nothing Then
- If PosMaint.State.ToUpper = "TX" Then
- DispThis("TX Store, ")
- drTmp!EatInMask = "NNNYNNNNNN"
- drTmp!EatOutMask = "NNNYNNNNNN"
- ElseIf Now >= #1/1/2018# AndAlso PosMaint.State.ToUpper = "AR" Then
- DispThis("AR Store, ")
- drTmp!EatInMask = "NNYNNNNNNN"
- drTmp!EatOutMask = "NNYNNNNNNN"
- Else
- DispThis("NON-TX Store, ")
- drTmp!EatInMask = "NNYNNNNNNN"
- drTmp!EatOutMask = "NNYNNNNNNN"
- End If
- DispThis("update data table, ")
- dt.UpdateData()
- Else
- End If
- End Using
- DispThis("Done" & NewLine)
- DispThis(" Updating Store Info" & NewLine)
- If Len(PosMaint.Phone_Number) > 9 Then
- tmpPhone = "(" + Mid(PosMaint.Phone_Number, 1, 3) + ") " + Mid(PosMaint.Phone_Number, 4, 3) + "-" + Mid(PosMaint.Phone_Number, 7)
- Else
- tmpPhone = PosMaint.Phone_Number
- End If
- DataAccessIris.ExecCommand("update tblStoreInfo Set " +
- "StoreNum=" + tmpStoreNumber + "," +
- "StoreName='Braums #" + tmpStoreNumber + "'," +
- "Address1='" + PosMaint.Address + "'," +
- "City='" + PosMaint.City + "'," +
- "StateCode='" + PosMaint.State + "'," +
- "Zip='" + PosMaint.Zip + "'," +
- "Phone='" + tmpPhone + "'" +
- "where CompanyID=0")
- DispThis(" Emergency Food Stamp?" & NewLine)
- If PosMaint.EmergencyFoodStampActive Then
- DispThis(" Emergency Food Stamp (YES)" & NewLine)
- DataAccessIris.ExecCommand("update tbl_ItemMaster Set " +
- "AllowFoodStamps='1'")
- DataAccessIris.ExecCommand("update tbl_ItemMaster Set " +
- "AllowFoodStampsToGo='1'")
- End If
- ''***************************************************************************************************************
- 'PE 8/31/2020 Use the new EOD_Time aux field
- ' Also added register eod table (tblTimedRegisterEvents)
- ' Event Type 1 is the EOD for registers
- 'Dim EODTime As Date = CDateNull("12/30/1889 " & PosMaint.EOD_Time)
- Dim EODTime As Date = CDateNull("12/30/1899 " & PosMaint.EOD_Time)
- Dim RegisterMinutesOffset As Integer = 10
- DispThis(" Updating EOD times for Backoffice, ")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblStoreHours", , , , True)
- For xLoop As Integer = 0 To dt.RowCount - 1
- dt.Rows(xLoop)!EODTime = EODTime
- Next
- dt.UpdateData()
- End Using
- 'DispThis("Update with query,")
- 'DataAccessIris.ExecCommand("Update tblStoreHours Set EODTime ='" & PosMaint.EOD_Time & "'")
- DispThis("done." & NewLine)
- DispThis(" Updating EOD times for Registers, ")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblTimedRegisterEvents where EventType=1", , , , True)
- Dim AddRegisters As New List(Of Integer)
- Dim RemoveRegister As New List(Of Integer)
- Dim RegisterList As List(Of Integer) = PosMaint.RegisterNumberList.ToList
- 'Lets loop through register numbers and see if any need to be added.
- For xLoop As Integer = 0 To RegisterList.Count - 1
- dt.LocalWalkFindFilter(New Dictionary(Of String, Object) From {{"RegisterNum", RegisterList(xLoop)}})
- If dt.LocalWalkFindRecordNum < 0 Then AddRegisters.Add(RegisterList(xLoop))
- Next
- 'Let loop through the data table and see if we need to remove
- For xLoop As Integer = 0 To dt.RowCount - 1
- If CIntNull(dt.Rows(xLoop)!RegisterNum) <> 0 AndAlso Not RegisterList.Contains(CIntNull(dt.Rows(xLoop)!RegisterNum)) Then
- If Not RemoveRegister.Contains(CIntNull(dt.Rows(xLoop)!RegisterNum)) Then RemoveRegister.Add(CIntNull(dt.Rows(xLoop)!RegisterNum))
- End If
- Next
- 'Now add the needed registers
- For xLoop As Integer = 0 To AddRegisters.Count - 1
- For dayLoop As Integer = 1 To 7
- Dim nr As DataRow = dt.NewRow
- nr!RegisterNum = AddRegisters(xLoop)
- nr!DOWNum = dayLoop
- nr!EventType = 1
- nr!UseNextDay = 0
- nr!EventTime = EODTime.AddMinutes(RegisterMinutesOffset)
- nr!UseNextDay = 0
- nr!ElapseWeeks = 1
- nr!PostEODScript = "c:\iris\scripts\systemMaint.vbs /purgeonlogon"
- nr!PostEODEvent = 20000
- nr!Manual = 0
- dt.Rows.Add(nr)
- Next
- Next
- 'And remove the no longer needed registers
- For xLoop As Integer = 0 To RemoveRegister.Count - 1
- dt.DefaultView.RowFilter = "RegisterNum=" & RemoveRegister(xLoop)
- For recordLoop As Integer = dt.DefaultView.Count - 1 To 0 Step -1
- dt.DefaultView.Item(recordLoop).Delete()
- Next
- Next
- dt.UpdateData()
- For xLoop As Integer = 0 To dt.RowCount - 1
- dt.Rows(xLoop)!EventTime = EODTime.AddMinutes(RegisterMinutesOffset)
- Next
- dt.UpdateData()
- End Using
- 'DispThis("Update with query,")
- 'DataAccessIris.ExecCommand("Update tblTimedRegisterEvents Set EventTime ='" & PosMaint.EOD_Time & "' where EventType=1")
- DispThis("done." & NewLine)
- '***************************************************************************************************************
- DispThis(" Updating tblcfgsettings" & NewLine)
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblCfgSetting", , , , True)
- dt.DefaultView.RowFilter = "SettingID=621"
- If dt.DefaultView.Count > 0 Then
- DispThis(" Updating Send Grill " & (PosMaint.PrtExpoNumberPriName.ToUpper <> "NONE").ToString & NewLine)
- dt.DefaultView.Item(0)!SettingVal = (PosMaint.PrtExpoNumberPriName.ToUpper <> "NONE")
- End If
- dt.DefaultView.RowFilter = "SettingID=25"
- If dt.DefaultView.Count > 0 Then
- DispThis(" Updating Send Events (" & PosMaint.SendToEventAdapter.ToString & ")" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = PosMaint.SendToEventAdapter
- End If
- dt.DefaultView.RowFilter = "SettingID=221"
- If dt.DefaultView.Count > 0 Then
- DispThis(" Updating Ask Tax ID Number" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = (CIntNull(StoreNumber) > 400 Or
- PosMaint.State.ToUpper = "OK")
- End If
- dt.DefaultView.RowFilter = "SettingID=229"
- If dt.DefaultView.Count > 0 Then
- DispThis(" Updating Ask Tax Reason" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = (CIntNull(StoreNumber) > 400 Or
- PosMaint.State.ToUpper = "OK")
- End If
- 'This is a test for Robert to enforce closed drawers
- 'P.E. 2/8/2023
- DispThis(" Updating Force Drawer Close on open tickets, ")
- If IO.File.Exists("c:\ForceDrawerClose.flg") Then
- dt.DefaultView.RowFilter = "SettingID=568"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 568, Yes, " & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 1
- End If
- DispThis("setting button on screen")
- DataAccessIris.ExecCommand("update tbl_MenuBtns set StartX=9,StartY=347 where MenuID=50331650 and BtnValue=23")
- Else
- dt.DefaultView.RowFilter = "SettingID=568"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 568, No" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 0
- End If
- DispThis("setting button off screen")
- DataAccessIris.ExecCommand("update tbl_MenuBtns set StartX=542,StartY=42 where MenuID=50331650 and BtnValue=23")
- End If
- DispThis(NewLine)
- 'Took this out because it is being enforced everywhere and its no longer needed.
- 'EDIT: PCromie 11/2/2021
- 'DispThis(" Updating Schedule Enforce ")
- 'If IO.File.Exists("c:\EnforceSchedule.flg") Then
- ' dt.DefaultView.RowFilter = "SettingID=542"
- ' If dt.DefaultView.Count > 0 Then
- ' DispThis(", 542, Yes" & NewLine)
- ' dt.DefaultView.Item(0)!SettingVal = 1
- ' End If
- 'Else
- ' dt.DefaultView.RowFilter = "SettingID=542"
- ' If dt.DefaultView.Count > 0 Then
- ' DispThis(", 542, No" & NewLine)
- ' dt.DefaultView.Item(0)!SettingVal = 0
- ' End If
- 'End If
- 'DispThis(NewLine)
- DispThis(" Updating Dual Lane ")
- If PosMaint.IsDualLane Then
- dt.DefaultView.RowFilter = "SettingID=670"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 670, Yes" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 1
- End If
- 'Starting on 4.0.9 we are setting 671
- ' (Presists lane chose).
- dt.DefaultView.RowFilter = "SettingID=671"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 671, Yes" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 0
- End If
- Else
- dt.DefaultView.RowFilter = "SettingID=670"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 670, No" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 0
- End If
- dt.DefaultView.RowFilter = "SettingID=671"
- If dt.DefaultView.Count > 0 Then
- DispThis(", 671, No" & NewLine)
- dt.DefaultView.Item(0)!SettingVal = 0
- End If
- End If
- DispThis(NewLine)
- 'dt.DefaultView.RowFilter = "SettingID=925"
- 'If dt.DefaultView.Count > 0 Then
- ' DispThis(" Updating Message Center Prompt at Clock in = " & PosMaint.IsBrMessage.ToString & NewLine)
- ' If CBoolNull(dt.DefaultView.Item(0)!SettingVal) <> PosMaint.IsBrMessage Then dt.DefaultView.Item(0)!SettingVal = PosMaint.IsBrMessage
- 'End If
- 'dt.DefaultView.RowFilter = "SettingID=927"
- 'If dt.DefaultView.Count > 0 Then
- ' DispThis(" Updating Manual Log on to Message Center from POS = " & PosMaint.IsBrMessage.ToString & NewLine)
- ' If CBoolNull(dt.DefaultView.Item(0)!SettingVal) <> PosMaint.IsBrMessage Then dt.DefaultView.Item(0)!SettingVal = PosMaint.IsBrMessage
- 'End If
- dt.UpdateData()
- End Using
- DispThis(" Updating Reg Time Periods" & NewLine)
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblTimePeriods order by PeriodID", , , , True)
- For xLoop As Integer = 0 To dt.RowCount - 1
- Select Case CIntNull(dt.Rows(xLoop)("PeriodID"))
- Case 1
- dt.Rows(xLoop)("Description") = "Breakfast"
- dt.Rows(xLoop)("Sunday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Monday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Tuesday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Wednesday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Thursday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Friday") = #12/30/1899 4:00:00 AM#
- dt.Rows(xLoop)("Saturday") = #12/30/1899 4:00:00 AM#
- Case 2
- dt.Rows(xLoop)("Description") = "Lunch/Dinner"
- dt.Rows(xLoop)("Sunday") = #12/30/1899 11:00:00 AM#
- dt.Rows(xLoop)("Monday") = #12/30/1899 10:30:00 AM#
- dt.Rows(xLoop)("Tuesday") = #12/30/1899 10:30:00 AM#
- dt.Rows(xLoop)("Wednesday") = #12/30/1899 10:30:00 AM#
- dt.Rows(xLoop)("Thursday") = #12/30/1899 10:30:00 AM#
- dt.Rows(xLoop)("Friday") = #12/30/1899 10:30:00 AM#
- dt.Rows(xLoop)("Saturday") = #12/30/1899 10:30:00 AM#
- Case 3 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Breakfast Down Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Sunday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Monday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Tuesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Wednesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Thursday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Friday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Saturday, eTimePeriodAction.DownTime)
- Case 4 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Breakfast Up Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Sunday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Monday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Tuesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Wednesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Thursday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Friday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.BreakFast, Windows.Forms.Day.Saturday, eTimePeriodAction.UpTime)
- Case 5 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Lunch Down Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Sunday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Monday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Tuesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Wednesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Thursday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Friday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Saturday, eTimePeriodAction.DownTime)
- Case 6 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Lunch Up Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Sunday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Monday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Tuesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Wednesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Thursday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Friday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Lunch, Windows.Forms.Day.Saturday, eTimePeriodAction.UpTime)
- Case 7 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Dinner Down Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Sunday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Monday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Tuesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Wednesday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Thursday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Friday, eTimePeriodAction.DownTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Saturday, eTimePeriodAction.DownTime)
- Case 8 '.AddDays(693593) is for sql fix of a different min date
- dt.Rows(xLoop)("Description") = "Drive Dinner Up Time"
- dt.Rows(xLoop)("Sunday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Sunday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Monday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Monday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Tuesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Tuesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Wednesday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Wednesday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Thursday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Thursday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Friday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Friday, eTimePeriodAction.UpTime)
- dt.Rows(xLoop)("Saturday") = PosMaint.DriveTenderBlockReg(eTimePeriod.Dinner, Windows.Forms.Day.Saturday, eTimePeriodAction.UpTime)
- End Select
- Next
- dt.UpdateData()
- End Using
- DispThis(" Updating Reg Mode DefSetting" & NewLine)
- 'RegModeID SettingID SettingVal SettingValEx
- '51 511 1 *Controls the sign in Function
- '51 512 0 *Controls the Clock in\Out Function
- '51 519 1 *Controls the Order Entry Timeout Function
- '51 548 0 *Controls the Intermediate Screen Function
- Dim cmdparmRegModDeSetting(3) As Common.DbParameter
- cmdparmRegModDeSetting(0) = DataAccessIris.DBParameter
- cmdparmRegModDeSetting(1) = DataAccessIris.DBParameter
- cmdparmRegModDeSetting(2) = DataAccessIris.DBParameter
- cmdparmRegModDeSetting(3) = DataAccessIris.DBParameter
- cmdparmRegModDeSetting(0).ParameterName = "@RegModeID"
- cmdparmRegModDeSetting(1).ParameterName = "@SettingID"
- cmdparmRegModDeSetting(2).ParameterName = "@SettingVal"
- cmdparmRegModDeSetting(3).ParameterName = "@SettingValEx"
- Dim strSQL As String = "update tblCFGRegModeDefSetting Set " &
- "SettingVal = @SettingVal, " &
- "SettingValEx = @SettingValEx " &
- "Where " &
- "RegModeID = @RegModeID and " &
- "SettingID = @SettingID "
- cmdparmRegModDeSetting(0).Value = 51 'Fresh Market
- If PosMaint.RegisterAutoLogOutTimeFreshMarket > 0 Then
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- cmdparmRegModDeSetting(0).Value = 61 'Fountain
- If PosMaint.RegisterAutoLogOutTimeFountain > 0 Then
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- cmdparmRegModDeSetting(0).Value = 71 'Lobby
- If PosMaint.RegisterAutoLogOutTimeLobby > 0 Then
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- cmdparmRegModDeSetting(0).Value = 11 'Drive All
- If PosMaint.RegisterAutoLogOutTimeDrive > 0 Then
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 512
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 548
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- cmdparmRegModDeSetting(0).Value = 13 'Drive Split Screen / Exp
- If PosMaint.RegisterAutoLogOutTimeDrive > 0 Then
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 511
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 519
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- '************************************************************************************************************************
- 'Added 7/23/2018 by Pcromie
- 'at Klucas Request
- 'Paul E. 6/30/2020
- 'Setting ID 323 (Qty Seat Toggle/Bag Total) and 1101 (Hide Bag On Guest Check)
- ' Before Dual lane vs Single lane were different configurations. Drew wanted the Single lanes
- ' to work like the Dual lanes, so for now even though we test if dual lane, they are the same.
- ' Use to be 323=0 and 1101=1 in dual lane. Flip them for single lane.
- ' Once this has been in the field, they can be removed and just maintained via the SyncV3.
- cmdparmRegModDeSetting(0).Value = 3 'Dual Lane Split Check Cashier
- If PosMaint.IsDualLane Then
- cmdparmRegModDeSetting(1).Value = 323
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 1101
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 323
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 1101
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- cmdparmRegModDeSetting(0).Value = 2 'Dual Lane Split Check OrderTaker
- If PosMaint.IsDualLane Then
- cmdparmRegModDeSetting(1).Value = 323
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 1101
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- Else
- cmdparmRegModDeSetting(1).Value = 323
- cmdparmRegModDeSetting(2).Value = 0
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- cmdparmRegModDeSetting(1).Value = 1101
- cmdparmRegModDeSetting(2).Value = 1
- cmdparmRegModDeSetting(3).Value = DBNull.Value
- DataAccessIris.ExecCommand(strSQL, cmdparmRegModDeSetting)
- End If
- '************************************************************************************************************************
- DispThis(" Updating Concepts" & NewLine)
- DispThis(" Set Group Order (YES)" & NewLine)
- DataAccessIris.ExecCommand("Update tblConcept Set OrderEntryToolBarID = '67108896' where conceptID =12 or conceptID =15")
- DispThis(" Updating tblConcepts Tender Screen, ")
- DispThis("HeartSIP, ")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderFunctionsID = 50331660, TenderToolBarID = 67108870 Where ConceptID in (21,22)")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderFunctionsID = 50331660, TenderToolBarID = 67108870 Where ConceptID = 13")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderFunctionsID = 50331660, TenderToolBarID = 67108870 Where ConceptID in (12,15)")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderFunctionsID = 50331660, TenderToolBarID = 67108886 Where ConceptID in (18,19,20,25,26,27,28,30,31,32,33,35,36)")
- DispThis(" Updating tblConcepts Dual Lane, ")
- If PosMaint.IsDualLane Then
- DispThis("Dual Lane, ")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderToolBarID = 67108868 Where ConceptID in (27,28)")
- Else
- DispThis("Single Lane, ")
- DataAccessIris.ExecCommand("Update tblConcept Set TenderToolBarID = 67108886 Where ConceptID in (27,28)")
- End If
- DispThis("Done." & NewLine)
- DispThis(" Updating tbl_MenuBtns Gift Card Screen, ")
- DispThis("HeartSIP, ")
- DataAccessIris.ExecCommand("Update tbl_MenuBtns Set BtnValue = 316 Where BtnValue = 40 and BtnType = 4 and Style = 1124")
- DispThis("Done." & NewLine)
- 'Added 3/28/2016 by PCromie
- DispThis("Fixing Manual Entered Credit Cards...")
- Using PTConfig As clsDataTable = DataAccessIris.GetDT2("Select * from tbl_PayTypeConfig where ConfigID = 5066", , , , , eErrReturn.Exception)
- For xloop As Integer = 0 To PTConfig.Rows.Count - 1
- 'loop through each row and set the values to 1 if it is portico
- PTConfig.Rows(xloop)!Amt = 0
- Next
- PTConfig.UpdateData()
- End Using
- DispThis(" Done" & NewLine)
- DispThis("Requires Encryption for Credit Cards...")
- Using PTConfig As clsDataTable = DataAccessIris.GetDT2("Select * from tbl_PayTypeConfig where ConfigID = 5125", , , , , eErrReturn.Exception)
- For xloop As Integer = 0 To PTConfig.Rows.Count - 1
- 'loop through each row and set the values to 1 if it is portico
- PTConfig.Rows(xloop)!Amt = 1
- Next
- PTConfig.UpdateData()
- End Using
- DispThis(" Done" & NewLine)
- '***************************************************************************************************************************************
- 'PE 09/20/2023
- 'Implement new drive via concepts, aux setting 'Quick'
- DispThis(" Updating Reg Time Concepts" & NewLine)
- tmpDriveRegCount = 0
- DataAccessIris.ExecCommand("Delete from tblRegTimeConcepts")
- Using dt As clsDataTable = DataAccessIris.GetDT2("Select * from tblRegTimeConcepts", , , , True)
- For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
- Dim RegInfo As PosMaint10.RegInfo = PosMaint.RegisterInformations(xLoop)
- Select Case RegInfo.DefaultConcept
- Case eDefaultConcept.FreshMarket
- UpdatetblRegTimeConcepts(21, "Package Breakfast", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(22, "Package Lunch", RegInfo.RegisterNumber, 2, 0)
- Case eDefaultConcept.Fountain
- UpdatetblRegTimeConcepts(13, "Fountain Breakfast", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(13, "Fountain Lunch", RegInfo.RegisterNumber, 2, 0)
- Case eDefaultConcept.Lobby
- UpdatetblRegTimeConcepts(12, "Lobby Breakfast", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(15, "Lobby Lunch", RegInfo.RegisterNumber, 2, 0)
- Case eDefaultConcept.SplitScreen
- If PosMaint.DriveStyle.ToUpper = "QUICK" Then
- UpdatetblRegTimeConcepts(1000, "Drive Expo Breakfast (Order Only/No Cash Dawer)", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(1001, "Drive Expo Lunch (Order Only/No Cash Dawer)", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(18, "Drive Expo Breakfast (800X600)", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(19, "Drive Expo Lunch (800X600)", RegInfo.RegisterNumber, 2, 0)
- End If
- Case eDefaultConcept.Tender
- If PosMaint.DriveStyle.ToUpper = "QUICK" Then
- If PosMaint.IsDualLane Then
- UpdatetblRegTimeConcepts(2100, "Drive Breakfast Tender 2 Lane", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(2102, "Drive Lunch Tender 2 Lane", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(2100, "Drive Breakfast Tender 1 Lane", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(2102, "Drive Lunch Tender 1 Lane", RegInfo.RegisterNumber, 2, 0)
- End If
- Else
- UpdatetblRegTimeConcepts(27, "Drive Breakfast Tender", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(28, "Drive Lunch Tender", RegInfo.RegisterNumber, 2, 0)
- End If
- Case eDefaultConcept.RegisterDown
- UpdatetblRegTimeConcepts(29, "Drive Breakfast Tender Down", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(29, "Drive Breakfast Tender Down", RegInfo.RegisterNumber, 2, 0)
- Case eDefaultConcept.TenderBlockReg
- If PosMaint.DriveStyle.ToUpper = "QUICK" Then
- If PosMaint.IsDualLane Then
- UpdatetblRegTimeConcepts(2100, "Drive Breakfast Tender Block 2 Lane", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(2201, "Drive Breakfast Tender Block 2 Lane", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(2000, "Drive Breakfast Tender Block 1 Lane", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(2201, "Drive Breakfast Tender Block 1 Lane", RegInfo.RegisterNumber, 2, 0)
- End If
- Else
- If PosMaint.IsDualLane Then
- UpdatetblRegTimeConcepts(37, "Drive Breakfast Tender", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(38, "Drive Lunch Tender", RegInfo.RegisterNumber, 2, 0)
- UpdatetblRegTimeConcepts(39, "Drive Breakfast Tender Down", RegInfo.RegisterNumber, 3, 0)
- UpdatetblRegTimeConcepts(37, "Drive Breakfast Tender Up", RegInfo.RegisterNumber, 4, 0)
- UpdatetblRegTimeConcepts(39, "Drive Lunch Tender Down", RegInfo.RegisterNumber, 5, 0)
- UpdatetblRegTimeConcepts(38, "Drive Lunch Tender Up", RegInfo.RegisterNumber, 6, 0)
- UpdatetblRegTimeConcepts(39, "Drive Dinner Tender Down", RegInfo.RegisterNumber, 7, 0)
- UpdatetblRegTimeConcepts(38, "Drive Dinner Tender Up", RegInfo.RegisterNumber, 8, 0)
- Else
- UpdatetblRegTimeConcepts(27, "Drive Breakfast Tender", RegInfo.RegisterNumber, 1, 0)
- 'PE 6/7/2022
- 'Concept 27 is Breakfast, 28 is Lunch, and 29 is Down
- 'So for Fast Drive Style the default for period 2 is 29 (Down)
- If PosMaint.DriveStyle.ToUpper = "FAST" Then
- UpdatetblRegTimeConcepts(29, "Down Style Fast Tender", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(28, "Drive Lunch Tender", RegInfo.RegisterNumber, 2, 0)
- End If
- UpdatetblRegTimeConcepts(29, "Drive Breakfast Tender Down", RegInfo.RegisterNumber, 3, 0)
- UpdatetblRegTimeConcepts(27, "Drive Breakfast Tender Up", RegInfo.RegisterNumber, 4, 0)
- UpdatetblRegTimeConcepts(29, "Drive Lunch Tender Down", RegInfo.RegisterNumber, 5, 0)
- UpdatetblRegTimeConcepts(28, "Drive Lunch Tender Up", RegInfo.RegisterNumber, 6, 0)
- UpdatetblRegTimeConcepts(29, "Drive Dinner Tender Down", RegInfo.RegisterNumber, 7, 0)
- UpdatetblRegTimeConcepts(28, "Drive Dinner Tender Up", RegInfo.RegisterNumber, 8, 0)
- End If
- End If
- Case eDefaultConcept.DualLane1
- If PosMaint.DriveStyle.ToUpper = "QUICK" Then
- UpdatetblRegTimeConcepts(1020, "DL Drive Order Taker Breakfast Lane 1", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(1021, "DL Drive Order Taker Lunch Lane 1", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(30, "Drive Order Taker Breakfast Lane 1", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(31, "Drive Order Taker Lunch Lane 1", RegInfo.RegisterNumber, 2, 0)
- End If
- Case eDefaultConcept.DualLane2
- If PosMaint.DriveStyle.ToUpper = "QUICK" Then
- UpdatetblRegTimeConcepts(1030, "DL Drive Order Taker Breakfast Lane 2", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(1031, "DL Drive Order Taker Lunch Lane 2", RegInfo.RegisterNumber, 2, 0)
- Else
- 'PE 6/6/2022
- 'If drive style is fast then set cashier mode for breakfast
- If PosMaint.DriveStyle.ToUpper = "FAST" Then
- UpdatetblRegTimeConcepts(52, "Drive Order Taker Breakfast Lane 2 (Fast) Cashier", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(53, "Drive Order Taker Lunch Lane 2 (Fast)", RegInfo.RegisterNumber, 2, 0)
- Else
- UpdatetblRegTimeConcepts(32, "Drive Order Taker Breakfast Lane 2", RegInfo.RegisterNumber, 1, 0)
- UpdatetblRegTimeConcepts(33, "Drive Order Taker Lunch Lane 2", RegInfo.RegisterNumber, 2, 0)
- End If
- End If
- End Select
- Sleep(10)
- Next
- dt.UpdateData()
- '***************************************************************************************************************************************
- End Using
- DispThis(" Updating Spec Coffee Breakfast Combo" & NewLine)
- FixSCBBreakfastCombo()
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement