@@ -48,167 +48,6 @@ public override string ToString()
4848 return c ;
4949 }
5050
51- //public void ToValueRow(Excel.Range row)
52- //{
53- // row.Cells[1, 1].Value = Cfg_EquipID;
54- // row.Cells[1, 2].Value = Cfg_EquipDesc != string.Empty ? Cfg_EquipDesc : Description;
55- // row.Cells[1, 3].Value = Name;
56- // row.Cells[1, 4].Value = $"{Name}.Value";
57- // row.Cells[1, 5].Value = "Digital Input";
58- // row.Cells[1, 6].Value = InUse == true ? "Standard IO" : "Not In Use";
59- // row.Cells[1, 7].Value = "";
60- // row.Cells[1, 8].Value = "Bool";
61- // row.Cells[1, 9].Value = "";
62- // row.Cells[1, 10].Value = "";
63- // row.Cells[1, 11].Value = "";
64- // row.Cells[1, 12].Value = "";
65- // row.Cells[1, 13].Value = "";
66- // row.Cells[1, 14].Value = "";
67- // row.Cells[1, 15].Value = "";
68- // row.Cells[1, 16].Value = "";
69-
70- // if ( Val_Count == 0)
71- // {
72- // {
73- // row.Cells[1, 4].Interior.Color = ColorTranslator.ToOle(Color.Yellow);
74- // row.Cells[1, 4].Font.Color = ColorTranslator.ToOle(Color.Black);
75- // }
76- // }
77-
78- // if (Sim == true)
79- // {
80- // row.Cells[1, 3].Interior.Color = ColorTranslator.ToOle(Color.DarkRed);
81- // row.Cells[1, 3].Font.Color = ColorTranslator.ToOle(Color.White);
82- // }
83-
84- // // comments
85- // row.Cells[1, 3].AddComment(ToString());
86- //}
87-
88- //public void ToAlarmRow(Excel.Range row)
89- //{
90- // row.Cells[1, 1].Value = Cfg_EquipID;
91- // row.Cells[1, 2].Value = Cfg_EquipDesc != string.Empty ? Cfg_EquipDesc : Description;
92- // row.Cells[1, 3].Value = Name;
93- // row.Cells[1, 4].Value = $"{Name}.Alarm";
94- // row.Cells[1, 5].Value = "AOI Output";
95- // row.Cells[1, 6].Value = (AlmEnable == true & InUse == true) ? "Standard IO" : "Not In Use";
96- // row.Cells[1, 7].Value = "";
97- // row.Cells[1, 8].Value = "Bool";
98- // row.Cells[1, 9].Value = $"{Cfg_AlmOnTmr} Sec.";
99- // row.Cells[1, 9].AddComment($"Delay: {Cfg_AlmDlyTmr} secs.");
100- // row.Cells[1, 10].Value = $"{Cfg_AlmOffTmr} Sec.";
101- // row.Cells[1, 11].Value = "";
102- // row.Cells[1, 12].Value = "";
103- // row.Cells[1, 13].Value = "";
104- // row.Cells[1, 14].Value = "";
105- // row.Cells[1, 15].Value = AlmAutoAck == true ? "Y" : "";
106- // row.Cells[1, 16].Value = "";
107-
108- // if (Alm_Count == 0)
109- // {
110- // {
111- // row.Cells[1, 4].Interior.Color = ColorTranslator.ToOle(Color.Yellow);
112- // row.Cells[1, 4].Font.Color = ColorTranslator.ToOle(Color.Black);
113- // }
114- // }
115-
116- //}
117-
118- //public void ToShutdownRow(Excel.Range row)
119- //{
120- // row.Cells[1, 1].Value = Cfg_EquipID;
121- // row.Cells[1, 2].Value = Cfg_EquipDesc != string.Empty ? Cfg_EquipDesc : Description;
122- // row.Cells[1, 3].Value = Name;
123- // row.Cells[1, 4].Value = $"{Name}.Shutdown";
124- // row.Cells[1, 5].Value = "AOI Output";
125- // row.Cells[1, 6].Value = "Not In Use";
126- // row.Cells[1, 6].Value = (AlmEnable == true & InUse == true) ? "Standard IO" : "Not In Use";
127- // row.Cells[1, 7].Value = "";
128- // row.Cells[1, 8].Value = "Bool";
129- // row.Cells[1, 9].Value = $"{Cfg_SDDlyTmr} Sec.";
130- // row.Cells[1, 10].Value = "";
131- // row.Cells[1, 11].Value = "";
132- // row.Cells[1, 12].Value = "";
133- // row.Cells[1, 13].Value = "";
134- // row.Cells[1, 14].Value = "";
135- // row.Cells[1, 15].Value = "";
136- // row.Cells[1, 16].Value = "";
137-
138- // if (SD_Count == 0)
139- // {
140- // {
141- // row.Cells[1, 4].Interior.Color = ColorTranslator.ToOle(Color.Yellow);
142- // row.Cells[1, 4].Font.Color = ColorTranslator.ToOle(Color.Black);
143- // }
144- // }
145-
146- //}
147-
148- //public static void ToHeaderRow(Excel.Range row)
149- //{
150- // int i = 1;
151- // row.Cells[1, i++].Value = "Scope";
152- // row.Cells[1, i++].Value = "Tag Name";
153- // row.Cells[1, i++].Value = "IO";
154- // row.Cells[1, i++].Value = "Tag Description";
155- // row.Cells[1, i++].Value = "HMI EquipID";
156- // row.Cells[1, i++].Value = "HMI EquipDesc";
157- // row.Cells[1, i++].Value = "AOI Calls";
158- // row.Cells[1, i++].Value = "Tag References";
159- // row.Cells[1, i++].Value = "InUse";
160- // row.Cells[1, i++].Value = "Raw";
161- // row.Cells[1, i++].Value = "Value";
162- // row.Cells[1, i++].Value = "Alarm Enable";
163- // row.Cells[1, i++].Value = "Alarm Auto Ack";
164- // row.Cells[1, i++].Value = "Alarm State";
165- // row.Cells[1, i++].Value = "Alarm On Time";
166- // row.Cells[1, i++].Value = "Alarm Off Time";
167- // row.Cells[1, i++].Value = "Alarm Dly Time";
168- // row.Cells[1, i++].Value = "Alarm SD Time";
169- // row.Cells[1, i++].Value = "Alarm";
170- // row.Cells[1, i++].Value = "Alarm Count";
171- // row.Cells[1, i++].Value = "SD Count";
172- // row.Cells[1, i++].Value = "Sim";
173- // row.Cells[1, i++].Value = "Sim Value";
174- //}
175-
176- //public void ToDataRow(Excel.Range row)
177- //{
178- // int i = 1;
179- // row.Cells[1, i++].Value = Path;
180- // row.Cells[1, i++].Value = Name;
181- // row.Cells[1, i++].Value = IO;
182- // row.Cells[1, i++].Value = Description;
183-
184- // row.Cells[1, i++].Value = Cfg_EquipID;
185- // row.Cells[1, i++].Value = Cfg_EquipDesc;
186-
187- // row.Cells[1, i++].Value = AOICalls;
188- // row.Cells[1, i++].Value = References;
189-
190- // row.Cells[1, i++].Value = InUse == true ? "Yes" : "No";
191-
192- // row.Cells[1, i++].Value = Raw == true ? "On" : "Off";
193- // row.Cells[1, i++].Value = Value == true ? "On" : "Off";
194-
195- // row.Cells[1, i++].Value = AlmEnable == true ? "Yes" : "No";
196- // row.Cells[1, i++].Value = AlmAutoAck == true ? "Yes" : "No";
197- // row.Cells[1, i++].Value = AlmState == 1 ? "On" : "Off";
198- // row.Cells[1, i++].Value = Cfg_AlmOnTmr;
199- // row.Cells[1, i++].Value = Cfg_AlmOffTmr;
200- // row.Cells[1, i++].Value = Cfg_AlmDlyTmr;
201- // row.Cells[1, i++].Value = Cfg_SDDlyTmr;
202- // row.Cells[1, i++].Value = Alarm == true ? "Alarm" : "Ok";
203- // row.Cells[1, i++].Value = Alm_Count;
204- // row.Cells[1, i++].Value = SD_Count;
205-
206- // row.Cells[1, i++].Value = Sim == true ? "Yes" : "No";
207- // row.Cells[1, i++].Value = SimValue == true ? "On" : "Off";
208-
209-
210- //}
211-
21251 public override bool Simmed { get { return Sim ?? false ; } }
21352 public override bool Bypassed { get { return BypActive ?? false ; } }
21453 public override bool Alarmed { get { return AlmCode == 0 ? false : true ; } }
0 commit comments