home_dm.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:2k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit home_dm;
- interface
- uses
- Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd, ReqMulti,
- WebAdapt, DBAdapt, WebDisp, WebComp, CompProd, PagItems, SiteProd,
- MidItems, WebForm;
- type
- THomePage = class(TWebAppPageModule)
- AdapterPageProducer: TAdapterPageProducer;
- WebAppComponents: TWebAppComponents;
- ApplicationAdapter: TApplicationAdapter;
- PageDispatcher: TPageDispatcher;
- AdapterDispatcher: TAdapterDispatcher;
- AdapterForm1: TAdapterForm;
- AdapterFieldGroup1: TAdapterFieldGroup;
- AdapterCommandGroup1: TAdapterCommandGroup;
- AdapterGrid1: TAdapterGrid;
- CmdFirstRow: TAdapterActionButton;
- CmdPrevRow: TAdapterActionButton;
- CmdNextRow: TAdapterActionButton;
- CmdLastRow: TAdapterActionButton;
- ColEMP_NO: TAdapterDisplayColumn;
- ColFIRST_NAME: TAdapterDisplayColumn;
- ColLAST_NAME: TAdapterDisplayColumn;
- ColDEPT_NO: TAdapterDisplayColumn;
- ColJOB_CODE: TAdapterDisplayColumn;
- ColJOB_COUNTRY: TAdapterDisplayColumn;
- ColSALARY: TAdapterDisplayColumn;
- FldDEPARTMENT: TAdapterDisplayField;
- FldDEPT_NO: TAdapterDisplayField;
- FldHEAD_DEPT: TAdapterDisplayField;
- FldLOCATION: TAdapterDisplayField;
- FldBUDGET: TAdapterDisplayField;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- function HomePage: THomePage;
- implementation
- {$R *.dfm} {*.html}
- uses WebReq, WebCntxt, WebFact, Variants, datamod;
- function HomePage: THomePage;
- begin
- Result := THomePage(WebContext.FindModuleClass(THomePage));
- end;
- initialization
- if WebRequestHandler <> nil then
- WebRequestHandler.AddWebModuleFactory(TWebAppPageModuleFactory.Create(THomePage, TWebPageInfo.Create([wpPublished {, wpLoginRequired}], '.html'), caCache));
- end.