|
@ -87,6 +87,7 @@ public class TubeTestTask extends TaskBase { |
|
|
|
|
|
|
|
|
// 记录日志 |
|
|
// 记录日志 |
|
|
private void log(String message, Object ... args ) { |
|
|
private void log(String message, Object ... args ) { |
|
|
|
|
|
message = String.format("[TubeTestTask:T%d-P%s] %s", this.tube.index, this.test.projectCode, message); |
|
|
LOG.info(message, args); |
|
|
LOG.info(message, args); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -147,11 +148,13 @@ public class TubeTestTask extends TaskBase { |
|
|
|
|
|
|
|
|
// 盖帽 |
|
|
// 盖帽 |
|
|
private void cap() { |
|
|
private void cap() { |
|
|
|
|
|
this.log("盖帽"); |
|
|
if ( UfMdbDictItem.match("TUBE_TYPE", "WB_5ML", this.tube.type) ) { |
|
|
if ( UfMdbDictItem.match("TUBE_TYPE", "WB_5ML", this.tube.type) ) { |
|
|
UfCmdSnippetExecutor.execute("SampleTestCap"); |
|
|
UfCmdSnippetExecutor.execute("SampleTestCap"); |
|
|
} else if ( UfMdbDictItem.match("TUBE_TYPE", "WB_3ML", this.tube.type) ) { |
|
|
} else if ( UfMdbDictItem.match("TUBE_TYPE", "WB_3ML", this.tube.type) ) { |
|
|
UfCmdSnippetExecutor.execute("SampleTestCap"); |
|
|
UfCmdSnippetExecutor.execute("SampleTestCap"); |
|
|
} |
|
|
} |
|
|
|
|
|
this.emit("TubeSamplingFinished"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 穿孔 |
|
|
// 穿孔 |
|
|