Added some boolean defaults to avoid three-state checkboxes in display
This commit is contained in:
parent
c85291b179
commit
83d57328fc
@ -25,14 +25,14 @@ namespace bsmd.database
|
||||
{ }
|
||||
|
||||
#region Properties
|
||||
|
||||
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? NoDPGOnBoardOnArrival { get; set; }
|
||||
public bool? NoDPGOnBoardOnArrival { get; set; } = true;
|
||||
|
||||
[ShowReport]
|
||||
[ENI2Validation]
|
||||
public bool? DPGManifestOnBoardOnArrival { get; set; }
|
||||
public bool? DPGManifestOnBoardOnArrival { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[ENI2Validation]
|
||||
@ -40,7 +40,7 @@ namespace bsmd.database
|
||||
|
||||
[ShowReport]
|
||||
[ENI2Validation]
|
||||
public bool? MOUBaltic { get; set; }
|
||||
public bool? MOUBaltic { get; set; } = false;
|
||||
|
||||
[ENI2Validation]
|
||||
public bool? DPGClassificationIMDG { get; set; }
|
||||
|
||||
@ -35,7 +35,7 @@ namespace bsmd.database
|
||||
|
||||
public byte? Flashpoint { get; set; }
|
||||
|
||||
public bool? SpecRef15_19 { get; set; }
|
||||
public bool? SpecRef15_19 { get; set; } = false;
|
||||
|
||||
public bool? MHB { get; set; }
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@ namespace bsmd.database
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? MarinePollutant { get; set; }
|
||||
public bool? MarinePollutant { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
@ -130,12 +130,12 @@ namespace bsmd.database
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? LimitedQuantities { get; set; }
|
||||
public bool? LimitedQuantities { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? ExceptedQuantities { get; set; }
|
||||
public bool? ExceptedQuantities { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[ENI2Validation]
|
||||
@ -154,7 +154,7 @@ namespace bsmd.database
|
||||
|
||||
[ShowReport]
|
||||
[ENI2Validation]
|
||||
public bool? GeneralCargoIBC { get; set; }
|
||||
public bool? GeneralCargoIBC { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[MaxLength(24)]
|
||||
|
||||
@ -58,7 +58,7 @@ namespace bsmd.database
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? MHB { get; set; }
|
||||
public bool? MHB { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[MaxLength(4)]
|
||||
|
||||
@ -58,7 +58,7 @@ namespace bsmd.database
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
[DataMember]
|
||||
public byte? FumigatedBulkCargo { get; set; }
|
||||
public byte? FumigatedBulkCargo { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// ENI-2 Edit Value für Checkbox (OMG!)
|
||||
|
||||
@ -78,11 +78,11 @@ namespace bsmd.database
|
||||
|
||||
[LookupName("PRE72H.IsDueToInspection")]
|
||||
[ENI2Validation]
|
||||
public bool? IsDueToInspection { get; set; }
|
||||
public bool? IsDueToInspection { get; set; } = false;
|
||||
|
||||
[LookupName("PRE72H.PossibleAnchorage")]
|
||||
[ENI2Validation]
|
||||
public bool? PossibleAnchorage { get; set; }
|
||||
public bool? PossibleAnchorage { get; set; } = false;
|
||||
|
||||
public override string Subtitle
|
||||
{
|
||||
|
||||
@ -49,7 +49,7 @@ namespace bsmd.database
|
||||
[ShowReport]
|
||||
[Validation2(ValidationCode.NOT_NULL)]
|
||||
[ENI2Validation]
|
||||
public bool? PortOfCallLast30DaysCrewMembersJoined { get; set; }
|
||||
public bool? PortOfCallLast30DaysCrewMembersJoined { get; set; } = false;
|
||||
|
||||
public string Identifier { get; set; }
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ namespace bsmd.database
|
||||
[Validation2(ValidationCode.NOT_NULL)]
|
||||
[LookupName("SEC.ValidISSCOnBoard")]
|
||||
[ENI2Validation]
|
||||
public bool? ValidISSCOnBoard { get; set; }
|
||||
public bool? ValidISSCOnBoard { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[LookupName("SEC.ReasonsForNoValidISSC")]
|
||||
@ -122,7 +122,7 @@ namespace bsmd.database
|
||||
[Validation2(ValidationCode.NOT_NULL)]
|
||||
[LookupName("SEC.ApprovedSecurityPlanOnBoard")]
|
||||
[ENI2Validation]
|
||||
public bool? ApprovedSecurityPlanOnBoard { get; set; }
|
||||
public bool? ApprovedSecurityPlanOnBoard { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[Validation(ValidationCode.NOT_NULL)]
|
||||
@ -148,7 +148,7 @@ namespace bsmd.database
|
||||
public string MatterToReport { get; set; }
|
||||
|
||||
[ENI2Validation]
|
||||
public bool? KielCanalPassagePlanned { get; set; }
|
||||
public bool? KielCanalPassagePlanned { get; set; } = false;
|
||||
|
||||
[ENI2Validation]
|
||||
public DateTime? KielCanalPassagePlannedIncomming { get; set; }
|
||||
|
||||
@ -122,7 +122,7 @@ namespace bsmd.database
|
||||
[Validation2(ValidationCode.NOT_NULL)]
|
||||
[LookupName("WAS.ConfirmationOfCorrectness")]
|
||||
[ENI2Validation]
|
||||
public bool? ConfirmationOfCorrectness { get; set; }
|
||||
public bool? ConfirmationOfCorrectness { get; set; } = false;
|
||||
|
||||
[ShowReport]
|
||||
[Validation2(ValidationCode.NOT_NULL)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user