📄 fclientmain.~pas
字号:
unit fClientMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Spin, StdCtrls, Rio, SoapHTTPClient;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
SpinEdit1: TSpinEdit;
Label3: TLabel;
Edit2: TEdit;
Panel1: TPanel;
Label4: TLabel;
Label5: TLabel;
Button1: TButton;
Edit3: TEdit;
Edit4: TEdit;
HTTPRIO1: THTTPRIO;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
uses WADDemoServiceIntf, XSBuiltIns;
procedure TForm1.Button1Click(Sender: TObject);
var
aIntf : IWADDemoService;
iConfirmID : Integer;
cDate : TXSDate;
begin
aIntf := HTTPRIO1 as IWADDemoService;
try
// cDate := TXSDate.Create;
// cDate.AsDate := Now;
aIntf.BuyBooks(Edit1.Text, Edit2.Text, SpinEdit1.Value, iConfirmID, cDate);
Edit3.Text := IntToStr(iConfirmID);
Edit4.Text := cDate.NativeToXS;
finally // wrap up
aIntf := nil;
end; // try/finally
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -