Pārlūkot izejas kodu

Bei Ansicht der offenen VAs für eine Baustelle, werden jetzt die VA-Nummern mit angezeigt!

Arne Diekmann 8 gadi atpakaļ
vecāks
revīzija
4b0e8f125e

+ 3 - 1
GreenTree.Nachtragsmanagement.Web/Models/Site/SiteDataModel.cs

@@ -37,7 +37,9 @@ namespace GreenTree.Nachtragsmanagement.Web.Models.Site
                 if (DeviationDescriptions == null)
                     return String.Empty;
                 else
-                    return String.Join("</br>--------------</br>", DeviationDescriptions);
+                    return String.Join("</br>--------------</br>", 
+                        Deviations
+                            .Select(d => String.Format("{0} - {1}", d.CustomNumber, d.Description)));
             }
         }
         public decimal? DeviationValue { get; set; }

+ 1 - 1
GreenTree.Nachtragsmanagement.Web/Views/Sites/_SiteDeviationDescriptionPartial.cshtml

@@ -23,7 +23,7 @@
 		p.ShowHeader = false;
 		p.ShowFooter = false;
 		p.Width = new Unit(500, UnitType.Pixel);
-		p.SetContent("<div id=\"deviationDescriptionContent\"></div>");
+		p.SetContent("<div id=\"deviationDescriptionContent\" style=\"max-height: 350px; overflow: auto\"></div>");
 		p.CloseAction = CloseAction.OuterMouseClick;
 		p.PopupHorizontalAlign = PopupHorizontalAlign.OutsideLeft;
 	}).GetHtml()