20260729173317
This commit is contained in:
1 parent
f6b79ea09a
commit
1c839b707a
26 files changed
+1902
-29
No files matched your search
+24
-1
@@ -18,6 +18,7 @@
|
||||
s_module
|
||||
|-- parent_id --> s_module
|
||||
|-- 1:N --------> s_module_field
|
||||
|-- 0:1 --------> s_module_auto_code --> s_module_field
|
||||
|-- 1:N --------> s_module_field_group -- parent_id --> s_module_field_group
|
||||
|-- 1:N --------> s_module_power ---- 1:N ----> b_user_power
|
||||
`-- 1:N --------> b_user_module
|
||||
@@ -89,6 +90,27 @@ s_module / s_module_field / s_module_field_list / s_module_field_group / s_modul
|
||||
- `b_type` 是展示和编辑的唯一类型来源:Table 按它渲染默认显示器,Form 或可编辑 Table 按它选择控件。
|
||||
- `select` 是否允许自由输入、选项来源、值字段和显示字段均由 `b_options` 控制。
|
||||
|
||||
### `dbo.s_module_auto_code`
|
||||
|
||||
每个数据模块最多绑定一条自动业务编号规则。`b_id` 仍是数据库技术主键,自动编码写入模块绑定的业务字段;业务字段自身应在实际保存表上建立唯一索引。
|
||||
|
||||
| 字段 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `b_id` | `bigint` | 雪花 ID 主键 |
|
||||
| `b_module_id` | `bigint` | 所属数据模块 ID,唯一 |
|
||||
| `b_field_id` | `bigint` | 写入业务编号的字段定义 ID |
|
||||
| `b_prefix` | `nvarchar(100)` | 固定前缀,可为空 |
|
||||
| `b_date_format` | `varchar(30)` | 日期格式,可为空 |
|
||||
| `b_separator` | `nvarchar(10)` | 编码各部分之间的分隔符,可为空 |
|
||||
| `b_sequence_width` | `int` | 流水号补零位数 |
|
||||
| `b_reset_type` | `varchar(10)` | `none`、`year`、`month` 或 `day` |
|
||||
| `b_start_value` | `bigint` | 流水号起始值 |
|
||||
| `b_current_period` | `varchar(8)` | 当前计数周期 |
|
||||
| `b_current_value` | `bigint` | 当前已分配流水值 |
|
||||
| `b_canuse` | `int` | 是否启用 |
|
||||
|
||||
取号时锁定规则行并递增 `b_current_value`。编号生成后不允许业务用户修改;取号与业务保存分开时允许断号,但目标业务字段必须建立唯一索引。
|
||||
|
||||
### 视图同步规则
|
||||
|
||||
字段同步服务仅面向 `b_module_type = 'data'` 且配置了 `b_viewtable` 的模块执行:
|
||||
@@ -135,7 +157,7 @@ s_module / s_module_field / s_module_field_list / s_module_field_group / s_modul
|
||||
|
||||
### `dbo.s_module_field_edit`
|
||||
|
||||
控制字段的通用编辑属性与编辑分组。控件类型、显示规则和类型专属参数统一由 `s_module_field.b_type`、`b_options` 决定;FmsForm 与 FmsTable 自行决定何时使用本配置。
|
||||
控制字段的通用编辑属性、显示状态与编辑分组。控件类型和类型专属参数统一由 `s_module_field.b_type`、`b_options` 决定;FmsForm 与 FmsTable 自行决定何时使用本配置。
|
||||
|
||||
| 字段 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
@@ -145,6 +167,7 @@ s_module / s_module_field / s_module_field_list / s_module_field_group / s_modul
|
||||
| `b_required` | `int` | 是否必填,默认 `0` |
|
||||
| `b_readonly` | `int` | 是否只读,默认 `0` |
|
||||
| `b_disabled` | `int` | 是否禁用,默认 `0` |
|
||||
| `b_visible` | `int` | 是否显示,默认 `1` |
|
||||
| `b_group_id` | `bigint` | 所属编辑分组 ID;不分组时为空 |
|
||||
| `b_xh` | `int` | 编辑场景中的显示顺序,默认 `0` |
|
||||
|
||||
|
||||
Reference in new issue
Block a user