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

Delphi控件源码

开发平台:

Delphi

  1. unit table_dm;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd, ReqMulti,
  5.   WebDisp, WebAdapt, WebComp, CompProd, PagItems, SiteProd, DBXpress,
  6.   FMTBcd, MidItems, WebForm, DB, SqlExpr, DBAdapt, Provider, DBClient;
  7. type
  8.   Ttable = class(TWebAppPageModule)
  9.     AdapterPageProducer: TAdapterPageProducer;
  10.     WebAppComponents: TWebAppComponents;
  11.     ApplicationAdapter: TApplicationAdapter;
  12.     PageDispatcher: TPageDispatcher;
  13.     AdapterDispatcher: TAdapterDispatcher;
  14.     DataSetAdapter1: TDataSetAdapter;
  15.     AdapterForm1: TAdapterForm;
  16.     AdapterGrid1: TAdapterGrid;
  17.     AdapterCommandGroup1: TAdapterCommandGroup;
  18.     CmdPrevPage: TAdapterActionButton;
  19.     CmdGotoPage: TAdapterActionButton;
  20.     CmdNextPage: TAdapterActionButton;
  21.     ColCUST_NO: TAdapterDisplayColumn;
  22.     ColCUSTOMER: TAdapterDisplayColumn;
  23.     ColADDRESS_LINE1: TAdapterDisplayColumn;
  24.     ColCITY: TAdapterDisplayColumn;
  25.     ColSTATE_PROVINCE: TAdapterDisplayColumn;
  26.     ColCOUNTRY: TAdapterDisplayColumn;
  27.     AdapterCommandColumn1: TAdapterCommandColumn;
  28.     CmdEditRow: TAdapterActionButton;
  29.     CmdDeleteRow: TAdapterActionButton;
  30.     AdapterCommandGroup2: TAdapterCommandGroup;
  31.     CmdNewRow: TAdapterActionButton;
  32.   private
  33.     { Private declarations }
  34.   public
  35.     { Public declarations }
  36.   end;
  37.   function table: Ttable;
  38. implementation
  39. {$R *.dfm}  {*.html}
  40. uses WebReq, WebCntxt, WebFact, Variants, wsnapdata;
  41. function table: Ttable;
  42. begin
  43.   Result := Ttable(WebContext.FindModuleClass(Ttable));
  44. end;
  45. initialization
  46.   if WebRequestHandler <> nil then
  47.     WebRequestHandler.AddWebModuleFactory(TWebAppPageModuleFactory.Create(Ttable, TWebPageInfo.Create([wpPublished {, wpLoginRequired}], '.html'), caCache));
  48. end.