|
May 1999 |
Field Field Name Type Width
1 ID Character 10
2 PROGRAM Character 50
3 PARMS Character 60
4 SHADOWTABL Character 50
5 DATEREQEST Date 8
6 DATEDONE Date 8
7 START_TIME Character 8
8 END_TIME Character 8
9 DONE Logical 1
10 USERID Character 5
|
*-- Copy customer record to shadow-table
*-- for editing.
*
Select Customer
If Seek(m.CustNo)
cTempTable = 'Temp'+Right(Sys(3),4)+'.dbf'
Copy To (m.cTempTable) ;
While Customer.CustNo=m.CustNo
Endif
*
*-- When editing is complete, add record to
*-- Posting Directive Table.
*
Insert Into Directive ;
(ID,Program,Parms,ShadowTabl,;
DateReqest,UserID,Done) ;
Values (SYS(2015),'CustUpDt.fxp',;
m.CustNo,m.cTempTable,Date(),m.UserID,.F.)
|
If Seek(.F.,'Directiv')
Replace Directiv.Start_Time With Time()
If ! Empty(Directiv.ShadowTabl)
If File(Directiv.ShadowTabl)
Use (Directiv.ShadowTabl) Alias Shadow In 0
Endif
Endif
If ! Empty(Directiv.Program) And ;
File(AllTrim(Directiv.Program))
If ! Empty(Directiv.Parms)
pParms = Directiv.Parms
Do (Directiv.Program) With pParms
Else
Do (Directiv.Program)
Endif
Endif
*
*-- Close the shadow-table.
*
If Used('Shadow')
Use In Shadow
Endif
*
*-- Update the Directive table.
*
Select Directiv
Replace Done With .T.,;
DateDone With Date(),;
End_Time With Time()
Endif
|
|