TableOperationRecordView.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using OASystem.Domain.Entities.Customer;
  2. using OASystem.Domain.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.CRM
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. public class TableOperationRecordView : Crm_TableOperationRecord
  14. {
  15. }
  16. /// <summary>
  17. /// 操作记录page
  18. /// </summary>
  19. public class TableOperationRecordPageView
  20. {
  21. public int Row_Number { get; set; }
  22. /// <summary>
  23. /// 表名
  24. /// Crm_NewClientData
  25. /// </summary>
  26. public string TableName { get; set; }
  27. /// <summary>
  28. /// 表名
  29. /// Crm_NewClientData
  30. /// </summary>
  31. public string TableNameStr
  32. {
  33. get
  34. {
  35. string str = "";
  36. if (TableName.Equals("Crm_NewClientData")) str = "客户资料(新)";
  37. return str;
  38. }
  39. }
  40. /// <summary>
  41. /// 操作端口
  42. /// </summary>
  43. public int PortType { get; set; }
  44. public string PortTypeStr
  45. {
  46. get
  47. {
  48. string str = "";
  49. if (PortType == 1) str = "Web";
  50. else if (PortType == 2) str = "Android";
  51. else if (PortType == 3) str = "Ios";
  52. return str;
  53. }
  54. }
  55. /// <summary>
  56. /// 操作项目
  57. /// </summary>
  58. public OperationEnum OperationItem { get; set; }
  59. public string OperationItemStr
  60. {
  61. get
  62. {
  63. string str = "";
  64. if (OperationItem == OperationEnum.NoOperation) str = "未操作";
  65. else if (OperationItem == OperationEnum.List) str = "浏览列表";
  66. else if (OperationItem == OperationEnum.Details) str = "浏览详情";
  67. else if (OperationItem == OperationEnum.Add) str = "添加";
  68. else if (OperationItem == OperationEnum.Edit) str = "编辑";
  69. else if (OperationItem == OperationEnum.Del) str = "删除";
  70. else if (OperationItem == OperationEnum.Audit) str = "审核";
  71. else if (OperationItem == OperationEnum.Upload) str = "文件上传";
  72. else if (OperationItem == OperationEnum.Download) str = "文件下载";
  73. else if (OperationItem == OperationEnum.BatchAssignment) str = "批量指派";
  74. return str;
  75. }
  76. }
  77. /// <summary>
  78. /// 数据Id
  79. /// </summary>
  80. public int DataId { get; set; }
  81. /// <summary>
  82. /// 操作人
  83. /// </summary>
  84. public string? OperationUserName { get; set; }
  85. /// <summary>
  86. /// 操作时间
  87. /// </summary>
  88. public DateTime CreateTime { get; set; }
  89. /// <summary>
  90. /// 备注
  91. /// </summary>
  92. public string Remark { get; set; }
  93. }
  94. }