【delphi开源代码栏目提醒】:网学会员为需要delphi开源代码的朋友们搜集整理了GridU.pas相关资料,希望对各位网友有所帮助!
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.