示例#1
0
		private void addTotalRun(CXLRColDef pCol){
			CXLRTotal vNewTTL = new CXLRTotalRun(this, pCol);
			FTotals.Add(vNewTTL);
		}
示例#2
0
//public
		//constructor
		public CXLRTotal(CXLRTotals pOwner, CXLRColDef pCol){
			FOwner = pOwner;
			FCol = pCol;
		}
示例#3
0
		public CXLRColDef[] GetDetailsColDefs(){
			ArrayList vRslt = new ArrayList();
			foreach(var col in this.FCols){
				if(col.TTLType == XLRTTLType.xttNototal)
					vRslt.Add(col);
			}
			if(vRslt.Count > 0){
				CXLRColDef[] vArr = new CXLRColDef[vRslt.Count];
				vRslt.CopyTo(vArr);
				return vArr;
			}else
				return new CXLRColDef[0];
		}
示例#4
0
    public CXLRColDef Add(XLRTTLType pTTLType, XLRTTLCalcType pTTLCalcType, String pFieldName, bool pIsGroupField, bool pGroupFieldHasFooter, bool pIsSysField, String pFormula) {
      CXLRColDef vReslt = new CXLRColDef(pTTLType, pTTLCalcType, pFieldName, this.FCols.Count + 1, pIsGroupField, pGroupFieldHasFooter, pIsSysField, pFormula);
			this.FCols.Add(vReslt);
      return vReslt;
		}
示例#5
0
//private

//public
		//constructor
		public CXLRTotalRun(CXLRTotals pOwner, CXLRColDef pCol):base(pOwner, pCol){
		}
示例#6
0
		public Excel.Range[] GetGroupKeysRng(Excel.Worksheet pWS, CXLRColDef pGroupFieldDef){
      return ExcelSrv.ParsColRowRanges(pWS, pGroupFieldDef.ColIndex, pGroupFieldDef.ColIndex, this.GetKeysRangesList(pGroupFieldDef.FieldName));
		}