Commit Graph

70 Commits

Author SHA1 Message Date
SIC1016\caipeilun 79b642b871 Merge branch 'develop' of http://118.31.5.210:65000/Sic-Software/Sic.Framework into develop_configChangedV2 2023-10-04 16:11:59 +08:00
SIC1016\caipeilun c6533050c5 配置文件对比功能V2
1.启动时与上次软件配置做对比,若存在差异,将生成新的备份文件,并将差异进行提示
2.配置界面右上角按钮可以过滤差异项,树状图有高亮提示
3.右上角按钮可以直接恢复上次配置软件参数,需要确认
4.config文件夹中有配置备份,可以复制出来替换掉配置文件,重启后生效
2023-10-04 16:10:17 +08:00
SL 47863a000d Merge branch 'develop' into feature/single-session-login
# Conflicts:
#	MECF.Framework.UI.Client/CenterViews/Modules/PM/PMProcessViewModel.cs
2023-09-30 17:36:10 +08:00
SL ed26bf6bd1 [Common]
移除EV.PostLoginBySameUser方法,改为UI端轮训LoginRequest状态凭据。
优化CredentialManager对于Requesting凭据字典的处理,在OnTimer方法中检测KeepAlive时移除RequestCanceled和Rejected状态的凭据。
2023-09-18 14:17:34 +08:00
SL 56bbd2e440 [Common]
继续完善RT登录逻辑。
已在SicManual中测试,以前的登录逻辑没有问题,新的踢出逻辑还未测试。

[UI.Client]
移除未使用的登录控件。
2023-09-13 17:31:22 +08:00
SL 45bb9e7bf7 [Common]
继续优化用户管理器相关代码,并修正错误,编译通过。(未调试)
2023-09-12 18:11:47 +08:00
SL cbb7c732ac [Common]
完成LoginbySameUser事件测试。
2023-09-02 00:58:20 +08:00
SL 2a6fbb7179 [Common]
新增PostLoginBySameUser方法,当同一用户异地登录时,通知已登录的客户端下线。
2023-09-01 17:52:02 +08:00
SIC1016\caipeilun 8f66a4d067 Limit类新增ignoreReverse属性,=true忽略单项limit反转Action 2023-09-01 17:47:09 +08:00
DESKTOP-OKMOOJ9\MK 86af260ad6 [Common]
InterlockManagerBase的Initialize()方法新增对配置文件的Action节点ignoreReverse属性的支持,允许将Action配置为忽略Limit命中后翻转电平动作。
2023-08-30 23:06:49 +08:00
SL 75c5abf732 [Common]
新增Credential对象,准备用于WCF访问验证。
2023-08-29 18:02:30 +08:00
SL 788333d6e6 Merge branch 'develop' into feature/bind-interlock-manager-to-module 2023-08-25 17:23:53 +08:00
SL 0aad2d5852 [RT.Equipment]
IoMFC增加两个配置:Valve和DisableFbSpErrMonWhenValveClosed,允许仅当Valve打开时进行Feedback-SetPoint误差监测。
优化ErrorDetectableBaseDevice、IoMFC代码结构。
2023-08-25 16:05:19 +08:00
SL e7ad49b615 [Common]
修正LOG消息中缺少Level信息的问题。

(cherry picked from commit 48480ad733)
2023-08-22 10:32:51 +08:00
SL eb4925f5ec [Common]
修正InterlockManagerBase的Initialize方法中,如果Action重复,Debug.Assert判断逻辑错误导致没有提示的问题。
优化InterlockActionBase的IsSame方法,忽略DO名称大小写。
2023-08-21 11:51:09 +08:00
SL fe947f0e5a [Common]
InterlockManagerBase对象的Initialize方法中增加Action是否已经存在的判断,同一个Action仅允许定义一次。
2023-08-21 11:33:12 +08:00
SL 2b2b2e2051 [Common]
优化IInterlockAction和InterlockActionBase代码,整理注释。
2023-08-21 11:32:01 +08:00
SL f59093980c [Common]
InterlockDaemonAction对象Monitor方法中输出信息的等级修改为Info。
InterlockDaemonAction对象Monitor方法中如果SetDo失败,输出错误信息到日志,而不是PostWarningLog。
2023-08-18 10:06:41 +08:00
SL 07d4c4b792 [Common]
修正InterlockDaemonManager的Monitor方法输出Limit命中信息时错误使用Limit.Description属性的问题。
2023-08-17 17:39:50 +08:00
SL 48480ad733 [Common]
修正LOG消息中缺少Level信息的问题。
2023-08-17 17:21:04 +08:00
SL 8e55cb9782 [Common]
修正AiLimit返回CurrentValue产生转换异常的问题。
修正InterlockDaemonAction的Monitor方法输出的信息缩进错误的问题。
2023-08-17 16:38:08 +08:00
SL 9690d35a11 [Common]
修正BoolDataPollLimit和DoubleDataPollLimit中CurrentValue的处理逻辑,当Data.Poll返回null时,CurrentValue强制返回无法使当前Limit命中的值,以避免Limit意外触发。
IInterlockLimit接口增加Description属性。
IInterlockLimitDataProvider接口中增加Description属性。
从InterlockManagerBase中移除_dicLimit字段。
IoValueProviderBase中的Name属性返回IO名称,包含地址的IO全名通过Description属性返回。
2023-08-17 15:44:38 +08:00
SL 74c2f66484 [Common]
将字段_dicLimitToActionMap、_dicLimitPerModule从InterlockManager对象移至InterlockManagerBase对象。
优化InterlockManager对象的Initialize方法,精简代码。
优化Interlock相关对象的目录结构和命名空间。
2023-08-17 09:43:24 +08:00
SL 75a3a81bc7 [Common]
InterlockManagerBase新增_dicLimits字段,确保相同条件的Limit仅创建一个实例。
修正InterlockManager对象创建_dicLimitToActionMap字典错误的问题。
2023-08-17 01:24:28 +08:00
SL babf55f5d8 [Common]
修正InterlockManagerBase的Initialize方法判断配置文件的Root节点名称时,不同派生类使用不同名称导致加载失败的问题。
修改InterlockManager对象的基类为InterlockManagerBase,并删减重复的代码。
2023-08-17 01:10:47 +08:00
SL 243d9a89fb [Common]
新增IInterlockAction接口。
新增InterlockManagerBase对象,整合InterlockManager和InterlockDaemonManager公共代码。
2023-08-16 15:21:02 +08:00
SL a018001cac [Common]
优化InterlockDaemonManager对象,增加Limit OR逻辑定义的支持。
新增InterlockActionBase对象,简化代码。
2023-08-16 15:06:29 +08:00
SL 168fc69d6f [Common]
InterlockManager初始化时检查传入的配置文件是否不存在。
修正InterlockDaemonManager中Daemon节点拼写错误的问题。
2023-08-15 18:10:11 +08:00
SL 65cc498516 [Common]
整理InterlockDaemonManager代码结构。
2023-08-15 17:36:37 +08:00
SL 4ba62bfbbf [UI.Core]
移除EngMode相关的Converters。

