外观
finSettings
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793947213/FIN+5.3.1+finSettings 中文整理基于 FIN 5.3.1
finSettings
FIN 的设置应用和定义模块
mixins
--- --- 财务设置混入 他的同步设置 同步频率模块 同步模块混入
classes
DisKey
const class DisKey : Obj
Constructors
| make |
Fields
| defVal | |
| key | |
| pod |
Methods
| get | |
| toStr |
插槽详情
defVal
常量 Str defVal
get
静态 Obj 获取(Str 后缀, Str? disKey, Str? defVal)
key
const Str key
make
new make(Str disKey, Str? defVal := null)
const Pod pod
toStr
虚拟重写 Str toStr()
FinDefSetting
抽象常量类 FinDefSetting : Obj, FinSettingMixin
Constructors
--- --- 制作
Fields
--- --- 项目
插槽详情
make
new make(Proj proj)
proj
虚拟 const 重写 Proj proj
FinHisSyncExt
@ExtMeta { name="finHisSync"; depends=["finSettings"] } const class FinHisSyncExt : Ext
待办文档
Constructors
| make | |
| privMake |
Fields
| his |
Methods
| onExt | |
| onStart | |
| onStop |
插槽详情
his
const HisModule his := HisModule.<ctor (this)
make
static new make(Proj proj)
onExt
空 onExt(字典 msg)
onStart
虚拟重写 Void onStart()
onStop
虚拟重写 Void onStop()
privMake
new privMake()
FinSetting
抽象常量类 FinSetting : FinDefSetting
Constructors
--- --- 制作
Fields
--- --- 值
插槽详情
make
new make(Proj proj)
val
抽象对象?值
FinSettingDefOf
const class FinSettingDefOf : Obj, Def
Constructors
| make |
Fields
| dict | |
| lib | |
| name | |
| symbol |
Methods
| dis | |
| each | |
| eachWhile | |
| get | |
| has | |
| id | |
| isEmpty | |
| missing | |
| trap |
插槽详情
dict
const Dict dict
dis
虚拟重写 Str? dis(Str? name := null, Str? def := null)
each
虚拟重写 无返回值 each(对象,字符串 f)
eachWhile
虚拟重写 Obj? eachWhile( Obj,Str- Obj? f)
get
虚拟重写 Obj? get(Str name, Obj? def := null)
has
虚拟重写 Bool has(Str name)
id
虚拟重写 Ref id()
isEmpty
虚拟重写 Bool isEmpty()
lib
虚拟常量重写 Lib lib
make
new make(Def def, Def of)
missing
虚拟重写 Bool missing(Str name)
name
虚拟常量重写 Str 名称
symbol
虚拟常量重写符号 symbol
trap
virtual override Obj? trap(Str name, Obj?[]? args := null)
FinSettingMixin
const mixin 财务设置混入
Methods
--- --- 已从 Store proj 启用到 Store
插槽详情
enabled
虚拟 Bool enabled()
fromStore
虚拟 Obj? fromStore(Obj? val)
proj
抽象 Proj proj()
toStore
虚拟 Obj? toStore(Obj? val)
FinSettingsLib
const class FinSettingsLib : Obj
Constructors
| make |
Fields
| mod |
Methods
| finSettingVal | 用于读取单个设置的值 |
| finSettings | 如果 updates 参数为 null,则用于读取所有设置。如果传入一个字典,可以写入多个设置,字典的键为设置键,值为设置的值 |
| finSettingsTree |
插槽详情
finSettingVal
@Axon Obj? finSettingVal(Str defKey)
用于读取单个设置的值
finSettings
@Axon Grid finSettings(字典? updates := null)
如果 updates 参数为 null,则用于读取所有设置。如果传入一个字典,可以写入多个设置,字典的键为设置键,值为设置的值
finSettingsTree
@Axon { meta=["finNavTree":Marker.<ctor (""] } Grid finSettingsTree(Str? node := null)
make
new make(FinSettingsMod mod)
mod
const FinSettingsMod 模块
FinSettingsMod
const class FinSettingsMod : SysMod
Constructors
| make |
Fields
| api | |
| lib |
Methods
| get |
插槽详情
api
const static Str api := "finSettings"
get
@Operator ProjSettings 获取(Proj proj)
lib
const FinSettingsLib lib := FinSettingsLib.<ctor (this)
make
new make()
FinSettingsTree
const class FinSettingsTree : Obj
Constructors
--- --- 制作
Methods
--- --- 树
插槽详情
make
new make(FinSettingsLib lib)
tree
网格树(Str? 节点)
HisModule
const class HisModule : SyncDependModule, SyncFreqModule
Constructors
| make |
Fields
| subscriptionRef |
Methods
| connLibs | |
| receive |
插槽详情
connLibs
虚拟 HxConnLib[] connLibs()
make
new make(Ext ext)
receive
虚拟重写 空接收()
subscriptionRef
受保护的虚拟常量重写 AtomicRef subscriptionRef := AtomicRef.<ctor (null)
HisSyncEtcSetting
const class HisSyncEtcSetting : FinDefSetting, HisSyncSetting
Fields
| depends | |
| moduleField | |
| setter |
Methods
| toStore |
插槽详情
depends
虚拟 const 重写 Str? 依赖
moduleField
虚拟 const 重写 Field moduleField
setter
常量 Field?设值器
toStore
虚拟重写 Obj? toStore(Obj? val)
HisSyncRunSetting
const class HisSyncRunSetting : FinSetting, HisSyncSetting
Fields
--- --- 依赖 moduleField val
插槽详情
depends
虚拟 const 重写 Str? 依赖
moduleField
虚拟 const 重写 Field moduleField
val
虚拟重写 Obj? val
HisSyncSetting
const mixin HisSyncSetting : FinSettingMixin
Constructors
| fromDef |
Methods
| depends | |
| enabled | |
| ext | |
| module | |
| moduleField |
插槽详情
depends
抽象 Str? depends()
enabled
虚拟覆盖 Bool enabled()
ext
FinHisSyncExt ext()
fromDef
static new fromDef(Proj proj, SettingDef def)
module
SyncModule 模块()
moduleField
抽象 字段 模块字段()
HisSyncSettingFields
const class HisSyncSettingFields : Obj
Constructors
| make |
Fields
| depends | |
| key | |
| moduleField |
插槽详情
depends
const Str? 取决于
key
const Str key
make
new make(SettingDef def)
moduleField
const 字段 moduleField
ProjSettings
const class ProjSettings : Obj
Constructors
| make |
Fields
| mod | |
| proj |
Methods
| def | |
| defs | |
| get | |
| set | |
| setAll |
插槽详情
def
SettingDef? def(Str key, Bool checked := true)
defs
SettingDef[] 定义()
get
@Operator Obj? get(Str key)
make
new make(FinSettingsMod mod, Proj proj)
mod
const FinSettingsMod 模块
proj
const Proj proj
set
@操作员 这个集合(Str key, Obj? val)
setAll
这个 setAll(Str:Obj? vals)
SettingDef
const class SettingDef : Obj
Constructors
| fromDef | |
| make |
Fields
| def | |
| defVal | |
| dis | |
| doc | |
| driver | |
| group | |
| isSu | |
| order | |
| type | |
| val |
Methods
| normalizeVal | |
| parseErr | |
| toDict | |
| validate | |
| validateVal |
插槽详情
def
const Def def
defVal
const Obj? defVal
dis
const Obj dis
doc
const Obj 文档
driver
const FinDefSetting? 驱动程序
fromDef
static new fromDef(ProjSettings 设置, Def 定义)
group
const Str 组
isSu
const Bool? isSu
make
new make(ProjSettings 设置, Def 定义, Type 类型)
normalizeVal
虚拟 Obj? normalizeVal(Obj? val)
order
const Obj? 订单
parseErr
Err parseErr(Str reason, Err? cause := null)
toDict
转为字典()
type
const 类型 type
val
对象?值
validate
Obj? 验证(Obj? val, Bool isParse := true)
validateVal
虚拟 Str? 验证值(Obj? 值)
SettingDefBool
const class SettingDefBool : SettingDef
Constructors
| make |
Fields
| falseVal | |
| trueVal |
Methods
| normalizeVal |
插槽详情
falseVal
const Str? falseVal
make
new make(ProjSettings 设置, Def 定义)
normalizeVal
虚拟重写 Obj? normalizeVal(Obj? val)
trueVal
const Str? trueVal
SettingDefList
const class SettingDefList : SettingDef
Constructors
| make |
Methods
| normalizeVal | |
| validateVal |
插槽详情
make
new make(ProjSettings 设置, Def 定义, Type 类型)
normalizeVal
虚拟重写 Obj? normalizeVal(Obj? val)
validateVal
虚拟重写 Str? validateVal(Obj? valObj)
SettingDefNumber
const class SettingDefNumber : SettingDef
Constructors
| make |
Fields
| maxVal | |
| minVal | |
| quantity | |
| resolution | |
| unit |
Methods
| normalizeVal | |
| validateVal |
插槽详情
make
new make(ProjSettings 设置, Def 定义)
maxVal
const Number? maxVal
minVal
const Number? minVal
normalizeVal
虚拟重写 Obj? normalizeVal(Obj? val)
quantity
const Str? quantity
resolution
const Number? 分辨率
unit
const Unit? unit
validateVal
虚拟重写 Str? validateVal(Obj? valObj)
SettingDefRefList
const class SettingDefRefList : SettingDefList
Constructors
--- --- 制作
插槽详情
make
new make(ProjSettings 设置, Def 定义)
SettingDefStr
const class SettingDefStr : SettingDef
Constructors
| make |
Fields
| enums | |
| maxLen | |
| regex |
Methods
| normalizeVal | |
| validateVal |
插槽详情
enums
const Str[]? 枚举
make
new make(ProjSettings 设置, Def 定义)
maxLen
const Int? 最大长度
normalizeVal
虚拟重写 Obj? normalizeVal(Obj? val)
regex
const Regex? 正则表达式
validateVal
虚拟重写 Str? validateVal(Obj? valObj)
SyncDependModule
抽象常量类 SyncDependModule : SyncModule
Constructors
| make |
Methods
| checkDepends | |
| dependsStarted | |
| extToggle |
插槽详情
checkDepends
受保护的虚拟重写 无返回值 检查依赖()
dependsStarted
虚拟重写 Bool dependsStarted()
extToggle
虚拟重写 无返回类型 extToggle(字符串 ext, 布尔值 enabled)
make
new make(Ext ext, Str type, Str depends)
SyncFreqModule
const mixin SyncFreqModule : SyncModuleMixin
Methods
| freq | |
| onFreqChange | |
| onStart | |
| onStop | |
| subscriptionRef |
插槽详情
freq
抽象 Dict 频率()
onFreqChange
这是 onFreqChange(Dict freq)
onStart
空 onStart()
onStop
空 onStop()
subscriptionRef
受保护的抽象 AtomicRef subscriptionRef()
SyncModule
抽象常量类 SyncModule : Obj, SyncModuleMixin
Constructors
| make |
Fields
| enabled | |
| ext | |
| freq | |
| type |
Methods
| checkDepends | |
| dependsStarted | |
| extToggle | |
| isEnabled | |
| isVisible | |
| onStart | |
| onStop | |
| runNow | |
| settings | |
| start | |
| stop |
插槽详情
checkDepends
受保护的虚拟 Void checkDepends()
dependsStarted
虚拟 Bool dependsStarted()
enabled
布尔已启用
ext
虚拟常量重写 Ext ext
extToggle
虚拟 Void extToggle(Str ext, Bool enabled)
freq
词典频率
isEnabled
虚拟重写 Bool isEnabled()
isVisible
Bool 是否可见()
make
new make(Ext ext, Str type)
onStart
受保护的抽象 Void onStart()
onStop
受保护的抽象 Void onStop()
runNow
未来 runNow()
settings
对象?设置(字符串 键)
start
空 start()
stop
空停止()
type
const Str 类型
SyncModuleMixin
const mixin 同步模块混入
Methods
--- --- ext 已启用接收
插槽详情
ext
抽象 Ext ext()
isEnabled
抽象 Bool isEnabled()
receive
抽象 Void 接收()
SyncObserver
const 类 SyncObserver : Actor, Observer
Constructors
| make |
Fields
| method | |
| module |
Methods
| actor | |
| meta | |
| proj | |
| receive |
插槽详情
actor
虚拟重写 Actor actor()
make
new make(SyncFreqModule 模块, Method 方法)
meta
虚拟重写 Dict 元信息()
method
const 方法 方法
module
const SyncFreq模块
proj
Proj proj()
receive
虚拟重写 Obj? 接收(Obj? 消息)