📄 uvadgsoomedicinedetail.pas
字号:
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;
type
TVADGSOOMedicineDetail = class(TMasterAdapterDataGridView)
MedicineStockID: TDataSource;
StockoutorderID: TDataSource;
GridDBTableViewSOOMEDICINEDETAILID: TcxGridDBColumn;
GridDBTableViewPRICE: TcxGridDBColumn;
GridDBTableViewAMOUNT: TcxGridDBColumn;
GridDBTableViewTOTAL: TcxGridDBColumn;
GridDBTableViewSTOCKOUTORDERID: TcxGridDBColumn;
GridDBTableViewMEDICINECODE: 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -