📄 uvmadgdamedicine.pas
字号:
unit UVMADGDAMedicine;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UMasterAdapterDataGridView, cxStyles, cxCustomData, cxGraphics,
cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, dxPSGlbl, dxPSUtl,
dxPSEngn, dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider,
dxPSFillPatterns, dxPSEdgePatterns, dxPSCore, RzCommon, cxGridLevel,
cxClasses, cxControls, cxGridCustomView, cxGridCustomTableView,
cxGridTableView, cxGridDBTableView, cxGrid, jpeg, RzBckgnd, ExtCtrls,
RzPanel,
Uview,UVADIDAMedicine, cxDBLookupComboBox, UCloneDataModel,
cxCheckComboBox, cxCheckBox;
type
TVMADGDAMedicine = class(TMasterAdapterDataGridView)
DoctorAdviceId: TDataSource;
MedicineId: TDataSource;
UseMethodId: TDataSource;
ApproachId: TDataSource;
StopBy: TDataSource;
GridDBTableViewDAMEDICINEID: TcxGridDBColumn;
GridDBTableViewMEMO: TcxGridDBColumn;
GridDBTableViewSTOPDATE: TcxGridDBColumn;
GridDBTableViewAMOUNT: TcxGridDBColumn;
GridDBTableViewISACTIVE: TcxGridDBColumn;
GridDBTableViewISTEMPORARY: TcxGridDBColumn;
GridDBTableViewISVALID: TcxGridDBColumn;
GridDBTableViewCREATED: TcxGridDBColumn;
GridDBTableViewUPDATED: TcxGridDBColumn;
GridDBTableViewDOCTORADVICEID: TcxGridDBColumn;
GridDBTableViewUSEMETHODID: TcxGridDBColumn;
GridDBTableViewAPPROACHID: TcxGridDBColumn;
GridDBTableViewSTOPBY: TcxGridDBColumn;
GridDBTableViewMEDICINEID: TcxGridDBColumn;
private
DoctorAdviceModel: TCloneDataModel;
MedicineModel: TCloneDataModel;
UseMethodModel: TCloneDataModel;
ApproachModel: TCloneDataModel;
StopModel: TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption: string; override;
function GetDetailView: TView; override;
end;
implementation
uses UMADDAMedicine,
Factory, UPrimaryDataModel, UDataView,
UMADDoctorAdvice, UMADMedicine, UMADUseMethod, UMADApproach,
UMADEmployee;
{$R *.dfm}
{ TVMADGDAMedicine }
function TVMADGDAMedicine.GetCaption: string;
begin
Result := '医嘱用药';
end;
function TVMADGDAMedicine.GetDetailView: TView;
var
View: TVADIDAMedicine;
begin
View := TVADIDAMedicine.Create(Self, GetModelFactory);
View.SetModel(GetModel);
Result := View;
end;
procedure TVMADGDAMedicine.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;
StopModel := GetCloneDataModel(TPrimaryDataModel(EmployeeFactory.GetModel));
StopBy.DataSet := StopModel.GetDataSet;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -