1.创建系统运行主界面的虚函数
声明:
function CreateMainForm(AContext: TContext): TForm; override;
实现:
function TSystemInterface.CreateMainForm(AContext: TContext): TForm;
begin
Result := ZKMainForm.TXPMainForm.Create(AContext);
end;
2.创建系统登陆界面的虚函数。
声明:
function ShowLogonForm(var ALogonID,APassword:string):Boolean;override;
实现:
function TSystemInterface.ShowLogonForm(var ALogonID, APassword: string): Boolean;
begin
Result := TLogonForm.ShowLogonForm(ALogonID, APassword);
end;
3.创建登陆用户参数界面的虚函数。
声明:
function EditParamsValue(AContext: TContext; AParams: TStrings): Boolean; override;
实现:
function EditParamsValue(AContext: TContext; AParams: TStrings): Boolean;
begin
Result := TUserParamValueEditorForm.EditParamsValue(AContext, AParams);
end;
4.创建SQL条件构造窗体的虚函数。
声明:
function BuildSQLFilter(ADataSet: TBizDataSet; var AFilter: string): Boolean; override;
实现:
function TBaseSystemInterface.BuildSQLFilter(ADataSet: TBizDataSet; var AFilter: string): Boolean;
begin
Result := TSimpleSQLFilterBuildForm.BuildSQLFilter(ADataSet, AFilter);
end;
4.创建选择任务对话框的虚函数。
声明:
function SelectTasks(ASoruce, ASelected: TList): Boolean; override;
实现:
function TBaseSystemInterface.SelectTasks(ASoruce, ASelected: TList): Boolean;
begin
Result := TSelectTasksForm.SelectTasks(Self.Context, ASoruce, ASelected);
end;
5.控制流程流转的虚函数。
声明:
function EditFlowOutFlowTasks(ACommand: TFlowOutCommand): Boolean; override;
实现:
function TBaseSystemInterface.EditFlowOutFlowTasks(ACommand: TFlowOutCommand): Boolean;
begin
Result := TFlowOutForm.EditFlowOutFlowTasks(Self.Context, ACommand.FlowTasks,
ACommand.AllowFlowTasks, ACommand.FlowTaskGraph, True);
end;
6.控制流程回退的虚函数。
声明:
function EditFlowBackFlowTasks(ACommand: TFlowBackCommand): Boolean; override;
实现:
function TBaseSystemInterface.EditFlowBackFlowTasks(ACommand: TFlowBackCommand): Boolean;
begin
Result := TSelectFlowTaskListForm.EditFlowTasks(Self.Context, '回退', ACommand.FlowTasks,
True);
end;
7.控制流程转发的虚函数。
声明:
function EditFlowTransmitFlowTasks(ACommand: TFlowTransmitCommand): Boolean; override;
实现:
function TBaseSystemInterface.EditFlowTransmitFlowTasks(ACommand: TFlowTransmitCommand): Boolean;
begin
Result := TSelectFlowTaskListForm.EditFlowTasks(Self.Context, '转发', ACommand.FlowTasks,
True);
end;
8.选择流程任务列表窗体的虚函数。
声明:
function EditFlowNotifyFlowTasks(ACommand: TFlowNotifyCommand): Boolean; override;
实现:
function TBaseSystemInterface.EditFlowNotifyFlowTasks(ACommand: TFlowNotifyCommand): Boolean;
begin
Result := TSelectFlowTaskListForm.EditFlowTasks(Self.Context, '通知', ACommand.FlowTasks,
False);
end;
9.创建历史数据窗体的虚函数。
声明:
procedure ShowTaskHistoryData(const AContext: TContext;
const ATask: TTask); overload; override;
procedure ShowTaskHistoryData(const ADeptID, APositionID, APersonID: string;
实现:
procedure TBaseSystemInterface.ShowTaskHistoryData(const ADeptID, APositionID, APersonID: string;
const ATask: TTask);
begin
TTaskHistoryDataForm.ShowTaskHistoryData(ADeptID, APositionID, APersonID, ATask);
end;
False);
end;
10.创建流程浏览的虚函数。
声明:
procedure ShowFlowView(const AFlow: TFlow); override;
实现:
procedure TBaseSystemInterface.ShowFlowView(const AFlow: TFlow);
begin
TFlowViewForm.ShowFlowViewForm(AFlow);
end;
你可以理解8楼的虚函数的声明、实现,然后就可以根据自己的个性化需求重载相应的函数更改相应的窗体了 |