public OldTighteningResultUpload(Message message) : base(message) { string str = Data.Substring(2, 10); Int64 id = Int64.Parse(str.Trim()); try { TighteningID = (UInt32)id; } catch { TighteningID = 0; } VIN = Data.Substring(14, 25); PSetNo = Convert.ToInt32(Data.Substring(41, 3)); BatchCount = Convert.ToInt32(Data.Substring(46, 4)); TorqueStatus = (StatusType)(int.Parse(Data.Substring(55, 1))); AngleStatus = (StatusType)(int.Parse(Data.Substring(58, 1))); Success = (TorqueStatus == StatusType.OK && AngleStatus == StatusType.OK); Torque = int.Parse(Data.Substring(61, 6)) / 100.0F; Angle = int.Parse(Data.Substring(69, 5)); str = Data.Substring(76, 10); str += " "; str += Data.Substring(87, 8); Timestamp = Convert.ToDateTime(str); BatchStatus = (BatchStatusType)(Data[97] - 48); }
public LastTighteningResultUpload(Message message) : base(message) { string str; TorqueEventArgs args = new TorqueEventArgs(); CellID = Convert.ToInt32(Data.Substring(2, 4)); ChannelID = Convert.ToInt32(Data.Substring(8, 2)); ControllerName = Data.Substring(12, 25); VIN = Data.Substring(39, 25); JobNo = Convert.ToInt32(Data.Substring(66, 2)); PSetNo = Convert.ToInt32(Data.Substring(70, 3)); BatchSize = Convert.ToInt32(Data.Substring(75, 4)); BatchCount = Convert.ToInt32(Data.Substring(81, 4)); TorqueStatus = (StatusType)(int.Parse(Data.Substring(90, 1))); AngleStatus = (StatusType)(int.Parse(Data.Substring(93, 1))); Success = (TorqueStatus == StatusType.OK && AngleStatus == StatusType.OK); TorqueMin = int.Parse(Data.Substring(96, 6)) / 100.0F; TorqueMax = int.Parse(Data.Substring(104, 6)) / 100.0F; TorqueTarget = int.Parse(Data.Substring(112, 6)) / 100.0F; Torque = int.Parse(Data.Substring(120, 6)) / 100.0F; AngleMin = int.Parse(Data.Substring(128, 6)); AngleMax = int.Parse(Data.Substring(135, 6)); AngleTarget = int.Parse(Data.Substring(142, 6)); Angle = int.Parse(Data.Substring(149, 5)); str = Data.Substring(156, 10); str += " "; str += Data.Substring(167, 8); Timestamp = Convert.ToDateTime(str); str = Data.Substring(177, 10); str += " "; str += Data.Substring(188, 8); LastPSetChange = Convert.ToDateTime(str); BatchStatus = (BatchStatusType)(Data[198] - 48); str = Data.Substring(201, 10); Int64 id = Int64.Parse(str.Trim()); try { TighteningID = (UInt32)id; } catch { TighteningID = 0; } }
protected BatchStatusType WaitBatchOperationComplete(string token) { while (true) { BatchStatusType status = app.EacGateway.GetUtilityStatus(app.AppId, token); if (status.state == StateType.NotRunning) { return(status); } if (status.state == StateType.Failed) { throw new EndecaApplicationException(Id, status); } Thread.Sleep(WaitInterval); } }
public HostOperation(string host, string token) { _host = host; _token = token; _status = null; }
public HostOperation(string host, string token, BatchStatusType status) { _host = host; _token = token; _status = status; }
public HostOperation(string host, string token) { _host = host; _token = token; _status = null; }
public HostOperation(string host, string token, BatchStatusType status) { _host = host; _token = token; _status = status; }