📄 uvadidamedicine.pas
字号:
unit UVADIDAMedicine;
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, DBCtrls, RzDBCmbo, RzDBEdit, RzRadChk, RzDBChk,
StdCtrls, RzLabel, Mask, RzEdit,
UCloneDataModel;
type
TVADIDAMedicine = class(TAdapterDataItemView)
RzDBEdit1: TRzDBEdit;
RzDBEdit2: TRzDBEdit;
RzDBEdit4: TRzDBEdit;
RzLabel1: TRzLabel;
RzLabel2: TRzLabel;
RzLabel3: TRzLabel;
RzLabel4: TRzLabel;
RzLabel10: TRzLabel;
RzLabel11: TRzLabel;
RzLabel12: TRzLabel;
RzLabel13: TRzLabel;
RzDBLookupComboBox4: TRzDBLookupComboBox;
RzDBLookupComboBox1: TRzDBLookupComboBox;
RzDBLookupComboBox3: TRzDBLookupComboBox;
ApproachId: TDataSource;
UseMethodId: TDataSource;
MedicineId: TDataSource;
DoctorAdviceId: TDataSource;
RzDBDateTimeEdit3: TRzDBDateTimeEdit;
RzDBLookupComboBox2: TRzDBLookupComboBox;
private
DoctorAdviceModel: TCloneDataModel;
MedicineModel: TCloneDataModel;
UseMethodModel: TCloneDataModel;
ApproachModel: TCloneDataModel;
StopModel: TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption: string; override;
end;
implementation
uses UVMADGDAMedicine, Factory, UPrimaryDataModel,
UMADDoctorAdvice, UMADUseMethod, UMADApproach, UMADDAMedicine,
UMADEmployee;
{$R *.dfm}
{ TVADIDAMedicine }
function TVADIDAMedicine.GetCaption: string;
begin
Result := '医嘱用药';
end;
procedure TVADIDAMedicine.InitModel;
begin
inherited;
DoctorAdviceModel := GetCloneDataModel(TPrimaryDataModel(DoctorAdviceFactory.GetModel));
DoctorAdviceId.DataSet := DoctorAdviceModel.GetDataSet;
MedicineModel := GetCloneDataModel(TPrimaryDataModel(MedicineFactory.GetModel));
MedicineId.DataSet := MedicineModel.GetDataSet;
UseMethodModel := GetCloneDataModel(TPrimaryDataModel(UseMethodFactory.GetModel));
UseMethodId.DataSet := UseMethodModel.GetDataSet;
ApproachModel := GetCloneDataModel(TPrimaryDataModel(ApproachFactory.GetModel));
ApproachId.DataSet := ApproachModel.GetDataSet;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -