uvadgsoomedicinedetail.pas
来自「一整套的源代码」· PAS 代码 · 共 74 行
PAS
74 行
unit UVADGSOOMedicineDetail;
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, UCloneDataModel, UPrimaryDataModel, Factory, cxDBLookupComboBox,
UView, cxCheckBox, UMasterAdapterDataGridView,
UDataModel, cxCurrencyEdit;
type
TVADGSOOMedicineDetail = class(TMasterAdapterDataGridView)
MedicineStockID: TDataSource;
StockoutorderID: TDataSource;
GridDBTableViewSOOMEDICINEDETAILID: TcxGridDBColumn;
GridDBTableViewPRICE: TcxGridDBColumn;
GridDBTableViewAMOUNT: TcxGridDBColumn;
GridDBTableViewTOTAL: TcxGridDBColumn;
GridDBTableViewSTOCKOUTORDERID: TcxGridDBColumn;
GridDBTableViewMEDICINESTOCKID: TcxGridDBColumn;
GridDBTableViewISAPPROVE: TcxGridDBColumn;
private
MedicineStockIDModel: TCloneDataModel;
StockoutorderIDModel: TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption: string; override;
function GetDetailView: TView; override;
end;
implementation
uses UMADSOOMedicineDetail, UMADStockoutorder, UVADISOOMedicineDetail,
UMADMedicineStock;
{$R *.dfm}
{ TVADGSOOMedicineDetail }
function TVADGSOOMedicineDetail.GetCaption: string;
begin
Result := '医药出库单明细';
end;
function TVADGSOOMedicineDetail.GetDetailView: TView;
var
View : TVADISOOMedicineDetail;
begin
View := TVADISOOMedicineDetail.Create(Self, GetModelFactory);
View.SetModel(GetModel);
Result := View;
end;
procedure TVADGSOOMedicineDetail.InitModel;
begin
inherited;
MedicineStockIDModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(MedicineStockFactory.GetModel).Clone(MedicineStockIDModel);
MedicineStockID.DataSet := MedicineStockIDModel.GetDataSet;
StockoutorderIDModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(StockoutorderFactory.GetModel).Clone(StockoutorderIDModel);
StockoutorderID.DataSet := StockoutorderIDModel.GetDataSet;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?