|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
@{
|
|
@{
|
|
|
var userContext = GreenTree.Nachtragsmanagement.Core.CommonHelper.UserContext();
|
|
var userContext = GreenTree.Nachtragsmanagement.Core.CommonHelper.UserContext();
|
|
|
|
|
+ var disturbanceValues = Model.DisturbanceValueEntities.ToArray();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@model GreenTree.Nachtragsmanagement.Web.Models.Deviation.DeviationDataModel
|
|
@model GreenTree.Nachtragsmanagement.Web.Models.Deviation.DeviationDataModel
|
|
@@ -11,6 +12,32 @@
|
|
|
<script>
|
|
<script>
|
|
|
var textSeparator = ", ";
|
|
var textSeparator = ", ";
|
|
|
|
|
|
|
|
|
|
+ function saveDeviation() {
|
|
|
|
|
+ DisturbanceEntities.SelectAll();
|
|
|
|
|
+ var form = $("#deviationEditForm");
|
|
|
|
|
+ $(form).submit(function (e) {
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type: "POST",
|
|
|
|
|
+ url: '@Url.Action("EditDeviation", "Deviation")',
|
|
|
|
|
+ data: form.serialize(),
|
|
|
|
|
+ success: function (response) {
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ $(".deviationEditContainer").remove();
|
|
|
|
|
+ if (response == "success") {
|
|
|
|
|
+ if (typeof onDeviationSaveSuccess === 'function') {
|
|
|
|
|
+ onDeviationSaveSuccess();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("body").append(response);
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ e.preventDefault();
|
|
|
|
|
+ });
|
|
|
|
|
+ form.submit();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
function addStatus() {
|
|
function addStatus() {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: '@Url.Action("EditClaim", "Deviation")',
|
|
url: '@Url.Action("EditClaim", "Deviation")',
|
|
@@ -68,55 +95,46 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function calculateValue() {
|
|
|
|
|
- Sum.SetValue(Value.GetValue() * (Percentage.GetValue() / 100));
|
|
|
|
|
|
|
+ function setDropDownText() {
|
|
|
|
|
+ var allItems = DisturbanceEntities.GetItemCount();
|
|
|
|
|
+ var text = "";
|
|
|
|
|
+ for (var i = 0; i < allItems; i++) {
|
|
|
|
|
+ if (i == allItems - 1) {
|
|
|
|
|
+ text += JSON.parse(DisturbanceEntities.GetItem(i).value).Description;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ text += JSON.parse(DisturbanceEntities.GetItem(i).value).Description + ", ";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ devDropDownListDisturbanceValues.SetText(text);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function onListBoxSelectionChanged(s, e) {
|
|
|
|
|
- if (e.index == 0)
|
|
|
|
|
- e.isSelected ? s.SelectAll() : s.UnselectAll();
|
|
|
|
|
- updateSelectAllItemState();
|
|
|
|
|
- updateText();
|
|
|
|
|
- }
|
|
|
|
|
- function updateSelectAllItemState() {
|
|
|
|
|
- isAllSelected() ? DisturbanceValues.SelectIndices([0]) : DisturbanceValues.UnselectIndices([0]);
|
|
|
|
|
- }
|
|
|
|
|
- function isAllSelected() {
|
|
|
|
|
- for (var i = 1; i < DisturbanceValues.GetItemCount(); i++)
|
|
|
|
|
- if (!DisturbanceValues.GetItem(i).selected)
|
|
|
|
|
- return false;
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ function addDisturbanceValue() {
|
|
|
|
|
+ var distVal = {
|
|
|
|
|
+ DisturbanceId: devListBoxAllDisturbances.GetValue(),
|
|
|
|
|
+ Description: devListBoxAllDisturbances.GetSelectedItem().text + " - " + devSpinEditDisturbanceValue.GetText(),
|
|
|
|
|
+ Value: devSpinEditDisturbanceValue.GetValue()
|
|
|
|
|
+ };
|
|
|
|
|
+ var distValJson = JSON.stringify(distVal);
|
|
|
|
|
+ var listBox = MVCxClientListBox.Cast(DisturbanceEntities);
|
|
|
|
|
+ listBox.AddItem(distVal.Description + "<a style=\"float: right\" href=\"#\" onclick='removeDisturbanceValue(\"" + distVal.Description + "\")'>Entfernen</a>", distValJson);
|
|
|
|
|
+ devDisturbanceValuePopup.Hide();
|
|
|
|
|
+ setDropDownText();
|
|
|
}
|
|
}
|
|
|
- function updateText() {
|
|
|
|
|
- var selectedItems = DisturbanceValues.GetSelectedItems();
|
|
|
|
|
- devDropDownListDisturbanceValues.SetText(getSelectedItemsText(selectedItems));
|
|
|
|
|
- }
|
|
|
|
|
- function synchronizeListBoxValues(s, e) {
|
|
|
|
|
- DisturbanceValues.UnselectAll();
|
|
|
|
|
- var texts = s.GetText().split(textSeparator);
|
|
|
|
|
- var values = getValuesByTexts(texts);
|
|
|
|
|
- DisturbanceValues.SelectValues(values);
|
|
|
|
|
- updateSelectAllItemState();
|
|
|
|
|
- updateText();
|
|
|
|
|
- }
|
|
|
|
|
- function getSelectedItemsText(items) {
|
|
|
|
|
- var texts = [];
|
|
|
|
|
- for (var i = 0; i < items.length; i++)
|
|
|
|
|
- if (items[i].index != 0)
|
|
|
|
|
- texts.push(items[i].text);
|
|
|
|
|
- return texts.join(textSeparator);
|
|
|
|
|
- }
|
|
|
|
|
- function getValuesByTexts(texts) {
|
|
|
|
|
- var actualValues = [];
|
|
|
|
|
- var item;
|
|
|
|
|
- for (var i = 0; i < texts.length; i++) {
|
|
|
|
|
- item = DisturbanceValues.FindItemByText(texts[i]);
|
|
|
|
|
- if (item != null)
|
|
|
|
|
- actualValues.push(item.value);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ function removeDisturbanceValue(description) {
|
|
|
|
|
+ var allItems = DisturbanceEntities.GetItemCount();
|
|
|
|
|
+ for (var i = 0; i < allItems; i++) {
|
|
|
|
|
+ var item = DisturbanceEntities.GetItem(i);
|
|
|
|
|
+ if (item.text.startsWith(description)) {
|
|
|
|
|
+ DisturbanceEntities.RemoveItem(i);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- return actualValues;
|
|
|
|
|
|
|
+ setDropDownText();
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
|
|
+ @Html.Partial("~/Views/Deviations/_DisturbanceValueEdit.cshtml");
|
|
|
|
|
+
|
|
|
@Html.DevExpress().PopupControl(s =>
|
|
@Html.DevExpress().PopupControl(s =>
|
|
|
{
|
|
{
|
|
|
s.Name = "devPopupControlEditDeviation";
|
|
s.Name = "devPopupControlEditDeviation";
|
|
@@ -131,8 +149,8 @@
|
|
|
s.CloseAction = CloseAction.CloseButton;
|
|
s.CloseAction = CloseAction.CloseButton;
|
|
|
s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
|
|
s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
|
|
|
s.PopupVerticalAlign = PopupVerticalAlign.TopSides;
|
|
s.PopupVerticalAlign = PopupVerticalAlign.TopSides;
|
|
|
- s.PopupVerticalOffset = 10;
|
|
|
|
|
- s.AllowDragging = false;
|
|
|
|
|
|
|
+ s.PopupVerticalOffset = 15;
|
|
|
|
|
+ s.AllowDragging = true;
|
|
|
s.AllowResize = false;
|
|
s.AllowResize = false;
|
|
|
s.ShowFooter = false;
|
|
s.ShowFooter = false;
|
|
|
s.ShowOnPageLoad = true;
|
|
s.ShowOnPageLoad = true;
|
|
@@ -183,59 +201,50 @@
|
|
|
{
|
|
{
|
|
|
ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 40%'>");
|
|
ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 40%'>");
|
|
|
{
|
|
{
|
|
|
- ViewContext.Writer.Write(Html.CustomLabelFor(m => m.DisturbanceValues, "Kategorien:"));
|
|
|
|
|
- ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.DisturbanceValues).ToHtmlString());
|
|
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.DisturbanceEntities, "Kategorien:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.DisturbanceEntities).ToHtmlString());
|
|
|
Html.DevExpress().DropDownEdit(t =>
|
|
Html.DevExpress().DropDownEdit(t =>
|
|
|
{
|
|
{
|
|
|
t.Name = "devDropDownListDisturbanceValues";
|
|
t.Name = "devDropDownListDisturbanceValues";
|
|
|
t.Width = new Unit(95, UnitType.Percentage);
|
|
t.Width = new Unit(95, UnitType.Percentage);
|
|
|
|
|
|
|
|
- if (Model.DisturbanceDescriptions != null && Model.DisturbanceDescriptions.Any())
|
|
|
|
|
- t.Text = String.Join(", ", Model.DisturbanceDescriptions);
|
|
|
|
|
|
|
+ if (Model.DisturbanceValueEntities != null && Model.DisturbanceValueEntities.Any())
|
|
|
|
|
+ t.Text = String.Join(", ",
|
|
|
|
|
+ Model.DisturbanceValueEntities
|
|
|
|
|
+ .Select(d => d.Description));
|
|
|
|
|
|
|
|
t.SetDropDownWindowTemplateContent(l =>
|
|
t.SetDropDownWindowTemplateContent(l =>
|
|
|
{
|
|
{
|
|
|
- Html.DevExpress().ListBox(lb =>
|
|
|
|
|
|
|
+ Html.DevExpress().ListBoxFor(m => m.DisturbanceEntities, lb =>
|
|
|
{
|
|
{
|
|
|
- lb.Name = "DisturbanceValues";
|
|
|
|
|
lb.Width = new Unit(100, UnitType.Percentage);
|
|
lb.Width = new Unit(100, UnitType.Percentage);
|
|
|
lb.Properties.TextField = "Description";
|
|
lb.Properties.TextField = "Description";
|
|
|
- lb.Properties.ValueField = "Id";
|
|
|
|
|
- lb.Properties.ValueType = typeof(int);
|
|
|
|
|
- lb.Properties.SelectionMode = ListEditSelectionMode.CheckColumn;
|
|
|
|
|
- lb.ControlStyle.Border.BorderStyle = BorderStyle.None;
|
|
|
|
|
- lb.PreRender = (sender, e) =>
|
|
|
|
|
|
|
+ lb.Properties.ValueField = "Json";
|
|
|
|
|
+ lb.Properties.ValueType = typeof(string);
|
|
|
|
|
+ lb.Properties.EnableClientSideAPI = true;
|
|
|
|
|
+ lb.Properties.SelectionMode = ListEditSelectionMode.Multiple;
|
|
|
|
|
+ lb.EncodeHtml = false;
|
|
|
|
|
+ lb.SetItemTemplateContent(i =>
|
|
|
{
|
|
{
|
|
|
- var listBox = sender as MVCxListBox;
|
|
|
|
|
|
|
+ var description = DataBinder.Eval(i.DataItem, "Description").ToString();
|
|
|
|
|
|
|
|
- foreach (ListEditItem listItem in listBox.Items)
|
|
|
|
|
- {
|
|
|
|
|
- if (Model.DisturbanceValues == null || !Model.DisturbanceValues.Any(m => m == (int)listItem.Value)) continue;
|
|
|
|
|
-
|
|
|
|
|
- listItem.Selected = true;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- listBox.Items.Insert(0, new ListEditItem("(Alle auswählen)", -1));
|
|
|
|
|
- };
|
|
|
|
|
- lb.Properties.ClientSideEvents.SelectedIndexChanged = "function (s, e) { onListBoxSelectionChanged(s, e); }";
|
|
|
|
|
- }).BindList(ViewData["AllDisturbances"]).Render();
|
|
|
|
|
-
|
|
|
|
|
- t.Properties.ClientSideEvents.TextChanged = "function (s, e) { synchronizeListBoxValues(s, e); }";
|
|
|
|
|
- t.Properties.ClientSideEvents.DropDown = "function (s, e) { synchronizeListBoxValues(s, e); }";
|
|
|
|
|
|
|
+ ViewContext.Writer.Write(description);
|
|
|
|
|
+ ViewContext.Writer.Write(
|
|
|
|
|
+ "<a class=\"disturbanceRemoveLink\" style=\"float: right\" href=\"#\" onclick='removeDisturbanceValue(\"" + description + "\")'>Entfernen</a>");
|
|
|
|
|
+ });
|
|
|
|
|
+ lb.ControlStyle.Border.BorderStyle = BorderStyle.None;
|
|
|
|
|
+ }).BindList(Model.DisturbanceValueEntities).Render();
|
|
|
});
|
|
});
|
|
|
}).Render();
|
|
}).Render();
|
|
|
|
|
|
|
|
- if (userContext.CurrentUser.HasFunction("Deviation-Claims-Edit"))
|
|
|
|
|
|
|
+ Html.DevExpress().HyperLink(t =>
|
|
|
{
|
|
{
|
|
|
- Html.DevExpress().HyperLink(t =>
|
|
|
|
|
- {
|
|
|
|
|
- t.Name = "devHyperLinkDisturbanceEventReceiver";
|
|
|
|
|
- t.Properties.Text = "Hinzufügen";
|
|
|
|
|
- t.NavigateUrl = "#";
|
|
|
|
|
- t.Properties.ClientSideEvents.Click = "function (s, e) { addDisturbance(); }";
|
|
|
|
|
- t.Style.Add("line-height", "24px");
|
|
|
|
|
- }).Render();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ t.Name = "devHyperLinkDisturbanceValueAdd";
|
|
|
|
|
+ t.Properties.Text = "Hinzufügen";
|
|
|
|
|
+ t.NavigateUrl = "#";
|
|
|
|
|
+ t.Properties.ClientSideEvents.Click = "function (s, e) { devDisturbanceValuePopup.Show(); }";
|
|
|
|
|
+ t.Style.Add("line-height", "24px");
|
|
|
|
|
+ }).Render();
|
|
|
}
|
|
}
|
|
|
ViewContext.Writer.Write("</div>");
|
|
ViewContext.Writer.Write("</div>");
|
|
|
|
|
|
|
@@ -249,6 +258,7 @@
|
|
|
t.Properties.DecimalPlaces = 2;
|
|
t.Properties.DecimalPlaces = 2;
|
|
|
t.Properties.NumberType = SpinEditNumberType.Float;
|
|
t.Properties.NumberType = SpinEditNumberType.Float;
|
|
|
t.Properties.DisplayFormatString = "c2";
|
|
t.Properties.DisplayFormatString = "c2";
|
|
|
|
|
+ t.Properties.ClientSideEvents.Init = "function (s, e) { calculateValue(); }";
|
|
|
t.Properties.ClientSideEvents.ValueChanged = "function (s, e) { calculateValue(); }";
|
|
t.Properties.ClientSideEvents.ValueChanged = "function (s, e) { calculateValue(); }";
|
|
|
}).Render();
|
|
}).Render();
|
|
|
}
|
|
}
|
|
@@ -262,10 +272,11 @@
|
|
|
{
|
|
{
|
|
|
t.Width = new Unit(88, UnitType.Percentage);
|
|
t.Width = new Unit(88, UnitType.Percentage);
|
|
|
t.Properties.DecimalPlaces = 0;
|
|
t.Properties.DecimalPlaces = 0;
|
|
|
- t.Properties.MaxValue = 100;
|
|
|
|
|
|
|
+ t.Properties.MaxValue = 1000;
|
|
|
t.Properties.MinValue = 0;
|
|
t.Properties.MinValue = 0;
|
|
|
t.Properties.NumberType = SpinEditNumberType.Integer;
|
|
t.Properties.NumberType = SpinEditNumberType.Integer;
|
|
|
t.Properties.DisplayFormatString = "{0:n0} %";
|
|
t.Properties.DisplayFormatString = "{0:n0} %";
|
|
|
|
|
+ t.Properties.ClientSideEvents.Init = "function (s, e) { calculateValue(); }";
|
|
|
t.Properties.ClientSideEvents.ValueChanged = "function (s, e) { calculateValue(); }";
|
|
t.Properties.ClientSideEvents.ValueChanged = "function (s, e) { calculateValue(); }";
|
|
|
}).Render();
|
|
}).Render();
|
|
|
}
|
|
}
|
|
@@ -277,7 +288,6 @@
|
|
|
{
|
|
{
|
|
|
t.Name = "Sum";
|
|
t.Name = "Sum";
|
|
|
t.Width = new Unit(100, UnitType.Percentage);
|
|
t.Width = new Unit(100, UnitType.Percentage);
|
|
|
- t.ClientEnabled = false;
|
|
|
|
|
t.Properties.DecimalPlaces = 2;
|
|
t.Properties.DecimalPlaces = 2;
|
|
|
t.Properties.NumberType = SpinEditNumberType.Float;
|
|
t.Properties.NumberType = SpinEditNumberType.Float;
|
|
|
t.Properties.DisplayFormatString = "c2";
|
|
t.Properties.DisplayFormatString = "c2";
|
|
@@ -287,47 +297,16 @@
|
|
|
}
|
|
}
|
|
|
ViewContext.Writer.Write("</div>");
|
|
ViewContext.Writer.Write("</div>");
|
|
|
|
|
|
|
|
- ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
|
|
|
|
+ if (ViewData["relationType"] != null && ViewData["relationType"].ToString() == "site")
|
|
|
{
|
|
{
|
|
|
- ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 50%'>");
|
|
|
|
|
- {
|
|
|
|
|
- ViewContext.Writer.Write(Html.CustomLabelFor(m => m.AppendixId, "Nachtrag:"));
|
|
|
|
|
-
|
|
|
|
|
- Session.Add("DeviationAppendicesComboBoxSettings", new Action<ComboBoxSettings>(a =>
|
|
|
|
|
- {
|
|
|
|
|
- a.Width = new Unit(95, UnitType.Percentage);
|
|
|
|
|
- a.Properties.ValueType = typeof(int);
|
|
|
|
|
- a.Properties.ValueField = "Id";
|
|
|
|
|
- a.Properties.TextField = "Description";
|
|
|
|
|
-
|
|
|
|
|
- var serializedModel = Newtonsoft.Json.JsonConvert.SerializeObject(Model);
|
|
|
|
|
-
|
|
|
|
|
- a.CallbackRouteValues = new
|
|
|
|
|
- {
|
|
|
|
|
- Controller = "DataCallback",
|
|
|
|
|
- Action = "AppendicesComboBox",
|
|
|
|
|
- SettingsKey = "DeviationAppendicesComboBoxSettings",
|
|
|
|
|
- Model = serializedModel,
|
|
|
|
|
- Type = Model.GetType().FullName
|
|
|
|
|
- };
|
|
|
|
|
- }));
|
|
|
|
|
- ViewData.Add("AppendicesComboBoxSettings", "DeviationAppendicesComboBoxSettings");
|
|
|
|
|
- Html.RenderPartial("~/Views/Shared/DataEditorTemplates/_AppendicesComboBox.cshtml", Model, ViewData);
|
|
|
|
|
- }
|
|
|
|
|
- ViewContext.Writer.Write("</div>");
|
|
|
|
|
-
|
|
|
|
|
- ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 50%'>");
|
|
|
|
|
- {
|
|
|
|
|
- ViewContext.Writer.Write(Html.CustomLabelFor(m => m.AppendixDate, "Einreichdatum NT:"));
|
|
|
|
|
- ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.AppendixDate).ToHtmlString());
|
|
|
|
|
- Html.DevExpress().DateEditFor(m => m.AppendixDate, t =>
|
|
|
|
|
- {
|
|
|
|
|
- t.Width = new Unit(100, UnitType.Percentage);
|
|
|
|
|
- }).Render();
|
|
|
|
|
- }
|
|
|
|
|
- ViewContext.Writer.Write("</div>");
|
|
|
|
|
|
|
+ ViewContext.Writer.Write(
|
|
|
|
|
+ "<input type=\"hidden\" value=\"" + ViewData["relationId"].ToString() + "\" id=\"SiteId\" name=\"SiteId\" />");
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (ViewData["relationType"] != null && ViewData["relationType"].ToString() == "appendix")
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(
|
|
|
|
|
+ "<input type=\"hidden\" value=\"" + ViewData["relationId"].ToString() + "\" id=\"AppendixId\" name=\"AppendixId\" />");
|
|
|
}
|
|
}
|
|
|
- ViewContext.Writer.Write("</div>");
|
|
|
|
|
|
|
|
|
|
ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
{
|
|
{
|
|
@@ -371,46 +350,6 @@
|
|
|
}
|
|
}
|
|
|
ViewContext.Writer.Write("</div>");
|
|
ViewContext.Writer.Write("</div>");
|
|
|
|
|
|
|
|
- //ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 33%'>");
|
|
|
|
|
- //{
|
|
|
|
|
- // ViewContext.Writer.Write(Html.CustomLabelFor(m => m.DisturbanceId, "Verzögerung:"));
|
|
|
|
|
- // ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.DisturbanceId).ToHtmlString());
|
|
|
|
|
-
|
|
|
|
|
- // Session.Add("DeviationDisturbancesComboBoxSettings", new Action<ComboBoxSettings>(a =>
|
|
|
|
|
- // {
|
|
|
|
|
- // a.Width = new Unit(95, UnitType.Percentage);
|
|
|
|
|
- // a.Properties.ValueType = typeof(int);
|
|
|
|
|
- // a.Properties.ValueField = "Id";
|
|
|
|
|
- // a.Properties.TextField = "Description";
|
|
|
|
|
-
|
|
|
|
|
- // var serializedModel = Newtonsoft.Json.JsonConvert.SerializeObject(Model);
|
|
|
|
|
-
|
|
|
|
|
- // a.CallbackRouteValues = new
|
|
|
|
|
- // {
|
|
|
|
|
- // Controller = "DataCallback",
|
|
|
|
|
- // Action = "DisturbancesComboBox",
|
|
|
|
|
- // SettingsKey = "DeviationDisturbancesComboBoxSettings",
|
|
|
|
|
- // Model = serializedModel,
|
|
|
|
|
- // Type = Model.GetType().FullName
|
|
|
|
|
- // };
|
|
|
|
|
- // }));
|
|
|
|
|
- // ViewData.Add("DisturbancesComboBoxSettings", "DeviationDisturbancesComboBoxSettings");
|
|
|
|
|
- // Html.RenderPartial("~/Views/Shared/DataEditorTemplates/_DisturbancesComboBox.cshtml", Model, ViewData);
|
|
|
|
|
-
|
|
|
|
|
- // if (userContext.CurrentUser.HasFunction("Deviation-Claims-Edit"))
|
|
|
|
|
- // {
|
|
|
|
|
- // Html.DevExpress().HyperLink(t =>
|
|
|
|
|
- // {
|
|
|
|
|
- // t.Name = "devHyperLinkDisturbanceEventReceiver";
|
|
|
|
|
- // t.Properties.Text = "Hinzufügen";
|
|
|
|
|
- // t.NavigateUrl = "#";
|
|
|
|
|
- // t.Properties.ClientSideEvents.Click = "function (s, e) { addDisturbance(); }";
|
|
|
|
|
- // t.Style.Add("line-height", "24px");
|
|
|
|
|
- // }).Render();
|
|
|
|
|
- // }
|
|
|
|
|
- //}
|
|
|
|
|
- //ViewContext.Writer.Write("</div>");
|
|
|
|
|
-
|
|
|
|
|
ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 50%'>");
|
|
ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 50%'>");
|
|
|
{
|
|
{
|
|
|
ViewContext.Writer.Write(Html.CustomLabelFor(m => m.KindId, "Art:"));
|
|
ViewContext.Writer.Write(Html.CustomLabelFor(m => m.KindId, "Art:"));
|