minor fixes
This commit is contained in:
parent
6076b2529e
commit
5eb181de91
@ -258,6 +258,12 @@ SelectionMode="Extended" AutoGenerateColumns="False" MouseDoubleClick="dataGrid_
|
||||
<DataTrigger Binding="{Binding InternalStatus}" Value="UPDATED">
|
||||
<Setter Property="Background" Value="#DFFDDF"></Setter>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding InternalStatus}" Value="TOSEND">
|
||||
<Setter Property="Background" Value="#BFFDBF"></Setter>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding InternalStatus}" Value="SENT">
|
||||
<Setter Property="Background" Value="#BFFDBF"></Setter>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding HasSystemErrors}" Value="True">
|
||||
<Setter Property="Background" Value="MistyRose"></Setter>
|
||||
</DataTrigger>
|
||||
|
||||
@ -1700,7 +1700,7 @@ namespace ENI2.Excel
|
||||
if (sLevel.Contains('3')) l10fc.PortFacilityShipSecurityLevel = 3;
|
||||
}
|
||||
|
||||
string s = reader.ReadCellAsText(sheetTitle, string.Format("J{0}", 54 + i), 4);
|
||||
string s = reader.ReadCellAsText(sheetTitle, string.Format("J{0}", 54 + i));
|
||||
// All invalid codes become "0000", Oct/25
|
||||
l10fc.PortFacilityGISISCode = (s != null) && Regex.IsMatch(s.Trim(), @"^\d{4}$") ? s.Trim() : "0000";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user