?? 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 + -