|
@@ -117,14 +117,33 @@ end;
|
|
procedure TStandardBillsFrame.spbtnLibsClick(Sender: TObject);
|
|
procedure TStandardBillsFrame.spbtnLibsClick(Sender: TObject);
|
|
|
|
|
|
procedure ChangeStandardBills(const sFileName: string);
|
|
procedure ChangeStandardBills(const sFileName: string);
|
|
|
|
+ var
|
|
|
|
+ sOldName: string;
|
|
begin
|
|
begin
|
|
- case FBillsType of
|
|
|
|
- btXm: SupportManager.ConfigInfo.StandardXmLib := ExtractFileName(odLib.FileName);
|
|
|
|
- btGcl: SupportManager.ConfigInfo.StandardGclLib := ExtractFileName(odLib.FileName);
|
|
|
|
- end;
|
|
|
|
Screen.Cursor := crHourGlass;
|
|
Screen.Cursor := crHourGlass;
|
|
try
|
|
try
|
|
- ConnectStandardLib;
|
|
|
|
|
|
+ try
|
|
|
|
+ case FBillsType of
|
|
|
|
+ btXm:
|
|
|
|
+ begin
|
|
|
|
+ sOldName := SupportManager.ConfigInfo.StandardXmLib;
|
|
|
|
+ SupportManager.ConfigInfo.StandardXmLib := ExtractFileName(odLib.FileName);
|
|
|
|
+ end;
|
|
|
|
+ btGcl:
|
|
|
|
+ begin
|
|
|
|
+ sOldName := SupportManager.ConfigInfo.StandardGclLib;
|
|
|
|
+ SupportManager.ConfigInfo.StandardGclLib := ExtractFileName(odLib.FileName);
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
|
|
+ ConnectStandardLib;
|
|
|
|
+ except
|
|
|
|
+ ErrorMessage('朞嶝돨깃硫헌데꼇옵街깎');
|
|
|
|
+ case FBillsType of
|
|
|
|
+ btXm: SupportManager.ConfigInfo.StandardXmLib := ExtractFileName(sOldName);
|
|
|
|
+ btGcl: SupportManager.ConfigInfo.StandardGclLib := ExtractFileName(sOldName);
|
|
|
|
+ end;
|
|
|
|
+ ConnectStandardLib;
|
|
|
|
+ end;
|
|
finally
|
|
finally
|
|
Screen.Cursor := crDefault;
|
|
Screen.Cursor := crDefault;
|
|
end;
|
|
end;
|