UpLoadTraceModel.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. namespace ConsoleApp2
  2. {
  3. public class UpLoadTraceModel
  4. {
  5. public Serials serials { get; set; }
  6. public Data data { get; set; }
  7. }
  8. public class Serials
  9. {
  10. public string part_id { get; set; } //二维码 LYC0000000000001
  11. }
  12. public class Data
  13. {
  14. public Insight insight { get; set; }
  15. }
  16. public class Insight
  17. {
  18. public Test_Attributes test_attributes { get; set; }
  19. public Test_Station_Attributes test_station_attributes { get; set; }
  20. public Uut_Attributes uut_attributes { get; set; }
  21. public Result[] results { get; set; }
  22. }
  23. public class Test_Attributes
  24. {
  25. /// <summary>
  26. /// 测试结果
  27. /// </summary>
  28. public string test_result { get; set; }//pass/fail
  29. /// <summary>
  30. /// 开始时间
  31. /// </summary>
  32. public string uut_start { get; set; }//2018-09-18 20:41:33
  33. /// <summary>
  34. /// 停止时间
  35. /// </summary>
  36. public string uut_stop { get; set; }
  37. }
  38. public class Test_Station_Attributes
  39. {
  40. public string fixture_id { get; set; }//H-76HO-SMA40-2200-A-00003
  41. public string head_id { get; set; }// An optional string containing Cavity 1?
  42. /// <summary>
  43. /// 线id
  44. /// </summary>
  45. public string line_id { get; set; } //H-76HO-SMA40-2200-A-00003
  46. /// <summary>
  47. /// 软件名称
  48. /// </summary>
  49. public string software_name { get; set; }//TeamXXX
  50. /// <summary>
  51. /// 版本
  52. /// </summary>
  53. public string software_version { get; set; }//V1.111
  54. /// <summary>
  55. ///
  56. /// </summary>
  57. public string station_id { get; set; }//Site_LineID_MachineID_StationName
  58. }
  59. public class Uut_Attributes
  60. {
  61. //操作员id
  62. public string op_id { get; set; }
  63. /// <summary>
  64. /// 白夜班
  65. /// </summary>
  66. public string shift { get; set; }//D/N
  67. /// <summary>
  68. /// 设备供应商?代工商
  69. /// </summary>
  70. public string station_vendor { get; set; }//team
  71. }
  72. public class Result
  73. {
  74. /// <summary>
  75. /// “pass”, “fail” or “scrap”
  76. /// </summary>
  77. public string result { get; set; }//pass/fail
  78. /// <summary>
  79. /// A required string containing the name of the test
  80. /// 点位的意思
  81. /// </summary>
  82. public string test { get; set; } //"SPCXYZ (e.g., SPC-D-1_1)
  83. /// <summary>
  84. /// 单位
  85. /// </summary>
  86. public string units { get; set; }
  87. /// <summary>
  88. /// : A required string containing value of the parametric data
  89. /// 要求字符串包含参数话数据
  90. /// e.g. SPC-AW_M6,1,1.1,1.5,PASS
  91. /// 客户说是直接写 值
  92. /// </summary>
  93. public string value { get; set; }//
  94. }
  95. }