|
FUNCTION LOCAL ClassChangeMFG_Employee(ctlNum) |
Change logic for fields assigned the data class MFG_EMPLOYEE
|
| Parameter | Description |
| ctlNum |
[numeric, input] field control value |
|
| Returns |
[boolean] True if successful, false if method fails |
|
|
FUNCTION LOCAL ClassFormatterMFG_Employee$(ctlNum, ctlVal$, ctlName$) |
|
FUNCTION LOCAL ClassFormatterMFG_Employee$(ctlNum, ctlVal$, ctlName$, gridCol, gridRow) |
Logic to format employee number from employee & department values. This function will be called from NOMADs
|
| Parameter | Description |
| ctlNum |
[numeric, input] Nomads control value |
| ctlVal$ |
[string, input/output] Value in the control to be formatted, this will get parsed and reformatted and passed back. |
| ctlName$ |
[string, input] name of the control |
| gridCol |
[numeric, input] {optional} If being validated from a grid, this will be the grid column number that contains the value |
| gridRow |
[numeric, input] {optional} If being validated from a grid, this will be the grid row number that contains the value |
|
|
|
| Value | Description |
| retSUCCESS(1) |
If value was successfully formatted |
| retFAILURE(0) |
if value was not successfully formatted, and ctlVal$ will be set to blank. |
|
|
FUNCTION LOCAL ClassOnFocusMFG_Employee(ctlNum) |
Function performed on the focus of any control that has a class of MFG_Employee
|
| Parameter | Description |
| ctlNum |
[numeric, input] NOMADs control value |
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL ClassValidateMFG_Employee$(ctlNum, ctlVal$, ctlName$) |
|
FUNCTION LOCAL ClassValidateMFG_Employee$(ctlNum, ctlVal$, ctlName$, gridCol, gridRow) |
Function executed from NOMADs when an object with the class of MFG_Employee is changed. This simply adds department number on the value, if
departments are not being used.
|
| Parameter | Description |
| ctlNum |
[numeric, input] NOMADs control value |
| ctlVal$ |
[string, input/output] Value in the control to be validated, this will be prepended with department 00 if departments not being used |
| ctlName$ |
[string, input] Name of control |
|
| Returns |
Always returns retSUCCESS(1) |
|
|
FUNCTION LOCAL ResetEmployee(ctlName$, depCol$, empCol$) |
Reset Employee control
|
| Parameter | Description |
| ctlName$ |
[string, input] Name of control |
| depCol$ |
[string, input] Name of the department column |
| empCol$ |
[string, input] Name of the employee number column |
|
| Returns |
Always returns retSUCCESS(1) |
|