| | |
| | | /// <returns></returns> |
| | | public WebResponseContent BecomeTrue() |
| | | { |
| | | var query = BaseDal.QueryData(x => x.ResetStatus == true).ToList(); |
| | | var query = BaseDal.QueryData(x => x.ResetStatus == true&&x.AlarmContent.Contains("éç¢")).ToList(); |
| | | // å¦ææ²¡ææ¾å°ç¬¦åæ¡ä»¶çæ°æ® |
| | | if (query.Count == 0) |
| | | { |
| | |
| | | try |
| | | { |
| | | devices.Value.left.Communicator.Write<bool>("M105", true); |
| | | var left = devices.Value.left.Communicator.Write<bool>("M105", true); //é坿¥è¦å¤ä½ |
| | | // çå¾
3ç§ |
| | | Thread.Sleep(1000); |
| | | if (devices.Value.left.Communicator.Read<bool>("M109") || devices.Value.left.Communicator.Read<bool>("M111") || devices.Value.left.Communicator.Read<bool>("M110")) |
| | | { |
| | | devices.Value.left.Communicator.Write<bool>("M105", true); //é坿¥è¦å¤ä½ |
| | | return WebResponseContent.Instance.Error("å¤ä½å¤±è´¥ï¼è¯·éæ°æ£æ¥åéæ°å¤ä½ï¼å¦ï¼æ¥åæé®æ¯å¦æ¾å¼ï¼"); |
| | | } |
| | | } |
| | | |
| | | catch (Exception) |
| | | { |
| | | |
| | | |
| | | |
| | | } |
| | | try |
| | | { |
| | | devices.Value.right.Communicator.Write<bool>("M105", true); |
| | | Thread.Sleep(1000); |
| | | if (devices.Value.right.Communicator.Read<bool>("M109") || devices.Value.right.Communicator.Read<bool>("M111") || devices.Value.right.Communicator.Read<bool>("M110")) |
| | | { |
| | | devices.Value.right.Communicator.Write<bool>("M105", true); |
| | | return WebResponseContent.Instance.Error("å¤ä½å¤±è´¥ï¼è¯·éæ°æ£æ¥åéæ°å¤ä½ï¼å¦ï¼æ¥åæé®æ¯å¦æ¾å¼ï¼"); |
| | | } |
| | | } |
| | | catch (Exception) |
| | | { |