diff --git a/GetADoc/App.config b/GetADoc/App.config index a2e15dc567567dcd2766ec2805bffdb0ef781c46..bb4b93560078a7c84688fbb559f132f829898b70 100644 --- a/GetADoc/App.config +++ b/GetADoc/App.config @@ -1,17 +1,17 @@ - + - -
+ +
- + - + False @@ -23,10 +23,10 @@ False - + - + 0 @@ -42,4 +42,4 @@ - \ No newline at end of file + diff --git a/GetADoc/GetADoc.csproj b/GetADoc/GetADoc.csproj index c9c29915f0ffee55dfa6cc73cd4e9db8441357f5..dac2fda1be48f5adb1e69f3c35c241ed97273dcb 100644 --- a/GetADoc/GetADoc.csproj +++ b/GetADoc/GetADoc.csproj @@ -8,12 +8,13 @@ WinExe GetADoc GetADocGUI - v4.6.1 + v4.6 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true true + AnyCPU diff --git a/GetADoc/MainWindow.xaml.cs b/GetADoc/MainWindow.xaml.cs index 84ab34756156c996a6858c50d1c1f91da628459d..8185e10ba212cb5648e617b62729890b169edc05 100644 --- a/GetADoc/MainWindow.xaml.cs +++ b/GetADoc/MainWindow.xaml.cs @@ -75,7 +75,7 @@ namespace GetADoc QnAItem = "QnA"; //ForErrorItem = "Troubleshooting"; DesignItem = "Basic Design"; - MeetingMemoItem = "record of proceedings"; + MeetingMemoItem = "Record 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) diff --git a/GetADoc/Properties/Resources.Designer.cs b/GetADoc/Properties/Resources.Designer.cs index 26201ec1803b9b678765b4aaa1b8546b853a57e9..346080b5753fd57e011c9bf7943e03e209ab7c4a 100644 --- a/GetADoc/Properties/Resources.Designer.cs +++ b/GetADoc/Properties/Resources.Designer.cs @@ -4,66 +4,58 @@ // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 -// コードが再生成されるときに損失したりします +// コードが再生成されるときに損失したりします。 // //------------------------------------------------------------------------------ -namespace GetADoc.Properties -{ - - +namespace GetADoc.Properties { + using System; + + /// /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 /// - // このクラスは 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() { } - + /// - /// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。 + /// このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 /// [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; } } - + /// /// すべてについて、現在のスレッドの CurrentUICulture プロパティをオーバーライドします /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 /// [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; } } diff --git a/GetADoc/Properties/Settings.Designer.cs b/GetADoc/Properties/Settings.Designer.cs index db2e09a02aa5acda7b643f5c10db79416d8f274a..a958552afa9d854824de15662c7cc28562c7956d 100644 --- a/GetADoc/Properties/Settings.Designer.cs +++ b/GetADoc/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace GetADoc.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); diff --git a/GetADoc/RunBatch.cs b/GetADoc/RunBatch.cs index f77502bd97f29f9d79981d336104409313b624ca..daf378897f60790a87204fa4937e84f8381d1759 100644 --- a/GetADoc/RunBatch.cs +++ b/GetADoc/RunBatch.cs @@ -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 "; diff --git a/Release/GetADocGUI.exe b/Release/GetADocGUI.exe index 1109dd1f4c007c47bc9b61a33bfc5b6ec9148314..31a1ef3e065fab17f3011ceb3696792f490892f5 100644 Binary files a/Release/GetADocGUI.exe and b/Release/GetADocGUI.exe differ diff --git a/Release/GetADocGUI.exe.config b/Release/GetADocGUI.exe.config index 7fe0f98dc2a1910a1cb5abdf674348b98d2056f8..bb4b93560078a7c84688fbb559f132f829898b70 100644 --- a/Release/GetADocGUI.exe.config +++ b/Release/GetADocGUI.exe.config @@ -1,365 +1,45 @@ - - -
- - - - - - - - - - - - False - - - False - - - False - - - - - - - - - 0 - - - False - - - False - - - False - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + +
+ + + + + + + + + + + + False + + + False + + + False + + + + + + + + + 0 + + + False + + + False + + + False + + + +