Removed blocking for control plan printing for PSN's with uncommited changes. The function was acting buggy and invalidly blocking print attempts

This commit is contained in:
Infineon\Ouellette 2025-02-27 14:33:03 -07:00
parent 779ed0ba29
commit 1f1ecbe85b
2 changed files with 14747 additions and 2000 deletions

View File

@ -5,7 +5,7 @@
},
"body": {
"record1": {
"<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_quote, MemberOf\r\ndeclare subroutine security_err_msg, Print_Control_Plan, Print_Control_Plan_JCH\r\n\r\n$insert security_rights_equ\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif security_check( 'Prod Spec', Print$ ) then\r\n\tif @@window->savewarn = true$ then\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo<mtext$> = 'You need to save this PSN before printing.'\r\n\t\tMsgInfo<micon$> = '!'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\t\treturn 0\r\n\tend else\r\n\t\tPSNo = .prod_spec_id->text\r\n\t\tPrint_Control_Plan(PSNo)\r\n\tend\r\nend else\r\n security_err_msg( 'Prod Spec', Print$ )\r\nend\r\nRETURN 0"
"<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_quote, MemberOf\r\ndeclare subroutine security_err_msg, Print_Control_Plan, Print_Control_Plan_JCH\r\n\r\n$insert security_rights_equ\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif security_check( 'Prod Spec', Print$ ) then\r\n\t/*if @@window->savewarn = true$ then\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo<mtext$> = 'You need to save this PSN before printing.'\r\n\t\tMsgInfo<micon$> = '!'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\t\treturn 0\r\n\tend else\r\n */\r\n\t\tPSNo = .prod_spec_id->text\r\n\t\tPrint_Control_Plan(PSNo)\t\r\nend else\r\n security_err_msg( 'Prod Spec', Print$ )\r\nend\r\nRETURN 0"
}
}
}

File diff suppressed because it is too large Load Diff