home_dm.pas
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit home_dm;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd, ReqMulti,
  5.   WebAdapt, DBAdapt, WebDisp, WebComp, CompProd, PagItems, SiteProd,
  6.   MidItems, WebForm;
  7. type
  8.   THomePage = class(TWebAppPageModule)
  9.     AdapterPageProducer: TAdapterPageProducer;
  10.     WebAppComponents: TWebAppComponents;
  11.     ApplicationAdapter: TApplicationAdapter;
  12.     PageDispatcher: TPageDispatcher;
  13.     AdapterDispatcher: TAdapterDispatcher;
  14.     AdapterForm1: TAdapterForm;
  15.     AdapterFieldGroup1: TAdapterFieldGroup;
  16.     AdapterCommandGroup1: TAdapterCommandGroup;
  17.     AdapterGrid1: TAdapterGrid;
  18.     CmdFirstRow: TAdapterActionButton;
  19.     CmdPrevRow: TAdapterActionButton;
  20.     CmdNextRow: TAdapterActionButton;
  21.     CmdLastRow: TAdapterActionButton;
  22.     ColEMP_NO: TAdapterDisplayColumn;
  23.     ColFIRST_NAME: TAdapterDisplayColumn;
  24.     ColLAST_NAME: TAdapterDisplayColumn;
  25.     ColDEPT_NO: TAdapterDisplayColumn;
  26.     ColJOB_CODE: TAdapterDisplayColumn;
  27.     ColJOB_COUNTRY: TAdapterDisplayColumn;
  28.     ColSALARY: TAdapterDisplayColumn;
  29.     FldDEPARTMENT: TAdapterDisplayField;
  30.     FldDEPT_NO: TAdapterDisplayField;
  31.     FldHEAD_DEPT: TAdapterDisplayField;
  32.     FldLOCATION: TAdapterDisplayField;
  33.     FldBUDGET: TAdapterDisplayField;
  34.   private
  35.     { Private declarations }
  36.   public
  37.     { Public declarations }
  38.   end;
  39.   function HomePage: THomePage;
  40. implementation
  41. {$R *.dfm}  {*.html}
  42. uses WebReq, WebCntxt, WebFact, Variants, datamod;
  43. function HomePage: THomePage;
  44. begin
  45.   Result := THomePage(WebContext.FindModuleClass(THomePage));
  46. end;
  47. initialization
  48.   if WebRequestHandler <> nil then
  49.     WebRequestHandler.AddWebModuleFactory(TWebAppPageModuleFactory.Create(THomePage, TWebPageInfo.Create([wpPublished {, wpLoginRequired}], '.html'), caCache));
  50. end.