private void SetupConversationFilter(ConversationFilterDTO filter, string type) { filter.DurationMax = this.ConversationsStatistics.FilterDurationMax; filter.DurationMin = this.ConversationsStatistics.FilterDurationMin; switch (type) { case "L3": filter.FrameMax = this.ConversationsStatistics.L3FramesMax; filter.FrameMin = this.ConversationsStatistics.L3FramesMin; filter.BytesMax = this.ConversationsStatistics.L3BytesMax; filter.BytesMin = this.ConversationsStatistics.L3BytesMin; break; case "L4": filter.FrameMax = this.ConversationsStatistics.L4FramesMax; filter.FrameMin = this.ConversationsStatistics.L4FramesMin; filter.BytesMax = this.ConversationsStatistics.L4BytesMax; filter.BytesMin = this.ConversationsStatistics.L4BytesMin; break; case "L7": filter.FrameMax = this.ConversationsStatistics.L4FramesMax; filter.FrameMin = this.ConversationsStatistics.L4FramesMin; filter.BytesMax = this.ConversationsStatistics.L4BytesMax; filter.BytesMin = this.ConversationsStatistics.L4BytesMin; break; } ClearFilter(filter); }
private void ClearFilter(ConversationFilterDTO filter) { filter.SearchText = ""; filter.BytesFrom = filter.BytesMin; filter.BytesTo = filter.BytesMax; filter.FramesFrom = filter.FrameMin; filter.FramesTo = filter.FrameMax; filter.DurationTo = filter.DurationMax.ToString("dd.MM.yyyy HH:mm:ss"); filter.DurationFrom = filter.DurationMin.ToString("dd.MM.yyyy HH:mm:ss"); }
public void FillL4ConversationDataSet(GridViewDataSet <L4ConversationDTO> dataSet, Guid filterId, Guid investigationId, ConversationFilterDTO filter, ConversationType filterType = ConversationType.None) { using (var uow = this.UnitOfWorkProvider.Create(investigationId)) { var q = this.L4ConvenversationsFactory(); q.Filters = filter; q.FilterType = filterType; q.SortExpression = dataSet.SortingOptions.SortExpression; q.SortDescending = dataSet.SortingOptions.SortDescending; q.FilterId = filterId; q.FillDataSet(dataSet); } }
public void FillL3ConversationDataSet(GridViewDataSet <L3ConversationDTO> dataSet, Guid captureId, Guid investigationId, ConversationFilterDTO filter) { using (var uow = this.UnitOfWorkProvider.Create(investigationId)) { var q = this.L3ConvenversationsFactory(); q.Filters = filter; q.SortExpression = dataSet.SortingOptions.SortExpression; q.SortDescending = dataSet.SortingOptions.SortDescending; q.CaptureId = captureId; q.FillDataSet(dataSet); } }