:fixed filtering by berth id, also including outgoing and shifting moves
This commit is contained in:
parent
94fcf75d4c
commit
c24bc981b0
@ -516,7 +516,8 @@ namespace BreCalClient
|
|||||||
|
|
||||||
if(sfm.Berths.Count > 0 )
|
if(sfm.Berths.Count > 0 )
|
||||||
{
|
{
|
||||||
this._visibleControlModels.RemoveAll(x => !sfm.Berths.Contains((x.Shipcall?.ArrivalBerthId) ?? -1));
|
this._visibleControlModels.RemoveAll(x => (!sfm.Berths.Contains((x.Shipcall?.ArrivalBerthId) ?? -1) && (x.Shipcall?.Type == (int) Extensions.TypeEnum.Incoming)) ||
|
||||||
|
(!sfm.Berths.Contains((x.Shipcall?.DepartureBerthId) ?? -1) && (x.Shipcall?.Type != (int) Extensions.TypeEnum.Incoming)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sfm.Agencies.Count > 0 )
|
if(sfm.Agencies.Count > 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user