Develop and Download Open Source Software

Browse Subversion Repository

Contents of /Unit2.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Nov 22 11:18:44 2015 UTC (8 years, 4 months ago) by yamat0jp
File MIME type: text/x-pascal
File size: 1742 byte(s)
方向性はあってますが技術的に行き詰っています.IntraWebの情報・経験が不足しています.
ボタンでフォームを切り替えることさえうまくいきませんがセッションの問題でしょうか?
1 unit Unit2;
2
3 interface
4
5 uses
6 Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Vcl.Controls,
7 IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompButton,
8 IWCompLabel, IWCompEdit, IWDBStdCtrls, IWCompExtCtrls, IWDBExtCtrls,
9 IWCompFile, IWCompText, FireDAC.Stan.Intf, FireDAC.Stan.Option,
10 FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
11 FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB,
12 FireDAC.Comp.DataSet, FireDAC.Comp.Client, IWCompListbox, Vcl.Dialogs,
13 Graphics;
14
15 type
16 TIWForm2 = class(TIWAppForm)
17 IWButton1: TIWButton;
18 IWDBNavigator1: TIWDBNavigator;
19 IWDBEdit1: TIWDBEdit;
20 IWDBEdit2: TIWDBEdit;
21 IWLabel1: TIWLabel;
22 IWLabel2: TIWLabel;
23 IWLabel3: TIWLabel;
24 IWDBEdit3: TIWDBEdit;
25 IWDBEdit4: TIWDBEdit;
26 IWLabel4: TIWLabel;
27 IWDBText1: TIWDBText;
28 IWButton2: TIWButton;
29 procedure IWDBNavigator1Edit(Sender: TObject);
30 procedure IWDBNavigator1Cancel(Sender: TObject);
31 procedure IWDBNavigator1Post(Sender: TObject);
32 public
33 private
34 temp: TDate;
35 end;
36
37 implementation
38
39 {$R *.dfm}
40
41 uses ServerController, Unit4;
42
43 procedure TIWForm2.IWDBNavigator1Cancel(Sender: TObject);
44 begin
45 with DM.FDTable2 do
46 begin
47 Edit;
48 FieldByName('DATE').AsDateTime:=temp;
49 Post;
50 end;
51 IWButton2.Enabled:=false;
52 end;
53
54 procedure TIWForm2.IWDBNavigator1Edit(Sender: TObject);
55 begin
56 temp:=DM.FDTable2.FieldByName('DATE').AsDateTime;
57 IWButton2.Enabled:=true;
58 end;
59
60 procedure TIWForm2.IWDBNavigator1Post(Sender: TObject);
61 begin
62 with DM.FDTable2 do
63 begin
64 Edit;
65 FieldByName('DATE').AsDateTime:=Now;
66 Post;
67 end;
68 end;
69
70 end.

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26