Employees Subroutines
Employee records, timesheets, labor history
Subroutine count:
Table of Contents
VB_EMPLOYEE.PUBLIC.REV1
Signature: SUBROUTINE VB_EMPLOYEE.PUBLIC(CO,REQTYPE,EMPNO,E1287REC,ADDFLAG,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_EMPLOYEE.PUBLIC.REV1
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save or soft-delete employee public records in EMPLOYEE.PUBLIC.1287 based on REQTYPE. Supports add, update, and delete operations with audit trail logging. |
| Dangerous REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete (sets field 9 to ‘N’), any other value to add/update |
| 2 | EMPNO | in | Employee number (record key) |
| 3 | E1287REC | in | Employee public record data as dynamic array (written to EMPLOYEE.PUBLIC.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result message: ‘WRITE SUCCEEDED’ or ‘DELETE SUCCEEDED’ |
Tables Written: EMPLOYEE.PUBLIC.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_EMPLOYEE.PUBLIC.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": ""
}
}Last updated: 2026-02-05 11:29 PM