Ejemplo n.º 1
0
        public override void ToExcel(IGroup group, IExcWriter writer, ResultCollection result)
        {
            _writer = writer;
            double single = (double)(Maximum - Progress) / group.Lists.Count;

            LLNCC node = group.Lists.First;

            writer.Open();

            int row = 0;
            Dictionary <string, int> kv = WriteHeader(group.Samples, row++);

            while (node != null)
            {
                CqCollection cqs = node.Value;

                WriteRow(row, kv, node, result);

                LLNCC next = node.Next;
                if (next != null)
                {
                    int mark = cqs.Key.CompareTo(next.Value.Key);
                    switch (mark)
                    {
                    case 3:
                    case -3:
                        break;

                    case 2:
                    case -2:
                        break;

                    case 1:
                    case -1:
                        //创建表头
                        row += 7;
                        WriteHeader(group.Samples, row);
                        break;

                    case 0:
                        break;
                    }
                }
                row++;
                node = node.Next;

                Progress += single;
            }

            writer.Save();
            writer.Close();
        }
Ejemplo n.º 2
0
        public override void ToExcel(IGroup group, IExcWriter writer, ResultCollection result)
        {
            _writer = writer;
            double single = (double)(Maximum - Progress) / group.Lists.Count;

            _writer.Open();
            int row = 0;
            Dictionary <string, int> spIndex = WriteHeader(group.Samples, row++);

            LLNCC node = group.Lists.First;

            while (node != null)
            {
                CqCollection cqs  = node.Value;
                LLNCC        next = node.Next;

                WriteRow(row++, spIndex, node, result);
                if (next != null)
                {
                    int mark = cqs.Key.CompareTo(next.Value.Key);

                    switch (mark)
                    {
                    case 1:
                    case -1:
                        rep = 1;
                        break;

                    default:
                        rep++;
                        break;
                    }
                }

                node      = node.Next;
                Progress += single;
            }

            _writer.Save();
            _writer.Close();
        }
Ejemplo n.º 3
0
 public abstract void ToExcel(IGroup group, IExcWriter writer, ResultCollection result);