|
@ -36,11 +36,24 @@ public class TubeTestTask extends TaskBase { |
|
|
// 任务准备 |
|
|
// 任务准备 |
|
|
public void prepare() { |
|
|
public void prepare() { |
|
|
var device = Device.getInstance(); |
|
|
var device = Device.getInstance(); |
|
|
this.bufferTube = device.bufferTube.alloc(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 申请测试卡 |
|
|
|
|
|
this.testCard = device.testCard.alloc(this.project); |
|
|
|
|
|
|
|
|
|
|
|
// 缓冲液/探测物质 |
|
|
|
|
|
this.bufferTube = device.bufferTube.alloc(this.testCard); |
|
|
|
|
|
|
|
|
|
|
|
// 大缓冲液 |
|
|
if ("yes".equals(this.project.isLargeBufferRequired)) { |
|
|
if ("yes".equals(this.project.isLargeBufferRequired)) { |
|
|
this.largeBufferTube = device.largeBufferTube.getTube(); |
|
|
|
|
|
|
|
|
this.largeBufferTube = device.largeBufferTube.getTube(this.testCard); |
|
|
} |
|
|
} |
|
|
this.testCard = device.testCard.alloc(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 测试记录 |
|
|
|
|
|
this.test = new MdbTest(); |
|
|
|
|
|
this.test.projectCode = this.project.code; |
|
|
|
|
|
this.test.materialLotCode = this.testCard.lotCode; |
|
|
|
|
|
this.test.save(); |
|
|
|
|
|
|
|
|
this.idChip = new MdbIdChip(); |
|
|
this.idChip = new MdbIdChip(); |
|
|
this.idChip.peakCount = 3; |
|
|
this.idChip.peakCount = 3; |
|
|
this.idChip.itemCount = 1; |
|
|
this.idChip.itemCount = 1; |
|
@ -54,10 +67,6 @@ public class TubeTestTask extends TaskBase { |
|
|
"wb", Map.of("a", 1.0, "b", 2.0, "c", 3.0, "d", 4.0) |
|
|
"wb", Map.of("a", 1.0, "b", 2.0, "c", 3.0, "d", 4.0) |
|
|
) |
|
|
) |
|
|
))); |
|
|
))); |
|
|
|
|
|
|
|
|
// 测试记录 |
|
|
|
|
|
this.test = new MdbTest(); |
|
|
|
|
|
this.test.save(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|