Home_dm.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit Home_dm;
- interface
- uses
- Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd, ReqMulti,
- WebDisp, WebAdapt, WebComp, WebSess, WebUsers;
- type
- THome = class(TWebAppPageModule)
- PageProducer: TPageProducer;
- WebAppComponents: TWebAppComponents;
- ApplicationAdapter: TApplicationAdapter;
- PageDispatcher: TPageDispatcher;
- AdapterDispatcher: TAdapterDispatcher;
- WebUserList1: TWebUserList;
- EndUserSessionAdapter1: TEndUserSessionAdapter;
- SessionsService1: TSessionsService;
- AdapterField: TAdapterField;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- function Home: THome;
- implementation
- {$R *.dfm} {*.html}
- uses WebReq, WebCntxt, WebFact, Variants;
- function Home: THome;
- begin
- Result := THome(WebContext.FindModuleClass(THome));
- end;
- initialization
- if WebRequestHandler <> nil then
- WebRequestHandler.AddWebModuleFactory(TWebAppPageModuleFactory.Create(THome, TWebPageInfo.Create([wpPublished, wpLoginRequired], '.html'), caCache));
- end.