📄 umaddoctortoll.pas
字号:
unit UMADDoctorToll;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UQueryDataModel, Provider, OraProvider, MemDS, DBAccess, Ora,
OraSmart, DB, DBClient, UModel, MyFactory, MyTools, UAdapterDataModel;
type
TMADDoctorToll = class(TQueryDataModel)
DataSetDOCTORID: TFloatField;
DataSetSECTIONOFFICEID: TFloatField;
DataSetDOCTORCATALOGID: TFloatField;
DataSetCNAME: TStringField;
DataSetTOLLSTATIONID: TFloatField;
private
protected
procedure PrepareQuery(Parameters: MyTools.IQueryParameters); override;
public
end;
TDoctorTollFactory = class (TModelFactory)
function NewModel : TModel; override;
end;
implementation
uses UDataModel;
{$R *.dfm}
{ TDoctorTollFactory }
function TDoctorTollFactory.NewModel: TModel;
begin
Result := TMADDoctorToll.Create(GetOwner);
end;
{ TMADDoctorToll }
{ TMADDoctorToll }
procedure TMADDoctorToll.PrepareQuery(Parameters: IQueryParameters);
begin
DataSet.ParamByName('TollStationID').AsInteger := IIntegerKey(Parameters).GetKey;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -