📄 udep.pas
字号:
unit uDep;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
MidItems, WebForm, WebComp, CompProd, PagItems, SiteProd;
type
TDep = class(TWebPageModule)
AdapterPageProducer: TAdapterPageProducer;
AdapterForm1: TAdapterForm;
AdapterGrid1: TAdapterGrid;
AdapterCommandGroup1: TAdapterCommandGroup;
CmdNewRow: TAdapterActionButton;
ColDEPNAME: TAdapterDisplayColumn;
ColDEPLEADER: TAdapterDisplayColumn;
ColDEPTEL: TAdapterDisplayColumn;
ColDEPNOTE: TAdapterDisplayColumn;
AdapterCommandColumn1: TAdapterCommandColumn;
CmdDeleteRow: TAdapterActionButton;
CmdEditRow: TAdapterActionButton;
procedure WebPageModuleBeforeDispatchPage(Sender: TObject;
const PageName: String; var Handled: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
function Dep: TDep;
implementation
{$R *.dfm} {*.html}
uses WebReq, WebCntxt, WebFact, Variants, wdmDB;
function Dep: TDep;
begin
Result := TDep(WebContext.FindModuleClass(TDep));
end;
procedure TDep.WebPageModuleBeforeDispatchPage(Sender: TObject;
const PageName: String; var Handled: Boolean);
begin
if not wdm.adtDep.Active then wdm.adtDep.Open ;
wdm.adtDep.First;
end;
initialization
if WebRequestHandler <> nil then
WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(TDep, TWebPageInfo.Create([wpPublished , wpLoginRequired], '.html', '', '部门信息'), crOnDemand, caCache));
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -