You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.6 KiB
C#

using ClassGenDB;
using ClassUtility;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace DxOpenWebFw
{
class Program
{
static string DevKey = "FCPcGMiYfsYPgUV+fulrHwQ2hbt4mv6HPgBsxkxvO+k=";
static void Main(string[] args)
{
DevCallContext devCallContext = new DevCallContext(DevKey);
string strBuuildVer = "BuildVersion_1_2";
Console.WriteLine(strBuuildVer);
Console.WriteLine("Computer Name : " + 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 + "&bv="+ strBuuildVer + "&refcache=" + DateTime.Now.Ticks.ToString();
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);
}
*/
}
}
}