0%
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
If DEPT_TBL.DEPTID.Value = "NEW" Then Local number # SQLExec("SELECT DEPTID FROM PS_C_DEPT_SEQ_TBL", &strDEPTID); If All(&strDEPTID) Then &num = GetNextNumberWithGapsCommit(C_DEPT_SEQ_TBL.DEPTID, 999999999, 1); DEPT_TBL.DEPTID.Value = # Else SQLExec("INSERT INTO PS_C_DEPT_SEQ_TBL VALUES('10000000')"); CommitWork(); DEPT_TBL.DEPTID.Value = "10000000"; End-If; End-If;
|