gridu.pas

来自「本程序实现的是delphi实例」· PAS 代码 · 共 47 行

PAS
47
字号

unit GridU;

interface

uses
  Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
  MidItems, WebForm, CompProd, PagItems, SiteProd, WebComp;

type
  TGrid = class(TWebPageModule)
    AdapterPageProducer: TAdapterPageProducer;
    AdapterForm1: TAdapterForm;
    AdapterGrid1: TAdapterGrid;
    ColSpeciesNo: TAdapterDisplayColumn;
    ColCategory: TAdapterDisplayColumn;
    ColCommon_Name: TAdapterDisplayColumn;
    ColSpeciesName: TAdapterDisplayColumn;
    ColGraphic: TAdapterDisplayColumn;
    AdapterCommandColumn1: TAdapterCommandColumn;
    CmdEditRow: TAdapterActionButton;

  private
    { Private declarations }
  public
    { Public declarations }
  end;

  function Grid: TGrid;

implementation

{$R *.dfm}  {*.html}

uses WebReq, WebCntxt, WebFact, Variants, DataU;

function Grid: TGrid;
begin
  Result := TGrid(WebContext.FindModuleClass(TGrid));
end;

initialization
  if WebRequestHandler <> nil then
    WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(TGrid, TWebPageInfo.Create([wpPublished, wpLoginRequired], '.html'), crOnDemand, caCache));

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?