11 lines
1.4 KiB
JSON
11 lines
1.4 KiB
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "declare function dialog_box, entid, repository, set_property, getwindow\r\ndeclare function fieldcount, send_event\r\ndeclare subroutine sendmessage, make.list\r\n$insert popup_equates\r\nequ QbfOccurred$ to 1126\r\n\r\nQuoteKeys = dialog_box( 'QUOTE_SRL_QUERY', @window, '' )\r\nif QuoteKeys then\r\n\tPopId = entid( @appid<1>, 'POPUP', '', 'QUOTES_SRL_QUERY' )\r\n\tOverRide = ''\r\n make.list( 0, QuoteKeys, '', '' )\r\n\tChoosenKeys = repository( \"EXECUTE\", PopId, @window, OverRide ) \r\n\tif ChoosenKeys then\r\n\t convert @vm to @fm in ChoosenKeys\r\n\t if fieldcount( ChoosenKeys, @fm ) > 1 then\r\n Void = set_property( @window, 'QBFLIST', ChoosenKeys )\r\n WndHnd = get_property( @window, 'HANDLE' )\r\n HbBar = getwindow( WndHnd, 5 )\r\n sendmessage( HbBar, QbfOccurred$, 0, 0 )\r\n\t Void = set_property( @window, '@NoRead', 1 )\r\n\t .quote_no->text = ChoosenKeys<1> \r\n\t Void = send_event( @window, 'READ' )\r\n\t Void = set_property( @window, '@NoRead', 0 )\r\n end else\r\n .quote_no->text = ChoosenKeys\r\n Void = send_event( @window:'.QUOTE_NO', 'LOSTFOCUS', '' )\r\n end\r\n\tend\r\nend\r\nRETURN 0"
|
|
}
|
|
}
|
|
} |