示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }