public CXLRGroup(CXLRDataSet pOwner, CXLRGroup pParent, int pGrpIndex) { this.FGrpIndex = pGrpIndex; this.FOwner = pOwner; this.FParentGroup = pParent; if(this.ParentGroup != null){ this.FOnParentRowsInsert += new DlgOnParentRowsInsertEvent(this.ParentGroup.DoOnParentRowsInsertEvent); if(this.GetType() == typeof(CXLRGroup)){ this.DoOnRowsInsert(1); this.FRowsCount++; if(this.ParentGroup.IsRootGroup){ this.FLeftCol = 2; }else{ this.FLeftCol = this.ParentGroup.LeftCol + 1; } CXLRGroup vPrevGrp = this.getPrevGroup(); if(vPrevGrp != null) this.FTopRow = vPrevGrp.BottomRow + 1; else{ if(this.ParentGroup.IsRootGroup) this.FTopRow = this.ParentGroup.TopRow; else this.FTopRow = this.ParentGroup.TopRow + 1; } CXLRColDef vCol = this.RootGroup.ColDefs.GetByColIndex(this.FLeftCol); String[] vGrps = vCol.GroupFieldNames; this.FGroupKeyField = null; if(vGrps.Length > 0) this.FGroupKeyField = vGrps[0]; if(this.RootGroup.ColDefs.HasTotals){ CXLRColDef vGrpColDef = this.RootGroup.ColDefs[this.FGroupKeyField]; if((this.FGroupKeyField != null) && (vGrpColDef != null) && (vGrpColDef.GroupFieldHasFooter)) this.FTotals = new CXLRTotals(this); } } } }
//public //constructor public CXLRTotal(CXLRTotals pOwner, CXLRColDef pCol){ FOwner = pOwner; FCol = pCol; }
//private //public //constructor public CXLRTotalRun(CXLRTotals pOwner, CXLRColDef pCol):base(pOwner, pCol){ }