Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /ServerController.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide 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: 1351 byte(s)
方向性はあってますが技術的に行き詰っています.IntraWebの情報・経験が不足しています.
ボタンでフォームを切り替えることさえうまくいきませんがセッションの問題でしょうか?
1 yamat0jp 1 unit ServerController;
2    
3     interface
4    
5     uses
6     SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp,
7     // For OnNewSession Event
8     UserSessionUnit, IWApplication, IWAppForm;
9    
10     type
11     TIWServerController = class(TIWServerControllerBase)
12     procedure IWServerControllerBaseNewSession(ASession: TIWApplication);
13     procedure IWServerControllerBaseBeforeRender(ASession: TIWApplication;
14     AForm: TIWBaseForm; var VNewForm: TIWBaseForm);
15    
16     private
17    
18     public
19     end;
20    
21    
22     function UserSession: TIWUserSession;
23     function IWServerController: TIWServerController;
24    
25     implementation
26    
27     {$R *.dfm}
28    
29     uses
30     IWInit, IWGlobal, Unit5, Unit7;
31    
32     function IWServerController: TIWServerController;
33     begin
34     Result := TIWServerController(GServerController);
35     end;
36    
37     function UserSession: TIWUserSession;
38     begin
39     Result := TIWUserSession(WebApplication.Data);
40     end;
41    
42     procedure TIWServerController.IWServerControllerBaseBeforeRender(
43     ASession: TIWApplication; AForm: TIWBaseForm; var VNewForm: TIWBaseForm);
44     begin
45     VNewForm:=TCartForm.Create(WebApplication);
46     AForm.Release;
47     end;
48    
49     procedure TIWServerController.IWServerControllerBaseNewSession(
50     ASession: TIWApplication);
51     begin
52     ASession.Data := TIWUserSession.Create(nil);
53     end;
54    
55    
56     initialization
57     TIWServerController.SetServerControllerClass;
58    
59     end.
60    

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