..
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>Full</DebugType>
|
<DebugType>Full</DebugType>
|
||||||
<Optimize>False</Optimize>
|
<Optimize>False</Optimize>
|
||||||
<OutputPath>..\..\..\..\..\Amkor\AGV4\</OutputPath>
|
<OutputPath>..\..\..\..\..\amkor\AGV4\</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;NOSPEECH</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;NOSPEECH</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
|||||||
@@ -436,8 +436,9 @@ namespace Project
|
|||||||
/// <param name="prgmName"></param>
|
/// <param name="prgmName"></param>
|
||||||
/// <param name="develop"></param>
|
/// <param name="develop"></param>
|
||||||
/// <param name="prgmVersion"></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); //길이제한
|
if (prgmName.Length > 50) prgmName = prgmName.Substring(0, 50); //길이제한
|
||||||
var task = Task.Factory.StartNew(() =>
|
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!");
|
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();
|
conn.Open();
|
||||||
string ProcName = "AddPrgmUser3";
|
string ProcName = "AddPrgmUser5";
|
||||||
var cmd = new SqlCommand(ProcName, conn)
|
var cmd = new SqlCommand(ProcName, conn)
|
||||||
{
|
{
|
||||||
CommandType = CommandType.StoredProcedure
|
CommandType = CommandType.StoredProcedure
|
||||||
@@ -508,7 +509,13 @@ namespace Project
|
|||||||
param = cmd.Parameters.Add("@hostname", SqlDbType.NVarChar, 100);
|
param = cmd.Parameters.Add("@hostname", SqlDbType.NVarChar, 100);
|
||||||
param.Value = fullname;
|
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();
|
conn.Close();
|
||||||
|
|
||||||
IP = ip;
|
IP = ip;
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
|
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
|
||||||
// 지정되도록 할 수 있습니다.
|
// 지정되도록 할 수 있습니다.
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("26.02.09.0840")]
|
[assembly: AssemblyVersion("26.02.25.1600")]
|
||||||
[assembly: AssemblyFileVersion("26.02.09.0840")]
|
[assembly: AssemblyFileVersion("26.02.25.1600")]
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using COMM;
|
|||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using Project.StateMachine;
|
using Project.StateMachine;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project
|
namespace Project
|
||||||
{
|
{
|
||||||
@@ -311,6 +312,9 @@ namespace Project
|
|||||||
{
|
{
|
||||||
//남은디스크확인
|
//남은디스크확인
|
||||||
CheckFreeSpace();
|
CheckFreeSpace();
|
||||||
|
|
||||||
|
//사용기록 업데이트
|
||||||
|
PUB.CheckNRegister5(Application.ProductName, "chi", Application.ProductVersion, PUB.setting.MCID, PUB.setting.AGV_ADDRESS);
|
||||||
tm5minute = DateTime.Now;
|
tm5minute = DateTime.Now;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ namespace Project
|
|||||||
Update_Count();
|
Update_Count();
|
||||||
|
|
||||||
PUB.log.Add("프로그램 실행 기록 추가");
|
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)
|
if (PUB.setting.StartLog)
|
||||||
MenuLog.PerformClick();
|
MenuLog.PerformClick();
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ namespace Test_ACS
|
|||||||
{
|
{
|
||||||
// LiftControl: data = TargetID(2 hex) + LiftCommand(1 byte)
|
// LiftControl: data = TargetID(2 hex) + LiftCommand(1 byte)
|
||||||
var targetID = selectedAGV.ToString("X2");
|
var targetID = selectedAGV.ToString("X2");
|
||||||
var dataStr = targetID + liftCmd.ToString("X2");
|
var dataStr = targetID + ((byte)liftCmd).ToString("X2");
|
||||||
SendCommand(AGVCommandHE.LiftControl, dataStr);
|
SendCommand(AGVCommandHE.LiftControl, dataStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user