?? 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 + -