Example #1
0
        public void ExportToXLS(WorkBookConfig wbc)
        {
            IEnumerable <DataRow>[] rowsets = { OPSRows, AcP1Rows, AcP3Rows
                                                ,        AcP4Rows, AcP5Rows,PersonsRows, DocTypRows, CurrencyRows };

            wbc.RowsDone = 0;
            for (int i = 0; i <= 7; i++)
            {
                wbc.SheetsConfig[i].MakeSheet(rowsets[i]);
                if (wbc.Cancel)
                {
                    return;
                }
            }
        }
Example #2
0
        public void SetCellStyle(WorkBookConfig wbc)
        {
            switch (FieldType)
            {
            case EFieldType.Date:
                CellStyle = wbc.CellStyleDate;
                break;

            case EFieldType.DateTime:
                CellStyle = wbc.CellStyleDateTime;
                break;

            case EFieldType.Decimal:
                CellStyle = wbc.CellStyleMoney;
                break;
            }
        }
Example #3
0
 public OPSSheetConfig(WorkBookConfig wbc) : base(wbc)
 {
 }
Example #4
0
 public SheetConfig(WorkBookConfig wbc)
 {
     WBC = wbc;
     Init();
 }
Example #5
0
 public CurrencySheetConfig(WorkBookConfig wbc) : base(wbc)
 {
 }
Example #6
0
 public DocTypSheetConfig(WorkBookConfig wbc) : base(wbc)
 {
 }
Example #7
0
 public PersonsSheetConfig(WorkBookConfig wbc) : base(wbc)
 {
 }
Example #8
0
 public AC5SheetConfig(WorkBookConfig wbc) : base(wbc)
 {
 }