Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GetAdocUI
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
GetAdocUI
Commits
f23f9c12
Commit
f23f9c12
authored
Sep 12, 2024
by
tsuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update GetAdoc.exe: テンプレート選択/言語切替/Freepageの引数をGUIツールに反映
parent
27a6011b
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
128 additions
and
406 deletions
+128
-406
App.config
GetADoc/App.config
+8
-8
GetADoc.csproj
GetADoc/GetADoc.csproj
+2
-1
MainWindow.xaml.cs
GetADoc/MainWindow.xaml.cs
+21
-2
Resources.Designer.cs
GetADoc/Properties/Resources.Designer.cs
+22
-30
Settings.Designer.cs
GetADoc/Properties/Settings.Designer.cs
+1
-1
RunBatch.cs
GetADoc/RunBatch.cs
+31
-1
GetADocGUI.exe
Release/GetADocGUI.exe
+0
-0
GetADocGUI.exe.config
Release/GetADocGUI.exe.config
+43
-363
No files found.
GetADoc/App.config
View file @
f23f9c12
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configSections
>
<
sectionGroup
name
=
"userSettings"
type
=
"System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<
section
name
=
"GetADoc.Properties.Settings"
type
=
"System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition
=
"MachineToLocalUser"
requirePermission
=
"false"
/>
<
sectionGroup
name
=
"userSettings"
type
=
"System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<
section
name
=
"GetADoc.Properties.Settings"
type
=
"System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition
=
"MachineToLocalUser"
requirePermission
=
"false"
/>
</
sectionGroup
>
</
configSections
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6
.1"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6
"
/>
</
startup
>
<
userSettings
>
<
GetADoc
.
Properties
.
Settings
>
<
setting
name
=
"box1Setting"
serializeAs
=
"String"
>
<
value
/>
<
value
/>
</
setting
>
<
setting
name
=
"checkbox1Setting"
serializeAs
=
"String"
>
<
value
>
False
</
value
>
...
...
@@ -23,10 +23,10 @@
<
value
>
False
</
value
>
</
setting
>
<
setting
name
=
"savePathSetting"
serializeAs
=
"String"
>
<
value
/>
<
value
/>
</
setting
>
<
setting
name
=
"argPathSetting"
serializeAs
=
"String"
>
<
value
/>
<
value
/>
</
setting
>
<
setting
name
=
"formatSetting"
serializeAs
=
"String"
>
<
value
>
0
</
value
>
...
...
@@ -42,4 +42,4 @@
</
setting
>
</
GetADoc
.
Properties
.
Settings
>
</
userSettings
>
</
configuration
>
\ No newline at end of file
</
configuration
>
GetADoc/GetADoc.csproj
View file @
f23f9c12
...
...
@@ -8,12 +8,13 @@
<OutputType>
WinExe
</OutputType>
<RootNamespace>
GetADoc
</RootNamespace>
<AssemblyName>
GetADocGUI
</AssemblyName>
<TargetFrameworkVersion>
v4.6
.1
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.6
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<ProjectTypeGuids>
{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<WarningLevel>
4
</WarningLevel>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
...
...
GetADoc/MainWindow.xaml.cs
View file @
f23f9c12
...
...
@@ -75,7 +75,7 @@ namespace GetADoc
QnAItem
=
"QnA"
;
//ForErrorItem = "Troubleshooting";
DesignItem
=
"Basic Design"
;
MeetingMemoItem
=
"
r
ecord of proceedings"
;
MeetingMemoItem
=
"
R
ecord of proceedings"
;
}
else
{
...
...
@@ -178,6 +178,7 @@ namespace GetADoc
bool
IconFlag
=
false
;
bool
SCREENFlag
=
false
;
bool
SepaFlag
=
false
;
bool
FreeFlag
=
false
;
if
(
IconCheckbox
.
IsChecked
==
true
)
//Iconsチェックボックスがオンのとき
{
IconFlag
=
true
;
...
...
@@ -190,6 +191,21 @@ namespace GetADoc
{
SepaFlag
=
true
;
}
if
(
FreePageCheckbox
.
IsChecked
==
true
)
//freepageドキュチェックボックスがオンのとき
{
FreeFlag
=
true
;
}
//言語
bool
languageFlag
=
false
;
if
(
ToggleButton
.
IsOn
)
{
languageFlag
=
true
;
}
else
{
languageFlag
=
false
;
}
//右クリック登録
...
...
@@ -272,8 +288,11 @@ namespace GetADoc
}
}
//コンボボックスで選んでいるテンプレートの種類を読み込み
string
selectedTmpText
=
DocStileBox
.
Text
;
//バッチファイルの実行
RunBatch
.
runBatch
(
IconFlag
,
SCREENFlag
,
SepaFlag
,
fileName
,
filePath
);
RunBatch
.
runBatch
(
IconFlag
,
SCREENFlag
,
SepaFlag
,
FreeFlag
,
languageFlag
,
fileName
,
filePath
,
selectedTmpText
);
//保存Pathのラベルが表示されていれば、表示を隠す
if
(
SavePathLabel
.
Visibility
==
Visibility
.
Visible
)
...
...
GetADoc/Properties/Resources.Designer.cs
View file @
f23f9c12
...
...
@@ -4,66 +4,58 @@
// ランタイム バージョン:4.0.30319.42000
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします
// コードが再生成されるときに損失したりします
。
// </auto-generated>
//------------------------------------------------------------------------------
namespace
GetADoc.Properties
{
namespace
GetADoc.Properties
{
using
System
;
/// <summary>
/// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。
/// </summary>
// このクラスは StronglyTypedResourceBuilder クラス
によって
ResGen
// このクラスは StronglyTypedResourceBuilder クラス
が
ResGen
// または Visual Studio のようなツールを使用して自動生成されました。
// メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に
// ResGen を実行し直すか、または VS プロジェクトを
リビルド
します。
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"
4
.0.0.0"
)]
// ResGen を実行し直すか、または VS プロジェクトを
ビルドし直
します。
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"
15
.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
internal
class
Resources
{
internal
class
Resources
{
private
static
global
::
System
.
Resources
.
ResourceManager
resourceMan
;
private
static
global
::
System
.
Globalization
.
CultureInfo
resourceCulture
;
[
global
::
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessageAttribute
(
"Microsoft.Performance"
,
"CA1811:AvoidUncalledPrivateCode"
)]
internal
Resources
()
{
internal
Resources
()
{
}
/// <summary>
/// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。
/// このクラスで使用され
てい
るキャッシュされた ResourceManager インスタンスを返します。
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Resources
.
ResourceManager
ResourceManager
{
get
{
if
((
resourceMan
==
null
))
{
internal
static
global
::
System
.
Resources
.
ResourceManager
ResourceManager
{
get
{
if
(
object
.
ReferenceEquals
(
resourceMan
,
null
))
{
global
::
System
.
Resources
.
ResourceManager
temp
=
new
global
::
System
.
Resources
.
ResourceManager
(
"GetADoc.Properties.Resources"
,
typeof
(
Resources
).
Assembly
);
resourceMan
=
temp
;
}
return
resourceMan
;
}
}
/// <summary>
/// すべてについて、現在のスレッドの CurrentUICulture プロパティをオーバーライドします
/// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
return
resourceCulture
;
}
set
{
set
{
resourceCulture
=
value
;
}
}
...
...
GetADoc/Properties/Settings.Designer.cs
View file @
f23f9c12
...
...
@@ -12,7 +12,7 @@ namespace GetADoc.Properties {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
7.4
.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"1
5.9
.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
...
...
GetADoc/RunBatch.cs
View file @
f23f9c12
...
...
@@ -23,7 +23,7 @@ namespace GetADoc
}
//バッチファイルの実行
public
static
void
runBatch
(
bool
icon
,
bool
screen
,
bool
sepa
,
string
fileName
,
string
filePath
)
public
static
void
runBatch
(
bool
icon
,
bool
screen
,
bool
sepa
,
bool
free
,
bool
language
,
string
fileName
,
string
filePath
,
string
tempType
)
{
...
...
@@ -50,6 +50,36 @@ namespace GetADoc
processStartInfo
.
Arguments
+=
"/SepaDoc "
;
}
//freepageの有無
if
(!
free
)
{
processStartInfo
.
Arguments
+=
"/FreePage 0 "
;
}
//言語選択
if
(
language
)
//ture:En flase:Jp
{
processStartInfo
.
Arguments
+=
"/L en "
;
}
//テンプレートの種別を判別
if
(
tempType
==
"QnA"
)
{
processStartInfo
.
Arguments
+=
"/Template QA "
;
}
else
if
(
tempType
==
"基本設計資料"
||
tempType
==
"Basic Design"
)
{
processStartInfo
.
Arguments
+=
"/Template BasicDesign "
;
}
else
if
(
tempType
==
"議事録"
||
tempType
==
"record of proceedings"
)
{
processStartInfo
.
Arguments
+=
"/Template Meeting "
;
}
else
{
processStartInfo
.
Arguments
+=
"/Template Normal "
;
}
//既存の生成物が指定先フォルダに存在する場合は上書きする
processStartInfo
.
Arguments
+=
"/Force "
;
...
...
Release/GetADocGUI.exe
View file @
f23f9c12
No preview for this file type
Release/GetADocGUI.exe.config
View file @
f23f9c12
This diff is collapsed.
Click to expand it.
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