O
ouyang2003
Unregistered / Unconfirmed
GUEST, unregistred user!
用协调对象来更新数据不行,我在协调对象写了这样一个方法
procedure TmtsSecurityObj.UpdateBlockSeat(vDatas: OleVariant;
iMaxError,
iErrorCount: Integer);
var
BlockSeatObj:ImtsBlockSeatObj;
asp:IAppServer;
//iRecount:integer;
OwnerDatalevariant;
//Deltas:OleVariant;
begin
try
oleCheck(ObjectContext.CreateInstance(CLASS_MTSBlockSeatObj,IID_ImtsBlockSeatObj,BlockSeatObj));
asp:=BlockSeatObj as IAppServer;
asp.AS_ApplyUpdates(asp.AS_GetProviderNames,vDatas,iMaxError,iErrorCount,OwnerData);
showmessage('How are you !');
SetComplete;
except
SetAbort;
end;
end;
procedure TmtsSecurityObj.UpdateBlockSeat(vDatas: OleVariant;
iMaxError,
iErrorCount: Integer);
var
BlockSeatObj:ImtsBlockSeatObj;
asp:IAppServer;
//iRecount:integer;
OwnerDatalevariant;
//Deltas:OleVariant;
begin
try
oleCheck(ObjectContext.CreateInstance(CLASS_MTSBlockSeatObj,IID_ImtsBlockSeatObj,BlockSeatObj));
asp:=BlockSeatObj as IAppServer;
asp.AS_ApplyUpdates(asp.AS_GetProviderNames,vDatas,iMaxError,iErrorCount,OwnerData);
showmessage('How are you !');
SetComplete;
except
SetAbort;
end;
end;