Enums.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. using System.Xml.Linq;
  6. namespace Procurement.Enums
  7. {
  8. public enum FileType
  9. {
  10. /// <summary>
  11. /// 图片
  12. /// </summary>
  13. Image,
  14. /// <summary>
  15. /// 文件
  16. /// </summary>
  17. File
  18. }
  19. public enum ResultCode
  20. {
  21. //Code
  22. [Display(Name = "成功")]
  23. Success = 10000,
  24. [Display(Name = "失败")]
  25. Fail = 40000,
  26. //SubCode
  27. [Display(Name = "服务不可用")]
  28. ServiceError = 20000,
  29. [Display(Name = "授权权限不足")]
  30. AuthorityError = 40001,
  31. [Display(Name = "参数错误")]
  32. ParameterError = 40002,
  33. [Display(Name = "没有符合记录")]
  34. ExistsError = 40003,
  35. [Display(Name = "业务处理失败")]
  36. BusinessError = 40004,
  37. [Display(Name = "账户或密码错误")]
  38. UserExistsError = 40005,
  39. [Display(Name = "该用户没有匹配的产线")]
  40. UserLineExistsError = 40006,
  41. [Display(Name = "没有授权可用功能")]
  42. UserRightError = 40007,
  43. [Display(Name = "该人员已离职")]
  44. UserStatusError = 40008,
  45. [Display(Name = "该产线已被组线生产")]
  46. UserLineGroupError = 40009
  47. }
  48. //public enum SqlDbTypes
  49. //{
  50. // Decimal = 0,
  51. // Int16 = 2,
  52. // Int24 = 9,
  53. // Int32 = 3,
  54. // Int64 = 8,
  55. // Float = 4,
  56. // Double = 5,
  57. // Date = 10,
  58. // DateTime = 12,
  59. // JSON = 245,
  60. // VarChar = 253,
  61. // String = 254,
  62. // LongText = 751,
  63. // Text = 752,
  64. //}
  65. public enum SqlParamDirection
  66. {
  67. //
  68. // 摘要:
  69. // The parameter is an input parameter.
  70. Input = 1,
  71. //
  72. // 摘要:
  73. // The parameter is an output parameter.
  74. Output = 2,
  75. //
  76. // 摘要:
  77. // The parameter is capable of both input and output.
  78. InputOutput = 3,
  79. //
  80. // 摘要:
  81. // The parameter represents a return value from an operation such as a stored procedure,
  82. // built-in function, or user-defined function.
  83. ReturnValue = 6
  84. }
  85. }