48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.NetworkInformation;
|
|
using System.Runtime.Serialization.Formatters.Binary;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using System.Management;
|
|
using COMM;
|
|
|
|
namespace Project
|
|
{
|
|
public static partial class UTIL
|
|
{
|
|
public static string GetResultCodeMessage(eResult err)
|
|
{
|
|
return err.ToString().ToUpper();
|
|
}
|
|
|
|
|
|
public static string GetErrorMessage(eECode err, params object[] values)
|
|
{
|
|
switch (err)
|
|
{
|
|
case eECode.NOTALLOWUP:
|
|
return "상차 허용 위치가 아닙니다";
|
|
case eECode.AGVCONN:
|
|
return Lang.AGV연결실패;
|
|
case eECode.PLCCONN:
|
|
return Lang.PLC통신실패;
|
|
|
|
default:
|
|
return err.ToString();
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|