-
public
override
void AddPole
(PPLPole pPole,
String pPoleName
)
-
{
-
String pplx
= cPPLMain
.
ReportingLoadedPolePath
;
-
try
-
{
-
pplx
=
System.IO
.
Path
.
GetFileName
(pplx
)
;
-
}
-
catch
{
}
-
-
PoleLoadInfo poleInfoMaster
= cPPLMain
.
CurrentPoleLoadInfo
;
-
ReportItems reportItems
=
new ReportItems
(poleInfoMaster, cPPLMain, pplx
)
;
-
ReportItems
.
ReportParameters RP
= reportItems
.
cReportParameters
;
-
-
CreateTable
(ReportFont
.
cPageWidth,
4
)
;
-
cCurrentTable
.
Format
.
Font
= SmallFont
.
Clone
(
)
;
-
cCurrentTable
.
Borders
.
Visible
=
false
;
-
//Header Row
-
AddRow
(Cell
(
"Pole Capacity Utilization (%)",
2, MD
.
Colors
.
White, JustifyLeft, StandardFont, Bold
),
-
Cell
(
"Height"
+
"\n("
+ RP
.
Units_Len_Large_Abrev
+
")", MD
.
Colors
.
White, JustifyRight, StandardFont, Bold
),
-
Cell
(
"Wind Angle"
+
"\n(deg)", MD
.
Colors
.
White, JustifyRight, StandardFont, Bold
)
)
;
-
cCurrentTable
.
RightPadding
= MD
.
Unit
.
FromInch
(
0.125
)
;
-
-
//First Row
-
AddRow
(Cell
(
"Maximum", JustifyLeft
),
-
Cell
(Math
.
Round
(RP
.
Sum_MCU,
1
)
.
ToString
(
"0.0"
), Yellow, JustifyRight, StandardFont, Bold,
-
GetColorFromValueAndTolerance
(RP
.
Sum_MCU,
80,
90,
99.5
)
),
-
Cell
(Math
.
Round
(RP
.
Sum_MCU_Height,
1
)
.
ToString
(
"0.0"
), JustifyRight
),
-
Cell
(Math
.
Round
(RP
.
Sum_MCU_Wind_Angle,
1
)
.
ToString
(
"0.0"
), JustifyRight
)
)
;
-
-
//Second Row
-
AddRow
(Cell
(
"Groundline", JustifyLeft
),
-
Cell
(Math
.
Round
(RP
.
Sum_GLCU,
1
)
.
ToString
(
"0.0"
), Yellow, JustifyRight, StandardFont, Bold,
-
GetColorFromValueAndTolerance
(RP
.
Sum_GLCU,
80,
90,
99.5
)
),
-
Cell
(Math
.
Round
(RP
.
Sum_GLCU_Height,
1
)
.
ToString
(
"0.0"
), JustifyRight
),
-
Cell
(Math
.
Round
(RP
.
Sum_GLCU_Wind_Angle,
1
)
.
ToString
(
"0.0"
), JustifyRight
)
)
;
-
-
//Third Row
-
AddRow
(Cell
(
"Vertical", JustifyLeft
),
-
Cell
(Math
.
Round
(RP
.
Sum_Vertical_Buckling_CU,
1
)
.
ToString
(
"0.0"
), Yellow, JustifyRight, StandardFont, Bold,
-
GetColorFromValueAndTolerance
(RP
.
Sum_Vertical_Buckling_CU,
80,
90,
99.5
)
),
-
Cell
(Math
.
Round
(RP
.
Sum_Vertical_Buckling_Column_Height,
1
)
.
ToString
(
"0.0"
), JustifyRight
),
-
Cell
(Math
.
Round
(RP
.
Sum_Vertical_Buckling_Wind_Angle,
1
)
.
ToString
(
"0.0"
), JustifyRight
)
)
;
-
-
cCurrentTable
.
BottomPadding
= MD
.
Unit
.
FromInch
(
0.03
)
;
-
cCurrentTable
.
TopPadding
= MD
.
Unit
.
FromInch
(
0.03
)
;
-
-
cCurrentTable
.
SetEdge
(
0,
0, cCurrentTable
.
Columns
.
Count, cCurrentTable
.
Rows
.
Count, MDT
.
Edge
.
Box, MD
.
BorderStyle
.
Single,
1, MD
.
Colors
.
Black
)
;
-
cCurrentTable
.
SetEdge
(
0,
0, cCurrentTable
.
Columns
.
Count,
1, MDT
.
Edge
.
Box, MD
.
BorderStyle
.
Single,
1, MD
.
Colors
.
Black
)
;
-
-
FinalizeTable
(
)
;
-
cDocument
.
LastSection
.
AddParagraph
(
"\n"
)
;
-
}