refactored material track code for front end

This commit is contained in:
Infineon\StieberD
2025-01-29 16:53:28 -07:00
committed by Stieber Daniel (CSC FI SPS MESLEO)
parent c36cf5fedc
commit d7d8fc0289
14 changed files with 3273 additions and 5497 deletions

View File

@ -130,3 +130,29 @@ Service UpdateOEE(OEEjson)
end service
Service GetMaterialTrackSettings(UserId)
Response = ''
If (UserId NE '') then
RepUserId = UserId
Convert @Lower.Case to @Upper.Case in RepUserId
Response = Database_Services('ReadDataRow', 'REPORT_CONFIG', 'MATERIAL_TRACK_WEB*':RepUserId)
end else
Error_Services('Add', 'Error in ':Service:' service. Null UserId passed into service.')
end
end service
Service UpdateMaterialTrackSettings(MtSettingsJson, UserId)
If ( (MtSettingsJson NE '') and (UserId NE '') ) then
RepUserId = UserId
Convert @Lower.Case to @Upper.Case in RepUserId
Database_Services('WriteDataRow', 'REPORT_CONFIG', 'MATERIAL_TRACK_WEB*':RepUserId, MtSettingsJson)
end else
Error_Services('Add', 'Error in ':Service:' service. Null MtSettingsJson or UserId passed into service.')
end
end service