?? umadvrmedicineapprove.pas
字號:
unit UMADVRMedicineApprove;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UMADVRMedicine, Provider, OraProvider, DB, MemDS, DBAccess, Ora,
OraSmart, DBClient, UModel, MyFactory, MyTools;
type
TMADVRMedicineApprove = class(TMADVRMedicine)
private
SickID : IIntegerKey;
protected
procedure PrepareQuery(Parameters: MyTools.IQueryParameters); override;
public
procedure Append(Parameters: IParameters); override;
end;
TVRmedicineApproveFactory = class(TModelFactory)
function NewModel: TModel; override;
end;
implementation
{$R *.dfm}
{ TVRmedicineApproveFactory }
function TVRmedicineApproveFactory.NewModel: TModel;
begin
Result := TMADVRMedicineApprove.Create(GetOwner);
end;
{ TMADVRMedicineApprove }
procedure TMADVRMedicineApprove.Append(Parameters: IParameters);
begin
inherited;
GetDataSet.FieldByName('SICKE_SICKID').AsInteger := SICKID.GetKey;
end;
procedure TMADVRMedicineApprove.PrepareQuery(Parameters: IQueryParameters);
begin
inherited;
SickID := IIntegerKey(Parameters);
DataSet.ParamByName('SICKE_SICKID').AsInteger := SickID.GetKey;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -