Exemple #1
0
        public WeatherTag(tblTrackTagsActive ta)
        {
            CompList                   = ta.CompList;
            CreateTime                 = string.IsNullOrEmpty(ta.CreateTime) ? DateTime.MaxValue : DateTime.Parse(ta.CreateTime);
            Creator                    = ta.Creator;
            DataString                 = ta.DataString;
            DelayData                  = ta.DelayData;
            Direction                  = ta.Direction;
            ExpectedReleaseTime        = ta.ExpectedReleaseTime ?? DateTime.MaxValue;
            IsPtcEnforceable           = ta.IsPTCEnforceable;
            NameRequestingTagPlacement = ta.NameRequestingTagPlacement;
            PtcData                    = ta.PTCData;
            RefNumPtc                  = ta.RefNumPTC ?? 0;
            RestrictionFlag            = ta.RestrictionFlag;
            Restrictive                = ta.Restrictive ?? 0;
            Subdivision                = ta.Subdivision != null?int.Parse(ta.Subdivision) : 0;

            TagType     = ta.TagType;
            TagUid      = ta.TagUID;
            TerritoryId = ta.TerritoryID ?? 0;
            TrackGuid   = ta.TrackGUID;

            AffectedTracks = new Tracks();
        }
Exemple #2
0
 public SpeedTag()
 {
     AffectedTracks = new Tracks();
 }
Exemple #3
0
 public InfoTag()
 {
     AffectedTracks = new Tracks();
 }
Exemple #4
0
 public WeatherTag()
 {
     AffectedTracks = new Tracks();
 }
Exemple #5
0
 public CrossingTag()
 {
     AffectedTracks = new Tracks();
 }