fixed gefahrgutliste (this time including un-assigned entries)
This commit is contained in:
parent
6eb265ea55
commit
e96b03d595
@ -68,7 +68,10 @@ namespace bsmd.database
|
|||||||
|
|
||||||
while(reader.Read())
|
while(reader.Read())
|
||||||
{
|
{
|
||||||
if (reader.IsDBNull(4)) continue; // this row has no type -> ignore
|
string type = "";
|
||||||
|
if (!reader.IsDBNull(4))
|
||||||
|
type = reader.GetString(4);
|
||||||
|
|
||||||
HAZPosTemplate hpt = new HAZPosTemplate();
|
HAZPosTemplate hpt = new HAZPosTemplate();
|
||||||
hpt.Description = reader.GetString(0);
|
hpt.Description = reader.GetString(0);
|
||||||
if (!reader.IsDBNull(1))
|
if (!reader.IsDBNull(1))
|
||||||
@ -82,7 +85,6 @@ namespace bsmd.database
|
|||||||
if (specRefString.Equals("NEIN", StringComparison.OrdinalIgnoreCase) || specRefString.Equals("No", StringComparison.OrdinalIgnoreCase)) hpt.SpecRef15_19 = false;
|
if (specRefString.Equals("NEIN", StringComparison.OrdinalIgnoreCase) || specRefString.Equals("No", StringComparison.OrdinalIgnoreCase)) hpt.SpecRef15_19 = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
string type = reader.GetString(4);
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case "IBC": hpt.TemplateType = SublistType.IBC; break;
|
case "IBC": hpt.TemplateType = SublistType.IBC; break;
|
||||||
@ -90,7 +92,7 @@ namespace bsmd.database
|
|||||||
case "IMSBC": hpt.TemplateType = SublistType.IMSBC ; break;
|
case "IMSBC": hpt.TemplateType = SublistType.IMSBC ; break;
|
||||||
case "MARPOL": hpt.TemplateType = SublistType.MARPOL; break;
|
case "MARPOL": hpt.TemplateType = SublistType.MARPOL; break;
|
||||||
default:
|
default:
|
||||||
continue; // ignore this thing
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!reader.IsDBNull(5))
|
if(!reader.IsDBNull(5))
|
||||||
|
|||||||
BIN
misc/db.sqlite
BIN
misc/db.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user