Пример #1
0
        private HitsDataEvent CopyWhitelistToHit(long hotlist_id, ReadsDataEvent read)
        {
            HitsDataEvent     hit = (this.DataFile.DataRepository as SystemRepository).Events.Reads.Hits.CreateHitsDataEvent();
            HotListsDataEvent hl  = this.SelectByID(hotlist_id) as HotListsDataEvent;

            hit.Alarm        = hl.Alarm;
            hit.DisplayColor = hl.DisplayColor;
            hit.Field1       = string.Empty;
            hit.Field2       = string.Empty;
            hit.Field3       = string.Empty;
            hit.Field4       = string.Empty;
            hit.Field5       = string.Empty;
            hit.HotList      = hl.Name;
            hit.Information  = string.Empty;
            hit.IsCovert     = hl.IsCovert;
            hit.PNCID        = string.Empty;
            hit.Priority     = hl.Priority;
            hit.VRM          = read.VRM;
            hit.Alerting     = hl.Alerting;
            return(hit);
        }
Пример #2
0
        private HitsDataEvent CopyHotlistToHit(long hotlist_id, HotListDataEvent hotlist)
        {
            HitsDataEvent     hit = (this.DataFile.DataRepository as SystemRepository).Events.Reads.Hits.CreateHitsDataEvent();
            HotListsDataEvent hl  = this.SelectByID(hotlist_id) as HotListsDataEvent;

            hit.Alarm        = hl.Alarm;
            hit.DisplayColor = hl.DisplayColor;
            hit.Field1       = hotlist.Field1;
            hit.Field2       = hotlist.Field2;
            hit.Field3       = hotlist.Field3;
            hit.Field4       = hotlist.Field4;
            hit.Field5       = hotlist.Field5;
            hit.HotList      = hl.Name;
            hit.Information  = hotlist.Information;
            hit.IsCovert     = hl.IsCovert;
            hit.PNCID        = hotlist.PNCID;
            hit.Priority     = hl.Priority;
            hit.VRM          = hotlist.VRM;
            hit.Alerting     = hl.Alerting;
            return(hit);
        }