Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KenPanCS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QCD
Tools
KenPanCS
Commits
ab65d5ac
Commit
ab65d5ac
authored
Dec 01, 2021
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
・File.MoveをFile.Copyに修正(別ドライブに移動できない問題を回避するため)
・log出力の最後に検版レポートのpathを表示するように改良
parent
353e3f1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
CompareTIFF.cs
Code/CSRender/CSRender/CompareTIFF.cs
+13
-2
MainWindow.xaml.cs
Code/CSRender/CSRender/MainWindow.xaml.cs
+9
-0
No files found.
Code/CSRender/CSRender/CompareTIFF.cs
View file @
ab65d5ac
...
...
@@ -100,9 +100,20 @@ namespace CSRender
,
"*"
,
SearchOption
.
TopDirectoryOnly
);
//reportフォルダ内の全てのファイルを取得
foreach
(
string
file
in
allReport
)
{
string
fileTarget
=
System
.
IO
.
Path
.
GetFileName
(
file
);
File
.
Move
(
file
,
System
.
IO
.
Path
.
Combine
(
reportPath
,
fileTarget
));
//指定先に移動
string
fileTarget
=
System
.
IO
.
Path
.
Combine
(
reportPath
,
System
.
IO
.
Path
.
GetFileName
(
file
));
//旧パスからファイル名を取得して新しいパスを作成
File
.
Copy
(
file
,
fileTarget
,
true
);
//指定先にコピー
File
.
Delete
(
file
);
//コピー元のファイルを削除
}
}
//検版レポートのファイル名を取得
public
static
string
getReportName
(
string
workPath
)
{
string
[]
reportFilePath
=
System
.
IO
.
Directory
.
GetFiles
(
System
.
IO
.
Path
.
Combine
(
workPath
,
"report"
)
,
"*.pdf"
,
System
.
IO
.
SearchOption
.
TopDirectoryOnly
);
//レポートファイルのパスを取得
string
ReportName
=
System
.
IO
.
Path
.
GetFileName
(
reportFilePath
[
0
]);
//file名を抽出
return
ReportName
;
}
}
}
Code/CSRender/CSRender/MainWindow.xaml.cs
View file @
ab65d5ac
...
...
@@ -202,9 +202,16 @@ namespace CSRender
//レポートを出力
outputLog
(
System
.
IO
.
Path
.
Combine
(
workDir
,
"report"
));
string
PDFName
=
CompareTIFF
.
getReportName
(
workDir
);
//指定先にレポートを移動
CompareTIFF
.
moveReport
(
workBox
.
Text
,
workDir
);
//レポートのパスを表示
ResultConsole
.
Text
+=
" 検版レポートのパス:"
;
ResultConsole
.
Text
+=
System
.
IO
.
Path
.
Combine
(
workBox
.
Text
,
"report"
,
PDFName
);
ResultConsole
.
Text
+=
"\r\n"
;
//パラメータを次回初期値用に保存
Properties
.
Settings
.
Default
.
resolutionSetting
=
ResolutionBox
.
Text
;
Properties
.
Settings
.
Default
.
formatSetting
=
FileSelect
.
Text
;
...
...
@@ -295,6 +302,7 @@ namespace CSRender
Properties
.
Settings
.
Default
.
Save
();
}
//メニュを明示的に更新する
private
void
DoEvents
()
{
DispatcherFrame
frame
=
new
DispatcherFrame
();
...
...
@@ -303,6 +311,7 @@ namespace CSRender
Dispatcher
.
PushFrame
(
frame
);
}
//実行中のオブジェクトを読み込み
private
object
ExitFrames
(
object
obj
)
{
((
DispatcherFrame
)
obj
).
Continue
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment