|
@ -6,6 +6,7 @@ import com.iflytop.a800.TaskBase; |
|
|
import com.iflytop.a800.device.Device; |
|
|
import com.iflytop.a800.device.Device; |
|
|
import com.iflytop.a800.model.MdbIdChip; |
|
|
import com.iflytop.a800.model.MdbIdChip; |
|
|
import com.iflytop.a800.model.MdbProject; |
|
|
import com.iflytop.a800.model.MdbProject; |
|
|
|
|
|
import com.iflytop.a800.model.MdbTest; |
|
|
import com.iflytop.a800.resource.*; |
|
|
import com.iflytop.a800.resource.*; |
|
|
import com.iflytop.a800.utils.ScanResultAnalysisAlgo; |
|
|
import com.iflytop.a800.utils.ScanResultAnalysisAlgo; |
|
|
import com.iflytop.uf.UfCmdSnippetExecutor; |
|
|
import com.iflytop.uf.UfCmdSnippetExecutor; |
|
@ -13,12 +14,16 @@ import com.iflytop.uf.util.UfCommon; |
|
|
import com.iflytop.uf.util.UfJsonHelper; |
|
|
import com.iflytop.uf.util.UfJsonHelper; |
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
public class TubeTestTask extends TaskBase { |
|
|
public class TubeTestTask extends TaskBase { |
|
|
|
|
|
// 测试试管 |
|
|
|
|
|
public TestTube tube; |
|
|
// 测试项目 |
|
|
// 测试项目 |
|
|
public MdbProject project; |
|
|
public MdbProject project; |
|
|
|
|
|
|
|
|
public TestTubeRack tubeRack; |
|
|
public TestTubeRack tubeRack; |
|
|
public TestTube tube; |
|
|
|
|
|
public String status; |
|
|
public String status; |
|
|
|
|
|
|
|
|
|
|
|
// 测试记录 |
|
|
|
|
|
private MdbTest test; |
|
|
// 缓冲液试管 |
|
|
// 缓冲液试管 |
|
|
private BufferTube bufferTube; |
|
|
private BufferTube bufferTube; |
|
|
// 大容量缓冲液试管 |
|
|
// 大容量缓冲液试管 |
|
@ -32,7 +37,9 @@ 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.bufferTube = device.bufferTube.alloc(); |
|
|
|
|
|
if ("yes".equals(this.project.isLargeBufferRequired)) { |
|
|
this.largeBufferTube = device.largeBufferTube.getTube(); |
|
|
this.largeBufferTube = device.largeBufferTube.getTube(); |
|
|
|
|
|
} |
|
|
this.testCard = device.testCard.alloc(); |
|
|
this.testCard = device.testCard.alloc(); |
|
|
this.idChip = new MdbIdChip(); |
|
|
this.idChip = new MdbIdChip(); |
|
|
this.idChip.peakCount = 3; |
|
|
this.idChip.peakCount = 3; |
|
@ -47,6 +54,10 @@ 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 |
|
@ -103,7 +114,6 @@ public class TubeTestTask extends TaskBase { |
|
|
Device device = Device.getInstance(); |
|
|
Device device = Device.getInstance(); |
|
|
var pipette = device.pipette; |
|
|
var pipette = device.pipette; |
|
|
pipette.tipPickUp(); |
|
|
pipette.tipPickUp(); |
|
|
|
|
|
|
|
|
String source = stepNode.get("source").asText(); |
|
|
String source = stepNode.get("source").asText(); |
|
|
Integer volume = stepNode.get("volume").asInt(); |
|
|
Integer volume = stepNode.get("volume").asInt(); |
|
|
if ( "LargeBufferTube".equals(source) ) { |
|
|
if ( "LargeBufferTube".equals(source) ) { |
|
@ -222,8 +232,8 @@ public class TubeTestTask extends TaskBase { |
|
|
results.add(Map.of("name",itemName,"value",value,"unit","xx/xx")); |
|
|
results.add(Map.of("name",itemName,"value",value,"unit","xx/xx")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String testResult = UfJsonHelper.objectToJson(results); |
|
|
|
|
|
System.out.println(testResult); |
|
|
|
|
|
|
|
|
this.test.result = UfJsonHelper.objectToJson(results); |
|
|
|
|
|
this.test.save(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|