📄 uvmadginpatientprepay.pas
字号:
unit UVMADGInpatientPrepay;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UVMADGInpatient, cxStyles, cxCustomData, cxGraphics, cxFilter,
cxData, cxDataStorage, cxEdit, DB, cxDBData, cxDBLookupComboBox,
dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg, dxBkgnd, dxWrap, dxPrnDev,
dxPSCompsProvider, dxPSFillPatterns, dxPSEdgePatterns, dxPSCore,
RzCommon, cxGridLevel, cxGridCustomTableView, cxGridTableView,
cxGridDBTableView, cxClasses, cxControls, cxGridCustomView, cxGrid, jpeg,
RzBckgnd, ExtCtrls, RzPanel, UView, UControllerView, UPagesView,
UAdapterDataPagesView, cxSplitter, RzTabs, MyTools,
Factory, UVADGPrepayHistory, UQueryDataModel;
type
TVMADGInpatientPrepay = class(TVMADGInpatient)
cxSplitter1: TcxSplitter;
PagesView: TAdapterDataPagesView;
procedure GridClick(Sender: TObject);
private
PrepayHistoryView : TVADGPrepayHistory;
protected
procedure InitModel; override;
procedure InitView; override;
public
function GetCaption: string; override;
end;
implementation
{$R *.dfm}
{ TVMADGInpatientPrepay }
function TVMADGInpatientPrepay.GetCaption: string;
begin
Result := '预交金交费';
end;
procedure TVMADGInpatientPrepay.InitModel;
begin
inherited;
end;
procedure TVMADGInpatientPrepay.InitView;
var
Page: TRzTabSheet;
Key: IKey;
begin
inherited;
Page := PagesView.NewPage;
PrepayHistoryView := TVADGPrepayHistory.Create(Page, QPrepayHistoryFactory);
PagesView.BandView(Page,PrepayHistoryView);
Key := GetDataModel.GetKey;
if assigned(key) then showmessage('ldkjlkdjldkjlkdj');
TQueryDataModel(PrepayHistoryView.GetDataModel).Query(Key);
end;
procedure TVMADGInpatientPrepay.GridClick(Sender: TObject);
begin
inherited;
TQueryDataModel(PrepayHistoryView.GetDataModel).Query(GetDataModel.GetKey);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -