uvadgtollstation.pas

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

PAS
52
字号
unit UVADGTollStation;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UAdapterDataGridView, 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, cxDBLookupComboBox,
  UCloneDataModel;

type
  TVADGTollStation = class(TAdapterDataGridView)
    SectionOfficeId: TDataSource;
    GridDBTableViewTOLLSTATIONID: TcxGridDBColumn;
    GridDBTableViewCAPTION: TcxGridDBColumn;
    GridDBTableViewSECTIONOFFICEID: TcxGridDBColumn;
  private
    SectionOfficeModel: TCloneDataModel;
  protected
    procedure InitModel; override;
  public
    function GetCaption: string; override;
  end;


implementation

uses UMADTollStation, Factory, UPrimaryDataModel, UMADSectionOffice;

{$R *.dfm}

{ TVADGTollStation }

function TVADGTollStation.GetCaption: string;
begin
  Result := '门诊';
end;

procedure TVADGTollStation.InitModel;
begin
  inherited;
  SectionOfficeModel := GetCloneDataModel(TPrimaryDataModel(SectionOfficeFactory.GetModel));
  SectionOfficeId.DataSet := SectionOfficeModel.GetDataSet;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?