<%@ page language="C#" autoeventwireup="true" inherits="RealTimeDisplay, App_Web_realtimedisplay.aspx.b1e99372" enableEventValidation="false" %>

<%@ Register Src="~/UserControls/ucOnline.ascx" TagName="iERPLift" TagPrefix="iERPLift" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPUtilityBar.ascx" TagName="iERPUtilityBar" TagPrefix="dsip" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
   
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" language="Javascript" src="../FusionCharts/FusionCharts.js"></script>
    


    
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">
       
        function resizeObject() {

            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            //window.resizeTo(w, h);
            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 50) + "px";
            }

        }


        function validateRecord() {
            var doc = document.forms[0];

            return true;
        }

    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="Form1" runat="server" class="tablefont">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="real-time-summary-bg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <table style="width: 100%; table-layout: fixed;">
                        <tr>
                            <td class="headerbg" align="left" style="border-style: none; height: 26px; width: 100%;
                                position: absolute; left: 1px; top: 8px;">
                                <asp:Label ID="lblCaption" runat="server" Text="Real Time Display" Width="100%" Font-Bold="true"
                                    Font-Names="Tahoma" ForeColor="AntiqueWhite" Font-Size="Medium"></asp:Label>
                            </td>
                        </tr>
                        <tr height="40px">
                            <td>
                                &nbsp
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnLoginComments" runat="server" Value="" />
                            <asp:HiddenField ID="hdnVersion" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnEquipmenttypeGroup" runat="server" Value="0" />
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" style="vertical-align: top;" align="left" cellpadding="1" cellspacing="0"
                                    border="0">
                                    <tr>
                                        <td>
                                            <table>
                                                <tr>
                                                    <td width="20%" align="left" valign="top">
                                                        Equipment
                                                    </td>
                                                    <td width="80%">
                                                        <asp:DropDownList ID="cmbInstrument" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbInstrument_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                        </td>
                                    </tr>
                                    <asp:Panel ID="pnlData" runat="server" Visible="true">
                                        <tr>
                                            <td class="real-time-summary-bg">
                                                <table cellspacing="2" cellpadding="2" width="100%" align="center" border="0">
                                                    <tr height="25px">
                                                        <td width="10%" class="real-time-realHeading">
                                                        Parameter
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh1">
                                                            <asp:Label ID="lblCH1" runat="server" Width="100%">CH 1</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh2">
                                                            <asp:Label ID="lblCH2" runat="server" Width="100%">CH 2</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh3">
                                                            <asp:Label ID="lblCH3" runat="server" Width="100%">CH 3</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh4">
                                                            <asp:Label ID="lblCH4" runat="server" Width="100%">CH 4</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh5">
                                                            <asp:Label ID="lblCH5" runat="server" Width="100%">CH 5</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh6">
                                                            <asp:Label ID="lblCH6" runat="server" Width="100%">CH 6</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh7">
                                                            <asp:Label ID="lblCH7" runat="server" Width="100%">CH 7</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh8">
                                                            <asp:Label ID="lblCH8" runat="server" Width="100%">CH 8</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh9">
                                                            <asp:Label ID="lblCH9" runat="server" Width="100%">CH 9</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading" runat="server" id="tdCh10">
                                                            <asp:Label ID="lblCH10" runat="server" Width="100%">CH 10</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdST" class="real-time-realHeading1">
                                                            ST
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdEST" class="real-time-realHeading1">
                                                            EST
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdLLA" class="real-time-realHeading1">
                                                            LLA
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading1">
                                                            LA
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading1">
                                                            SV
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading1">
                                                            HA
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdHHA" class="real-time-realHeading1">
                                                            HHA
                                                        </td>
                                                    </tr>
                                                    <tr height="25px">
                                                        <td width="10%" class="real-time-realHeading">
                                                            <asp:Label ID="lblTempratureSettings" runat="server" Width="100%">Temperature</asp:Label>
                                                        </td>
                                                        <td colspan="10">
                                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Timer ID="tmrTemp" runat="server" Interval="3000" Enabled="true" OnTick="tmrTemp_Tick">
                                                                    </asp:Timer>
                                                                    <asp:DataList ID="DLParameterT" runat="server" RepeatColumns="10" RepeatDirection="Horizontal"
                                                                        BorderColor="#336699" BorderStyle="Solid" BorderWidth="0px" HorizontalAlign="Left"
                                                                        CellPadding="1" CellSpacing="1" OnItemDataBound="DLProductT_ItemDataBound" Style="table-layout: auto;"
                                                                        HeaderStyle-Width="10%">
                                                                        <SeparatorStyle HorizontalAlign="Left" BorderColor="Black" BorderStyle="Solid" />
                                                                        <ItemTemplate>
                                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td align="center" class="real-time-summary-text2" id="td" runat="server">
                                                                                        <asp:Label ID="lblParameterRealValue" runat="server" Text='<%# Eval("ParameterRealValue") %>'
                                                                                            Width="100%" Style="word-break: break-all;"></asp:Label>
                                                                                    </td>
                                                                                </tr>
                                                                                <asp:HiddenField ID="hdnParameterType" runat="server" Value='<%# Eval("ParameterType") %>' />
                                                                            </table>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemStyle VerticalAlign="Top" />
                                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="10%" Wrap="True" />
                                                                    </asp:DataList>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdTST" class="real-time-realHeading2">
                                                            <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Label ID="txtSoakTime" runat="server" Width="100%">0</asp:Label>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="tmrTemp" EventName="Tick" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdTEST" class="real-time-realHeading2">
                                                            <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Label ID="txtElaspsedSoakTime" runat="server" Width="100%">0</asp:Label>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="tmrTemp" EventName="Tick" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdTLLA" class="real-time-realHeading2">
                                                            <asp:Label ID="txtTempratureLowerLowerLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:UpdatePanel ID="UpdatePanel6" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Label ID="txtTempratureLowerLimit" runat="server" Width="100%">0</asp:Label>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="tmrTemp" EventName="Tick" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Label ID="txtTempratureSetValue" runat="server" Width="100%">0</asp:Label>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="tmrTemp" EventName="Tick" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Label ID="txtTempratureUpperLimit" runat="server" Width="100%">0</asp:Label>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="tmrTemp" EventName="Tick" />
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdTHHA" class="real-time-realHeading2">
                                                            <asp:Label ID="txtTempratureUpperUpperLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr id="trHumidity" runat="server" height="25px">
                                                        <td width="10%" class="real-time-realHeading">
                                                            <asp:Label ID="lblHumiditySetting" runat="server" Width="100%">Humidity</asp:Label>
                                                        </td>
                                                        <td colspan="10">
                                                            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <asp:Timer ID="Timer1" runat="server" Interval="3000" Enabled="true" OnTick="tmrTemp_Tick">
                                                                    </asp:Timer>
                                                                    <asp:DataList ID="DLParameterH" runat="server" RepeatColumns="10" RepeatDirection="Horizontal"
                                                                        BorderColor="#336699" BorderStyle="Solid" BorderWidth="0px" HorizontalAlign="Left"
                                                                        CellPadding="1" CellSpacing="1" OnItemDataBound="DLProductH_ItemDataBound" Style="table-layout: fixed;"
                                                                        HeaderStyle-Width="10%">
                                                                        <SeparatorStyle HorizontalAlign="Left" BorderColor="Black" BorderStyle="Solid" />
                                                                        <ItemTemplate>
                                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td align="center" class="real-time-summary-text2" id="td" runat="server">
                                                                                        <asp:Label ID="lblParameterRealValue" runat="server" Text='<%# Eval("ParameterRealValue") %>'
                                                                                            Width="100%" Style="word-break: break-all;"></asp:Label>
                                                                                    </td>
                                                                                    <asp:HiddenField ID="hdnParameterType" runat="server" Value='<%# Eval("ParameterType") %>' />
                                                                                </tr>
                                                                            </table>
                                                                        </ItemTemplate>
                                                                        <AlternatingItemStyle VerticalAlign="Top" />
                                                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="10%" Wrap="True" />
                                                                    </asp:DataList>
                                                                </ContentTemplate>
                                                                <Triggers>
                                                                </Triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdHLLA" class="real-time-realHeading2">
                                                            <asp:Label ID="txtHumidityLowerLowerLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:Label ID="txtHumidityLowerLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:Label ID="txtHumiditySetValue" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" class="real-time-realHeading2">
                                                            <asp:Label ID="txtHumidityUpperLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                        <td align="center" width="6%" runat="server" id="tdHHHA" class="real-time-realHeading2">
                                                            <asp:Label ID="txtHumidityUpperUpperLimit" runat="server" Width="100%">0</asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="real-time-summary-bg">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                                    <ContentTemplate>
                                                        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                                            <tr>
                                                                <td align="center">
                                                                    <asp:Literal ID="LitLine" runat="server"></asp:Literal>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                    </Triggers>
                                                </asp:UpdatePanel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table width="100%" align="center" cellpadding="2" cellspacing="2" border="0" id="tblReplot"
                                                    runat="server">
                                                    <tr>
                                                        <td align="center" class="real-time-realHeading" width="8%">
                                                            PLL
                                                        </td>
                                                        <td align="center" class="real-time-realHeading2" width="8%">
                                                            <asp:TextBox ID="txtPLL" runat="server" CssClass="numInput" MaxLength="4" Width="50px"
                                                                BackColor="#c4f7e6">0</asp:TextBox>
                                                        </td>
                                                        <td align="center" width="8%">
                                                        </td>
                                                        <td align="center" class="real-time-realHeading" width="8%">
                                                            PUL
                                                        </td>
                                                        <td align="center" class="real-time-realHeading2" width="8%">
                                                            <asp:TextBox ID="txtPUL" runat="server" CssClass="numInput" MaxLength="4" Width="50px"
                                                                BackColor="#c4f7e6">0</asp:TextBox>
                                                        </td>
                                                        <td align="center" width="8%">
                                                        </td>
                                                        <td align="center" class="real-time-realHeading" width="8%">
                                                            SLL
                                                        </td>
                                                        <td align="center" class="real-time-realHeading2" width="8%">
                                                            <asp:TextBox ID="txtSLL" runat="server" CssClass="numInput" MaxLength="4" Width="50px"
                                                                BackColor="#c4f7e6">0</asp:TextBox>
                                                        </td>
                                                        <td align="center" width="8%">
                                                        </td>
                                                        <td align="center" class="real-time-realHeading" width="8%">
                                                            SUL
                                                        </td>
                                                        <td align="center" class="real-time-realHeading2" width="8%">
                                                            <asp:TextBox ID="txtSUL" runat="server" CssClass="numInput" MaxLength="4" Width="50px"
                                                                BackColor="#c4f7e6">0</asp:TextBox>
                                                        </td>
                                                        <td align="center">
                                                            <asp:ImageButton runat="server" ID="imgbtnReplot" BorderStyle="None" ImageAlign="AbsMiddle"
                                                                ImageUrl="~/Images/replot.png" OnClick="imgbtnReplot_Click" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </asp:Panel>
                                </table>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>

    <script type="text/javascript">

        var xPos, yPos;
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_beginRequest(BeginRequestHandler);
        prm.add_endRequest(EndRequestHandler);
        function BeginRequestHandler(sender, args) {
            xPos = $get('<%=divChildBody.ClientID %>').scrollLeft;
            yPos = $get('<%=divChildBody.ClientID %>').scrollTop;
        }
        function EndRequestHandler(sender, args) {
            $get('<%=divChildBody.ClientID %>').scrollLeft = xPos;
            $get('<%=divChildBody.ClientID %>').scrollTop = yPos;
        }
    </script>

</body>
</html>
