uvmadginpatientprepay.pas

来自「一整套的源代码」· PAS 代码 · 共 69 行

PAS
69
字号
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 + =
减小字号Ctrl + -
显示快捷键?