JnpfField.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. package jnpf.annotation;
  2. import java.lang.annotation.*;
  3. /**
  4. * 控件属性
  5. *
  6. * @author JNPF开发平台组
  7. * @version V3.4.3
  8. * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
  9. * @date 2022/9/19
  10. */
  11. @Documented
  12. @Target({ElementType.FIELD})
  13. @Retention(RetentionPolicy.RUNTIME)
  14. public @interface JnpfField {
  15. String vModel() default "";
  16. String label() default "";
  17. /**
  18. * 是否多选
  19. */
  20. boolean multiple() default false;
  21. String jnpfKey() default "";
  22. /**
  23. * 显示层级
  24. */
  25. String showLevel() default "";
  26. /**
  27. * 省市区显示层级
  28. */
  29. String level() default "0";
  30. /**
  31. * 单据规则
  32. */
  33. String rule() default "";
  34. String activeTxt() default "开";
  35. String inactiveTxt() default "关";
  36. int min() default -1;
  37. int max() default -1;
  38. /**
  39. *
  40. * 是否唯一
  41. */
  42. boolean unique() default false;
  43. boolean isUpdate() default false;
  44. /**
  45. * 单行输入正则
  46. */
  47. String regex() default "";
  48. /**
  49. * 表名
  50. */
  51. String relationTable() default "";
  52. String tableName() default "";
  53. /**
  54. * 时间
  55. */
  56. String format() default "";
  57. /**
  58. * 数据接口
  59. */
  60. String dataType() default "";
  61. String dataLabel() default "fullName";
  62. String dataValue() default "id";
  63. String dataChildren() default "children";
  64. String propsUrl() default "";
  65. String dictionaryType() default "";
  66. String options() default "";
  67. String ableDepIds() default "[]";
  68. String ablePosIds() default "[]";
  69. String ableUserIds() default "[]";
  70. String ableRoleIds() default "[]";
  71. String ableGroupIds() default "[]";
  72. String ableIds() default "[]";
  73. String selectType() default "";
  74. /**
  75. * 开始时间
  76. */
  77. String startTime() default "";
  78. /**
  79. * 结束时间
  80. */
  81. String endTime() default "";
  82. }