| | |
| | | 锘縰sing HslCommunication; |
| | | using HslCommunication.WebSocket; |
| | | using Microsoft.SqlServer.Server; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Numeric; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using Quartz.Impl; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | resultDic.Add("normal", "0"); |
| | | |
| | | |
| | | Thread.Sleep(300); |
| | | //Thread.Sleep(300); |
| | | modelResult1 = bool.Parse(client.ReadValue(CLineInfoDBName.R_System_Emery_Model.ToString(), "System").ToString()); |
| | | |
| | | if (modelResult1) |
| | |
| | | } |
| | | |
| | | |
| | | Thread.Sleep(300); |
| | | //Thread.Sleep(300); |
| | | int val = int.Parse(client.ReadValue(CLineInfoDBName.R_System_Inline_Run_Model.ToString(), "System").ToString()); |
| | | if (val == 1) |
| | | resultDic.Add("controlModel", "鎵嬪姩鎺у埗"); |
| | |
| | | |
| | | |
| | | |
| | | Thread.Sleep(300); |
| | | //Thread.Sleep(300); |
| | | int modelResult = int.Parse(client.ReadValue(CLineInfoDBName.R_System_Inline_Run_Model.ToString(), "OutSystem").ToString()); |
| | | if (modelResult == 1) |
| | | resultDic.Add("modelResult", "鎵嬪姩鎺у埗"); |
| | |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | LogRecord.WriteLog(LogEnum.Errer, DateTime.Now.ToString()+"鍦℅etInboundLineCurrentModel鏂规硶鑾峰彇褰撳墠鍏ュ簱妯″紡鐨勬椂鍊欏彂鐢熶簡閿欒" + ex.Message+ "鏁版嵁"+ resultDic); |
| | | } |
| | | return content; |
| | | } |