public WorkstationResult(L3.Cargo.Common.result result) { m_AnalysisTime = Convert.ToUInt32(result.AnalysisTime); m_Comment = result.Comment; m_CreateTime = result.CreateTime; m_Decision = (WorkstationDecision)Enum.Parse(typeof(WorkstationDecision), result.Decision, true); m_Reason = (WorkstationReason)Enum.Parse(typeof(WorkstationReason), result.Reason, true); m_UserName = result.User; m_WorkstationType = result.StationType; m_CaseId = result.CaseId; m_CaseType = (CaseType)Enum.Parse(typeof(CaseType), result.CaseType.ToString(), true); m_WorkstationId = result.WorkstationId; }
public WorkstationResult (L3.Cargo.Common.result result) { m_AnalysisTime = Convert.ToUInt32(result.AnalysisTime); m_Comment = result.Comment; m_CreateTime = result.CreateTime; m_Decision = (WorkstationDecision) Enum.Parse(typeof(WorkstationDecision), result.Decision, true); m_Reason = (WorkstationReason) Enum.Parse(typeof(WorkstationReason), result.Reason, true); m_UserName = result.User; m_WorkstationType = result.StationType; m_CaseId = result.CaseId; m_CaseType = (CaseType)Enum.Parse(typeof(CaseType), result.CaseType.ToString(), true); m_WorkstationId = result.WorkstationId; }