OPen by Complo

main
Panus Chachon 3 years ago
parent d3fe914792
commit 40c305d182

@ -51,6 +51,12 @@
<ApplicationIcon>favicon.ico</ApplicationIcon> <ApplicationIcon>favicon.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="ClassGenDB">
<HintPath>..\..\..\Library_Debug\ClassGenDB.dll</HintPath>
</Reference>
<Reference Include="ClassUtility">
<HintPath>..\..\..\Library_Debug\ClassUtility.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />

@ -1,3 +1,5 @@
using ClassGenDB;
using ClassUtility;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
@ -8,11 +10,28 @@ namespace DxOpenWebFw
{ {
class Program class Program
{ {
static string DevKey = "FCPcGMiYfsYPgUV+fulrHwQ2hbt4mv6HPgBsxkxvO+k=";
static void Main(string[] args) static void Main(string[] args)
{ {
Console.WriteLine("BuildVersion : 1.0.0"); DevCallContext devCallContext = new DevCallContext(DevKey);
Console.WriteLine("BuildVersion : 1.1.0");
Console.WriteLine("Computer Name : " + System.Environment.MachineName); Console.WriteLine("Computer Name : " + System.Environment.MachineName);
string strUrl = DxOpenWebFw.Properties.Settings.Default.URL + "?COMPUTERNAME=" + System.Environment.MachineName; Console.WriteLine("DB Connect : " + devCallContext.GetStringConnectionDev().Substring(0,60));
Class_Db dbDev = new Class_Db(devCallContext.GetStringConnectionDev());
TB_SETUP_COMPUTER_NAME tbComName = new TB_SETUP_COMPUTER_NAME();
DBCondition xDBCondition = DBExpression.Normal(tbComName.Field_Code.ColumnName, DBComparisonOperator.EqualEver, System.Environment.MachineName);
string strComloURL = DxData.getValueString(dbDev.GetValueData(tbComName.TableName, tbComName.Field_DefaultURLHIS.ColumnName, xDBCondition.ToString(), "Code", true));
string strUrl = DxOpenWebFw.Properties.Settings.Default.URL;
if (!string.IsNullOrEmpty(strComloURL))
{
strUrl = strComloURL;
}
strUrl = strUrl + "?COMPUTERNAME=" + System.Environment.MachineName;
var prs = new ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"); var prs = new ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe");
prs.Arguments = strUrl; prs.Arguments = strUrl;
@ -25,6 +44,8 @@ namespace DxOpenWebFw
{ {
Process.Start(strUrl); Process.Start(strUrl);
} }
/*
//// ////
Console.WriteLine("Computer Name : " + DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER); Console.WriteLine("Computer Name : " + DxOpenWebFw.Properties.Settings.Default.PATH_PRINTCENTER);
//// ////
@ -37,6 +58,7 @@ namespace DxOpenWebFw
printcenter.Arguments = string.Format("LOCALSTART|JOB={0}|COM={1}", strJOBLIST, strComputerName); printcenter.Arguments = string.Format("LOCALSTART|JOB={0}|COM={1}", strJOBLIST, strComputerName);
Process.Start(printcenter); Process.Start(printcenter);
} }
*/
} }
} }

Loading…
Cancel
Save