_MailNotificationPluginJobsPartial.cshtml 1.1 KB

1234567891011121314151617181920212223242526
  1. @model GreenTree.Nachtragsmanagement.Web.Models.Misc.MailNotificationDataModel
  2. @if (Model == null)
  3. {
  4. @Html.DevExpress().ComboBoxFor(m => m.NotificationJobSystemName, t =>
  5. {
  6. t.Width = new Unit(100, UnitType.Percentage);
  7. t.Properties.ValueField = "SystemName";
  8. t.Properties.ValueType = typeof(string);
  9. t.Properties.TextField = "Name";
  10. t.CallbackRouteValues = new { Controller = "Misc", View = "PartialNotificationPluginJobs" };
  11. t.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['pluginSystemName'] = [ pluginSystemName ]; }";
  12. }).GetHtml()
  13. }
  14. else
  15. {
  16. @Html.DevExpress().ComboBoxFor(m => m.NotificationJobSystemName, t =>
  17. {
  18. t.Width = new Unit(100, UnitType.Percentage);
  19. t.Properties.ValueField = "SystemName";
  20. t.Properties.ValueType = typeof(string);
  21. t.Properties.TextField = "Name";
  22. t.CallbackRouteValues = new { Controller = "Misc", View = "PartialNotificationPluginJobs" };
  23. t.Properties.ClientSideEvents.BeginCallback = "function (s, e) { e.customArgs['pluginSystemName'] = [ pluginSystemName ]; }";
  24. }).BindList(Model.NotificationPlugin.AvailableNotificationJobs).Bind(Model.NotificationJobSystemName).GetHtml()
  25. }