-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEVCStat-Status.aspx
728 lines (668 loc) · 35.4 KB
/
EVCStat-Status.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
<%@ Page Language="VB" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Dim i As Integer
Dim hs As Scheduler.hsapplication
Dim pi As HomeSeerAPI.PluginAccess
Dim s As String = ""
Dim j As Integer
Dim a As System.Reflection.Assembly
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Try
hs = Context.Items("Content")
pi = New HomeSeerAPI.PluginAccess(hs, "RCS Serial Thermostats", "")
If Not IsPostBack Then
GetData()
Else
End If
Catch ex As Exception
Response.Write("Error In Load: " & ex.Message)
End Try
End Sub
' get the info for all the thermostats and set as the data source for the datalist control
Private Sub GetData()
Dim values As New ArrayList()
Dim stat As Object
Try
If pi.StatCount = 0 Then
LabelNoStats.Text = "No thermostats are configured"
Return
End If
For i = 1 To pi.StatCount
stat = pi.StatObj(i)
Dim sd As New StatData(stat, pi)
If sd.LastError <> "" Then
hs.WriteLog("RCS Serial Thermostats", "Error getting thermostat data: " & sd.LastError)
End If
values.Add(sd)
Next
DataList1.DataSource = values
DataList1.DataBind()
Catch ex As Exception
Response.Write("<br>Error accessing thermostats: " & ex.Message)
End Try
End Sub
Public Class StatData
Public _Name As String
Public _HeatSetPoint As String
Public _CoolSetPoint As String
Public _CoolSetPointVisible As Boolean
Public _Temp As String
Public _Fan As String
Public _Mode As String
Public _Hold As String
Public _HoldVisible As Boolean
Public _HoldOverrideVisible As Boolean
Public _Number As String
Public _SysVisible As Boolean
Public _Zones As New ArrayList()
Public LastError As String
Public _OAVisible As Boolean
Public Sub New(ByVal stat As HSPI_RCSSERIAL.Thermostat, ByVal cb As HSPI_RCSSERIAL.HSPI)
Try
LastError = ""
_Number = stat.Number
_Name = stat.Location & " " & stat.Name
_Temp = CStr(stat.Temperature) & "°" & cb.ConfigTemperatureScale.ToString
_HeatSetPoint = CStr(stat.HeatSet)
_CoolSetPoint = CStr(stat.CoolSet)
_CoolSetPointVisible = stat.SupportsCoolSet(_Number, 1)
_Fan = stat.FanMode.ToString
If stat.ModeOperating.FA Then
_Fan &= " (On)"
Else
_Fan &= " (Off)"
End If
_Mode = stat.Mode.ToString
Dim alloff As Boolean = True
If stat.ModeOperating.H1A Then
_Mode &= " (First Stage Heat)"
alloff = False
End If
If stat.ModeOperating.H2A Then
_Mode &= " (Second Stage Heat)"
alloff = False
End If
If stat.ModeOperating.H3A Then
_Mode &= " (Third Stage Heat)"
alloff = False
End If
If stat.ModeOperating.C1A Then
_Mode &= " (First Stage Cool)"
alloff = False
End If
If stat.ModeOperating.C2A Then
_Mode &= " (Second Stage Cool)"
alloff = False
End If
If alloff Then
_Mode &= " (Idle)"
End If
_Hold = stat.Hold.ToString
_HoldVisible = stat.SupportsHold(_Number, 1)
_HoldOverrideVisible = stat.SupportsHoldOverride(_Number, 1)
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZC6R_Zone_Controller Or stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZCV_Zone_Controller Then
_SysVisible = True
Else
_SysVisible = False
End If
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZC6R_Zone_Controller Or stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZCV_Zone_Controller Then
For i As Integer = 0 To stat.Zones.Count - 1
_Zones.Add(New ZoneData(stat.Zones(i), cb, _Number))
Next
Else
_Zones.Add(New ZoneData(stat, cb, _Number))
End If
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.Sensor Then
_OAVisible = True
Else
_OAVisible = False
End If
Catch ex As Exception
LastError = "Error getting thermostat data: " & ex.Message
End Try
End Sub
Public ReadOnly Property Name()
Get
Return _Name
End Get
End Property
Public ReadOnly Property Temp()
Get
Return _Temp
End Get
End Property
Public ReadOnly Property HeatSetPoint()
Get
Return _HeatSetPoint
End Get
End Property
Public ReadOnly Property CoolSetPoint()
Get
Return _CoolSetPoint
End Get
End Property
Public ReadOnly Property CoolSetPointVisible()
Get
Return _CoolSetPointVisible
End Get
End Property
Public ReadOnly Property Fan()
Get
Return _Fan
End Get
End Property
Public ReadOnly Property Mode()
Get
Return _Mode
End Get
End Property
Public ReadOnly Property Hold()
Get
Return _Hold
End Get
End Property
Public ReadOnly Property HoldVisible()
Get
Return _HoldVisible
End Get
End Property
Public ReadOnly Property HoldOverrideVisible()
Get
Return _HoldOverrideVisible
End Get
End Property
Public ReadOnly Property Number()
Get
Return _Number
End Get
End Property
Public ReadOnly Property SysVisible()
Get
Return _SysVisible
End Get
End Property
Public ReadOnly Property Zones()
Get
Return _Zones
End Get
End Property
Public ReadOnly Property OAVisible()
Get
Return _OAVisible
End Get
End Property
End Class
Public Class ZoneData
Public _RS As String
Public _Name As String
Public _HeatSetPoint As String
Public _CoolSetPoint As String
Public _CoolSetPointVisible As Boolean
Public _Temp As String
Public _Number As String
Public _ThermID As String
Public _Mode As String
Public LastError As String
Public _Fan As String
Public _SysVisible As Boolean
Public _Hold As String
Public _HoldVisible As Boolean
Public _HoldOverrideVisible As Boolean
Public _OAVisible As Boolean
Public Sub New(ByVal stat As HSPI_RCSSERIAL.Thermostat, ByVal cb As HSPI_RCSSERIAL.HSPI, ByVal ThermID As Integer)
Try
LastError = ""
_Number = stat.Number
_ThermID = ThermID
_Name = stat.Location & " " & stat.Name
_Temp = CStr(stat.Temperature) & "°" & cb.ConfigTemperatureScale.ToString
' -100 is OUTSIDE_UNINITIALIZED
_RS = IIf(stat.OutSideAir <> -100, "Outside Temperature: " & CStr(stat.OutSideAir) & "°" & cb.ConfigTemperatureScale.ToString, " No Outside Temp ")
_HeatSetPoint = CStr(stat.HeatSet)
_CoolSetPoint = CStr(stat.CoolSet)
_CoolSetPointVisible = stat.SupportsCoolSet(_Number, 1)
_Fan = stat.FanMode.ToString
_Mode = stat.Mode.ToString
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.Stand_Alone Then
If stat.ModeOperating.FA Then
_Fan &= " (On)"
Else
_Fan &= " (Off)"
End If
Dim alloff As Boolean = True
If stat.ModeOperating.H1A Then
_Mode &= " (First Stage Heat)"
alloff = False
End If
If stat.ModeOperating.H2A Then
_Mode &= " (Second Stage Heat)"
alloff = False
End If
If stat.ModeOperating.H3A Then
_Mode &= " (Third Stage Heat)"
alloff = False
End If
If stat.ModeOperating.C1A Then
_Mode &= " (First Stage Cool)"
alloff = False
End If
If stat.ModeOperating.C2A Then
_Mode &= " (Second Stage Cool)"
alloff = False
End If
If alloff Then
_Mode &= " (Idle)"
End If
Else ' Zones
Select Case stat.Damper
Case False
_Mode &= " (Damper Closed)"
Case True
_Mode &= " (Damper Open)"
End Select
End If
_Hold = stat.Hold.ToString
_HoldVisible = stat.SupportsHold(_Number, 1)
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZC6R_Zone Or stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.ZCV_Zone Then
_SysVisible = True
Else
_SysVisible = False
End If
If stat.Type = HSPI_RCSSERIAL.Thermostat.StatTypes.Sensor Then
_OAVisible = True
Else
_OAVisible = False
End If
Catch ex As Exception
LastError = "Error getting thermostat data: " & ex.Message
End Try
End Sub
Public ReadOnly Property RS()
Get
Return _RS
End Get
End Property
Public ReadOnly Property SysVisible()
Get
Return _SysVisible
End Get
End Property
Public ReadOnly Property Fan()
Get
Return _Fan
End Get
End Property
Public ReadOnly Property Mode()
Get
Return _Mode
End Get
End Property
Public ReadOnly Property Name()
Get
Return _Name
End Get
End Property
Public ReadOnly Property Temp()
Get
Return _Temp
End Get
End Property
Public ReadOnly Property HeatSetPoint()
Get
Return _HeatSetPoint
End Get
End Property
Public ReadOnly Property CoolSetPoint()
Get
Return _CoolSetPoint
End Get
End Property
Public ReadOnly Property CoolSetPointVisible()
Get
Return _CoolSetPointVisible
End Get
End Property
Public ReadOnly Property Number()
Get
Return _Number
End Get
End Property
Public ReadOnly Property ThermID()
Get
Return _ThermID
End Get
End Property
Public ReadOnly Property Hold()
Get
Return _Hold
End Get
End Property
Public ReadOnly Property HoldVisible()
Get
Return _HoldVisible
End Get
End Property
Public ReadOnly Property OAVisible()
Get
Return _OAVisible
End Get
End Property
End Class
Private Function GetHeadContent() As String
Try
Return hs.GetPageHeader("RCS Serial Status", "", "", False, False, True, False, False)
Catch ex As Exception
End Try
Return ""
End Function
Private Function GetBodyContent() As String
Try
Return hs.GetPageHeader("RCS Serial Status", "", "", False, False, False, True, False)
Catch ex As Exception
End Try
Return ""
End Function
Private Function GetFooterContent() As String
Try
Return hs.GetPageFooter(False)
Catch ex As Exception
End Try
Return ""
End Function
' when a button is clicked on one of the thermostat forms, this function is called
' make sure the CommandName property of the control has been set
Protected Sub DataList1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs)
Dim s As String
Dim ThermNum As Integer = CInt(CType(e.Item.FindControl("LabelNumber"), Label).Text)
Dim cmd As String = e.CommandName
Select Case cmd
Case "SetHeatSetpoint"
s = CType(e.Item.FindControl("TextBoxHeatSet"), TextBox).Text
pi.CmdSetHeat(ThermNum, CDbl(s))
Case "SetCoolSetpoint"
s = CType(e.Item.FindControl("TextBoxCoolSet"), TextBox).Text
pi.CmdSetCool(ThermNum, CDbl(s))
' Fan
'Modes: 0=Auto, 1=On
Case "FanOn"
pi.CmdSetFan(ThermNum, 1)
Case "FanAuto"
pi.CmdSetFan(ThermNum, 0)
' Mode
'Modes: 0=Off, 1=Heat, 2=Cool, 3=Auto, 4=Aux (Aux only if supported)
Case "Auto"
pi.CmdSetMode(ThermNum, 3)
Case "Heat"
pi.CmdSetMode(ThermNum, 1)
Case "Cool"
pi.CmdSetMode(ThermNum, 2)
Case "Off"
pi.CmdSetMode(ThermNum, 0)
Case "Aux"
pi.CmdSetMode(ThermNum, 4)
' Hold
'Modes: 0=Off Hold, 1=Hold (If hold is supported.)
Case "Hold"
pi.CmdSetHold(ThermNum, 1)
Case "Run"
pi.CmdSetHold(ThermNum, 0)
Case "HoldOver"
pi.CmdSetHold(ThermNum, 2)
End Select
GetData()
End Sub
Protected Sub DataList2_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs)
Dim s As String
Dim ThermNum As Integer = CInt(CType(e.Item.FindControl("LabelNumber"), Label).Text)
Dim ZoneNum As Integer = CInt(CType(e.Item.FindControl("LabelNumberZone"), Label).Text)
Dim cmd As String = e.CommandName
Select Case cmd
Case "SetHeatSetpoint"
s = CType(e.Item.FindControl("TextBoxHeatSet"), TextBox).Text
pi.CmdSetHeat(ThermNum, CDbl(s), ZoneNum)
Case "SetCoolSetpoint"
s = CType(e.Item.FindControl("TextBoxCoolSet"), TextBox).Text
pi.CmdSetCool(ThermNum, CDbl(s), ZoneNum)
' Fan
'Modes: 0=Auto, 1=On
Case "FanOn"
pi.CmdSetFan(ThermNum, 1, ZoneNum)
Case "FanAuto"
pi.CmdSetFan(ThermNum, 0, ZoneNum)
' Mode
'Modes: 0=Off, 1=Heat, 2=Cool, 3=Auto, 4=Aux (Aux only if supported)
Case "Auto"
pi.CmdSetMode(ThermNum, 3, ZoneNum)
Case "Heat"
pi.CmdSetMode(ThermNum, 1, ZoneNum)
Case "Cool"
pi.CmdSetMode(ThermNum, 2, ZoneNum)
Case "Off"
pi.CmdSetMode(ThermNum, 0, ZoneNum)
Case "Aux"
pi.CmdSetMode(ThermNum, 4, ZoneNum)
' Hold
'Modes: 0=Off Hold, 1=Hold (If hold is supported.)
Case "Hold"
pi.CmdSetHold(ThermNum, 1, ZoneNum)
Case "Run"
pi.CmdSetHold(ThermNum, 0, ZoneNum)
Case "HoldOver"
pi.CmdSetHold(ThermNum, 2, ZoneNum)
End Select
GetData()
End Sub
Protected Sub DataList1_SelectedIndexChanged(sender As Object, e As System.EventArgs)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>RCS Serial Status</title>
<%Response.Write(GetHeadContent())%>
</head>
<body>
<% Response.Write(GetBodyContent())%>
<form id="form1" runat="server">
<div>
<table border="0" style="width: 50%">
<tr>
<td style="width: 100px" align="left">
<a href="RCSSerial-Config.aspx">Configure Thermostats</a>
<asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand"
onselectedindexchanged="DataList1_SelectedIndexChanged"
style="margin-right: 327px; margin-top: 0px">
<ItemTemplate>
<table style="border: solid thin gray; background-color: #f5f5f5; border-right: thin solid black;
border-top: thin solid black; border-left: black thin solid; border-bottom: black thin solid;"
cellpadding="0" cellspacing="0" id="Table1">
<tr>
<td rowspan="1" style="border-top-width: thin; border-left-width: thin; vertical-align: middle;
border-top-color: black; border-bottom: black thin solid; background-color: lightskyblue;
text-align: center; border-right-width: thin; border-right-color: black;">
<asp:Label ID="LabelStatName" runat="server" Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'
Font-Size="20pt"></asp:Label> </td>
</tr>
<tr>
<td rowspan="1" style="border-top-width: thin; border-left-width: thin;
vertical-align: middle; border-top-color: black; text-align: center; border-right-width: thin;
border-right-color: black;">
<asp:Panel ID="PanelSysSettings" runat="server" Style="font-size: 100%"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'
Height="90px" Width="637px">
<table cellpadding="0" cellspacing="0" style="border-right: black thin solid; border-top: black thin solid;
border-left: black thin solid; border-bottom: black thin solid; width: 90%; text-align: left;
margin-top: 10px; margin-bottom: 10px;" id="TABLE2">
<tr>
<td colspan="3" style="background-color: lightskyblue; text-align: center; border-bottom: black thin solid;">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="14pt" Text="System Settings"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'></asp:Label></td>
</tr>
<tr>
<td>
<asp:Label ID="LabelSystemMode" runat="server" Text="System Mode:" Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'
Font-Bold="True"></asp:Label></td>
<td>
<asp:Label ID="LabelMode" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Mode") %>'
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'></asp:Label></td>
<td>
<asp:Button ID="ButtonModeAuto" runat="server" Text="Auto" CssClass="formbutton"
CommandName="Auto" Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /><asp:Button
ID="ButtonModeHeat" runat="server" Text="Heat" CssClass="formbutton" CommandName="Heat"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /><asp:Button
ID="ButtonCool" runat="server" Text="Cool" CssClass="formbutton" CommandName="Cool"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /><asp:Button
ID="ButtonModeAux" runat="server" Text="Aux" Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'
CommandName="Aux" CssClass="formbutton" /><asp:Button ID="ButtonModeOff" runat="server"
Text="Off" CssClass="formbutton" CommandName="Off" Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /></td>
</tr>
<tr>
<td>
<asp:Label ID="LabelSystemFan" runat="server" Text="System Fan Mode:" Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'
Font-Bold="True"></asp:Label></td>
<td>
<asp:Label ID="LabelFan" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Fan") %>'
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'></asp:Label></td>
<td>
<asp:Button ID="ButtonFanOn" runat="server" Text="Fan On" CssClass="formbutton" CommandName="FanOn"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /><asp:Button
ID="ButtonFanAuto" runat="server" Text="Fan Auto" CssClass="formbutton" CommandName="FanAuto"
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>' /></td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="PanelSensorTempOnly" runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "OAVisible") %>'>
<table cellpadding="0" cellspacing="0" style="border: solid thin gray; border-right: black thin solid;
border-top: black thin solid; border-left: black thin solid; width: 90%; border-bottom: black thin solid;
text-align: left; margin-top: 10px; margin-bottom: 10px;">
<tr style="font-weight: bold; font-size: 12pt">
<td style="border-right: black thin solid; width: 99px; background-color: silver;
text-align: center">
<asp:Label ID="LabelMainTemp" runat="server" Font-Bold="True" Font-Italic="False"
Font-Size="26pt" Text='<%# DataBinder.Eval(Container.DataItem, "Temp") %>'></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td style="text-align: center">
<asp:DataList ID="DataList2" runat="server" DataSource='<%# DataBinder.Eval(Container.DataItem, "Zones") %>'
OnItemCommand="DataList2_ItemCommand"
Visible='<%# Not DataBinder.Eval(Container.DataItem, "OAVisible") %>'
style="margin-top: 45px">
<ItemTemplate>
<table cellpadding="0" cellspacing="0" style="border: solid thin gray; border-right: black thin solid;
border-top: black thin solid; border-left: black thin solid; width: 90%; border-bottom: black thin solid;
text-align: left; margin-top: 10px; margin-bottom: 10px;">
<tr>
<td colspan="4" rowspan="1" style="background-color: lightskyblue; text-align: center;
border-bottom: black thin solid;">
<asp:Label ID="LabelStatName" runat="server" Font-Bold="True" Font-Size="14pt" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'
Visible='<%# DataBinder.Eval(Container.DataItem, "SysVisible") %>'></asp:Label>
<asp:Label ID="LabelNumberZone" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Number") %>'
Visible="False"></asp:Label>
<asp:Label ID="LabelNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ThermID") %>'
Visible="False"></asp:Label></td>
</tr>
<tr>
<td rowspan="3" style="border-right: black thin solid; width: 150px; background-color: silver;
text-align: center">
<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Temp") %>' ID="LabelMainTemp"
runat="server" Font-Bold="True" Font-Size="26pt" Font-Italic="False"></asp:Label></td>
<td>
<strong>Heat</strong> <strong>Setpoint:</strong></td>
<td>
<asp:TextBox Text='<%# DataBinder.Eval(Container.DataItem, "HeatSetPoint") %>' ID="TextBoxHeatSet"
runat="server" Width="64px"></asp:TextBox></td>
<td>
<asp:Button ID="ButtonSetHeat" runat="server" Text="Set Heat Setpoint" CssClass="formbutton"
CommandName="SetHeatSetpoint" /></td>
</tr>
<tr>
<td>
<asp:Label ID="LabelCoolSetText" runat="server" Text="Cool Setpoint:" Visible='<%# DataBinder.Eval(Container.DataItem, "CoolSetPointVisible") %>'
Font-Bold="True" />
</td>
<td>
<asp:TextBox Text='<%# DataBinder.Eval(Container.DataItem, "CoolSetPoint") %>' ID="TextBoxCoolSet"
runat="server" Width="64px" Visible='<%# DataBinder.Eval(Container.DataItem, "CoolSetPointVisible") %>' />
</td>
<td>
<asp:Button ID="ButtonSetCool" runat="server" Text="Set Cool Setpoint" CssClass="formbutton"
EnableTheming="False" CommandName="SetCoolSetpoint" Visible='<%# DataBinder.Eval(Container.DataItem, "CoolSetPointVisible") %>' /></td>
</tr>
<tr>
<td>
<strong>Mode:</strong></td>
<td>
<asp:Label ID="LabelMode" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Mode") %>' />
</td>
<td>
<asp:Button ID="ButtonModeAuto" runat="server" Text="Auto" CssClass="formbutton"
CommandName="Auto" />
<asp:Button ID="ButtonModeHeat" runat="server" Text="Heat" CssClass="formbutton"
CommandName="Heat" />
<asp:Button ID="ButtonCool" runat="server" Text="Cool" CssClass="formbutton" CommandName="Cool" />
<asp:Button ID="ButtonModeAux" runat="server" Text="Aux" CommandName="Aux" CssClass="formbutton" />
<asp:Button ID="ButtonModeOff" runat="server" Text="Off" CssClass="formbutton" CommandName="Off" />
</td>
</tr>
<tr>
<td rowspan="2" style="border-right: black thin solid; border-top: black thin solid;
background-color: gainsboro">
<asp:Label ID="LabelRS" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="12pt"
Text='<%# DataBinder.Eval(Container.DataItem, "RS") %>' /></td>
<td>
<strong>Fan Mode:</strong>
</td>
<td>
<asp:Label ID="LabelFan" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Fan") %>' />
</td>
<td>
<asp:Button ID="ButtonFanOn" runat="server" Text="Fan On" CssClass="formbutton" CommandName="FanOn" />
<asp:Button ID="ButtonFanAuto" runat="server" Text="Fan Auto" CssClass="formbutton"
CommandName="FanAuto" /></td>
</tr>
<tr>
<td>
<asp:Label ID="LabelHoldText" runat="server" Font-Bold="True" Text="Hold:" Visible='<%# DataBinder.Eval(Container.DataItem, "HoldVisible") %>' />
</td>
<td>
<asp:Label ID="LabelHold" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Hold") %>'
Visible='<%# DataBinder.Eval(Container.DataItem, "HoldVisible") %>' /></td>
<td>
<asp:Button ID="ButHoldHold" runat="server" CssClass="formbutton" Text="Hold" CommandName="Hold"
Visible='<%# DataBinder.Eval(Container.DataItem, "HoldVisible") %>' />
<asp:Button ID="ButHoldNormal" runat="server" CssClass="formbutton" Text="Run"
CommandName="Run" Visible='<%# DataBinder.Eval(Container.DataItem, "HoldVisible") %>' />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
<tr>
<td style="background-color: gainsboro; text-align: center; border-top: thin solid black;">
<asp:Label ID="LabelStatus" runat="server" Style="color: green" Text=''></asp:Label>
<asp:Label ID="LabelNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Number") %>'
Visible="False"></asp:Label></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
<td align="right">
<a href="RCS Help File\RCSSerial-Help.htm">Help Page</a>
</td>
</tr>
</table>
<asp:Label ID="LabelNoStats" runat="server" Font-Bold="True"></asp:Label>
</div>
</form>
<% Response.Write(Me.GetFooterContent())%>
</body>
</html>