Пример #1
0
 public JsonTableExcelResult(JsonExcelParameter parameter)
 {
     _arg            = parameter;
     _jTable         = _arg.Table;
     _workbook       = new Workbook();
     _worksheet      = _workbook.Worksheets[0];
     _worksheet.Name = _arg.TableName.Length > 30 ? _arg.TableName.Substring(0, 30) : _arg.TableName;
     _cells          = _worksheet.Cells;
     BuildStyle();
 }
Пример #2
0
 public JsonTableGroupExcelResult(JsonExcelParameter parameter)
 {
     _arg                = parameter;
     _jTable             = _arg.Table;
     _workbook           = new Workbook();
     _worksheet          = _workbook.Worksheets[0];
     _worksheet.Name     = _arg.TableName.Length > 30 ? _arg.TableName.Substring(0, 30) : _arg.TableName;
     _cells              = _worksheet.Cells;
     _isSumRowColumnName = parameter.totalColumns;
     _sumGroupColumnName = parameter.sumGroupColumnName;
     _isTotal            = parameter.isTotal;
     if (!string.IsNullOrEmpty(_sumGroupColumnName))
     {
         GroupJtable(_sumGroupColumnName, _isTotal, _isSumRowColumnName);
     }
     BuildStyle();
 }
Пример #3
0
 public JsonTableExcelResultWithCustomFormat(JsonExcelParameter parameter) : base(parameter)
 {
 }