[UI.Client]
ModuleStatusIndicator对象增加Warning图标和Warning图标Tips。

[RT.Equipment]
PMModuleBase对象新增IsInterlockBypassed属性,用于指示PM模组是否旁路互锁。
2023-08-15 15:36:38 +08:00
SL 7ae695656b 优化Interlock系统,增加Interlock Daemon相关对象,用于在后台监测数据,并自动设置DO输出。 2023-08-10 16:44:46 +08:00
SL 742726ae32 移除全局BypassInterlock系统参数,现在可针对每个Module单独配置。
InterlockManager中增加SetEventLevel()方法,当PM进入Service模式时,允许将Interlock事件打印信息的等级降为Info。
移除BypassEnableTable系统参数。
2023-08-09 17:57:50 +08:00
hanqiangqiang d87dc6460d [Common]
ErrorDetectableBaseDevice类中添加参数设置后添加回调功能
2023-08-08 11:24:51 +08:00
HCL 670a5004c1 1.解决保存新列数据存在的问题 2023-07-24 11:18:29 +08:00
HCL 46b936986c Merge branch 'develop' into feature/整理优化数据库代码 2023-07-24 08:32:47 +08:00
SL d425b908c8 [Common]
BaseDevice对象中新增函数LoadSC(),用于解析并加载指定的系统配置项,并处理加载时的各种异常。

[RT.EqupmentLibrary]
IoPSU的LoadConfig()方法调用LoadSC(),简化代码结构。
2023-07-19 17:46:42 +08:00
HCL 4e3c195816 1.事务处理更新 2023-07-18 14:19:03 +08:00
HCL 485890a415 1.优化数据库 2023-07-13 12:28:37 +08:00
HCL 1d4bd66a19 1.数据库代码整理进度更新 2023-07-10 18:21:15 +08:00
HCL 1c2a89e53f 1.修改切换数据库问题 2023-06-28 18:26:50 +08:00
HCL 040b11a94f 1.整理数据库进度更新 2023-06-28 15:29:13 +08:00
HCL c4b38cc0dd 1.进度更新 2023-06-27 15:46:42 +08:00
SL ccea5a5272 [Common]
EventEnum枚举中的PjDone项更名为PJ_DONE。
2023-06-25 15:04:04 +08:00
SL 770e917a3c [Common]
EventEnum枚举中新增PjDone = 50。
DefaultRecipeFileContext中的EV.PostMessage()方法中,使用ModuleName.System.ToString()代替硬编码的"System"字符串。
2023-06-25 14:32:11 +08:00
SL 98d706bd4b [Common]
EventItem对象中新增属性AcknowledgedTime,记录事件被响应的时间。

[UI.Client]
新增EventLevelToBackgroundConverter对象。
AlarmItem对象的Type属性更名为Level,并新增LevelString属性。
AlarmItem对象中移除TextColor属性,使用EventLevelToBackgroundConverter在视图中进行转换。
2023-06-22 17:10:32 +08:00
SL 91238063d1 [Common]
移除EventItem对象中的IsMute属性,使用IsAcknowledge属性判断事件是否已被响应。
修改EventManager中的事件响应逻辑,用是否响应代替原静音逻辑。
2023-06-22 09:22:44 +08:00
SL b2ed7e0e6a [Common]
修正EventManager对象中的System.HasActiveAlarm数据没有从Alarm列队中获取信息导致始终返回false,导致UI的Alarm按钮不会变色的问题。
优化AppMenu.cs的代码格式。
2023-06-22 09:07:10 +08:00
SL 8216f9879b [Common]
EventManager中注册新操作用于测试Warning、Alarm、PjDone事件。

[UI.Client]
新增EventGenerator视图,用于测试事件。
2023-06-22 00:17:41 +08:00
SL d8ef042dd7 [Common]
在EventManager对象中注册System.LiveAlarmEvent、System.HasMutedAlarmEvent等数据,供三色灯使用。
整理EventManager.cs代码格式。
整理DeviceManagerBase.cs代码格式。
更名EventDefine对象的Items属性为Types。
移除EventItem的Mute()方法,并将IsMute属性的set段作用域变更为public。
2023-06-21 23:04:19 +08:00
SL b21ac05ca8 [Common]
EventItem对象中新增属性IsMute和方法Mute(),用于使当前事件静音。
EventItemManager对象中实现事件静音控制逻辑。
2023-06-21 15:28:38 +08:00