Commit b12ff5ef LN

1

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