📄 uvadginpatientstationout.pas
字号:
unit UVADGInpatientStationOut;
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, RzBckgnd, ExtCtrls, RzPanel, Factory,
UAdapterDataGridView, UView, cxDBLookupComboBox, UVADIInpatientOut, MyTools, UQueryDataModel,
UCloneDataModel, UPrimaryDataModel;
type
TVADGInpatientStationOut = class(TMasterAdapterDataGridView)
GridDBTableViewINPATIENTID: TcxGridDBColumn;
GridDBTableViewLINKMANPHONE: TcxGridDBColumn;
GridDBTableViewLINKMANADDRESS: TcxGridDBColumn;
GridDBTableViewLINKMANNAME: TcxGridDBColumn;
GridDBTableViewRPRPOSTCODE: TcxGridDBColumn;
GridDBTableViewRPRADDRESS: TcxGridDBColumn;
GridDBTableViewWORKDEPTPOSTCODE: TcxGridDBColumn;
GridDBTableViewIDCARDCODE: TcxGridDBColumn;
GridDBTableViewPHONE: TcxGridDBColumn;
GridDBTableViewWORKDEPATCAPTION: TcxGridDBColumn;
GridDBTableViewCREATED: TcxGridDBColumn;
GridDBTableViewUPDATED: TcxGridDBColumn;
GridDBTableViewMEMO: TcxGridDBColumn;
GridDBTableViewPREPAY: TcxGridDBColumn;
GridDBTableViewBLANCE: TcxGridDBColumn;
GridDBTableViewFOODID: TcxGridDBColumn;
GridDBTableViewSICKNESSLEVELID: TcxGridDBColumn;
GridDBTableViewBEDID: TcxGridDBColumn;
GridDBTableViewSICKTYPEID: TcxGridDBColumn;
GridDBTableViewCOUNTRYID: TcxGridDBColumn;
GridDBTableViewBLOODTYPEID: TcxGridDBColumn;
GridDBTableViewPERSONRELATIONID: TcxGridDBColumn;
GridDBTableViewSICKID: TcxGridDBColumn;
GridDBTableViewRECKONINGID: TcxGridDBColumn;
GridDBTableViewSECTIONOFFICEID: TcxGridDBColumn;
GridDBTableViewINDATE: TcxGridDBColumn;
GridDBTableViewOUTDATE: TcxGridDBColumn;
GridDBTableViewDOCTORID: TcxGridDBColumn;
Bed: TDataSource;
SickNessLevel: TDataSource;
FoodID: TDataSource;
SectionOffice: TDataSource;
SickType: TDataSource;
Doctor: TDataSource;
Country: TDataSource;
BloodType: TDataSource;
PERSONRELATION: TDataSource;
private
InpatientView : TVADIInpatientOut;
FoodModel : TCloneDataModel;
SickNessLevelModel : TCloneDataModel;
BedModel : TCloneDataModel;
SICKTYPEModel: TCloneDataModel;
CountryModel: TCloneDataModel;
BloodTypeModel: TCloneDataModel;
PERSONRELATIONModel: TCloneDataModel;
DoctorModel : TCloneDataModel;
SectionOfficeModel : TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption : String; override;
function GetDetailView: TView; override;
procedure Append(Parameters: IParameters); override;
procedure Delete(Parameters: IParameters); override;
end;
implementation
uses UMADInpatientStationOut, UMADDoctorStation,
UMADSectionOffice, UMADSickNessLevel, UDataView;
{$R *.dfm}
{ TVADGInpatientStationOut }
procedure TVADGInpatientStationOut.Append(Parameters: IParameters);
begin
//
end;
procedure TVADGInpatientStationOut.Delete(Parameters: IParameters);
begin
//
end;
function TVADGInpatientStationOut.GetCaption: String;
begin
Result := '出院登记';
end;
function TVADGInpatientStationOut.GetDetailView: TView;
var
View : TVADIInpatientOut;
begin
View := TVADIInpatientOut.Create(Self);
View.SetModel(GetModel);
Result := View;
end;
procedure TVADGInpatientStationOut.InitModel;
begin
inherited;
TQueryDataModel(GetDataModel).Query(nil);
FoodModel := GetCloneDataModel(TPrimaryDataModel(FoodFactory.GetModel));
FoodID.DataSet := FoodModel.GetDataSet;
SickNessLevelModel := GetCloneDataModel(TPrimaryDataModel(SickNessLevelFactory.GetModel));
SickNessLevel.DataSet := SickNessLevelModel.GetDataSet;
BedModel := GetCloneDataModel(TPrimaryDataModel(BedFactory.GetModel));
Bed.DataSet := BedModel.GetDataSet;
SICKTYPEModel := GetCloneDataModel(TPrimaryDataModel(SICKTYPEFactory.GetModel));
Bed.DataSet := BedModel.GetDataSet;
CountryModel := GetCloneDataModel(TPrimaryDataModel(CountryFactory.GetModel));
Bed.DataSet := BedModel.GetDataSet;
BloodTypeModel := GetCloneDataModel(TPrimaryDataModel(BloodTypeFactory.GetModel));
Bed.DataSet := BedModel.GetDataSet;
PERSONRELATIONModel := GetCloneDataModel(TPrimaryDataModel(PERSONRELATIONFactory.GetModel));
Bed.DataSet := BedModel.GetDataSet;
DoctorModel := GetCloneDataModel(TPrimaryDataModel(DoctorStationFactory.GetModel));
Doctor.DataSet := DoctorModel.GetDataSet;
SectionOfficeModel := GetCloneDataModel(TPrimaryDataModel(SectionOfficeFactory.GetModel));
SectionOffice.DataSet := SectionOfficeModel.GetDataSet;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -