|
@@ -1,5 +1,6 @@
|
|
package com.its.op.entity.its.scrs;
|
|
package com.its.op.entity.its.scrs;
|
|
|
|
|
|
|
|
+import com.its.op.dto.its.facility.TbFcltSttsAlrmStupDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlCtlrDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlCtlrDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlCtlrPhaseDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlCtlrPhaseDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlIxrSttsDto;
|
|
import com.its.op.dto.its.scrs.TbScSgnlIxrSttsDto;
|
|
@@ -287,7 +288,7 @@ public class TbScSgnlCtlr implements Serializable {
|
|
dto.setCntlMode(this.stts.getCntlMode());
|
|
dto.setCntlMode(this.stts.getCntlMode());
|
|
dto.setCntlStts(this.stts.getCntlStts());
|
|
dto.setCntlStts(this.stts.getCntlStts());
|
|
if (this.stts.getCntlStts() != 3) {
|
|
if (this.stts.getCntlStts() != 3) {
|
|
- dto.setCmncSttsCd("CMS0");
|
|
|
|
|
|
+ dto.setCmncSttsCd(CmmnCdManager.CMNC_STTS_NORMAL);
|
|
}
|
|
}
|
|
dto.setSpclCntl(this.stts.getSpclCntl());
|
|
dto.setSpclCntl(this.stts.getSpclCntl());
|
|
dto.setCycl(this.stts.getCycl());
|
|
dto.setCycl(this.stts.getCycl());
|
|
@@ -316,6 +317,12 @@ public class TbScSgnlCtlr implements Serializable {
|
|
|
|
|
|
dto.setCboxStts(this.stts.getCboxStts());
|
|
dto.setCboxStts(this.stts.getCboxStts());
|
|
}
|
|
}
|
|
|
|
+ if (CmmnCdManager.CMNC_STTS_ERROR_DT.equals(dto.getUpdtDt())) {
|
|
|
|
+ // FOR setAlrmSetup
|
|
|
|
+ if (1 == this.stts.getCntlStts() || CmmnCdManager.CMNC_STTS_NORMAL.equals(dto.getCmncSttsCd())) {
|
|
|
|
+ dto.setUpdtDt(ItsUtils.getSysTime());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
dto.setMissSttsYn(ItsUtils.getMissSttsYn(dto.getUpdtDt()));
|
|
dto.setMissSttsYn(ItsUtils.getMissSttsYn(dto.getUpdtDt()));
|
|
if (("Y").equals(dto.getMissSttsYn())) {
|
|
if (("Y").equals(dto.getMissSttsYn())) {
|
|
@@ -326,4 +333,14 @@ public class TbScSgnlCtlr implements Serializable {
|
|
|
|
|
|
return dto;
|
|
return dto;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public void setAlrmSetup(TbFcltSttsAlrmStupDto alarm) {
|
|
|
|
+ if (alarm == null || "N".equals(alarm.getUseYn())) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if ("N".equals(alarm.getCmncStts())) {
|
|
|
|
+ getStts().setCntlStts(1); // OnLine
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|