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