diff --git a/DxOpenWebFw.sln b/DxOpenWebFw.sln new file mode 100644 index 0000000..f239d7e --- /dev/null +++ b/DxOpenWebFw.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.572 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DxOpenWebFw", "DxOpenWebFw\DxOpenWebFw.csproj", "{F0F31FDE-C08A-4AC1-807C-57D963B7C72C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F0F31FDE-C08A-4AC1-807C-57D963B7C72C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0F31FDE-C08A-4AC1-807C-57D963B7C72C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0F31FDE-C08A-4AC1-807C-57D963B7C72C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0F31FDE-C08A-4AC1-807C-57D963B7C72C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3301B15E-A4CB-4800-B625-10DB8FD1862C} + EndGlobalSection +EndGlobal diff --git a/DxOpenWebFw/App.config b/DxOpenWebFw/App.config new file mode 100644 index 0000000..8166ef3 --- /dev/null +++ b/DxOpenWebFw/App.config @@ -0,0 +1,24 @@ + + + + +
+ + + + + + + + + http://203.154.55.194:8032/#/Login + + + G:\Prog\Library_Debug\DX_HIS_Print_Center.exe + + + 36,38 + + + + diff --git a/DxOpenWebFw/DxOpenWebFw.csproj b/DxOpenWebFw/DxOpenWebFw.csproj new file mode 100644 index 0000000..77d6b88 --- /dev/null +++ b/DxOpenWebFw/DxOpenWebFw.csproj @@ -0,0 +1,90 @@ + + + + + Debug + AnyCPU + {F0F31FDE-C08A-4AC1-807C-57D963B7C72C} + Exe + DxOpenWebFw + DxOpenWebFw + v4.0 + 512 + true + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + favicon.ico + + + + + + + + + + + + + + + + True + True + Settings.settings + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/DxOpenWebFw/Program.cs b/DxOpenWebFw/Program.cs new file mode 100644 index 0000000..86f52c9 --- /dev/null +++ b/DxOpenWebFw/Program.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; + +namespace DxOpenWebFw +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("BuildVersion : 1.0"); + Console.WriteLine("Computer Name : " + System.Environment.MachineName); + string strUrl = DxOpenWebFw.Properties.Settings.Default.URL + "?COMPUTERNAME=" + System.Environment.MachineName; + + var prs = new ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"); + prs.Arguments = strUrl; + + try + { + Process.Start(prs); + } + catch (System.ComponentModel.Win32Exception ex) + { + Process.Start(strUrl); + } + //// + Console.WriteLine("Computer Name : " + DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER); + //// + string strPath = DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER; + if (!string.IsNullOrEmpty(strPath) && System.IO.File.Exists(strPath)) + { + var printcenter = new ProcessStartInfo(strPath); + string strComputerName = System.Environment.MachineName; + string strJOBLIST = DxOpenWebFw.Properties.Settings.Default.JOBLIST; + printcenter.Arguments = string.Format("LOCALSTART|JOB={0}|COM={1}", strJOBLIST, strComputerName); + Process.Start(printcenter); + } + + } + } +} diff --git a/DxOpenWebFw/Properties/AssemblyInfo.cs b/DxOpenWebFw/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4a56cd8 --- /dev/null +++ b/DxOpenWebFw/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("DxOpenWebFw")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DxOpenWebFw")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f0f31fde-c08a-4ac1-807c-57d963b7c72c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/DxOpenWebFw/Properties/Settings.Designer.cs b/DxOpenWebFw/Properties/Settings.Designer.cs new file mode 100644 index 0000000..5c5c952 --- /dev/null +++ b/DxOpenWebFw/Properties/Settings.Designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace DxOpenWebFw.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [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()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("http://203.154.55.194:8032/#/Login")] + public string URL { + get { + return ((string)(this["URL"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("G:\\Prog\\Library_Debug\\DX_HIS_Print_Center.exe")] + public string PATH_PRINTCENTER { + get { + return ((string)(this["PATH_PRINTCENTER"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("36,38")] + public string JOBLIST { + get { + return ((string)(this["JOBLIST"])); + } + } + } +} diff --git a/DxOpenWebFw/Properties/Settings.settings b/DxOpenWebFw/Properties/Settings.settings new file mode 100644 index 0000000..337e93a --- /dev/null +++ b/DxOpenWebFw/Properties/Settings.settings @@ -0,0 +1,15 @@ + + + + + + http://203.154.55.194:8032/#/Login + + + G:\Prog\Library_Debug\DX_HIS_Print_Center.exe + + + 36,38 + + + \ No newline at end of file diff --git a/DxOpenWebFw/favicon.ico b/DxOpenWebFw/favicon.ico new file mode 100644 index 0000000..5f932e0 Binary files /dev/null and b/DxOpenWebFw/favicon.ico differ