Hiding puck detection errors from users.

This commit is contained in:
gac-S_Changer
2018-09-20 18:07:39 +02:00
parent dc78eb382f
commit 90292bbba2
3 changed files with 16 additions and 13 deletions

View File

@@ -21,15 +21,17 @@ public class SampleInfo extends HashMap {
}
Object[] getData() {
return new Object[]{getStr("userName"), getStr("dewarName"),
return new Object[]{
//getStr("userName"), getStr("dewarName"),
getStr("puckName"), getEnum("puckType", PuckType.class, PuckType.Unknown), getStr("puckBarcode"), getStr("puckAddress"),
getStr("sampleName"), getInt("samplePosition"), getEnum("sampleStatus", SampleStatus.class, SampleStatus.Unknown), getInt("sampleMountCount")
getStr("sampleName"), getInt("samplePosition"), getStr("sampleBarcode"), getEnum("sampleStatus", SampleStatus.class, SampleStatus.Unknown), getInt("sampleMountCount")
};
}
String getStr(String key) {
return String.valueOf(get(key));
Object value = get(key);
return (value == null) ? "" : String.valueOf(get(key));
}
int getInt(String key) {