DataServImpl.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit DataServImpl;
- interface
- uses
- InvokeRegistry, DataWm, DataServIntf;
- type
- TCustomData = class (TInvokableClass, ICustomData)
- public
- function GetData: String; stdcall;
- function SendDelta(Delta: String): Boolean;
- end;
- implementation
- uses DBClient;
- { TCustomData }
- function TCustomData.GetData: String;
- begin
- WebModule1.Table1.Open;
- // WebModule1.ClientDataSet1.Open;
- // Result := WebModule1.ClientDataSet1.XMLData;
- end;
- function TCustomData.SendDelta(Delta: String): Boolean;
- begin
- { WebModule1.Table1.Open;
- WebModule1.ClientDataSet1.Open;
- WebModule1.ClientDataSet2.XMLData := Delta;
- WebModule1.ClientDataSet1. Delta := WebModule1.ClientDataSet2.GetData;
- Result := WebModule1.ClientDataSet1.ApplyUpdates (-1);
- }
- Result := False;
- end;
- initialization
- InvRegistry.RegisterInvokableClass (TCustomData);
- end.