added LSL2 stored procedures

This commit is contained in:
Infineon\StieberD
2024-03-25 14:46:21 -07:00
parent 09f1a66046
commit c667dd56eb
1655 changed files with 527967 additions and 0 deletions

View File

@ -0,0 +1,37 @@
compile subroutine security_err_msg( TableName, ErrType )
begin condition
pre:
post:
end condition
declare subroutine msg
$insert msg_equates
$insert logical
$insert security_rights_equ
MsgRec = ''
MsgRec<mcol$> = -2
MsgRec<mrow$> = -2
begin case
case ErrType = Read$
MsgRec<mtext$> = 'You do not have READ rights to the ':TableName:' table.'
MsgRec<micon$> = 'H'
msg( '', MsgRec )
case ErrType = Write$
MsgRec<mtext$> = 'You do not have WRITE rights to the ':TableName:' table.'
MsgRec<micon$> = 'H'
msg( '', MsgRec )
case ErrType = Edit$
MsgRec<mtext$> = 'You do not have EDIT rights to the ':TableName:' table you will not be able to change any data on existing records.'
MsgRec<micon$> = '!'
msg( '', MsgRec )
case ErrType = Delete$
MsgRec<mtext$> = 'You do not have DELETE rights to the ':TableName:' table.'
MsgRec<micon$> = 'H'
msg( '', MsgRec )
case ErrType = Print$
MsgRec<mtext$> = 'You do not have PRINT rights to the ':TableName:' table.'
MsgRec<micon$> = 'H'
msg( '', MsgRec )
case otherwise$
end case