예제 #1
0
        public ImportResultModel ImportHealthResult(Stream inputStream, bool isCoverData)
        {
            var extraCols = new List <ImportExtraColModel>()
            {
                new ImportExtraColModel()
                {
                    RowIndex = 2, ColIndex = 2
                },
                new ImportExtraColModel()
                {
                    RowIndex = 3, ColIndex = 2
                },
                new ImportExtraColModel()
                {
                    RowIndex = 4, ColIndex = 2
                },
                new ImportExtraColModel()
                {
                    RowIndex = 5, ColIndex = 2
                },
                new ImportExtraColModel()
                {
                    RowIndex = 6, ColIndex = 2
                },
            };
            var healthResultSheet = new ImportSheetModel()
            {
                SheetName      = "体检结果",
                HeaderRowIndex = 8,
                StartRowIndex  = 9,
                ColCount       = 13,
                ExtraCols      = extraCols,
                ParseMain      = ParseToEntityMain,
                ParseExtra     = ParseToEntityExtra,
            };
            var result = _importExportService.ImportWithExtra(inputStream, healthResultSheet, isCoverData);

            result.Title = "体检结果";
            return(result);
        }