-
-
Save ShilGen/ad9a8e50a6003e4c490ff4cf85760841 to your computer and use it in GitHub Desktop.
Пример реализации отчета с отдельным листом для каждой точки учёта
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sheet = WorkbookNonExcel.Worksheets.FirstOrDefault(); | |
MeterPoint[] meterPoints = ReportParams.ClassifierNodes.SelectMany(x => x.GetAllChildrenOfClass(MeterPoint.GetClassInfo())).OfType<MeterPoint>().Distinct().ToArray(); | |
foreach(var meterPoint in meterPoints){ | |
var el = meterPoint.AttributeElectricityMeter; | |
if (el != null) | |
{ | |
var ns=WorkbookNonExcel.Worksheets.AddCopy(el.AttributeSerialNumber.ToString(),sheet); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment