Commit Graph

15 Commits

Author SHA1 Message Date
SL 5a1b5fd6ef [Common]
升级角色账号系统处理逻辑,UI中获取Role信息均从RT实时拉取,而非使用UI缓存的信息,已解决多用户登录变更角色后其它UI的Role信息无法同步导致的数据错乱问题。
修正Role设置视图中更改了权限,但UI使用的权限没有刷新到最新状态的问题。
所有View的Permission属性更改为MenuPermissionEnum枚举,而不是数字,解决UI端没有强约束,并且程序可读性差的问题。
所有View的Permission属性和IsPermission属性移至BaseModel基类。
简化和重构一些代码,移除未使用的代码。

[UI.Client]
UI端使用的AccountManager和RoleManager更名为AccountManagerClient和RoleManagerClient。
移除未使用的Account相关视图。
2023-09-20 17:25:51 +08:00
SL a913ebe2b5 准备优化Role权限保存方式,从字符串方式更改为XmlElement节点方式保存每一条权限。
[Common]
Permission相关对象从UI.Client工程移至Common工程。
PermissionHelper中增加PermissionToDictionary方法,将权限项目转换为字典。

[UI.Client]
Role对象新增构造函数,可以传入解析好的权限清单。
2023-09-05 00:12:08 +08:00
SL b4e6aa6f40 [UI.Client]
修正Seqence编辑器中无法保存Recipe的问题。
2023-06-29 19:34:16 +08:00
Liang Su 92524557c8 [UI.Client]
ParamBaseWithGenericValue的GetValue和SetValue方法中,如果没有操作权限,则直接结束操作,而不是抛出异常。
2023-06-16 17:40:56 +08:00
Liang Su 8e36056995 [UI.Client]
新增PermissionException对象。
ParamBaseWithGenericValue的GetValue和SetValue方法中检查访问权限,并抛出权限错误异常。
2023-06-16 17:36:49 +08:00
Liang Su 827a85a560 [UI.Client]
新增IValueParam接口,所有支持数值的Recipe Param均继承自此接口。
修正没有写权限的Recipe参数在拖动填充模式下也会被赋值的问题。
2023-06-16 16:32:39 +08:00
Liang Su cd196eefb3 [UI.Client]
移除所有Recipe Param对象的IsHideValue属性。
Recipe Param对象新增ColumnPermission、StepPermission、Permission属性,用于控制Recipe编辑器表格单元格访问权限。
Recipe编辑器使用的DataGrid控件增加单元格访问权限判断,当没有修改权限时,弹出错误对话框提示用户。
2023-06-16 15:48:27 +08:00
Liang Su 0202bc8cb0 [UI.Client]
修正RecipeStep对象构建时IsVisible属性默认设置为True导致RecipeEditor中不显示单元格的问题。
Param的属性Feedback更名为ColumnPermChangedCallback。
2023-06-16 13:43:26 +08:00
Liang Su a7051a3f1b [UI.Client]
RecipeEditor的DataGrid单元格文本颜色定义移至主题样式文件。
RecipeFormatBuilder中增加一些变量名称的常量定义,以提高后期程序的可维护性。
修正RecipeEditor DataGrid单元格模板定义的名称,使语义更加精确。
更名IParam接口的IsValidated属性为IsValid,使语义更加精确。
2023-06-16 09:51:51 +08:00
Liang Su 69044332e6 [UI.Client]
RecipeEditor的EditMode枚举增加EditWhitelist项目。
修正RecipeEditor中,当某步骤权限设置为None时,DataGrid中没有隐藏相应步骤的问题。
移除NumParam.cs。
优化一些列对象,在10号机测试可运行。

已知问题:
RecipeEditor的Expander不能折叠。
当某步骤权限配置为None时,应该隐藏数值;隐藏列可能造成用户识别困难。
2023-06-15 19:19:41 +08:00
Liang Su b22c3f3fba [UI.Client]
创建用于Recipe Editor的控件,基于XDataGrid,并修改相应的对象及运行逻辑。
在10号机初步测试可运行。
2023-06-15 14:53:21 +08:00
Liang Su 5ceedad2e1 [UI,Client]
引入6号机实现的支持拖拽填充功能的Recipe编辑器DataGrid。
移除重复的XDataGrid对象。
2023-06-13 16:10:57 +08:00
DESKTOP-1N1NK8A\auvkk c0d86201ae [UI.Client]
移除RecipColNo定义,使用ControlName查找ReceipStep中指定的参数。
新增IRecipeGasFlowCalculator接口,用于实现RecipeStep中流量计算器。
新增RecipeGasFlowCalculatorBase对象作为默认的RecipeStep流量计算器。
2023-05-10 23:21:46 +08:00
DESKTOP-1N1NK8A\auvkk afa3553a95 [UI.Client]
导入5号机的ClientUI库中的Recipe相关对象。
2023-05-10 16:21:45 +08:00
DESKTOP-GPE37UV\THINKAPD 1ace450916 Add project files. 2023-04-13 11:51:03 +08:00