Esempio n. 1
0
        public void create(IDbConnection conn, string sql, int crossType, int valueType, int colStatFuncs, int rowStatFuncs, string pattern)
        {
            this.int_7    = crossType;
            this.int_6    = valueType;
            this.long_0   = colStatFuncs;
            this.long_1   = rowStatFuncs;
            this.string_0 = "{0:" + pattern + "}";
            if (((((colStatFuncs & 1) == 1) || ((rowStatFuncs & 1) == 1)) || (((colStatFuncs & 16) == 16) || ((rowStatFuncs & 16) == 16))) || (((colStatFuncs & 32) == 32) || ((rowStatFuncs & 32) == 32)))
            {
                this.bool_2      = true;
                this.arrayList_4 = new ArrayList();
                for (int i = 0; i < this.arrayList_2.Count; i++)
                {
                    ArrayList list2 = (ArrayList)this.arrayList_2[i];
                    ArrayList list  = new ArrayList();
                    for (int j = 0; j < list2.Count; j++)
                    {
                        list.Add(new int[this.int_1, this.int_0]);
                    }
                    this.arrayList_4.Add(list);
                }
            }
            DBTableModel model = new DBTableModel(conn);

            try
            {
                model.executeQuery(sql);
            }
            catch (Exception exception)
            {
                throw new Exception("无法正确执行SQL语句生成交叉表,错误原因:" + exception.Message);
            }
            try
            {
                this.method_8(model);
                this.method_0(model);
                this.method_4();
                this.method_5();
            }
            catch (Exception exception2)
            {
                model.close();
                throw new Exception("生成交叉表过程中出现错误,错误原因:" + exception2.Message);
            }
        }