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

📄 dmrsgl.pas

📁 Delphi开发的人事管理系统
💻 PAS
字号:
unit dmRsgl;

interface

uses
  SysUtils, Classes, RSGLCommon, ADODB, DB, Dialogs;

type
  TdmRsgl = class(TDataModule)
    adocRsgl: TADOConnection;
    adotRyxx: TADOTable;
    adotBmxx: TADOTable;
    adotJycd: TADOTable;
    procedure DataModuleCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

{$R *.dfm}

{ TdmRSGL }

procedure TdmRsgl.DataModuleCreate(Sender: TObject);
var
  l_File: string;
begin
  inherited;

  l_File := DataPath + conRSGLDataFile;
  if not FileExists(l_File) then
    ShowMessage('文件不存在!无法打开数据库!');

  with adocRsgl do
  begin
    ConnectionString := CNT_ConnectString;
    ConnectionString := Format(ConnectionString, [l_File]);
    Connected := True;
  end;
end;

end.

⌨️ 快捷键说明

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