ResultFile.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System;
  2. using System.Collections.Generic;
  3. namespace OTSCommon.Model
  4. {
  5. [Serializable]
  6. public class ResultFile
  7. {
  8. /// <summary>
  9. /// FileId
  10. /// </summary>
  11. /// //全局对象,为了能够快速的获取到xray数据,而做为一个临时变量进行保存,使用前应该判断是否为空
  12. private List<Field> list_OTSField = null;
  13. public string FileId
  14. {
  15. get;
  16. set;
  17. }
  18. /// <summary>
  19. /// FileName
  20. /// </summary>
  21. public string anotherFileName
  22. {
  23. get;
  24. set;
  25. }
  26. /// <summary>
  27. /// FileName
  28. /// </summary>
  29. public string FileName_real
  30. {
  31. get;
  32. set;
  33. }
  34. /// <summary>
  35. /// FilePath
  36. /// </summary>
  37. public string FilePath
  38. {
  39. get;
  40. set;
  41. }
  42. /// <summary>
  43. /// ResuitInfo
  44. /// </summary>
  45. public Dictionary<string, object> ResultInfo
  46. {
  47. get;
  48. set;
  49. }
  50. public List<Field> List_OTSField { get => list_OTSField; set => list_OTSField = value; }
  51. public OTS_SysType_ID GetResultSystype()
  52. {
  53. var Systype = ((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)(Dictionary<string, object>)this.ResultInfo["Sample"])["Members"])["MsrParams"])["SysType"];
  54. return (OTS_SysType_ID)(Convert.ToInt32( Systype.ToString().Split(':')[0]));
  55. }
  56. }
  57. }