1. 알람셋팅화면에 기준값초기화 체크박스 추가

2. 기준값 초기화시 신규 설정된 기준값이 바로 저장되도록 함 (필요한 경우 5분 혹은 10분간격으로 window1, window2 : grp 파일은 생성해주는 것이 좋을 듯함)
3. 알람 설정화면을 통해서 값 변경시 , 기준값초기화 기능이 서브윈도우에 적용되지 않는 버그 수정
This commit is contained in:
2025-07-01 22:11:17 +09:00
parent 9958dd0cf8
commit ffa0cb9bf9
8 changed files with 186 additions and 120 deletions

View File

@@ -222,7 +222,31 @@ namespace vmsnet
delegate void Pub_RemoteCommandEventHandler(object sender, RemoteCommand e);
private void Pub_RemoteCommandEvent(object sender, RemoteCommand e)
{
if (e.Command == rCommand.StateMessage)
if(e.Command == rCommand.AlarmValueReset)
{
////auto로 된 그룹의 기준값을 변경한다.
this.DispCtrl1.SuspendLayout();
foreach (HMI.CGROUP c in DispCtrl1.GROUPS)
{
if (c.AlarmType == "AUTO")
{
////이그룹을 사용하는 모든셀의 auto값을 초기화한다.
foreach (HMI.CITEM i in c.Items)
{
i.alamv = -999;
}
}
else if (c.AlarmType == "STOP")
{
c._alamcount = (short)0;
c._alamcountlb = (short)0;
}
}
this.DispCtrl1._raise_alarm_pre = true; ////혹알람이 발생되어있을지 모르니. 끄도록 발생한것 처럼 표시해준다.
this.DispCtrl1.ResumeLayout();
this.DispCtrl1.Invalidate();
}
else if (e.Command == rCommand.StateMessage)
{
if (this.InvokeRequired)
{