ShwasherViewModel.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace ShwasherSys.Models.Modal
  6. {
  7. public class ShowQueryModelModal
  8. {
  9. public ShowQueryModelModal(string queryType, string submitEvent, string modelId = "queryModal", string formId = "queryForm", string tableId = "queryTable")
  10. {
  11. FormId = formId;
  12. QueryType = queryType;
  13. SubmitEvent = submitEvent;
  14. TableId = tableId;
  15. ModelId = modelId;
  16. }
  17. public string QueryType { get; set; }
  18. public string SubmitEvent { get; set; }
  19. public string ModelId { get; set; }
  20. public string FormId { get; set; }
  21. public string TableId { get; set; }
  22. }
  23. public class ModelFooterModel
  24. {
  25. public ModelFooterModel(string modalId,string submitEvent, bool isCancel=true,string cancelName="取消",string submitName = "保存",string footStyle="")
  26. {
  27. ModalId = modalId;
  28. IsCancel = isCancel;
  29. SubmitEvent = submitEvent;
  30. CancelName = cancelName;
  31. SubmitName = submitName;
  32. FootStyle = footStyle;
  33. }
  34. public string ModalId { get; set; }
  35. public bool IsCancel { get; set; }
  36. public string SubmitEvent { get; set; }
  37. public string CancelName { get; set; }
  38. public string SubmitName { get; set; }
  39. public string FootStyle { get; set; }
  40. }
  41. }