update
parent
beeb96b045
commit
bbe3bda28e
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="DxOpenWebFw.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
|
||||||
|
</startup>
|
||||||
|
<applicationSettings>
|
||||||
|
<DxOpenWebFw.Properties.Settings>
|
||||||
|
<setting name="URL" serializeAs="String">
|
||||||
|
<value>http://203.154.55.194:8032/#/Login</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="PATH_PRINTCENTER" serializeAs="String">
|
||||||
|
<value>G:\Prog\Library_Debug\DX_HIS_Print_Center.exe</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="JOBLIST" serializeAs="String">
|
||||||
|
<value>36,38</value>
|
||||||
|
</setting>
|
||||||
|
</DxOpenWebFw.Properties.Settings>
|
||||||
|
</applicationSettings>
|
||||||
|
</configuration>
|
||||||
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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")]
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="DxOpenWebFw.Properties" GeneratedClassName="Settings">
|
||||||
|
<Profiles />
|
||||||
|
<Settings>
|
||||||
|
<Setting Name="URL" Type="System.String" Scope="Application">
|
||||||
|
<Value Profile="(Default)">http://203.154.55.194:8032/#/Login</Value>
|
||||||
|
</Setting>
|
||||||
|
<Setting Name="PATH_PRINTCENTER" Type="System.String" Scope="Application">
|
||||||
|
<Value Profile="(Default)">G:\Prog\Library_Debug\DX_HIS_Print_Center.exe</Value>
|
||||||
|
</Setting>
|
||||||
|
<Setting Name="JOBLIST" Type="System.String" Scope="Application">
|
||||||
|
<Value Profile="(Default)">36,38</Value>
|
||||||
|
</Setting>
|
||||||
|
</Settings>
|
||||||
|
</SettingsFile>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
Loading…
Reference in New Issue