refactored material track code for front end
This commit is contained in:
committed by
Stieber Daniel (CSC FI SPS MESLEO)
parent
c36cf5fedc
commit
d7d8fc0289
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user