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
f75dbee2
Commit
f75dbee2
authored
Apr 01, 2022
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
コードを整理
parent
f83991e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
CompareTIFF.cs
Code/CSRender/CSRender/CompareTIFF.cs
+0
-9
MainWindow.xaml.cs
Code/CSRender/CSRender/MainWindow.xaml.cs
+0
-15
No files found.
Code/CSRender/CSRender/CompareTIFF.cs
View file @
f75dbee2
...
@@ -29,11 +29,8 @@ namespace CSRender
...
@@ -29,11 +29,8 @@ namespace CSRender
//実行用コンソールの呼び出し
//実行用コンソールの呼び出し
ProcessStartInfo
processStartInfo
=
new
ProcessStartInfo
();
ProcessStartInfo
processStartInfo
=
new
ProcessStartInfo
();
processStartInfo
.
FileName
=
System
.
IO
.
Path
.
Combine
(
inExePath
,
"PureVerify.exe"
);
processStartInfo
.
FileName
=
System
.
IO
.
Path
.
Combine
(
inExePath
,
"PureVerify.exe"
);
//processStartInfo.FileName = "cmd.exe";
//processStartInfo.WindowStyle = ProcessWindowStyle.Maximized;
processStartInfo
.
CreateNoWindow
=
true
;
// コマンドプロンプトを非表示
processStartInfo
.
CreateNoWindow
=
true
;
// コマンドプロンプトを非表示
processStartInfo
.
UseShellExecute
=
false
;
// シェル機能オフ
processStartInfo
.
UseShellExecute
=
false
;
// シェル機能オフ
//processStartInfo.RedirectStandardOutput = true;//標準出力をリダイレクト
//レポートに書き込む情報を編集
//レポートに書き込む情報を編集
inTargetFileName
=
System
.
IO
.
Path
.
GetFileNameWithoutExtension
(
inTargetFileName
);
inTargetFileName
=
System
.
IO
.
Path
.
GetFileNameWithoutExtension
(
inTargetFileName
);
...
@@ -41,10 +38,6 @@ namespace CSRender
...
@@ -41,10 +38,6 @@ namespace CSRender
//引数設定
//引数設定
processStartInfo
.
Arguments
=
inVerifyArg
;
processStartInfo
.
Arguments
=
inVerifyArg
;
/*processStartInfo.Arguments = "/C ";
processStartInfo.Arguments += System.IO.Path.Combine(inExePath, "PureVerify.exe");
processStartInfo.Arguments += " ";
processStartInfo.Arguments += inVerifyArg;*/
//対象ファイル名を設定
//対象ファイル名を設定
processStartInfo
.
Arguments
+=
"/inspTiff \""
;
processStartInfo
.
Arguments
+=
"/inspTiff \""
;
...
@@ -77,8 +70,6 @@ namespace CSRender
...
@@ -77,8 +70,6 @@ namespace CSRender
//レポート記述内容の参照先
//レポート記述内容の参照先
processStartInfo
.
Arguments
+=
"/topPageInfo "
;
processStartInfo
.
Arguments
+=
"/topPageInfo "
;
//string textPath = System.IO.Path.Combine("PureVerify.Data", "RipVerify", "work", "OUT_INFO", "CSReportInf.txt");
//processStartInfo.Arguments += System.IO.Path.Combine(appDirectory, textPath);
processStartInfo
.
Arguments
+=
reportInfoPath
;
processStartInfo
.
Arguments
+=
reportInfoPath
;
//コンソールへの出力を制御
//コンソールへの出力を制御
...
...
Code/CSRender/CSRender/MainWindow.xaml.cs
View file @
f75dbee2
...
@@ -571,22 +571,7 @@ namespace CSRender
...
@@ -571,22 +571,7 @@ namespace CSRender
string
[]
reportFiles
=
System
.
IO
.
Directory
.
GetFiles
(
workDir
,
"*.pdf.log"
,
System
.
IO
.
SearchOption
.
TopDirectoryOnly
);
string
[]
reportFiles
=
System
.
IO
.
Directory
.
GetFiles
(
workDir
,
"*.pdf.log"
,
System
.
IO
.
SearchOption
.
TopDirectoryOnly
);
foreach
(
var
logfileName
in
reportFiles
)
foreach
(
var
logfileName
in
reportFiles
)
{
{
/*
string tranceString = File.ReadLines(logfileName, Encoding.GetEncoding("Shift-JIS")).Skip(16).First();//16行目を抽出
tranceString = tranceString.Replace("NG", "");//不要な部分をカット
tranceString = tranceString.Replace(":", "");
tranceString = tranceString.Replace(" ", "");
int NumOfThisFile = 0;
try
{
NumOfThisFile = Int32.Parse(tranceString);
}
catch (FormatException e)
{
NumOfThisFile = 0;
}
*/
int
[]
NumOfThisFile
=
CompareTIFF
.
getNgOfPDF
(
logfileName
);
int
[]
NumOfThisFile
=
CompareTIFF
.
getNgOfPDF
(
logfileName
);
int
NumOfThisNG
=
NumOfThisFile
[
0
];
int
NumOfThisNG
=
NumOfThisFile
[
0
];
...
...
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