Commit b12ff5ef LN

1

1 个父辈 238863fb
...@@ -171,7 +171,8 @@ namespace OnlineStore.ACSingleStore ...@@ -171,7 +171,8 @@ namespace OnlineStore.ACSingleStore
{ {
return; return;
} }
// button6_Click(null, null);
// timer1.Interval = 300;
if (chbDebug.Checked.Equals(store.IsDebug).Equals(false)) if (chbDebug.Checked.Equals(store.IsDebug).Equals(false))
{ {
LoadOk = false; LoadOk = false;
...@@ -1371,15 +1372,18 @@ namespace OnlineStore.ACSingleStore ...@@ -1371,15 +1372,18 @@ namespace OnlineStore.ACSingleStore
} }
private void button6_Click(object sender, EventArgs e) private void button6_Click(object sender, EventArgs e)
{ {
int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door); if (LineConnect.IsConnect())
StoreStatus ss = StoreStatus.StoreOnline;
if (store.IsDebug)
{ {
ss = StoreStatus.Debugging; int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
StoreStatus ss = StoreStatus.StoreOnline;
if (store.IsDebug)
{
ss = StoreStatus.Debugging;
}
StoreSendBean bean = new StoreSendBean(StoreManager.Config.Id, StoreManager.Config.CID, (int)ss, (int)StoreRunStatus.Runing, hasTray, (int)StoreAlarmType.None);
LineConnect.SendHeart(bean);
} }
StoreSendBean bean = new StoreSendBean(StoreManager.Config.Id, StoreManager.Config.CID, (int)ss, (int)StoreRunStatus.Runing, hasTray, (int)StoreAlarmType.None);
LineConnect.SendHeart(bean);
} }
private void chbDebug_CheckedChanged(object sender, EventArgs e) private void chbDebug_CheckedChanged(object sender, EventArgs e)
......
...@@ -865,7 +865,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -865,7 +865,7 @@ namespace OnlineStore.DeviceLibrary
} }
} }
private IO_VALUE lastAutoRun = IO_VALUE.LOW; private IO_VALUE lastAutoRun = IO_VALUE.LOW;
private IO_VALUE lastAirValue = IO_VALUE.LOW; // private IO_VALUE lastAirValue = IO_VALUE.LOW;
public void IoCheckProcess() public void IoCheckProcess()
{ {
DateTime time = DateTime.Now; DateTime time = DateTime.Now;
......
...@@ -88,15 +88,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -88,15 +88,15 @@ namespace OnlineStore.DeviceLibrary
return JsonHelper.SerializeObject(store)+"\r"; return JsonHelper.SerializeObject(store)+"\r";
} }
private static string ToParamStr(List<object> paramList) //private static string ToParamStr(List<object> paramList)
{ //{
string result = ""; // string result = "";
foreach (object str in paramList) // foreach (object str in paramList)
{ // {
result += str + cmd_spilt.ToString(); // result += str + cmd_spilt.ToString();
} // }
return result + "\r"; // return result + "\r";
} //}
private static void HandlerMsg(string message) private static void HandlerMsg(string message)
{ {
try try
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!