Ejemplo n.º 1
0
Archivo: CSVar.cs Proyecto: ikvm/test
        public virtual object GetValue(bool dispValue)
        {
            CellExt ext = this.getCell();

            if (ext == null)
            {
                return(null);
            }
            ext.testValue();
            return(ext.GetValue(dispValue));
        }
Ejemplo n.º 2
0
        private void method_4(CellExt cellExt_0, Class7 class7_0, string[] string_0, CellExt cellExt_1)
        {
            object obj2 = cellExt_1.GetValue(false);
            string str  = this.method_6(cellExt_1, 614);

            if ((str != null) && (str.Trim().Length > 0))
            {
                int index = this.method_5(class7_0, str);
                if (index >= 0)
                {
                    string_0[index] = Convert.ToString(obj2);
                }
            }
        }
Ejemplo n.º 3
0
        public virtual void calculate()
        {
            this.method_1();
            StringBuilder builder  = new StringBuilder("<root>");
            StringBuilder builder2 = new StringBuilder("<hide>");
            CellExt       ext      = this.cellExt1_0.getCell(0, 0);

            for (int i = 0; i < this.cellExt1_0.RowSize; i++)
            {
                for (int j = 0; j < this.cellExt1_0.ColSize; j++)
                {
                    CellExt ext2 = this.cellExt1_0.getCell(i, j);
                    if ((ext2 != null) && !this.cellExt1_0.isMerged(i, j))
                    {
                        string str = this.method_6(ext2, 611);
                        if (str != null)
                        {
                            int    num7   = -1;
                            Class7 class3 = null;
                            string str3   = this.method_6(ext2, 615);
                            if (str3 != null)
                            {
                                num7   = Convert.ToInt32(str3);
                                class3 = this.method_0(this.method_6(ext2, 613));
                                if ((num7 != PropertyDefine.IN_EXT_TYPE_ATTACHED) && (num7 != PropertyDefine.IN_EXT_TYPE_FIXED))
                                {
                                    if (PropertyDefine.CEX_VERTICAL.Equals(ext2.Extensible) && (class3.startRow == -1))
                                    {
                                        class3.startRow = i;
                                    }
                                }
                                else
                                {
                                    string[] strArray2;
                                    if (num7 != PropertyDefine.IN_EXT_TYPE_FIXED)
                                    {
                                        int num9 = this.method_2(ext2, class3);
                                        strArray2 = (string[])class3.records[num9];
                                        if ((ext2.getLeftHead() != ext) && (ext2.getTopHead() != ext))
                                        {
                                            ext2.setPropResult(616, num9);
                                            class3.isCross = true;
                                        }
                                    }
                                    else
                                    {
                                        if (class3.records.Count == 0)
                                        {
                                            string[] strArray3 = new string[class3.cols];
                                            class3.records.Add(strArray3);
                                        }
                                        strArray2 = (string[])class3.records[0];
                                    }
                                    strArray2[Convert.ToInt32(this.method_6(ext2, 614))] = Convert.ToString(ext2.GetValue(false));
                                }
                            }
                            if ((num7 != PropertyDefine.IN_EXT_TYPE_ATTACHED) && (num7 != PropertyDefine.IN_EXT_TYPE_EXTEND))
                            {
                                builder2.Append("<" + str + ">");
                                string str2 = "1";
                                if (this.method_6(ext2, 612) != null)
                                {
                                    str2 = "0";
                                }
                                builder2.Append(str2);
                                builder2.Append("</" + str + ">");
                            }
                            else if ((this.method_6(ext2, 612) == null) && !class3.moveConts.Contains(str))
                            {
                                class3.moveConts.Add(str);
                            }
                        }
                    }
                }
            }
            builder2.Append("</hide>");
            builder.Append(builder2);
            StringBuilder builder3 = new StringBuilder("<conts>");

            if (this.arrayList_0 != null)
            {
                builder.Append("<dss>");
                for (int k = 0; k < this.arrayList_0.Count; k++)
                {
                    Class7 class2 = (Class7)this.arrayList_0[k];
                    builder.Append("<" + class2.id + ">");
                    for (int m = 0; m < class2.records.Count; m++)
                    {
                        builder.Append("<tr>");
                        string[] strArray = (string[])class2.records[m];
                        for (int num5 = 0; num5 < strArray.Length; num5++)
                        {
                            builder.Append("<td>");
                            builder.Append(StringUtils.repXml(strArray[num5]));
                            builder.Append("</td>");
                        }
                        builder.Append("</tr>");
                    }
                    builder.Append("</" + class2.id + ">");
                    builder3.Append("<" + class2.id + ">");
                    builder3.Append("<startRow>");
                    if (!class2.isCross && (class2.startRow != -1))
                    {
                        builder3.Append(Convert.ToString(class2.startRow - 1));
                    }
                    builder3.Append("</startRow>");
                    builder3.Append("<contsId>");
                    for (int n = 0; n < class2.moveConts.Count; n++)
                    {
                        builder3.Append((string)class2.moveConts[n]);
                        if (n < (class2.moveConts.Count - 1))
                        {
                            builder3.Append(",");
                        }
                    }
                    builder3.Append("</contsId>");
                    builder3.Append("</" + class2.id + ">");
                }
                builder.Append("</dss>");
            }
            builder3.Append("</conts>");
            builder.Append(builder3);
            builder.Append("</root>");
            ext.setPropValue(601, builder.ToString());
        }