示例#1
0
        private void ParseLineForKdtt(string callType, double totalSeconds, ref SpRecordFileInformation.DayInfo dayInfo)
        {
            callType = callType.ToLower();

            if (callType.Contains("непринятый"))
            {
                dayInfo.TotalMissed++;
            }
            else if (callType.Contains("принятый"))
            {
                dayInfo.TotalIncoming++;

                if (totalSeconds <= 5)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf5sec);
                }
                else if (totalSeconds > 5 && totalSeconds <= 10)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf10sec);
                }
                else if (totalSeconds > 10 && totalSeconds <= 15)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf15sec);
                }
                else if (totalSeconds > 15 && totalSeconds <= 20)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf20sec);
                }
                else if (totalSeconds > 20 && totalSeconds <= 25)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf25sec);
                }
                else if (totalSeconds > 25 && totalSeconds <= 30)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf30sec);
                }
            }
        }
示例#2
0
        private void ParseLineForSplp(string phoneNumbers, double totalSeconds, ref SpRecordFileInformation.DayInfo dayInfo)
        {
            if (phoneNumbers.EndsWith("-> 601") || phoneNumbers.EndsWith("-> 611"))
            {
                dayInfo.TotalIncoming++;

                if (totalSeconds <= 5)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf5sec);
                }
                else if (totalSeconds > 5 && totalSeconds <= 10)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf10sec);
                }
                else if (totalSeconds > 10 && totalSeconds <= 15)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf15sec);
                }
                else if (totalSeconds > 15 && totalSeconds <= 20)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf20sec);
                }
                else if (totalSeconds > 20 && totalSeconds <= 25)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf25sec);
                }
                else if (totalSeconds > 25 && totalSeconds <= 30)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostSelf30sec);
                }
            }
            else if (phoneNumbers.EndsWith("-> 30400"))
            {
                dayInfo.TotalRedirected++;

                if (totalSeconds <= 5)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected5sec);
                }
                else if (totalSeconds > 5 && totalSeconds <= 10)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected10sec);
                }
                else if (totalSeconds > 10 && totalSeconds <= 15)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected15sec);
                }
                else if (totalSeconds > 15 && totalSeconds <= 20)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected20sec);
                }
                else if (totalSeconds > 20 && totalSeconds <= 25)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected25sec);
                }
                else if (totalSeconds > 25 && totalSeconds <= 30)
                {
                    dayInfo.IncrementMissedCallCount(
                        SpRecordFileInformation.DayInfo.MissedCallType.ConditionalyLostRedirected30sec);
                }
            }
        }