|
|
@@ -43,8 +43,6 @@
|
|
|
}
|
|
|
else if (treeKey.StartsWith("a"))
|
|
|
{
|
|
|
- ViewContext.Writer.Write(
|
|
|
- "<a href=\"#\" onclick=\"addDeviationToAppendix(" + DataBinder.Eval(c.DataItem, "Id") + ")\">Neue VA</a><br />");
|
|
|
ViewContext.Writer.Write(
|
|
|
"<a href=\"#\" onclick=\"editAppendix(" + DataBinder.Eval(c.DataItem, "Id") + ")\">Bearbeiten</a><br />");
|
|
|
ViewContext.Writer.Write(
|
|
|
@@ -126,21 +124,32 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ t.PreRender = (s, e) =>
|
|
|
+ {
|
|
|
+ var tl = s as MVCxTreeList;
|
|
|
+ tl.ExpandAll();
|
|
|
+ };
|
|
|
+
|
|
|
t.HtmlRowPrepared = (sender, e) =>
|
|
|
{
|
|
|
var hexColor = e.GetValue("StatusColor");
|
|
|
var defaultState = ViewData["DefaultAppendixState"] as GreenTree.Nachtragsmanagement.Core.Domain.Appendix.State;
|
|
|
var statusDescription = e.GetValue("StatusDescription");
|
|
|
+ var treeKey = e.GetValue("TreeKey").ToString();
|
|
|
|
|
|
if (hexColor == null ||
|
|
|
(defaultState != null && statusDescription != null && statusDescription.ToString() == defaultState.Description))
|
|
|
{
|
|
|
- var treeKey = e.GetValue("TreeKey");
|
|
|
- if (treeKey.ToString().StartsWith("a"))
|
|
|
- e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml("#fff2f2");
|
|
|
+ if (treeKey.StartsWith("a"))
|
|
|
+ e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml("#96C8FF");
|
|
|
}
|
|
|
else
|
|
|
e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml(hexColor.ToString());
|
|
|
+
|
|
|
+ if (treeKey == "a_0")
|
|
|
+ {
|
|
|
+ e.Row.BackColor = System.Drawing.ColorTranslator.FromHtml("#FFAB4C");
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
t.ControlStyle.CssClass += "siteTreeList";
|