..
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>Full</DebugType>
|
||||
<Optimize>False</Optimize>
|
||||
<OutputPath>..\..\..\..\..\Amkor\AGV4\</OutputPath>
|
||||
<OutputPath>..\..\..\..\..\amkor\AGV4\</OutputPath>
|
||||
<DefineConstants>TRACE;DEBUG;NOSPEECH</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
||||
@@ -436,8 +436,9 @@ namespace Project
|
||||
/// <param name="prgmName"></param>
|
||||
/// <param name="develop"></param>
|
||||
/// <param name="prgmVersion"></param>
|
||||
public static void CheckNRegister3(string prgmName, string develop, string prgmVersion)
|
||||
public static void CheckNRegister5(string prgmName, string develop, string prgmVersion,string mcid, string remark)
|
||||
{
|
||||
if (System.Diagnostics.Debugger.IsAttached) mcid += $"*";
|
||||
if (prgmName.Length > 50) prgmName = prgmName.Substring(0, 50); //길이제한
|
||||
var task = Task.Factory.StartNew(() =>
|
||||
{
|
||||
@@ -478,7 +479,7 @@ namespace Project
|
||||
|
||||
var conn = new SqlConnection(AGV4.Properties.Settings.Default.CS);// "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!");
|
||||
conn.Open();
|
||||
string ProcName = "AddPrgmUser3";
|
||||
string ProcName = "AddPrgmUser5";
|
||||
var cmd = new SqlCommand(ProcName, conn)
|
||||
{
|
||||
CommandType = CommandType.StoredProcedure
|
||||
@@ -508,7 +509,13 @@ namespace Project
|
||||
param = cmd.Parameters.Add("@hostname", SqlDbType.NVarChar, 100);
|
||||
param.Value = fullname;
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
param = cmd.Parameters.Add("@mcid", SqlDbType.VarChar, 10);
|
||||
param.Value = mcid;
|
||||
|
||||
param = cmd.Parameters.Add("@remark", SqlDbType.VarChar, 255);
|
||||
param.Value = remark;
|
||||
|
||||
var cnt = cmd.ExecuteNonQuery();
|
||||
conn.Close();
|
||||
|
||||
IP = ip;
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
|
||||
// 지정되도록 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("26.02.09.0840")]
|
||||
[assembly: AssemblyFileVersion("26.02.09.0840")]
|
||||
[assembly: AssemblyVersion("26.02.25.1600")]
|
||||
[assembly: AssemblyFileVersion("26.02.25.1600")]
|
||||
|
||||
@@ -3,6 +3,7 @@ using COMM;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using Project.StateMachine;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
@@ -311,6 +312,9 @@ namespace Project
|
||||
{
|
||||
//남은디스크확인
|
||||
CheckFreeSpace();
|
||||
|
||||
//사용기록 업데이트
|
||||
PUB.CheckNRegister5(Application.ProductName, "chi", Application.ProductVersion, PUB.setting.MCID, PUB.setting.AGV_ADDRESS);
|
||||
tm5minute = DateTime.Now;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -254,7 +254,7 @@ namespace Project
|
||||
Update_Count();
|
||||
|
||||
PUB.log.Add("프로그램 실행 기록 추가");
|
||||
PUB.CheckNRegister3(Application.ProductName, "chi", Application.ProductVersion);
|
||||
PUB.CheckNRegister5(Application.ProductName, "chi", Application.ProductVersion,PUB.setting.MCID,PUB.setting.AGV_ADDRESS);
|
||||
|
||||
if (PUB.setting.StartLog)
|
||||
MenuLog.PerformClick();
|
||||
|
||||
Reference in New Issue
Block a user