|
|
@@ -4,6 +4,7 @@ using DevExpress.Web;
|
|
|
using DevExpress.Web.ASPxThemes;
|
|
|
using DevExpress.Web.Mvc;
|
|
|
using GreenTree.Nachtragsmanagement.Core.Authentication;
|
|
|
+using GreenTree.Nachtragsmanagement.Web.Models.Appendix;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Web.UI;
|
|
|
@@ -30,8 +31,9 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.KeyFieldName = "Id";
|
|
|
s.CallbackRouteValues = new { Controller = "Site", Action = "PartialSites" };
|
|
|
s.Width = Unit.Percentage(99);
|
|
|
+ s.Settings.ShowHeaderFilterButton = true;
|
|
|
s.Settings.ShowFilterRow = true;
|
|
|
- s.Settings.ShowFilterRowMenu = true;
|
|
|
+ s.Settings.ShowFilterRowMenu = false;
|
|
|
s.Settings.ShowFooter = true;
|
|
|
s.Settings.ShowGroupPanel = true;
|
|
|
s.Settings.AutoFilterCondition = AutoFilterCondition.Contains;
|
|
|
@@ -45,6 +47,11 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.SettingsPopup.CustomizationWindow.Width = new Unit(250, UnitType.Pixel);
|
|
|
s.SettingsPopup.CustomizationWindow.Height = new Unit(350, UnitType.Pixel);
|
|
|
s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
+ s.SettingsBehavior.AllowHeaderFilter = true;
|
|
|
+ s.SettingsPager.AlwaysShowPager = true;
|
|
|
+ s.SettingsResizing.ColumnResizeMode = ColumnResizeMode.NextColumn;
|
|
|
+ s.SettingsCookies.Enabled = true;
|
|
|
+ s.SettingsCookies.CookiesID = "siteGridStateCookie";
|
|
|
|
|
|
s.Toolbars.Add(t =>
|
|
|
{
|
|
|
@@ -112,7 +119,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
});
|
|
|
column.Settings.AllowDragDrop = DefaultBoolean.False;
|
|
|
column.Settings.AllowSort = DefaultBoolean.False;
|
|
|
- column.Width = new Unit(150, UnitType.Pixel);
|
|
|
+ column.Width = new Unit(100, UnitType.Pixel);
|
|
|
});
|
|
|
}
|
|
|
s.Columns.Add(column =>
|
|
|
@@ -120,19 +127,20 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
column.Caption = "Kostenstelle";
|
|
|
column.FieldName = "CustomNumber";
|
|
|
column.MinWidth = 100;
|
|
|
- column.Width = new Unit(10, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(8, UnitType.Percentage);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "Bauvorhaben";
|
|
|
column.FieldName = "Description";
|
|
|
- column.Width = new Unit(13, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(20, UnitType.Percentage);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "Start";
|
|
|
column.FieldName = "Start";
|
|
|
column.PropertiesEdit.DisplayFormatString = "dd.MM.yyyy";
|
|
|
+ column.SettingsHeaderFilter.Mode = GridHeaderFilterMode.DateRangePicker;
|
|
|
column.MinWidth = 110;
|
|
|
column.Width = new Unit(8, UnitType.Percentage);
|
|
|
});
|
|
|
@@ -141,6 +149,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
column.Caption = "Ende";
|
|
|
column.FieldName = "End";
|
|
|
column.PropertiesEdit.DisplayFormatString = "dd.MM.yyyy";
|
|
|
+ column.SettingsHeaderFilter.Mode = GridHeaderFilterMode.DateRangePicker;
|
|
|
column.MinWidth = 110;
|
|
|
column.Width = new Unit(8, UnitType.Percentage);
|
|
|
});
|
|
|
@@ -148,6 +157,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
column.Caption = "VA";
|
|
|
column.FieldName = "DeviationDescription";
|
|
|
+ column.Visible = false;
|
|
|
column.MinWidth = 150;
|
|
|
column.Width = new Unit(12, UnitType.Percentage);
|
|
|
});
|
|
|
@@ -156,6 +166,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
column.Caption = "VA-Summe";
|
|
|
column.FieldName = "DeviationValue";
|
|
|
column.PropertiesEdit.DisplayFormatString = "c2";
|
|
|
+ column.Visible = false;
|
|
|
column.MinWidth = 120;
|
|
|
column.Width = new Unit(10, UnitType.Percentage);
|
|
|
});
|
|
|
@@ -169,24 +180,53 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
column.Caption = "Mitarbeiter";
|
|
|
column.MinWidth = 150;
|
|
|
- column.Width = new Unit(20, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(15, UnitType.Percentage);
|
|
|
column.SetDataItemTemplateContent(c =>
|
|
|
{
|
|
|
var userDescriptions = DataBinder.Eval(c.DataItem, "UserDescriptions") as List<string>;
|
|
|
|
|
|
if (userDescriptions != null)
|
|
|
{
|
|
|
- html.ViewContext.Writer.Write(
|
|
|
- String.Join("<br />", userDescriptions));
|
|
|
+ foreach (var description in userDescriptions)
|
|
|
+ {
|
|
|
+ var split = description.Split('|');
|
|
|
+
|
|
|
+ if (split.Length > 1)
|
|
|
+ html.ViewContext.Writer.Write(
|
|
|
+ "<span style=\"float: left\">" + split[0] + "</span>" +
|
|
|
+ "<span style=\"float: right\">" + split[1] + "</span><br />");
|
|
|
+ else
|
|
|
+ html.ViewContext.Writer.Write(
|
|
|
+ "<span>" + split[0] + "</span><br />");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "Kommentar";
|
|
|
- column.FieldName = "Comment";
|
|
|
- column.MinWidth = 100;
|
|
|
- column.Width = new Unit(10, UnitType.Percentage);
|
|
|
+ column.CellStyle.Wrap = DefaultBoolean.True;
|
|
|
+ column.SetDataItemTemplateContent(c =>
|
|
|
+ {
|
|
|
+ var id = Convert.ToInt32(DataBinder.Eval(c.DataItem, "Id"));
|
|
|
+
|
|
|
+ var comment = DataBinder.Eval(c.DataItem, "Comment");
|
|
|
+ var text = comment == null
|
|
|
+ ? String.Empty
|
|
|
+ : comment.ToString();
|
|
|
+
|
|
|
+ if (text.ToString().Length > 40)
|
|
|
+ {
|
|
|
+ html.ViewContext.Writer.Write(text.Substring(0, 40) + " ...");
|
|
|
+ html.ViewContext.Writer.Write("<a href=\"#\" onclick='showComment(\"site\"," + id + ",this)'><br />Anzeigen</a>");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ html.ViewContext.Writer.Write(text);
|
|
|
+ });
|
|
|
+ column.MinWidth = 120;
|
|
|
+ column.Width = new Unit(15, UnitType.Percentage);
|
|
|
+ column.Visible = false;
|
|
|
});
|
|
|
|
|
|
s.TotalSummary.Add(DevExpress.Data.SummaryItemType.Sum, "DeviationValue");
|
|
|
@@ -210,6 +250,9 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
|
|
|
s.Styles.AlternatingRow.BackColor = System.Drawing.Color.FromArgb(247, 247, 247);
|
|
|
|
|
|
+ s.Styles.Footer.CssClass += "devExGridFooterPanel";
|
|
|
+ s.Styles.GroupRow.CssClass += "devExGridGroupRow";
|
|
|
+
|
|
|
return s;
|
|
|
}
|
|
|
|
|
|
@@ -225,6 +268,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.KeyFieldName = "Id";
|
|
|
s.CallbackRouteValues = new { Controller = "Deviation", Action = "PartialDeviations" };
|
|
|
s.Width = Unit.Percentage(99);
|
|
|
+ s.Settings.ShowHeaderFilterButton = true;
|
|
|
s.Settings.ShowFilterRow = true;
|
|
|
s.Settings.ShowFilterRowMenu = true;
|
|
|
s.Settings.ShowFooter = true;
|
|
|
@@ -237,9 +281,14 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
: (int)html.ViewData["ScrollHeight"];
|
|
|
s.SettingsExport.Landscape = true;
|
|
|
s.SettingsExport.FileName = "Vertragsabweichungsliste";
|
|
|
- s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
s.SettingsPopup.CustomizationWindow.Width = new Unit(250, UnitType.Pixel);
|
|
|
s.SettingsPopup.CustomizationWindow.Height = new Unit(350, UnitType.Pixel);
|
|
|
+ s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
+ s.SettingsBehavior.AllowHeaderFilter = true;
|
|
|
+ s.SettingsPager.AlwaysShowPager = true;
|
|
|
+ s.SettingsResizing.ColumnResizeMode = ColumnResizeMode.NextColumn;
|
|
|
+ s.SettingsCookies.Enabled = true;
|
|
|
+ s.SettingsCookies.CookiesID = "deviationGridStateCookie";
|
|
|
|
|
|
s.Toolbars.Add(t =>
|
|
|
{
|
|
|
@@ -317,6 +366,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
column.Caption = "Einreichung";
|
|
|
column.FieldName = "ReceiptDate";
|
|
|
column.PropertiesEdit.DisplayFormatString = "dd.MM.yyyy";
|
|
|
+ column.SettingsHeaderFilter.Mode = GridHeaderFilterMode.DateRangePicker;
|
|
|
column.MinWidth = 110;
|
|
|
column.Width = new Unit(8, UnitType.Percentage);
|
|
|
});
|
|
|
@@ -418,8 +468,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
FieldName = "DaysReceiptToAppendixOffering",
|
|
|
SummaryType = DevExpress.Data.SummaryItemType.Custom,
|
|
|
- DisplayFormat = "Schnitt = {0:n0}",
|
|
|
-
|
|
|
+ DisplayFormat = "Schnitt = {0:n0}"
|
|
|
});
|
|
|
s.GroupSummary.Add(new ASPxSummaryItem
|
|
|
{
|
|
|
@@ -441,6 +490,9 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['scrollHeight'] = [ gridScrollHeight ]; }";
|
|
|
s.ClientSideEvents.ToolbarItemClick = "function (s, e) { onToolbarItemClick(s, e); }";
|
|
|
|
|
|
+ s.Styles.Footer.CssClass += "devExGridFooterPanel";
|
|
|
+ s.Styles.GroupRow.CssClass += "devExGridGroupRow";
|
|
|
+
|
|
|
s.Styles.AlternatingRow.BackColor = System.Drawing.Color.FromArgb(247, 247, 247);
|
|
|
|
|
|
return s;
|
|
|
@@ -458,11 +510,13 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.KeyFieldName = "Id";
|
|
|
s.CallbackRouteValues = new { Controller = "Appendix", Action = "PartialAppendices" };
|
|
|
s.Width = Unit.Percentage(99);
|
|
|
+ s.Settings.ShowHeaderFilterButton = true;
|
|
|
s.Settings.ShowFilterRow = true;
|
|
|
s.Settings.ShowFilterRowMenu = true;
|
|
|
s.Settings.ShowFooter = true;
|
|
|
s.Settings.ShowGroupPanel = true;
|
|
|
s.Settings.AutoFilterCondition = AutoFilterCondition.Contains;
|
|
|
+ s.Settings.HorizontalScrollBarMode = ScrollBarMode.Auto;
|
|
|
s.Settings.VerticalScrollBarMode = ScrollBarMode.Auto;
|
|
|
s.Settings.VerticalScrollableHeight =
|
|
|
(html.ViewData["ScrollHeight"] == null || (int)html.ViewData["ScrollHeight"] == -1)
|
|
|
@@ -470,9 +524,14 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
: (int)html.ViewData["ScrollHeight"];
|
|
|
s.SettingsExport.Landscape = true;
|
|
|
s.SettingsExport.FileName = "Nachtragsliste";
|
|
|
- s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
s.SettingsPopup.CustomizationWindow.Width = new Unit(250, UnitType.Pixel);
|
|
|
s.SettingsPopup.CustomizationWindow.Height = new Unit(350, UnitType.Pixel);
|
|
|
+ s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
+ s.SettingsBehavior.AllowHeaderFilter = true;
|
|
|
+ s.SettingsPager.AlwaysShowPager = true;
|
|
|
+ s.SettingsResizing.ColumnResizeMode = ColumnResizeMode.Control;
|
|
|
+ s.SettingsCookies.Enabled = true;
|
|
|
+ s.SettingsCookies.CookiesID = "appendixGridStateCookie";
|
|
|
|
|
|
s.Toolbars.Add(t =>
|
|
|
{
|
|
|
@@ -519,10 +578,10 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
- column.Caption = "Nummer";
|
|
|
+ column.Caption = "#";
|
|
|
column.FieldName = "CustomNumber";
|
|
|
column.MinWidth = 80;
|
|
|
- column.Width = new Unit(8, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(80, UnitType.Pixel);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
@@ -535,62 +594,73 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
column.Caption = "Baustelle";
|
|
|
column.FieldName = "SiteDescription";
|
|
|
- column.MinWidth = 120;
|
|
|
+ column.MinWidth = 150;
|
|
|
column.Width = new Unit(10, UnitType.Percentage);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
+ {
|
|
|
+ column.Caption = "Kst.-Stelle";
|
|
|
+ column.FieldName = "SiteCustomNumber";
|
|
|
+ column.MinWidth = 120;
|
|
|
+ column.Width = new Unit(120, UnitType.Pixel);
|
|
|
+ });
|
|
|
+ s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "Einreichung";
|
|
|
column.FieldName = "OfferingDate";
|
|
|
column.PropertiesEdit.DisplayFormatString = "dd.MM.yyyy";
|
|
|
column.MinWidth = 110;
|
|
|
- column.Width = new Unit(8, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(110, UnitType.Pixel);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
- column.Caption = "Angeb.-Sum.";
|
|
|
+ column.Caption = "Angeb. -Summe";
|
|
|
column.FieldName = "OfferingValue";
|
|
|
column.PropertiesEdit.DisplayFormatString = "c2";
|
|
|
- column.MinWidth = 140;
|
|
|
- column.Width = new Unit(8, UnitType.Percentage);
|
|
|
+ column.MinWidth = 110;
|
|
|
+ column.Width = new Unit(110, UnitType.Pixel);
|
|
|
+ column.HeaderStyle.Wrap = DefaultBoolean.True;
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
- column.Caption = "Verhand.-Sum.";
|
|
|
+ column.Caption = "Verhand. -Summe";
|
|
|
column.FieldName = "NegotiationValue";
|
|
|
column.PropertiesEdit.DisplayFormatString = "c2";
|
|
|
- column.MinWidth = 140;
|
|
|
- column.Width = new Unit(8, UnitType.Percentage);
|
|
|
+ column.MinWidth = 110;
|
|
|
+ column.Width = new Unit(110, UnitType.Pixel);
|
|
|
+ column.HeaderStyle.Wrap = DefaultBoolean.True;
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
- column.Caption = "Verh. Angeb./Verha.";
|
|
|
+ column.Caption = "Anteil Verh. zu Angeb.";
|
|
|
column.FieldName = "RelationOfferingToNegotiation";
|
|
|
column.PropertiesEdit.DisplayFormatString = "p2";
|
|
|
- column.MinWidth = 140;
|
|
|
- column.Width = new Unit(10, UnitType.Percentage);
|
|
|
+ column.MinWidth = 115;
|
|
|
+ column.Width = new Unit(115, UnitType.Pixel);
|
|
|
+ column.HeaderStyle.Wrap = DefaultBoolean.True;
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "VA";
|
|
|
column.FieldName = "DeviationDescription";
|
|
|
- column.MinWidth = 100;
|
|
|
+ column.MinWidth = 70;
|
|
|
column.Width = new Unit(6, UnitType.Percentage);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
- column.Caption = "Verh. Angeb./VA.";
|
|
|
+ column.Caption = "Faktor Angeb. zu VA";
|
|
|
column.FieldName = "RelationOfferingToDeviations";
|
|
|
column.PropertiesEdit.DisplayFormatString = "n2";
|
|
|
- column.MinWidth = 140;
|
|
|
- column.Width = new Unit(10, UnitType.Percentage);
|
|
|
+ column.MinWidth = 100;
|
|
|
+ column.Width = new Unit(100, UnitType.Pixel);
|
|
|
+ column.HeaderStyle.Wrap = DefaultBoolean.True;
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
column.Caption = "Status";
|
|
|
column.FieldName = "StateDescription";
|
|
|
column.MinWidth = 100;
|
|
|
- column.Width = new Unit(6, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(100, UnitType.Pixel);
|
|
|
});
|
|
|
s.Columns.Add(column =>
|
|
|
{
|
|
|
@@ -631,28 +701,36 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
SummaryType = DevExpress.Data.SummaryItemType.Sum,
|
|
|
FieldName = "OfferingValue",
|
|
|
- DisplayFormat = "{0:c2}"
|
|
|
+ DisplayFormat = "Angeb.-Sum.: {0:c2}"
|
|
|
});
|
|
|
s.GroupSummary.Add(new ASPxSummaryItem
|
|
|
{
|
|
|
SummaryType = DevExpress.Data.SummaryItemType.Sum,
|
|
|
FieldName = "OfferingValue",
|
|
|
- DisplayFormat = "{0:c2}"
|
|
|
+ DisplayFormat = "Angeb.-Sum.: {0:c2}"
|
|
|
});
|
|
|
|
|
|
s.TotalSummary.Add(new ASPxSummaryItem
|
|
|
{
|
|
|
SummaryType = DevExpress.Data.SummaryItemType.Sum,
|
|
|
FieldName = "NegotiationValue",
|
|
|
- DisplayFormat = "{0:c2}"
|
|
|
+ DisplayFormat = "Verhand.-Sum.: {0:c2}"
|
|
|
});
|
|
|
s.GroupSummary.Add(new ASPxSummaryItem
|
|
|
{
|
|
|
SummaryType = DevExpress.Data.SummaryItemType.Sum,
|
|
|
FieldName = "NegotiationValue",
|
|
|
- DisplayFormat = "{0:c2}"
|
|
|
+ DisplayFormat = "Verhand.-Sum.: {0:c2}"
|
|
|
});
|
|
|
|
|
|
+ s.HtmlRowPrepared = (sender, e) =>
|
|
|
+ {
|
|
|
+ var state = e.GetValue("State") as StateDataModel;
|
|
|
+
|
|
|
+ if (e.RowType == GridViewRowType.Data && state != null && !state.IsDefault)
|
|
|
+ e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml(state.HexColor);
|
|
|
+ };
|
|
|
+
|
|
|
s.ClientLayout = (sender, e) =>
|
|
|
{
|
|
|
if (e.LayoutMode == ClientLayoutMode.Loading)
|
|
|
@@ -665,8 +743,12 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
};
|
|
|
s.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['scrollHeight'] = [ gridScrollHeight ]; }";
|
|
|
s.ClientSideEvents.ToolbarItemClick = "function (s, e) { onToolbarItemClick(s, e); }";
|
|
|
+ s.ClientSideEvents.ColumnResized = "function (s, e) { setGridScrollHeight(); }";
|
|
|
|
|
|
- s.Styles.AlternatingRow.BackColor = System.Drawing.Color.FromArgb(247, 247, 247);
|
|
|
+ //s.Styles.AlternatingRow.BackColor = System.Drawing.Color.FromArgb(247, 247, 247);
|
|
|
+
|
|
|
+ s.Styles.Footer.CssClass += "devExGridFooterPanel";
|
|
|
+ s.Styles.GroupRow.CssClass += "devExGridGroupRow";
|
|
|
|
|
|
return s;
|
|
|
}
|
|
|
@@ -683,6 +765,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.KeyFieldName = "Id";
|
|
|
s.CallbackRouteValues = new { Controller = "Misc", Action = "PartialMailNotifications" };
|
|
|
s.Width = Unit.Percentage(99);
|
|
|
+ s.Settings.ShowHeaderFilterButton = true;
|
|
|
s.Settings.ShowFilterRow = true;
|
|
|
s.Settings.ShowFilterRowMenu = true;
|
|
|
s.Settings.ShowFooter = true;
|
|
|
@@ -698,6 +781,11 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
s.SettingsPopup.CustomizationWindow.Width = new Unit(250, UnitType.Pixel);
|
|
|
s.SettingsPopup.CustomizationWindow.Height = new Unit(350, UnitType.Pixel);
|
|
|
s.SettingsBehavior.EnableCustomizationWindow = true;
|
|
|
+ s.SettingsBehavior.AllowHeaderFilter = true;
|
|
|
+ s.SettingsPager.AlwaysShowPager = true;
|
|
|
+ s.SettingsResizing.ColumnResizeMode = ColumnResizeMode.NextColumn;
|
|
|
+ s.SettingsCookies.Enabled = true;
|
|
|
+ s.SettingsCookies.CookiesID = "mailNotificationGridStateCookie";
|
|
|
|
|
|
s.Toolbars.Add(t =>
|
|
|
{
|
|
|
@@ -787,15 +875,26 @@ namespace GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
{
|
|
|
column.Caption = "Mitarbeiter";
|
|
|
column.MinWidth = 150;
|
|
|
- column.Width = new Unit(20, UnitType.Percentage);
|
|
|
+ column.Width = new Unit(15, UnitType.Percentage);
|
|
|
column.SetDataItemTemplateContent(c =>
|
|
|
{
|
|
|
var userDescriptions = DataBinder.Eval(c.DataItem, "UserDescriptions") as List<string>;
|
|
|
|
|
|
if (userDescriptions != null)
|
|
|
{
|
|
|
- html.ViewContext.Writer.Write(
|
|
|
- String.Join("<br />", userDescriptions));
|
|
|
+ foreach (var description in userDescriptions)
|
|
|
+ {
|
|
|
+ var split = description.Split('|');
|
|
|
+
|
|
|
+ if (split.Length > 1)
|
|
|
+ html.ViewContext.Writer.Write(
|
|
|
+ "<span style=\"float: left\">" + split[0] + "</span>" +
|
|
|
+ "<span style=\"float: right\">" + split[1] + "</span><br />");
|
|
|
+ else
|
|
|
+ html.ViewContext.Writer.Write(
|
|
|
+ "<span>" + split[0] + "</span><br />");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
});
|