?? uvadidoctoradvice.pas
字號:
unit UVADIDoctorAdvice;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UAdapterDataItemView, dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg,
dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
dxPSEdgePatterns, DB, dxPSCore, RzCommon, RzButton, jpeg, RzBckgnd,
ExtCtrls, RzPanel, StdCtrls, RzLabel, Mask, RzEdit, RzDBEdit, DBCtrls,
RzDBCmbo, RzRadChk, RzDBChk,
UCloneDataModel;
type
TVADIDoctorAdvice = class(TAdapterDataItemView)
RzDBLookupComboBox1: TRzDBLookupComboBox;
RzDBLookupComboBox2: TRzDBLookupComboBox;
RzDBEdit1: TRzDBEdit;
RzLabel1: TRzLabel;
RzLabel9: TRzLabel;
RzLabel10: TRzLabel;
RzLabel11: TRzLabel;
RzDBLookupComboBox3: TRzDBLookupComboBox;
DoctorId: TDataSource;
InpatientId: TDataSource;
DoctoradviceTypeId: TDataSource;
private
InpatientModel: TCloneDataModel;
DoctorAdviceTypeModel: TCloneDataModel;
protected
procedure InitModel; override;
public
Function GetCaption: string; override;
end;
implementation
uses UMADDoctorAdvice, UMADDoctoradviceType, UMADInpatient, UMADDoctor,
UMADEmployee, Factory, UPrimaryDataModel;
{$R *.dfm}
{ TVADIDoctorAdvice }
function TVADIDoctorAdvice.GetCaption: string;
begin
Result := '醫囑';
end;
procedure TVADIDoctorAdvice.InitModel;
begin
inherited;
InpatientModel := GetCloneDataModel(TPrimaryDataModel(InpatientFactory.GetModel));
InpatientID.DataSet := InpatientModel.GetDataSet;
DoctorAdviceTypeModel := GetCloneDataModel(TPrimaryDataModel(DoctorAdviceTypeFactory.GetModel));
DoctorAdviceTypeID.DataSet := DoctorAdviceTypeModel.GetDataSet;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -