|
@@ -0,0 +1,399 @@
|
|
|
|
|
+@using GreenTree.Nachtragsmanagement.Web.Extensions
|
|
|
|
|
+
|
|
|
|
|
+@{
|
|
|
|
|
+ var userContext = GreenTree.Nachtragsmanagement.Core.CommonHelper.UserContext();
|
|
|
|
|
+ var categoryValues = Model.CategoryValueEntities.ToArray();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+@model GreenTree.Nachtragsmanagement.Web.Models.Appendix.AppendixDataModel
|
|
|
|
|
+
|
|
|
|
|
+<div class="appendixEditContainer">
|
|
|
|
|
+
|
|
|
|
|
+ <script>
|
|
|
|
|
+ var textSeparator = ", ";
|
|
|
|
|
+
|
|
|
|
|
+ function saveAppendix() {
|
|
|
|
|
+ CategoryEntities.SelectAll();
|
|
|
|
|
+ var form = $("#appendixEditForm");
|
|
|
|
|
+ $(form).submit(function (e) {
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type: "POST",
|
|
|
|
|
+ url: '@Url.Action("EditAppendix", "Appendix")',
|
|
|
|
|
+ data: form.serialize(),
|
|
|
|
|
+ success: function (response) {
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ $(".appendixEditContainer").remove();
|
|
|
|
|
+ if (response == "success") {
|
|
|
|
|
+ if (typeof onAppendixSaveSuccess === 'function') {
|
|
|
|
|
+ onAppendixSaveSuccess();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("body").append(response);
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ e.preventDefault();
|
|
|
|
|
+ });
|
|
|
|
|
+ form.submit();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function addState() {
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ url: '@Url.Action("EditState", "Appendix")',
|
|
|
|
|
+ data: { claimType: "status", Id: -1 },
|
|
|
|
|
+ success: function (response) {
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ $(".stateEditContainer").remove();
|
|
|
|
|
+ $("body").append(response);
|
|
|
|
|
+ parent.addCustomEventListener('StateDataCallbackEventReceiver', function () {
|
|
|
|
|
+ StateId.PerformCallback();
|
|
|
|
|
+ });
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ },
|
|
|
|
|
+ error: function () {
|
|
|
|
|
+ alert("error occured");
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function addCategory() {
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ url: '@Url.Action("EditClaim", "Appendix")',
|
|
|
|
|
+ data: { claimType: "disturbance", Id: -1 },
|
|
|
|
|
+ success: function (response) {
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ $(".claimEditContainer").remove();
|
|
|
|
|
+ $("body").append(response);
|
|
|
|
|
+ parent.addCustomEventListener('CategoryDataCallbackEventReceiver', function () {
|
|
|
|
|
+ CategoryId.PerformCallback();
|
|
|
|
|
+ });
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ },
|
|
|
|
|
+ error: function () {
|
|
|
|
|
+ alert("error occured");
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function setDropDownText() {
|
|
|
|
|
+ var allItems = CategoryEntities.GetItemCount();
|
|
|
|
|
+ var text = "";
|
|
|
|
|
+ for (var i = 0; i < allItems; i++) {
|
|
|
|
|
+ if (i == allItems - 1) {
|
|
|
|
|
+ text += JSON.parse(CategoryEntities.GetItem(i).value).Description;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ text += JSON.parse(CategoryEntities.GetItem(i).value).Description + ", ";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ devDropDownListCategoryValues.SetText(text);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function addCategoryValue() {
|
|
|
|
|
+ var distVal = {
|
|
|
|
|
+ CategoryId: devListBoxAllCategories.GetValue(),
|
|
|
|
|
+ Description: devListBoxAllCategories.GetSelectedItem().text + " - " + devSpinEditCategoryValue.GetText(),
|
|
|
|
|
+ Value: devSpinEditCategoryValue.GetValue()
|
|
|
|
|
+ };
|
|
|
|
|
+ var distValJson = JSON.stringify(distVal);
|
|
|
|
|
+ var listBox = MVCxClientListBox.Cast(CategoryEntities);
|
|
|
|
|
+ listBox.AddItem(distVal.Description + "<a style=\"float: right\" href=\"#\" onclick='removeCategoryValue(\"" + distVal.Description + "\")'>Entfernen</a>", distValJson);
|
|
|
|
|
+ devCategoryValuePopup.Hide();
|
|
|
|
|
+ setDropDownText();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function removeCategoryValue(description) {
|
|
|
|
|
+ var allItems = CategoryEntities.GetItemCount();
|
|
|
|
|
+ for (var i = 0; i < allItems; i++) {
|
|
|
|
|
+ var item = CategoryEntities.GetItem(i);
|
|
|
|
|
+ if (item.text.startsWith(description)) {
|
|
|
|
|
+ CategoryEntities.RemoveItem(i);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ setDropDownText();
|
|
|
|
|
+ }
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+ @Html.Partial("~/Views/Appendices/_CategoryValueEditPartial.cshtml");
|
|
|
|
|
+
|
|
|
|
|
+ @Html.DevExpress().PopupControl(s =>
|
|
|
|
|
+{
|
|
|
|
|
+ s.Name = "devPopupControlEditAppendix";
|
|
|
|
|
+
|
|
|
|
|
+ if (Model.Id == -1)
|
|
|
|
|
+ s.HeaderText = "Neuen Nachtrag erstellen";
|
|
|
|
|
+ else
|
|
|
|
|
+ s.HeaderText = "\"" + Model.CustomNumber + "\" bearbeiten";
|
|
|
|
|
+
|
|
|
|
|
+ s.Modal = true;
|
|
|
|
|
+ s.Width = new Unit(700, UnitType.Pixel);
|
|
|
|
|
+ s.CloseAction = CloseAction.CloseButton;
|
|
|
|
|
+ s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
|
|
|
|
|
+ s.PopupVerticalAlign = PopupVerticalAlign.TopSides;
|
|
|
|
|
+ s.PopupVerticalOffset = 15;
|
|
|
|
|
+ s.AllowDragging = true;
|
|
|
|
|
+ s.AllowResize = false;
|
|
|
|
|
+ s.ShowFooter = false;
|
|
|
|
|
+ s.ShowOnPageLoad = true;
|
|
|
|
|
+ s.SetContent(() =>
|
|
|
|
|
+ {
|
|
|
|
|
+ using (Html.BeginForm("EditAppendix", "Appendix", FormMethod.Post, new { id = "appendixEditForm" }))
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='editFormWrapper'>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<input type=\"hidden\" value=\"" + Model.Id + "\" id=\"Id\" name=\"Id\" />");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 15%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.CustomNumber, "Nummer:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.CustomNumber).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().TextBoxFor(m => m.CustomNumber, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(90, UnitType.Percentage);
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 55%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.Description, "Bezeichnung:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.Description).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().TextBoxFor(m => m.Description, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(97, UnitType.Percentage);
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 30%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.OfferingDate, "Einreichdatum NT:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.OfferingDate).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().DateEditFor(m => m.OfferingDate, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(100, UnitType.Percentage);
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 40%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.CategoryEntities, "Kategorien:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.CategoryEntities).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().DropDownEdit(t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Name = "devDropDownListCategoryValues";
|
|
|
|
|
+ t.Width = new Unit(96, UnitType.Percentage);
|
|
|
|
|
+
|
|
|
|
|
+ if (Model.CategoryValueEntities != null && Model.CategoryValueEntities.Any())
|
|
|
|
|
+ t.Text = String.Join(", ",
|
|
|
|
|
+ Model.CategoryValueEntities
|
|
|
|
|
+ .Select(d => d.Description));
|
|
|
|
|
+
|
|
|
|
|
+ t.SetDropDownWindowTemplateContent(l =>
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().ListBoxFor(m => m.CategoryEntities, lb =>
|
|
|
|
|
+ {
|
|
|
|
|
+ lb.Width = new Unit(100, UnitType.Percentage);
|
|
|
|
|
+ lb.Properties.TextField = "Description";
|
|
|
|
|
+ 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 description = DataBinder.Eval(i.DataItem, "Description").ToString();
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write(description);
|
|
|
|
|
+ ViewContext.Writer.Write(
|
|
|
|
|
+ "<a class=\"disturbanceRemoveLink\" style=\"float: right\" href=\"#\" onclick='removeCategoryValue(\"" + description + "\")'>Entfernen</a>");
|
|
|
|
|
+ });
|
|
|
|
|
+ lb.ControlStyle.Border.BorderStyle = BorderStyle.None;
|
|
|
|
|
+ }).BindList(Model.CategoryValueEntities).Render();
|
|
|
|
|
+ });
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+
|
|
|
|
|
+ Html.DevExpress().HyperLink(t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Name = "devHyperLinkCategoryValueAdd";
|
|
|
|
|
+ t.Properties.Text = "Hinzufügen";
|
|
|
|
|
+ t.NavigateUrl = "#";
|
|
|
|
|
+ t.Properties.ClientSideEvents.Click = "function (s, e) { devCategoryValuePopup.Show(); }";
|
|
|
|
|
+ t.Style.Add("line-height", "24px");
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 30%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.OfferingValue, "Angebotssumme:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.OfferingValue).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().SpinEditFor(m => m.OfferingValue, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(94, UnitType.Percentage);
|
|
|
|
|
+ t.Properties.DecimalPlaces = 2;
|
|
|
|
|
+ t.Properties.NumberType = SpinEditNumberType.Float;
|
|
|
|
|
+ t.Properties.DisplayFormatString = "c2";
|
|
|
|
|
+ t.Properties.ClientSideEvents.ValueChanged = "function (s, e) { calculateValue(); }";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 30%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.NegotiationValue, "Verhandlungssumme:"));
|
|
|
|
|
+ Html.DevExpress().SpinEditFor(m => m.NegotiationValue, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(100, UnitType.Percentage);
|
|
|
|
|
+ t.Properties.DecimalPlaces = 2;
|
|
|
|
|
+ t.Properties.NumberType = SpinEditNumberType.Float;
|
|
|
|
|
+ t.Properties.DisplayFormatString = "c2";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ if (ViewData["relationType"] != null && ViewData["relationType"].ToString() == "site")
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(
|
|
|
|
|
+ "<input type=\"hidden\" value=\"" + ViewData["relationId"].ToString() + "\" id=\"SiteId\" name=\"SiteId\" />");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 35%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.StateId, "NT-Status:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.StateId).ToHtmlString());
|
|
|
|
|
+
|
|
|
|
|
+ Session.Add("AppendixStatesComboBoxSettings", 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 = "StatesComboBox",
|
|
|
|
|
+ SettingsKey = "AppendixStatesComboBoxSettings",
|
|
|
|
|
+ Model = serializedModel,
|
|
|
|
|
+ Type = Model.GetType().FullName
|
|
|
|
|
+ };
|
|
|
|
|
+ }));
|
|
|
|
|
+ ViewData.Add("StatesComboBoxSettings", "AppendixStatesComboBoxSettings");
|
|
|
|
|
+ Html.RenderPartial("~/Views/Shared/DataEditorTemplates/_StatesComboBox.cshtml", Model, ViewData);
|
|
|
|
|
+
|
|
|
|
|
+ if (userContext.CurrentUser.HasFunction("Appendix-Claims-Edit"))
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().HyperLink(t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Name = "devHyperLinkStateEventReceiver";
|
|
|
|
|
+ t.Properties.Text = "Hinzufügen";
|
|
|
|
|
+ t.NavigateUrl = "#";
|
|
|
|
|
+ t.Properties.ClientSideEvents.Click = "function (s, e) { addState(); }";
|
|
|
|
|
+ t.Style.Add("line-height", "24px");
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelPropertyContainer'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 25%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.ProtocolExists, "Protokoll liegt vor:"));
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"overflow: hidden\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"float: left\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().RadioButtonFor(m => m.ProtocolExists, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Text = "Ja";
|
|
|
|
|
+ t.GroupName = "protocolExists";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"float: left; margin-left: 8px\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().RadioButton(t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Name = "protocolExistsFalse";
|
|
|
|
|
+ t.Text = "Nein";
|
|
|
|
|
+ t.GroupName = "protocolExists";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div class='inlineModelProperty' style='width: 25%'>");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.OrderInvoiceCreated, "AR gestellt:"));
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"overflow: hidden\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"float: left\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().RadioButtonFor(m => m.OrderInvoiceCreated, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Text = "Ja";
|
|
|
|
|
+ t.GroupName = "orderInvoiceCreated";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("<div style=\"float: left; margin-left: 8px\">");
|
|
|
|
|
+ {
|
|
|
|
|
+ Html.DevExpress().RadioButton(t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Name = "orderInvoiceCreatedFalse";
|
|
|
|
|
+ t.Text = "Nein";
|
|
|
|
|
+ t.GroupName = "orderInvoiceCreated";
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+ }
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write(Html.CustomLabelFor(m => m.Comment, "Kommentar:"));
|
|
|
|
|
+ ViewContext.Writer.Write(Html.ValidationMessageFor(m => m.Comment).ToHtmlString());
|
|
|
|
|
+ Html.DevExpress().MemoFor(m => m.Comment, t =>
|
|
|
|
|
+ {
|
|
|
|
|
+ t.Width = new Unit(100, UnitType.Percentage);
|
|
|
|
|
+ t.Height = new Unit(90, UnitType.Pixel);
|
|
|
|
|
+ }).Render();
|
|
|
|
|
+
|
|
|
|
|
+ ViewContext.Writer.Write("</div>");
|
|
|
|
|
+
|
|
|
|
|
+ Html.RenderPartial(
|
|
|
|
|
+ "~/Views/Shared/_PopupButtonPanel.cshtml",
|
|
|
|
|
+ new GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel
|
|
|
|
|
+ {
|
|
|
|
|
+ PopupName = "devPopupControlEditAppendix",
|
|
|
|
|
+ AcceptFunction = "function (s, e) { saveAppendix(); }"
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ s.Styles.Content.Paddings.Padding = new Unit(0);
|
|
|
|
|
+ s.Styles.ModalBackground.Opacity = 0;
|
|
|
|
|
+}).GetHtml()
|
|
|
|
|
+</div>
|