1
0
mirror of https://github.com/arkuznetsov/1CFilesConverter.git synced 2024-11-24 08:33:30 +02:00

fix: Поправлены скрипты выгрузки отчетов и обработок в форматы XML и EDT.

This commit is contained in:
Artem Kuznetsov 2023-07-21 11:12:23 +03:00
parent 8aa0f4fd09
commit adb1fffa78
2 changed files with 14 additions and 9 deletions

View File

@ -33,8 +33,10 @@ if not defined DP_PATH (
echo Missed parameter 2 "path to folder to save data processor & report in 1C:EDT format"
exit /b 1
)
md "%DP_PATH%"
if not exist "%BASE_CONFIG%" (
echo Path "%BASE_CONFIG%" doesn't exist (parameter 3), empty infobase will be used.
set BASE_CONFIG=
)
echo Set infobase for export data processor/report...
IF "%BASE_CONFIG%" equ "" (
@ -76,16 +78,15 @@ if exist "%WS_PATH%" (
if exist "%DP_SRC_PATH%" (
rd /S /Q "%DP_SRC_PATH%"
)
md "%TEMP%\1c"
md "%XML_PATH%"
md "%WS_PATH%"
md %DP_SRC_PATH%
md "%DP_PATH%"
echo Export dataprocessor / report "%DP_FILE%" to 1C:Designer XML format "%XML_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%XML_PATH%" "%DP_FILE%"
echo Export dataprocessor / report from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%DP_SRC_PATH%"...
call %RING_TOOL% edt workspace import --project "%DP_SRC_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
echo Export dataprocessor / report from 1C:Designer XML format "%XML_PATH%" to 1C:EDT format "%DP_PATH%"...
call %RING_TOOL% edt workspace import --project "%DP_PATH%" --configuration-files "%XML_PATH%" --workspace-location "%WS_PATH%" --version "%V8_VERSION%"
echo Clear temporary files...
IF "%CLEAN_AFTER_EXPORT%" equ "1" (

View File

@ -21,15 +21,18 @@ set BASE_CONFIG=%3
if defined BASE_CONFIG set BASE_CONFIG=%BASE_CONFIG:"=%
if not defined DP_FILE (
echo Missed parameter 1 "path to 1C data processor or report (*.epf, *.erf)"
echo Missed parameter 1 "path to 1C data processor or report (*.epf, *.erf)".
exit /b 1
)
if not defined DP_PATH (
echo Missed parameter 2 "path to folder to save data processor & report in 1C:Designer XML format"
echo Missed parameter 2 "path to folder to save data processor & report in 1C:Designer XML format".
exit /b 1
)
md "%DP_PATH%"
if not exist "%BASE_CONFIG%" (
echo Path "%BASE_CONFIG%" doesn't exist (parameter 3), empty infobase will be used.
set BASE_CONFIG=
)
echo Set infobase for export data processor/report...
IF "%BASE_CONFIG%" equ "" (
@ -62,6 +65,7 @@ echo Clear temporary files...
IF "%CLEAN_AFTER_EXPORT%" equ "1" (
rd /S /Q "%IB_PATH%"
)
md "%DP_PATH%"
echo Export dataprocessor / report "%DP_FILE%" to 1C:Designer XML format "%DP_PATH%" using infobase "%IB_PATH%" with %BASE_CONFIG_DESCRIPTION%...
%V8_TOOL% DESIGNER /IBConnectionString File="%IB_PATH%"; /DisableStartupDialogs /DumpExternalDataProcessorOrReportToFiles "%DP_PATH%" "%DP_FILE%"