|
nvo_cst_dwServer.of_Update(PowerObject apo_Data[])
{
RETURN THIS.of_Update(apo_Object,SQLCA)
}
nvo_cst_dwServer.of_Update(PowerObject apo_Data[],Transaction atra_Connection)
{
//参数判断省略,自己写,通杀DataWindow,DataStore,DataWindowChild
INTEGER li_Index
FOR li_Index=1 TO UpperBound(adw_Data[])
IF NOT apo_Data.Dynamic Update(True,False)=1 THEN
ROLLBACK USING atra_Connection;
RETURN -1
END IF
NEXT
FOR li_Index=1 TO UpperBound(adw_Data[])
adw_Data.Dynamic ResetUpdate()
NEXT
COMMIT USING atra_Transaction;
RETURN 1
}
PS:以后这种贴子少发,你们还嫩着呢,应该再去好好学习 |
|