Exemple #1
0
        /// <summary>
        /// 计算遗漏
        /// </summary>
        public void CaculateLeftSpan(int day)
        {
            //5天 6天 7天遗漏
            //P2 NOW MAX MIN
            Statatics stat = new Statatics();
            List<NumSpanData> spans = stat.GetMaxLeft(CaiData, day);
            ListViewData lvd = new ListViewData();
            lvd.name = CaiData.CaiType + " " + CaiData.NumType + " 遗漏 " + CaiData.NowCaculate.ToString("MM-dd");
            lvd.title = new string[] { CaiData.NumType, "p", "now", "max", "avg",
                "times","1day","2day","3day","4day","5day","6days","7days"};
            lvd.values = new List<string[]>();

            foreach (NumSpanData span in spans)
            {
                string[] values = new string[] {
                    span.num,
                    span.p,
                    span.SpanTillNow.ToString(),
                    span.SpanMax.ToString(),
                    span.SpanAvg.ToString(),
                    span.Times.ToString(),
                    span.TimesDay1.ToString(),
                    span.TimesDay2.ToString(),
                    span.TimesDay3.ToString(),
                    span.TimesDay4.ToString(),
                    span.TimesDay5.ToString(),
                    span.TimesDay6.ToString(),
                    span.TimesDay7.ToString()
                };
                lvd.values.Add(values);
            }
            lvd.values = lvd.values.OrderBy(x => int.Parse(x[5])).ToList();
            list = lvd;
        }
Exemple #2
0
        /// <summary>
        /// 计算遗漏
        /// </summary>
        public void CaculateLeftSpan(int day)
        {
            //5天 6天 7天遗漏
            //P2 NOW MAX MIN
            Statatics          stat  = new Statatics();
            List <NumSpanData> spans = stat.GetMaxLeft(CaiData, day);
            ListViewData       lvd   = new ListViewData();

            lvd.name  = CaiData.CaiType + " " + CaiData.NumType + " 遗漏 " + CaiData.NowCaculate.ToString("MM-dd");
            lvd.title = new string[] { CaiData.NumType, "p", "now", "max", "avg",
                                       "times", "1day", "2day", "3day", "4day", "5day", "6days", "7days" };
            lvd.values = new List <string[]>();

            foreach (NumSpanData span in spans)
            {
                string[] values = new string[] {
                    span.num,
                    span.p,
                    span.SpanTillNow.ToString(),
                    span.SpanMax.ToString(),
                    span.SpanAvg.ToString(),
                    span.Times.ToString(),
                    span.TimesDay1.ToString(),
                    span.TimesDay2.ToString(),
                    span.TimesDay3.ToString(),
                    span.TimesDay4.ToString(),
                    span.TimesDay5.ToString(),
                    span.TimesDay6.ToString(),
                    span.TimesDay7.ToString()
                };
                lvd.values.Add(values);
            }
            lvd.values = lvd.values.OrderBy(x => int.Parse(x[5])).ToList();
            list       = lvd;
        }
Exemple #3
0
        /// <summary>
        /// 实时计算span cyle
        /// </summary>
        public void AnalysisSpanCycle()
        {
            Statatics stat = new Statatics();
            List<NumSpanData> spans = stat.GetSpanCount(CaiData);
            ListViewData lvd = new ListViewData();
            lvd.name = CaiData.CaiType + " " + CaiData.NumType + " 周期 " + CaiData.NowCaculate.ToString("yyyy-MM-dd");
            lvd.title = new string[] { CaiData.NumType, "p", "now", "next", "nexttest", "nextability","nextall", "max", "avg",
                "times","1day","2day","3day","4day","5day","6days","7days","hot","hottrend","hotrec"};
            lvd.values = new List<string[]>();

            foreach (NumSpanData span in spans)
            {
                string[] values = new string[] { span.num,span.p, span.SpanTillNow.ToString(),span.Next,span.NextTest.ToString(),span.NextAbility,span.NextAll, span.SpanMax.ToString(), span.SpanAvg.ToString(),
                    span.Times.ToString(),span.TimesDay1.ToString(),span.TimesDay2.ToString(),
                    span.TimesDay3.ToString(),span.TimesDay4.ToString(),span.TimesDay5.ToString(),
                    span.TimesDay6.ToString(),span.TimesDay7.ToString(),
                    span.HotType.ToString(),span.HotTrend.ToString(),span.HotRecent};
                lvd.values.Add(values);
            }
            lvd.values = lvd.values.OrderBy(x => int.Parse(x[4])).ToList();
            list = lvd;
        }
Exemple #4
0
        /// <summary>
        /// 实时计算span cyle
        /// </summary>
        public void AnalysisSpanCycle()
        {
            Statatics          stat  = new Statatics();
            List <NumSpanData> spans = stat.GetSpanCount(CaiData);
            ListViewData       lvd   = new ListViewData();

            lvd.name  = CaiData.CaiType + " " + CaiData.NumType + " 周期 " + CaiData.NowCaculate.ToString("yyyy-MM-dd");
            lvd.title = new string[] { CaiData.NumType, "p", "now", "next", "nexttest", "nextability", "nextall", "max", "avg",
                                       "times", "1day", "2day", "3day", "4day", "5day", "6days", "7days", "hot", "hottrend", "hotrec" };
            lvd.values = new List <string[]>();

            foreach (NumSpanData span in spans)
            {
                string[] values = new string[] { span.num, span.p, span.SpanTillNow.ToString(), span.Next, span.NextTest.ToString(), span.NextAbility, span.NextAll, span.SpanMax.ToString(), span.SpanAvg.ToString(),
                                                 span.Times.ToString(), span.TimesDay1.ToString(), span.TimesDay2.ToString(),
                                                 span.TimesDay3.ToString(), span.TimesDay4.ToString(), span.TimesDay5.ToString(),
                                                 span.TimesDay6.ToString(), span.TimesDay7.ToString(),
                                                 span.HotType.ToString(), span.HotTrend.ToString(), span.HotRecent };
                lvd.values.Add(values);
            }
            lvd.values = lvd.values.OrderBy(x => int.Parse(x[4])).ToList();
            list       = lvd;
        }