..
This commit is contained in:
@@ -11,6 +11,7 @@ using COMM;
|
||||
using System.CodeDom;
|
||||
using AR;
|
||||
using Project.StateMachine;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
@@ -112,14 +113,14 @@ namespace Project
|
||||
_STEP_CLOSING_START(PUB.sm.Step);
|
||||
PUB.sm.Stop();
|
||||
|
||||
var patchfile = new System.IO.FileInfo(System.IO.Path.Combine(Util.CurrentPath, "SWPatch.exe"));
|
||||
var patchfile = new System.IO.FileInfo(System.IO.Path.Combine(UTIL.CurrentPath, "SWPatch.exe"));
|
||||
if (patchfile.Exists == false)
|
||||
{
|
||||
Util.MsgE("패치파일(" + patchfile.Name + ")이 없습니다.\n프로그램을 다시 실행해주세요", true);
|
||||
UTIL.MsgE("패치파일(" + patchfile.Name + ")이 없습니다.\n프로그램을 다시 실행해주세요", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.RunProcess(patchfile.FullName);
|
||||
UTIL.RunProcess(patchfile.FullName);
|
||||
}
|
||||
}
|
||||
else if (forceClose == true)
|
||||
@@ -130,19 +131,19 @@ namespace Project
|
||||
_STEP_CLOSING_START(PUB.sm.Step);
|
||||
PUB.sm.Stop();
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (PUB.sm.Step == eSMStep.RUN)
|
||||
{
|
||||
Util.MsgE("동작 중에는 종료 할 수 없습니다.");
|
||||
UTIL.MsgE("동작 중에는 종료 할 수 없습니다.");
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
if (PUB.sm.Step < eSMStep.CLOSING)
|
||||
{
|
||||
var rlt = Util.MsgQ("종료하시겠습니까");
|
||||
var rlt = UTIL.MsgQ("종료하시겠습니까");
|
||||
if (rlt == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
//비젼의 측정상태가 변경된 경우
|
||||
@@ -193,7 +194,9 @@ namespace Project
|
||||
|
||||
//지그비통신
|
||||
PUB.XBE = new Device.Xbee();
|
||||
//PUB.XBE.Message += Xbee_Message;
|
||||
PUB.XBE.MessageReceived += XBE_MessageReceived;
|
||||
PUB.XBE.ProtocReceived += XBE_ProtocReceived;
|
||||
|
||||
//HWState.setTitle(1, 3, Pub.setting.Port_Xbee);
|
||||
//HWState.setTitle(1, 0, Pub.setting.Address_RFID);
|
||||
|
||||
@@ -253,6 +256,7 @@ namespace Project
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void Counter_PropertyChanged(object sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
@@ -293,17 +297,17 @@ namespace Project
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
private void CtlPos1_ItemClick(object sender, CtlPos.ItemClickEventArgs e)
|
||||
{
|
||||
if (VAR.BOOL[eVarBool.FLAG_CHARGEONM] == true)
|
||||
{
|
||||
Util.MsgE("수동 충전 상태이므로 진행 할 수 없습니다");
|
||||
UTIL.MsgE("수동 충전 상태이므로 진행 할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
if (VAR.BOOL[eVarBool.EMERGENCY]==true)
|
||||
if (VAR.BOOL[eVarBool.EMERGENCY] == true)
|
||||
{
|
||||
var dlgE = Util.MsgQ("비상정지 상태입니다.\n오류를 먼저 소거하고 실행 할까요?");
|
||||
var dlgE = UTIL.MsgQ("비상정지 상태입니다.\n오류를 먼저 소거하고 실행 할까요?");
|
||||
if (dlgE == DialogResult.Yes) PUB.AGV.AGVErrorReset();
|
||||
else return;
|
||||
}
|
||||
@@ -511,7 +515,7 @@ namespace Project
|
||||
PUB.AGV.AGVErrorReset();
|
||||
if (Prompt)
|
||||
{
|
||||
if (Util.MsgQ("AGV상태를 자동으로 전환 할까요?") != DialogResult.Yes) return;
|
||||
if (UTIL.MsgQ("AGV상태를 자동으로 전환 할까요?") != DialogResult.Yes) return;
|
||||
}
|
||||
//충전상태확인
|
||||
if (PUB.CheckManualChargeMode() == false) return;
|
||||
@@ -656,15 +660,15 @@ namespace Project
|
||||
|
||||
private void arLabel3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string file = System.IO.Path.Combine(Util.CurrentPath, "manual.pdf");
|
||||
string file = System.IO.Path.Combine(UTIL.CurrentPath, "manual.pdf");
|
||||
if (System.IO.File.Exists(file) == false)
|
||||
{
|
||||
Util.MsgE("사용설명서 파일이 존재하지 않습니다\n" +
|
||||
UTIL.MsgE("사용설명서 파일이 존재하지 않습니다\n" +
|
||||
"문의 : T8567 (장비기술 1파트)\n" +
|
||||
"파일명 : " + file);
|
||||
return;
|
||||
}
|
||||
Util.RunExplorer(file);
|
||||
UTIL.RunExplorer(file);
|
||||
}
|
||||
|
||||
private void btClose_Click(object sender, EventArgs e)
|
||||
@@ -680,7 +684,7 @@ namespace Project
|
||||
private void arLabel5_Click(object sender, EventArgs e)
|
||||
{
|
||||
//SetScreen(form_setup);
|
||||
|
||||
|
||||
|
||||
var popmsg = PUB.popup.Visible;
|
||||
PUB.popup.Visible = false;
|
||||
@@ -688,7 +692,7 @@ namespace Project
|
||||
using (var f = new fSetup())
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
|
||||
|
||||
|
||||
//AGV정보 싱크
|
||||
PUB.sm.ResetRunStepSeq();
|
||||
@@ -705,7 +709,7 @@ namespace Project
|
||||
|
||||
//if (Pub.sm.Step != eSMStep.IDLE)
|
||||
//{
|
||||
var dlg = Util.MsgQ(
|
||||
var dlg = UTIL.MsgQ(
|
||||
"프로그램 상태를 초기화 하시겠습니까?\n" +
|
||||
"진행 중인 사항은 모두 취소 됩니다");
|
||||
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
|
||||
@@ -725,12 +729,12 @@ namespace Project
|
||||
|
||||
private void btCapture_Click(object sender, EventArgs e)
|
||||
{
|
||||
Util.ScreenCaptrue(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, new Point(0, 0));
|
||||
UTIL.ScreenCapture(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, new Point(0, 0));
|
||||
}
|
||||
|
||||
private void btOpenDir_Click(object sender, EventArgs e)
|
||||
{
|
||||
Util.RunExplorer(Util.CurrentPath);
|
||||
UTIL.RunExplorer(UTIL.CurrentPath);
|
||||
}
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
@@ -792,14 +796,14 @@ namespace Project
|
||||
|
||||
if (VAR.BOOL[eVarBool.FLAG_CHARGEONM])
|
||||
{
|
||||
Util.MsgE("수동 충전 상태이므로 진행 할 수 없습니다");
|
||||
UTIL.MsgE("수동 충전 상태이므로 진행 할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
//충전을 시작해라ㅏ
|
||||
if (bCharge == true)
|
||||
{
|
||||
var dlg = Util.MsgQ("충전을 중지할까요?");
|
||||
var dlg = UTIL.MsgQ("충전을 중지할까요?");
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
PUB.sm.ClearRunStep();
|
||||
@@ -810,7 +814,7 @@ namespace Project
|
||||
}
|
||||
else
|
||||
{
|
||||
var dlg = Util.MsgQ("충전을 시작할까요?");
|
||||
var dlg = UTIL.MsgQ("충전을 시작할까요?");
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
PUB.sm.ClearRunStep();
|
||||
@@ -850,7 +854,7 @@ namespace Project
|
||||
|
||||
if (bCharge == true)
|
||||
{
|
||||
var dlg = Util.MsgQ("홈(QC) 이동을 취소 할까요?");
|
||||
var dlg = UTIL.MsgQ("홈(QC) 이동을 취소 할까요?");
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
PUB.sm.ClearRunStep();
|
||||
@@ -862,7 +866,7 @@ namespace Project
|
||||
}
|
||||
else
|
||||
{
|
||||
var dlg = Util.MsgQ("홈(QC) 이동을 실행 할까요?");
|
||||
var dlg = UTIL.MsgQ("홈(QC) 이동을 실행 할까요?");
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
PUB.sm.ClearRunStep();
|
||||
@@ -949,7 +953,7 @@ namespace Project
|
||||
{
|
||||
if (VAR.BOOL[eVarBool.FLAG_CHARGEONM])
|
||||
{
|
||||
var dlg = Util.MsgQ("수동 충전을 해제 할까요?");
|
||||
var dlg = UTIL.MsgQ("수동 충전을 해제 할까요?");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
VAR.BOOL[eVarBool.FLAG_CHARGEONM] = false;
|
||||
PUB.log.Add("수동 충전 실행");
|
||||
@@ -958,10 +962,10 @@ namespace Project
|
||||
{
|
||||
if (PUB.AGV.system1.Battery_charging)
|
||||
{
|
||||
Util.MsgE("현재 자동 충전 중이라 진행 할 수 없습니다");
|
||||
UTIL.MsgE("현재 자동 충전 중이라 진행 할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
var dlg = Util.MsgQ("수동 충전을 진행 할까요?");
|
||||
var dlg = UTIL.MsgQ("수동 충전을 진행 할까요?");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
VAR.BOOL[eVarBool.FLAG_CHARGEONM] = true;
|
||||
PUB.log.Add("수동 충전 실행");
|
||||
|
||||
Reference in New Issue
Block a user