public void CreateExcel(SpreadsheetDocument document, ReportCardModel template, object obj = null) { ListExcel excel = new ListExcel(document); var list1 = excel.CreateExcelList("Табель"); AllDocumentExcel docCard = new AllDocumentExcel(excel.Document, excel.WorkBookPart); list1.Worksheet = docCard.ReportCard(template); excel.WorkBookPart.Workbook.Save(); }
public void CreateExcel(SpreadsheetDocument document, CardFaceUl template, object obj = null) { ListExcel excel = new ListExcel(document); var list1 = excel.CreateExcelList("Контрагенты"); AllDocumentExcel docNds = new AllDocumentExcel(excel.Document, excel.WorkBookPart); list1.Worksheet = docNds.ReportNds(template, (int)obj); excel.WorkBookPart.Workbook.Save(); }
public void CreateExcel(SpreadsheetDocument document, List <AllIpServerSelect> template, object obj = null) { ListExcel excel = new ListExcel(document); var list1 = excel.CreateExcelList("Сервера"); AllDocumentExcel docCard = new AllDocumentExcel(excel.Document, excel.WorkBookPart); list1.Worksheet = docCard.ReportStatusIpServer(template); excel.WorkBookPart.Workbook.Save(); }