コード例 #1
0
        public void CallSummerize(EbDataField field, int serialnumber)
        {
            string       column_val;
            EbPdfGlobals globals = new EbPdfGlobals();

            if (field is EbCalcField)
            {
                column_val = (field as EbCalcField).GetCalcFieldValue(globals, DataSet, serialnumber, this);
            }
            else
            {
                column_val = GetDataFieldValue(field.ColumnName, serialnumber, field.TableIndex);
            }
            List <EbDataField> SummaryList;

            if (GroupSummaryFields.ContainsKey(field.Name))
            {
                SummaryList = GroupSummaryFields[field.Name];
                foreach (EbDataField item in SummaryList)
                {
                    (item as IEbDataFieldSummary).Summarize(column_val);
                }
            }
            if (PageSummaryFields.ContainsKey(field.Name))
            {
                SummaryList = PageSummaryFields[field.Name];
                foreach (EbDataField item in SummaryList)
                {
                    (item as IEbDataFieldSummary).Summarize(column_val);
                }
            }
            if (ReportSummaryFields.ContainsKey(field.Name))
            {
                SummaryList = ReportSummaryFields[field.Name];
                foreach (EbDataField item in SummaryList)
                {
                    (item as IEbDataFieldSummary).Summarize(column_val);
                }
            }
        }
コード例 #2
0
 public void DrawFields(EbReportField field, float section_Yposition, int serialnumber)
 {
     if (!field.IsHidden)
     {
         List <Param> RowParams = null;
         if (field is EbDataField)
         {
             EbDataField field_org = field as EbDataField;
             if (GroupSummaryFields.ContainsKey(field.Name) || PageSummaryFields.ContainsKey(field.Name) || ReportSummaryFields.ContainsKey(field.Name))
             {
                 CallSummerize(field_org, serialnumber);
             }
             if (AppearanceScriptCollection.ContainsKey(field.Name))
             {
                 RunAppearanceExpression(field_org, serialnumber);
             }
             //if (!string.IsNullOrEmpty(field_org.LinkRefId))
             //    RowParams = CreateRowParamForLink(field_org, serialnumber);
         }
         field.DrawMe(section_Yposition, this, RowParams, serialnumber);
     }
 }