text stringlengths 0 234 |
|---|
with "Unknown partner '" & Image (Node_Label (X)) & "'"; |
else |
return N.Short_Name; |
end if; |
end Short_Name; |
procedure Write_WP_Header (Output : File_Access; |
Table : in out Table_Handler) |
is |
pragma Unreferenced (Output); |
Headstyle : constant String := "\stilehead"; |
procedure Put_Pair (Title, Content : String) is |
begin |
Table.Put (Title, Headstyle); |
Table.Put (Content); |
end Put_Pair; |
procedure First_Row_Standard_Style is |
begin |
Table.Cline (1, 4); |
Put_Pair ("WP Number", WP.Index_Image); |
Put_Pair ("Leader", Short_Name (WP.Leader)); |
Table.Hline; |
Table.Put ("WP Name", Headstyle); |
Table.Multicolumn (Span => Efforts'Length + 1, |
Spec => "|l|", |
Content => WP.Name); |
end First_Row_Standard_Style; |
procedure First_Row_Compact_Style is |
begin |
Table.Hline; |
Put_Pair ("WP N.", WP.Index_Image); |
Table.Put ("WP Name", Headstyle); |
Table.Multicolumn (Span => Efforts'Length - 4, |
Spec => "|l|", |
Content => WP.Name); |
Table.Put ("\WPleadertitle"); |
Table.Multicolumn (Span => 2, |
Spec => "c|", |
Content => |
"\WPleadername{" & Short_Name (WP.Leader) & "}"); |
end First_Row_Compact_Style; |
begin |
if True then |
First_Row_Compact_Style; |
else |
First_Row_Standard_Style; |
end if; |
Table.Hline; |
Table.Put ("N. Partner", Headstyle); |
for Idx in Efforts'Range loop |
Table.Put (Image (Idx)); |
end loop; |
Table.Put (""); |
Table.Hline; |
Table.Put ("Name", Headstyle); |
for Idx in Efforts'Range loop |
Table.Put (Short_Name (Efforts (Idx).Partner)); |
end loop; |
Table.Put ("all"); |
Table.Hline; |
Table.Put ("PM", Headstyle); |
declare |
use EU_Projects.Efforts; |
Total_Effort : Person_Months := 0; |
begin |
for Idx in Efforts'Range loop |
Table.Put (Chop (Efforts (Idx).Effort'Image)); |
Total_Effort := Total_Effort + Efforts (Idx).Effort; |
end loop; |
Table.Put (Chop (Total_Effort'Image)); |
Function Definition: -- procedure Full_Header is |
Function Body: -- |
-- begin |
-- Table.Hline; |
-- Table.Head ("WP"); |
-- Table.Head ("WP Name"); |
-- Table.Multicolumn (2, "|c|", "\stilehead{Leader}"); |
-- -- Table.Put ("Leader N.", "\stilehead"); |
-- -- Table.Put ("Leader""); |
-- Table.Head ("PM"); |
-- Table.Head ("Start"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.