Fixed berth display changing between add and update
This commit is contained in:
parent
4aa7d65790
commit
a82080b970
@ -416,8 +416,16 @@ namespace BreCalClient
|
|||||||
Shipcall shipcall = scm.Shipcall;
|
Shipcall shipcall = scm.Shipcall;
|
||||||
if (BreCalLists.ShipLookupDict.ContainsKey(shipcall.ShipId))
|
if (BreCalLists.ShipLookupDict.ContainsKey(shipcall.ShipId))
|
||||||
scm.Ship = BreCalLists.ShipLookupDict[shipcall.ShipId];
|
scm.Ship = BreCalLists.ShipLookupDict[shipcall.ShipId];
|
||||||
if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
|
if (shipcall.Type == 1)
|
||||||
scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
|
{
|
||||||
|
if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.ArrivalBerthId ?? 0))
|
||||||
|
scm.Berth = BreCalLists.BerthLookupDict[shipcall.ArrivalBerthId ?? 0].Name;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (BreCalLists.BerthLookupDict.ContainsKey(shipcall.DepartureBerthId ?? 0))
|
||||||
|
scm.Berth = BreCalLists.BerthLookupDict[shipcall.DepartureBerthId ?? 0].Name;
|
||||||
|
}
|
||||||
scm.AssignParticipants();
|
scm.AssignParticipants();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user