| 7 |
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompGrids, |
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompGrids, |
| 8 |
IWDBGrids, IWCompButton, IWCompExtCtrls, IWVCLComponent, |
IWDBGrids, IWCompButton, IWCompExtCtrls, IWVCLComponent, |
| 9 |
IWBaseLayoutComponent, IWBaseContainerLayout, IWContainerLayout, |
IWBaseLayoutComponent, IWBaseContainerLayout, IWContainerLayout, |
| 10 |
IWTemplateProcessorHTML, PngImage, Data.DB, IWCompLabel, IWDBStdCtrls; |
IWTemplateProcessorHTML, PngImage, Data.DB, IWCompLabel, IWDBStdCtrls, |
| 11 |
|
FireDAC.Comp.Client; |
| 12 |
|
|
| 13 |
type |
type |
| 14 |
TPayForm = class(TIWAppForm) |
TPayForm = class(TIWAppForm) |
| 17 |
IWTemplateProcessorHTML1: TIWTemplateProcessorHTML; |
IWTemplateProcessorHTML1: TIWTemplateProcessorHTML; |
| 18 |
IWDBLabel1: TIWDBLabel; |
IWDBLabel1: TIWDBLabel; |
| 19 |
procedure IWButton2Click(Sender: TObject); |
procedure IWButton2Click(Sender: TObject); |
| 20 |
|
procedure IWButton1Click(Sender: TObject); |
| 21 |
public |
public |
| 22 |
end; |
end; |
| 23 |
|
|
| 25 |
|
|
| 26 |
{$R *.dfm} |
{$R *.dfm} |
| 27 |
|
|
| 28 |
uses Unit3, Unit1, ServerController, Unit4; |
uses Unit3; |
| 29 |
|
|
| 30 |
|
procedure TPayForm.IWButton1Click(Sender: TObject); |
| 31 |
|
var |
| 32 |
|
s: TFDQuery; |
| 33 |
|
begin |
| 34 |
|
with DM.FDQuery1 do |
| 35 |
|
begin |
| 36 |
|
Open('select number,serial from cart_data;'); |
| 37 |
|
s := TFDQuery.Create(nil); |
| 38 |
|
try |
| 39 |
|
s.Connection := DM.FDConnection1; |
| 40 |
|
s.Open('select * from recent_data;'); |
| 41 |
|
while Eof = false do |
| 42 |
|
begin |
| 43 |
|
s.AppendRecord([Fields.Fields[0].AsInteger, |
| 44 |
|
Fields.Fields[1].AsInteger]); |
| 45 |
|
Delete; |
| 46 |
|
end; |
| 47 |
|
finally |
| 48 |
|
s.Free; |
| 49 |
|
end; |
| 50 |
|
end; |
| 51 |
|
WebApplication.ShowMessage('お買い上げありがとうございました'); |
| 52 |
|
Release; |
| 53 |
|
end; |
| 54 |
|
|
| 55 |
procedure TPayForm.IWButton2Click(Sender: TObject); |
procedure TPayForm.IWButton2Click(Sender: TObject); |
| 56 |
begin |
begin |