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

📄 uvadisinpatientcharge.pas

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

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UAdapterDataItemsView, dxPSGlbl, dxPSUtl, dxPSEngn, dxPrnPg,
  dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
  dxPSEdgePatterns, DB, dxPSCore, RzCommon, RzBckgnd, ExtCtrls, RzPanel,
  RzButton, StdCtrls, Mask, RzEdit, RzLabel, ppViewr, ppProd, ppClass,
  ppReport, ppComm, ppRelatv, ppDB, ppDBPipe, UQueryDataModel, UMADInpatientCharge,
  UMQDChargeInpatient, Factory, MyTools, ppCtrls, ppPrnabl, ppBands,
  ppCache, ppVar;

type
  TVADISInpatientCharge = class(TAdapterDataItemsView)
    RzPanel3: TRzPanel;
    RzLabel1: TRzLabel;
    RzEdit1: TRzEdit;
    RzBitBtn1: TRzBitBtn;
    ppDBPipeline1: TppDBPipeline;
    ppReport1: TppReport;
    ppViewer1: TppViewer;
    Reckoning: TDataSource;
    ppHeaderBand1: TppHeaderBand;
    ppDetailBand1: TppDetailBand;
    ppFooterBand1: TppFooterBand;
    ppTitleBand1: TppTitleBand;
    ppGroup1: TppGroup;
    ppGroupFooterBand1: TppGroupFooterBand;
    ppGroupHeaderBand1: TppGroupHeaderBand;
    ppGroup2: TppGroup;
    ppGroupFooterBand2: TppGroupFooterBand;
    ppGroupHeaderBand2: TppGroupHeaderBand;
    ppSystemVariable1: TppSystemVariable;
    ppSystemVariable2: TppSystemVariable;
    ppDBText1: TppDBText;
    ppLabel2: TppLabel;
    ppDBText2: TppDBText;
    ppLabel3: TppLabel;
    ppDBText3: TppDBText;
    ppLabel4: TppLabel;
    ppDBText4: TppDBText;
    ppLabel5: TppLabel;
    ppDBText5: TppDBText;
    ppLabel6: TppLabel;
    ppDBText6: TppDBText;
    ppLabel7: TppLabel;
    ppDBText7: TppDBText;
    ppLabel8: TppLabel;
    ppLine1: TppLine;
    ppLine2: TppLine;
    ppShape1: TppShape;
    ppShape2: TppShape;
    ppShape3: TppShape;
    ppShape4: TppShape;
    ppShape5: TppShape;
    ppShape6: TppShape;
    ppShape7: TppShape;
    ppLine4: TppLine;
    ppLabel1: TppLabel;
    ppLabel9: TppLabel;
    ppDBCalc1: TppDBCalc;
    ppDBCalc2: TppDBCalc;
    ppLabel10: TppLabel;
    ppLabel11: TppLabel;
    procedure RzBitBtn1Click(Sender: TObject);
  private
    ReckoningModel: TQueryDataModel;
  protected
    procedure InitModel; override;
  public
    function GetCaption : String; override;
    procedure Append(Parameters: IParameters); override;
    procedure Save(Parameters: IParameters); override;
    procedure Delete(Parameters: IParameters); override;
    procedure Cancel(Parameters: IParameters); override;
    procedure Print ; override;
  end;

implementation

uses UDataView, Math, UView;

{$R *.dfm}

{ TVADISInpatientCharge }

procedure TVADISInpatientCharge.Append(Parameters: IParameters);
begin
//
end;

procedure TVADISInpatientCharge.Cancel(Parameters: IParameters);
begin
//
end;

procedure TVADISInpatientCharge.Delete(Parameters: IParameters);
begin
//
end;

function TVADISInpatientCharge.GetCaption: String;
begin
  Result := '出院病人账单打印';
end;

procedure TVADISInpatientCharge.InitModel;
begin
  inherited;
  ReckoningModel := TQueryDataModel(InpatientChargeFactory.GetModel);
  Reckoning.DataSet := ReckoningModel.GetDataSet;
end;

procedure TVADISInpatientCharge.Save(Parameters: IParameters);
begin
//
end;

procedure TVADISInpatientCharge.RzBitBtn1Click(Sender: TObject);
var
  SKey: IStringKey;
begin
  inherited;
  RzEdit1.Text := UpperCase(Trim(RzEdit1.Text));
  if RzEdit1.Text = '' then Exit;
  SKey := TStringKey.Create;
  SKey.SetKey(RzEdit1.Text);
  TQueryDataModel(GetDataModel).Query(IParameters(SKey));
  if GetDataModel.GetDataSet.IsEmpty then Exit;
  ReckoningModel.Query(GetKey);
  ppLabel9.Caption := '病人姓名'+GetDataModel.GetDataSet.FieldByName('S_CNAME').AsString;
  ppLabel1.Caption := '门诊号'+GetDataModel.GetDataSet.FieldByName('S_CODE').AsString;
  ppReport1.PrintToDevices;
  ppViewer1.RegenerateReport;
end;



procedure TVADISInpatientCharge.Print;
begin
  If GetDataModel.GetDataSet.Active and (not GetDataModel.GetDataSet.IsEmpty) then
    ppReport1.Print;
end;

end.

⌨️ 快捷键说明

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