11 lines
1.6 KiB
JSON
11 lines
1.6 KiB
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "declare subroutine btree.extract, update_index, rlist, end_dialog\r\ndeclare function msg, key_sort, utility\r\n$insert msg_equates\r\n$insert lsl_users_equ\r\n\r\nopen 'DICT.RDS' to DictRDSTable else\r\n Void = msg( '', 'Unable to open DICT.RDS...' )\r\n return 0\r\nend\r\nSearchStr = ''\r\nDateOutFrom = .date_out_from->text\r\nDateOutThru = .date_out_thru->text\r\nWo = .wo->array\r\nswap @vm:@vm with '' in Wo\r\nif Wo[-1,1] = @vm then Wo[-1,1] = ''\r\n*\r\nif DateOutFrom then\r\n SearchStr<-1> = 'DATE_OUT':@vm:'>=':DateOutFrom\r\nend\r\nif DateOutThru then\r\n SearchStr<-1> = 'DATE_OUT':@vm:'<=':DateOutThru\r\nend\r\nif Wo then\r\n SearchStr<-1> = 'WO':@vm:Wo\r\nend\r\nif SearchStr then\r\n SearchStr := @fm\r\n Void = utility( 'CURSOR', 'H' )\r\n * do a btree.extract\r\n btree.extract( SearchStr, 'RDS', DictRDSTable, Keys, '', Flag )\r\n if Flag <> 0 then\r\n Void = msg( '', 'Error while extracting RDS records...' )\r\n end_dialog( @window, '' )\r\n end\r\n if Keys then\r\n end_dialog( @window, Keys )\r\n end else\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'No records found meeting your criteria...' \r\n MsgInfo<micon$> = '!'\r\n Void = msg( '', MsgInfo )\r\n end\r\n Void = utility( 'CURSOR', 'A' )\r\nend else\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You have not entered any search criteria...' \r\n MsgInfo<micon$> = '!'\r\n Void = msg( '', MsgInfo )\r\nend\r\nreturn 0\r\n"
|
|
}
|
|
}
|
|
} |