@using GreenTree.Nachtragsmanagement.Web.Models.Global @{ Layout = "~/Views/Shared/_FunctionLayout.cshtml"; }
NT-Stati
@Html.Partial("~/Views/Appendices/_StateListPartial.cshtml", ViewData["AllStates"])
Kategorien
@Html.Partial("~/Views/Appendices/_CategoryListPartial.cshtml", ViewData["AllCategories"])
@Html.DevExpress().PopupControl(s => { s.Name = "devPopupControlDeleteClaim"; s.HeaderText = "\"{claim}\" löschen"; s.Modal = false; s.Width = new Unit(350, UnitType.Pixel); s.CloseAction = CloseAction.CloseButton; s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter; s.PopupVerticalAlign = PopupVerticalAlign.WindowCenter; s.AllowDragging = false; s.AllowResize = false; s.ShowFooter = false; s.SetContent(() => { ViewContext.Writer.Write("
"); ViewContext.Writer.Write("Falls Sie \"{claim}\" löschen möchten, was soll mit den Nachträgen geschehen, die bereits \"{claim}\" zugeordnet sind?"); ViewContext.Writer.Write("
"); ViewContext.Writer.Write("
"); Html.DevExpress().RadioButton(rb => { rb.Name = "devRadioButtonDeleteReplaceClaim"; rb.Text = "Eine neue(n) {claimType} zuweisen"; rb.GroupName = "claimDelete"; rb.Checked = true; }).Render(); Session.Add("StatesDeleteComboBoxSettings", new Action(a => { a.Name = "devComboBoxClaimDeleteReplaceState"; a.Width = new Unit(100, UnitType.Percentage); a.Properties.ValueType = typeof(int); a.Properties.ValueField = "Id"; a.Properties.TextField = "Description"; a.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['excludedIds'] = [ deleteId ]; }"; a.Properties.ClientSideEvents.EndCallback = "function (s, e) { s.SetSelectedIndex(0); }"; a.SelectedIndex = 0; a.ClientVisible = false; a.CallbackRouteValues = new { Controller = "DataCallback", Action = "StatesComboBoxExcluded", SettingsKey = "StatesDeleteComboBoxSettings" }; })); ViewData.Add("StatesComboBoxSettings", "StatesDeleteComboBoxSettings"); Html.RenderPartial("~/Views/Shared/DataEditorTemplates/_StatesComboBox.cshtml", null, ViewData); Session.Add("CategoriesDeleteComboBoxSettings", new Action(a => { a.Name = "devComboBoxClaimDeleteReplaceCategory"; a.Width = new Unit(100, UnitType.Percentage); a.Properties.ValueType = typeof(int); a.Properties.ValueField = "Id"; a.Properties.TextField = "Description"; a.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['excludedIds'] = [ deleteId ]; }"; a.Properties.ClientSideEvents.EndCallback = "function (s, e) { s.SetSelectedIndex(0); }"; a.SelectedIndex = 0; a.ClientVisible = false; a.CallbackRouteValues = new { Controller = "DataCallback", Action = "CategoriesComboBoxExcluded", SettingsKey = "CategoriesDeleteComboBoxSettings" }; })); ViewData.Add("CategoriesComboBoxSettings", "CategoriesDeleteComboBoxSettings"); Html.RenderPartial("~/Views/Shared/DataEditorTemplates/_CategoriesComboBox.cshtml", null, ViewData); ViewContext.Writer.Write("
"); ViewContext.Writer.Write("
"); Html.RenderPartial( "~/Views/Shared/_PopupButtonPanelYesNo.cshtml", new YesNoDialogModel { PopupName = "devPopupControlDeleteClaim", YesFunction = "function (s, e) { deleteClaim(); }" } ); }); s.Styles.Content.Paddings.Padding = new Unit(0, UnitType.Pixel); }).GetHtml()