uvadgreckoning.pas
来自「一整套的源代码」· PAS 代码 · 共 76 行
PAS
76 行
unit UVADGReckoning;
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, UMADReckoning, cxCheckBox, UCloneDataModel, UPrimaryDataModel, Factory,
cxDBLookupComboBox, UView, UControllerView, UPagesView,
UAdapterDataPagesView, cxSplitter,
UVADGRmaterial, UVADGRMedicine, UVADGRservice;
type
TVADGReckoning = class(TAdapterDataGridView)
GridDBTableViewRECKONINGID: TcxGridDBColumn;
GridDBTableViewCREATED: TcxGridDBColumn;
GridDBTableViewUPDATED: TcxGridDBColumn;
GridDBTableViewCHARGE: TcxGridDBColumn;
GridDBTableViewISACTIVE: TcxGridDBColumn;
GridDBTableViewISVALID: TcxGridDBColumn;
GridDBTableViewSICKID: TcxGridDBColumn;
Sick: TDataSource;
Splitter1: TSplitter;
Pages: TAdapterDataPagesView;
private
SickModel: TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption: string; override;
procedure InitView; override;
end;
implementation
uses RzTabs, UMADSick, UDataView, UQueryDataModel;
{$R *.dfm}
function TVADGReckoning.GetCaption: string;
begin
Result := '帐单';
end;
procedure TVADGReckoning.InitModel;
begin
inherited;
SickModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(SickFactory.GetModel).Clone(SickModel);
Sick.DataSet := SickModel.GetDataSet;
end;
procedure TVADGReckoning.InitView;
var
Page: TRzTabSheet;
DataView: TDataView;
begin
inherited;
Page := Pages.NewPage;
DataView := TVADGRmedicine.Create(Self, RMedicineFactory);
TQueryDataModel(DataView.GetDataModel).Query(GetKey);
Pages.BandView(Page, DataView);
Page := Pages.NewPage;
DataView := TVADGRservice.Create(Self, RserviceFactory);
TQueryDataModel(DataView.GetDataModel).Query(GetKey);
Pages.BandView(Page, DataView);
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?