| 12345678910111213141516171819202122232425262728 |
- @model GreenTree.Nachtragsmanagement.Web.Models.Misc.MailNotificationDataModel
- @if (Model == null || (Model != null && Model.NotificationPlugin == null))
- {
- @Html.DevExpress().ComboBoxFor(m => m.NotificationJobSystemName, t =>
- {
- t.Width = new Unit(100, UnitType.Percentage);
- t.Properties.ValueField = "SystemName";
- t.Properties.ValueType = typeof(string);
- t.Properties.TextField = "Name";
- t.CallbackRouteValues = new { Controller = "Misc", Action = "PartialNotificationPluginJobs" };
- t.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['pluginSystemName'] = [ pluginSystemName ]; }";
- t.Properties.ClientSideEvents.SelectedIndexChanged = "function (s, e) { onNotificationJobSelectedIndexChanged(); }";
- }).GetHtml()
- }
- else
- {
- @Html.DevExpress().ComboBoxFor(m => m.NotificationJobSystemName, t =>
- {
- t.Width = new Unit(100, UnitType.Percentage);
- t.Properties.ValueField = "SystemName";
- t.Properties.ValueType = typeof(string);
- t.Properties.TextField = "Name";
- t.CallbackRouteValues = new { Controller = "Misc", Action = "PartialNotificationPluginJobs" };
- t.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['pluginSystemName'] = [ pluginSystemName ]; }";
- t.Properties.ClientSideEvents.SelectedIndexChanged = "function (s, e) { onNotificationJobSelectedIndexChanged(); }";
- }).BindList(Model.NotificationPlugin.AvailableNotificationJobs).Bind(Model.NotificationJobSystemName).GetHtml()
- }
|