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
28149239
Commit
28149239
authored
Apr 07, 2022
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
記述を整理
parent
a52bae97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
CompareTIFF.cs
Code/CSRender/CSRender/CompareTIFF.cs
+5
-2
MainWindow.xaml.cs
Code/CSRender/CSRender/MainWindow.xaml.cs
+25
-12
No files found.
Code/CSRender/CSRender/CompareTIFF.cs
View file @
28149239
...
...
@@ -151,14 +151,17 @@ namespace CSRender
{
Directory
.
CreateDirectory
(
reportPath
);
//なければ新規でreportフォルダを作成
}
var
allReport
=
Directory
.
EnumerateFiles
(
System
.
IO
.
Path
.
Combine
(
workPath
,
"report"
)
,
"*"
,
SearchOption
.
TopDirectoryOnly
);
//reportフォルダ内の全てのファイルを取得
var
PureReportPath
=
System
.
IO
.
Path
.
Combine
(
workPath
,
"report"
);
var
allReport
=
Directory
.
EnumerateFiles
(
PureReportPath
,
"*.pdf.log"
,
SearchOption
.
TopDirectoryOnly
);
//reportフォルダ内の全てのファイルを取得
foreach
(
string
file
in
allReport
)
{
string
fileTarget
=
System
.
IO
.
Path
.
Combine
(
reportPath
,
System
.
IO
.
Path
.
GetFileName
(
file
));
//旧パスからファイル名を取得して新しいパスを作成
File
.
Copy
(
file
,
fileTarget
,
true
);
//指定先にコピー
File
.
Delete
(
file
);
//コピー元のファイルを削除
}
Directory
.
Delete
(
PureReportPath
,
true
);
Directory
.
CreateDirectory
(
PureReportPath
);
}
//検版レポートのファイル名を取得
...
...
Code/CSRender/CSRender/MainWindow.xaml.cs
View file @
28149239
...
...
@@ -83,11 +83,11 @@ namespace CSRender
/// <summary>
/// 比較ボタンを実行する。
/// </summary>
/// <param name="targetBox
.
Text">選択された対象フォルダ(ファイル)のパス</param>
/// <param name="targetBoxText">選択された対象フォルダ(ファイル)のパス</param>
/// <param name="mainWindow">アプリケーションのメインウインドウ</param>
/// <param name="ResultConsole
.
Text">出力メニューのテキストボックス</param>
/// <param name="referenceBox
.
Text">選択されたリファレンスフォルダ(ファイル)のパス</param>
/// <param name="workBox
.
Text">選択された作業フォルダのパス</param>
/// <param name="ResultConsoleText">出力メニューのテキストボックス</param>
/// <param name="referenceBoxText">選択されたリファレンスフォルダ(ファイル)のパス</param>
/// <param name="workBoxText">選択された作業フォルダのパス</param>
/// <param name="shiftPixel">位置ズレ許容量のパラメータ</param>
/// <param name="colorMargin">諧調差許容量のパラメータ</param>
/// <param name="removePoint">微小差異許容量のパラメータ</param>
...
...
@@ -349,14 +349,8 @@ namespace CSRender
try
{
//レポート名を取得
if
(
reportBox
.
Text
!=
""
)
{
PDFName
=
reportBoxText
;
}
else
{
PDFName
=
CompareTIFF
.
getReportName
(
workDir
);
}
if
(
reportBox
.
Text
!=
""
){
PDFName
=
reportBoxText
;
}
else
{
PDFName
=
CompareTIFF
.
getReportName
(
workDir
);
}
}
catch
(
Exception
ex
)
{
...
...
@@ -476,6 +470,15 @@ namespace CSRender
/// <summary>
/// UIに途中経過を出力する
/// </summary>
/// <param name="inTiffResult">メニューに出力されたRIP処理の処理結果</param>
/// <param name="inNGNum">直前に処理したPDFの検版結果(画像数とNG数)を含む数列</param>
/// <param name="inAllNum">検版を行う画像の総数</param>
/// <param name="NowNum">実行時点での残りの画像数</param>
/// <param name="NowNG">実行時点でのNG数</param>
/// <param name="NowOK">実行時点でのOK数</param>
/// <param name="NGNumOfPDF">直前に処理したPDFに含まれたNG数</param>
/// <param name="AllNumOfPD">直前に処理したPDFに含まれた画像数</param>
/// <param name="OKNumOfPDF">直前に処理したPDFに含まれたOK数</param>
private
void
outProgressToUI
(
string
inTiffResult
,
int
[]
inNGNum
,
int
inAllNum
)
{
int
NowNum
=
int
.
Parse
(
allNumBox
.
Text
);
//現在の残り画像数を隠しメニューから取得
...
...
@@ -508,6 +511,13 @@ namespace CSRender
/// <summary>
/// UIに検版結果を出力する
/// </summary>
/// <param name="inAllPDFNum">検版する画像の総数</param>
/// <param name="inNGPDFNum">NGだった画像の総数</param>
/// <param name="refTiffPath">リファレンス画像を生成したディレクトリのパス</param>
/// <param name="tarTiffPath">対象画像を生成したディレクトリのパス</param>
/// <param name="tarTiffNum">リファレンス画像の総数</param>
/// <param name="refTiffNum">対象画像の総数</param>
/// <param name="OKPDFNum">OKだった画像の総数</param>
private
void
outResultToUI
(
int
inAllPDFNum
,
int
inNGPDFNum
,
string
refTiffPath
,
string
tarTiffPath
)
{
//記述用の情報を取得
...
...
@@ -562,6 +572,9 @@ namespace CSRender
//string logfileName = reportFiles[0];
}
/// <summary>
/// 検版処理の進捗表示を初期化
/// </summary>
private
void
resetProgressText
(
int
allPDFNum
)
{
//隠しメニューの数値を初期化
...
...
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