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

Delphi控件源码

开发平台:

Delphi

  1. unit form_dm;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
  5.   CompProd, PagItems, SiteProd, MidItems, WebForm, WebComp;
  6. type
  7.   Tformview = class(TWebPageModule)
  8.     AdapterPageProducer: TAdapterPageProducer;
  9.     AdapterForm1: TAdapterForm;
  10.     AdapterFieldGroup1: TAdapterFieldGroup;
  11.     AdapterCommandGroup1: TAdapterCommandGroup;
  12.     CmdDeleteRow: TAdapterActionButton;
  13.     CmdCancel: TAdapterActionButton;
  14.     CmdApply: TAdapterActionButton;
  15.     FldCUST_NO: TAdapterDisplayField;
  16.     FldCUSTOMER: TAdapterDisplayField;
  17.     FldADDRESS_LINE1: TAdapterDisplayField;
  18.     FldCITY: TAdapterDisplayField;
  19.     FldSTATE_PROVINCE: TAdapterDisplayField;
  20.     FldCOUNTRY: TAdapterDisplayField;
  21.     AdapterErrorList1: TAdapterErrorList;
  22.   private
  23.     { Private declarations }
  24.   public
  25.     { Public declarations }
  26.   end;
  27.   function formview: Tformview;
  28. implementation
  29. {$R *.dfm}  {*.html}
  30. uses WebReq, WebCntxt, WebFact, Variants, table_dm;
  31. function formview: Tformview;
  32. begin
  33.   Result := Tformview(WebContext.FindModuleClass(Tformview));
  34. end;
  35. initialization
  36.   if WebRequestHandler <> nil then
  37.     WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(Tformview, TWebPageInfo.Create([{wpPublished, wpLoginRequired}], '.html'), crOnDemand, caCache));
  38. end.