📄 uvmadgpcomedicinehistory.pas
字号:
unit UVMADGPCOMedicineHistory;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UMasterAdapterDataGridView, 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, UView, cxCheckBox,
cxDBLookupComboBox, MyTools;
type
TVMADGPCOMedicineHistory = class(TMasterAdapterDataGridView)
MaterialStockDetailID: TDataSource;
ApproveBY: TDataSource;
UpdateBY: TDataSource;
CreateBY: TDataSource;
GridDBTableViewPCOMEDICINEID: TcxGridDBColumn;
GridDBTableViewAPPROVEDATE: TcxGridDBColumn;
GridDBTableViewNEWPRICE: TcxGridDBColumn;
GridDBTableViewOLDPRICE: TcxGridDBColumn;
GridDBTableViewCREATED: TcxGridDBColumn;
GridDBTableViewUPDATED: TcxGridDBColumn;
GridDBTableViewISAPPROVE: TcxGridDBColumn;
GridDBTableViewMEDICINESTOCKDETAILID: TcxGridDBColumn;
GridDBTableViewCREATEBY: TcxGridDBColumn;
GridDBTableViewUPDATEBY: TcxGridDBColumn;
GridDBTableViewAPPROVEBY: TcxGridDBColumn;
private
CreateBYModel: TCloneDataModel;
UpdateBYModel: TCloneDataModel;
ApproveBYModel: TCloneDataModel;
MaterialStockDetailIDModel: TCloneDataModel;
protected
procedure InitModel; override;
public
function GetCaption: string; override;
function GetDetailView: TView; override;
procedure Append(Parameters: IParameters); override;
procedure Delete(Parameters: IParameters); override;
procedure Save(Parameters: IParameters); override;
end;
implementation
uses
UMADPCOMedicine, UMADMedicineStockDetail, UMADEmployee, UVADIPCOMedicineHistory;
{$R *.dfm}
{ TVMADGPCOMedicineHistory }
procedure TVMADGPCOMedicineHistory.Append(Parameters: IParameters);
begin
//
end;
procedure TVMADGPCOMedicineHistory.Delete(Parameters: IParameters);
begin
//
end;
function TVMADGPCOMedicineHistory.GetCaption: string;
begin
Result := '调价单历史纪录';
end;
function TVMADGPCOMedicineHistory.GetDetailView: TView;
var
View : TVADIPCOMedicineHistory;
begin
View := TVADIPCOMedicineHistory.Create(Self);
View.SetModel(GetModel);
Result := View;
end;
procedure TVMADGPCOMedicineHistory.InitModel;
begin
inherited;
CreateBYModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(EmployeeFactory.GetModel).Clone(CreateBYModel);
CreateBY.DataSet := CreateBYModel.GetDataSet;
UpdateBYModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(EmployeeFactory.GetModel).Clone(UpdateBYModel);
UpdateBY.DataSet := UpdateBYModel.GetDataSet;
ApproveBYModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(EmployeeFactory.GetModel).Clone(ApproveBYModel);
ApproveBY.DataSet := ApproveBYModel.GetDataSet;
MaterialStockDetailIDModel := TCloneDataModel.Create(Self);
TPrimaryDataModel(MaterialStockDetailFactory.GetModel).Clone(MaterialStockDetailIDModel);
MaterialStockDetailID.DataSet := MaterialStockDetailIDModel.GetDataSet;
end;
procedure TVMADGPCOMedicineHistory.Save(Parameters: IParameters);
begin
//
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -