Ejemplo n.º 1
0
 // Export a field
 public void ExportField(cField fld)
 {
     if (Horizontal) {
         ExportValue(ref fld);
     } else { // Vertical, export as a row
         FldCnt++;
         string tdcaption = "<td";
         switch (Table.Export) {
             case "html":
             case "email":
             case "word":
             case "excel":
                 tdcaption += " class=\"ewTableHeader\"";
                 break;
             case "pdf":
                 tdcaption += " class=\"ewTablePdfHeader\"";
                 break;
         }
         tdcaption += ">";
         fld.CellCssClass = ((FldCnt % 2) == 1) ? "ewExportTableRow" : "ewTableAltRow";
         string tdvalue = "<td" + ((EW_EXPORT_CSS_STYLES) ? fld.CellStyles : "") + ">";
         Text += "<tr>" + tdcaption + fld.ExportCaption + "</td>" + tdvalue +
             fld.ExportValue(Table.Export, Table.ExportOriginalValue) +
             "</td></tr>";
     }
 }
Ejemplo n.º 2
0
 // Field value
 public void ExportValue(ref cField fld)
 {
     ExportValueEx(ref fld, fld.ExportValue(Table.Export, Table.ExportOriginalValue));
 }
Ejemplo n.º 3
0
 // Field aggregate
 public void ExportAggregate(cField fld, string type)
 {
     if (Horizontal) {
         string val = "";
         if (ew_SameText(type, "TOTAL") || ew_SameText(type, "COUNT") || ew_SameText(type, "AVERAGE"))
             val = Language.Phrase(type) + ": " + fld.ExportValue(Table.Export, Table.ExportOriginalValue);
         ExportValueEx(ref fld, val);
     }
 }