program FDGL;
uses
Forms,
Dialogs,
PasZCX in 'PasZCX.pas' {FRMZCX},
PASSZWK in 'PASSZWK.pas' {FRMSZWK},
PasSZXZ in 'PasSZXZ.pas' {FrmSZXZ},
pasCZDL in 'pasCZDL.pas' {FrmCZDL},
Paszjcz in 'Paszjcz.pas' {FrmZJCZ},
PasAEZ in 'PasAEZ.pas' {FrmAEZ},
PasJBXR in 'PasJBXR.pas' {FrmJBXR},
PasGGDM in 'PasGGDM.pas',
PasZJNH in 'PasZJNH.pas' {FrmZJNH},
PasEZJNH in 'PasEZJNH.pas' {FrmEZJNH},
pasFDFA in 'pasFDFA.pas' {FrmFDFA},
PasFJJS in 'PasFJJS.pas' {FrmFJJS},
pasNHFC in 'pasNHFC.pas' {FrmNHFC},
pasYHGL in 'pasYHGL.pas' {FrmYHGL},
PasUseLog in 'PasUseLog.pas' {FrmLogFDSL},
pasZXYH in 'pasZXYH.pas' {FrmZXYH},
PasJFCL in 'PasJFCL.pas' {FrmJFCL},
pasZL in 'pasZL.pas' {FrmZL},
PasXTOption in 'PasXTOption.pas' {FrmXTOption},
Registry,
SysUtils;
{$R *.res}
Var
FileDB : Boolean;
begin
Application.Initialize;
Application.Title := '件';
//系统数据库是否存在不存在
FileDB :=False;
With Tregistry.Create do
Begin
IF OpenKey('FBGLDB',True) Then
IF ValueExists('Path') Then
Begin
SysDB:=ReadString('Path');
IF FileExists(SysDB) Then
FileDB:=True;
End;
Free;
End;
IF Not FileDB Then
With TFRMSZWK.Create(Application) Do
Begin
EditPath.Text:=SysDB;
IF ShowModal=2 Then
Begin
Application.Terminate;
Exit;
End;
Free;
End;
With TFrmLogFDSL.Create(Application) Do
Begin
IF ShowModal=6 then
Begin
Application.CreateForm(TFRMZCX, FRMZCX);
With TFrmXTOption.Create(Application) Do
Begin
ShowModal;
Free;
End;
Application.Run;
End
Else
Application.Terminate;
End;
end.