⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uvadidatmedicine.pas

📁 Software Requirements1. Delphi 6 SP22. Oracle 8i R33. Raize 3.0.94. ExpressQuantumGrid 4.505. Expres
💻 PAS
字号:
unit UVADIDATMedicine;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UAdapterDataItemView, dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg,
  dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
  dxPSEdgePatterns, DB, dxPSCore, RzCommon, RzButton, jpeg, RzBckgnd,
  ExtCtrls, RzPanel, StdCtrls, Mask, RzEdit, RzDBEdit, DBCtrls, RzDBCmbo,
  RzLabel, RzRadChk, RzDBChk,
  UCloneDataModel;

type
  TVADIDATMedicine = class(TAdapterDataItemView)
    RzDBEdit1: TRzDBEdit;
    RzDBEdit2: TRzDBEdit;
    RzDBEdit4: TRzDBEdit;
    RzLabel1: TRzLabel;
    RzLabel2: TRzLabel;
    RzLabel3: TRzLabel;
    RzLabel4: TRzLabel;
    RzLabel10: TRzLabel;
    RzLabel11: TRzLabel;
    RzLabel12: TRzLabel;
    RzLabel13: TRzLabel;
    DoctorAdviceId: TDataSource;
    MedicineId: TDataSource;
    UseMethodId: TDataSource;
    RzDBLookupComboBox1: TRzDBLookupComboBox;
    RzDBLookupComboBox2: TRzDBLookupComboBox;
    RzDBLookupComboBox3: TRzDBLookupComboBox;
    RzDBLookupComboBox4: TRzDBLookupComboBox;
    ApproachId: TDataSource;
    RzDBDateTimeEdit3: TRzDBDateTimeEdit;
  private
    DoctorAdviceModel: TCloneDataModel;
    MedicineModel: TCloneDataModel;
    UseMethodModel: TCloneDataModel;
    ApproachModel: TCloneDataModel;
  protected
      procedure InitModel; override;
  public
    function GetCaption: string; override;
  end;

implementation

uses UMADDATMedicine, UMADDoctorAdvice, UMADMedicine, UMADUseMethod, UMADEmployee,
     Factory, UPrimaryDataModel;

{$R *.dfm}

{ TVADIDATMedicine }

function TVADIDATMedicine.GetCaption: string;
begin
  Result := '医嘱模板(用药)';
end;

procedure TVADIDATMedicine.InitModel;
begin
  inherited;
  DoctorAdviceModel := GetCloneDataModel(TPrimaryDataModel(DoctorAdviceFactory.GetModel));
  DoctorAdviceId.DataSet := DoctorAdviceModel.GetDataSet;

  MedicineModel := GetCloneDataModel(TPrimaryDataModel(MedicineFactory.GetModel));
  MedicineId.DataSet := MedicineModel.GetDataSet;

  UseMethodModel := GetCloneDataModel(TPrimaryDataModel(UseMethodFactory.GetModel));
  UseMethodId.DataSet := UseMethodModel.GetDataSet;

  ApproachModel := GetCloneDataModel(TPrimaryDataModel(ApproachFactory.GetModel));
  ApproachId.DataSet := ApproachModel.GetDataSet;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -