<%@ page language="C#" autoeventwireup="true" inherits="ImportDataLog, App_Web_importdatalog.aspx.92002ead" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPToolBar.ascx" TagName="iERPToolBar" TagPrefix="dsit" %>
<!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 language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script language="javascript">

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

            cObj = document.getElementById("<%#pnlGridDevice.ClientID%>");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 250) + "px";
                cObj.style.width = (parseInt(w) - 20) + "px";
            }

            var cObj = document.getElementById("<%#divProb.ClientID %>");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = parseInt(h) + "px";
            }
            var cObj = document.getElementById("<%#pnlProb.ClientID %>");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 50) + "px";
            }
            var cObj = document.getElementById("<%#pnlGridProb.ClientID %>");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 80) + "px";
            }
            hideWait();
        }
        function ClearName() {
            var doc = document.forms[0];
            doc.ImpFU.value = "";
        }

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

            if (Trim(doc.hdnGRowCount.value) == "0") {
                alert("Please Import Data Log File...");
                return false;
            }
            else {
                return true;
            }
        }

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

            return true;
        }

        function ShowPnlProb() {
            var cObj = document.getElementById("<%#divProb.ClientID %>");
            //cObj.style.top = "20px";
            if (cObj != null) {
                cObj.style.visibility = "visible";
                cObj.style.display = "block";
            }
        }

        function HidePnlProb() {
            var cObj = document.getElementById("<%#divProb.ClientID %>");
            if (cObj != null) {
                cObj.style.visibility = "hidden";
                cObj.style.display = "none";
            }
            return false;
        }

        function ImportName() {
            var ImgTL = document.getElementById("<%#ImpFU.ClientID %>");

            var fileExt = Trim(ImgTL.value);
            if (fileExt != "") {
                var filename = Split(fileExt, "\\");
                var counter = 0;
                for (x in filename) {
                    counter = counter + 1;
                }
                var name1 = filename[counter - 1];
                //                if (name1.toUpperCase() == "NEWTLOGS.NEC")
                if (name1.toUpperCase().search("_L.NEC") != -1) {
                    //                    txtImportCaption.value = name1;
                }
                else {
                    alert("Please Select DataLog File Only...".toUpperCase());
                    var Imgbtn = document.getElementById("<%#imgbtnClear.ClientID %>");
                    Imgbtn.click();
                }

            }
        }

       			
    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); resizeHolder(); init();">
    <form id="Form1" runat="server" class="formbg">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="formbg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <div id="divHeader" runat="server" style="border-style: none; height: 26px; width: 100%;
                        position: absolute; left: 1px; top: 8px;" align="center">
                        <dsit:iERPToolBar ID="iERPToolBar1" runat="server" Caption="" PageAccess="11111"
                            ValidateLogin="true" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEquipmentId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEquipmentType" runat="server" Value="" />
                            <asp:HiddenField ID="hdnstatus" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnLoginComments" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnGRowCount" runat="server" Value="0" />
                            <asp:Timer ID="tmrDataLog" runat="server" Interval="10" Enabled="false" OnTick="tmrDataLog_Tick">
                            </asp:Timer>
                            <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" class="tablefont">
                                    <tr height="62px">
                                        <td colspan="5">
                                            &nbsp
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Instrument Name
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmentName" runat="server" Width="70%" MaxLength="50" ReadOnly="true"></asp:TextBox>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                            Status
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtStatus" runat="server" Width="30%" MaxLength="50" ReadOnly="true"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            IP Address
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmentId1" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId2" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId3" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId4" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Login Interval
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmnetLogRate" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            &nbsp mins (Max 480)
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                            Active Probes
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtActiveChannel" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="10%" height="25">
                                            Select File*
                                        </td>
                                        <td align="left" width="40%" valign="middle">
                                            <input onkeypress="suppresskey();" onchange="ImportName();" id="ImpFU" style="width: 90%;
                                                border-top-style: groove; border-right-style: groove; border-left-style: groove;
                                                height: 20px; border-bottom-style: groove" type="file" name="fileUpload" runat="server" size="50" />
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td align="left" colspan="2" width="49%" valign="middle">
                                            <asp:ImageButton ID="imgbtnProb" runat="server" ImageUrl="~/ToolBarIcon/channel.png"
                                                BackColor="Transparent" ToolTip="Parameter Description" OnClick="imgbtnProb_Click" />&nbsp;
                                            <asp:ImageButton ID="imgbtnClear" runat="server" ImageUrl="~/ToolBarIcon/data-clear.png"
                                                BackColor="Transparent" OnClientClick="ClearName();" ToolTip="Clear" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            Page Size
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:TextBox ID="txtGridPageSize" runat="server" CssClass="numInput" Width="15%"
                                                MaxLength="5">25</asp:TextBox>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                        </td>
                                        <td width="40%" align="left">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="5">
                                            <asp:Button ID="BtnImport" runat="server" CssClass="submit" Height="25px" Text="Import"
                                                Width="100px" BorderWidth="0px" OnClick="BtnImport_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" colspan="5">
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" style="vertical-align: top;" align="left" cellpadding="1" cellspacing="0"
                                    border="0" class="tablefont">
                                    <tr>
                                        <td class="frametitle" align="center" style="height: 20px" width="98%">
                                            <font size="2"><b></b>&nbsp;<strong>[Records Found :
                                                <asp:Label ID="lblreccount" runat="server"></asp:Label>]</strong> </font>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="pnlGridDevice" ScrollBars="Auto" runat="server" Visible="true" Width="99%">
                                                <asp:GridView ID="GVDevice" Width="100%" runat="server" CellPadding="0" AllowSorting="false"
                                                    AutoGenerateColumns="False" OnRowDataBound="ItemDataBound" BorderColor="#E0E4EA"
                                                    AllowPaging="true" OnPageIndexChanging="ChangePage" PageSize="25">
                                                    <Columns>
                                                        <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="LogDateTime" HeaderText="Log Date Time">
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="10%"></HeaderStyle>
                                                            <ItemStyle CssClass="" Width="10%" HorizontalAlign="Center"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="CH1 <br> CH2">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH1" runat="server" Text='<%# Eval("SensorValue1")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH2" runat="server" Text='<%# Eval("SensorValue2")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH3 <br> CH4">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH3" runat="server" Text='<%# Eval("SensorValue3")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH4" runat="server" Text='<%# Eval("SensorValue4")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH5 <br> CH6">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH5" runat="server" Text='<%# Eval("SensorValue5")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH6" runat="server" Text='<%# Eval("SensorValue6")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH7 <br> CH8">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH7" runat="server" Text='<%# Eval("SensorValue7")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH8" runat="server" Text='<%# Eval("SensorValue8")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH9 <br> CH10">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH9" runat="server" Text='<%# Eval("SensorValue9")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH10" runat="server" Text='<%# Eval("SensorValue10")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH11 <br> CH12">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH11" runat="server" Text='<%# Eval("SensorValue11")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH12" runat="server" Text='<%# Eval("SensorValue12")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH13 <br> CH14">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH13" runat="server" Text='<%# Eval("SensorValue13")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH14" runat="server" Text='<%# Eval("SensorValue14")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH15 <br> CH16">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH15" runat="server" Text='<%# Eval("SensorValue15")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH16" runat="server" Text='<%# Eval("SensorValue16")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH17 <br> CH18">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH17" runat="server" Text='<%# Eval("SensorValue17")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH18" runat="server" Text='<%# Eval("SensorValue18")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH19 <br> CH20">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH19" runat="server" Text='<%# Eval("SensorValue19")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH20" runat="server" Text='<%# Eval("SensorValue20")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH21 <br> CH22">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH21" runat="server" Text='<%# Eval("SensorValue21")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH22" runat="server" Text='<%# Eval("SensorValue22")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH23 <br> CH24">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH23" runat="server" Text='<%# Eval("SensorValue23")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH24" runat="server" Text='<%# Eval("SensorValue24")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH25 <br> CH26">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH25" runat="server" Text='<%# Eval("SensorValue25")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH26" runat="server" Text='<%# Eval("SensorValue26")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH27 <br> CH28">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH27" runat="server" Text='<%# Eval("SensorValue27")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH28" runat="server" Text='<%# Eval("SensorValue28")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH29 <br> CH30">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH29" runat="server" Text='<%# Eval("SensorValue29")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH30" runat="server" Text='<%# Eval("SensorValue30")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="CH31 <br> CH32">
                                                            <ItemTemplate>
                                                                <table width="100%" cellpadding="3" cellspacing="2">
                                                                    <tr width="100%">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH31" runat="server" Text='<%# Eval("SensorValue31")%>' Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr width="100%" style="background-color: LightGrey;">
                                                                        <td align="center">
                                                                            <asp:Label ID="lblCH32" runat="server" Text='<%# Eval("SensorValue32")%>' Font-Bold="true"
                                                                                Width="100%"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="6%" />
                                                            <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                    <PagerSettings Position="TopAndBottom" />
                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                    <RowStyle CssClass="DGR_ITEM" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:PostBackTrigger ControlID="BtnImport" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <div id="divProb" runat="server" align="center" style="width: 100%; height: 1500px;
                        top: 0px; left: 0px; position: absolute; visibility: hidden; display: none; background-color: #333333;
                        padding-left: 10%; text-align: center; vertical-align: middle; filter: alpha(opacity=100);
                        opacity: 10.90;">
                        <br />
                        <asp:Panel ID="pnlProb" runat="server" BorderColor="Silver" BorderStyle="Ridge" BackColor="White"
                            BorderWidth="5" Width="70%">
                            <table id="Table1" cellspacing="0" cellpadding="0" width="99%" align="center" class="formbg">
                                <%--style="background-color: #FFFFFF; filter: alpha(opacity=205); opacity: 0.200;">--%>
                                <tr>
                                    <td valign="top" align="center">
                                        <table class="subtitle" id="Table2" cellspacing="1" cellpadding="1" width="100%"
                                            align="center" border="0">
                                            <tr>
                                                <td align="left">
                                                    <b>&nbsp;Parameter Description</b>
                                                </td>
                                                <td align="right">
                                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/ToolBarIcon/Cancel.png"
                                                        BackColor="Transparent" OnClientClick="return HidePnlProb();" ToolTip="Close" />
                                                </td>
                                            </tr>
                                        </table>
                                        <table class="formbg" id="Table3" cellspacing="0" cellpadding="0" width="100%" align="left"
                                            border="0">
                                            <tr align="left">
                                                <td>
                                                    <asp:Panel ID="pnlGridProb" runat="server" ScrollBars="Auto" Width="100%" CssClass="panelgrid">
                                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                                            <ContentTemplate>
                                                                <asp:GridView ID="GVProb" Width="100%" runat="server" CellPadding="2" CellSpacing="0"
                                                                    AllowSorting="false" AllowPaging="false" AutoGenerateColumns="False" AlternatingRowStyle-CssClass="DGR_ALTERNATE"
                                                                    RowStyle-CssClass="DGR_ITEM" HeaderStyle-CssClass="DGR_HEADER" HeaderStyle-Height="25px"
                                                                    BorderColor="#E0E4EA">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Parameter Label" ItemStyle-Width="70%" HeaderStyle-CssClass="DGR_HEADER">
                                                                            <ItemTemplate>
                                                                                &nbsp;CH<asp:Label ID="lblCaption" runat="server" Text='<%# ((GridViewRow) Container).RowIndex+1 %>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle CssClass="DGR_HEADER" Width="10%"></HeaderStyle>
                                                                            <ItemStyle Width="10%" HorizontalAlign="Center"></ItemStyle>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="ParameterName" HeaderText="Parameter Name">
                                                                            <HeaderStyle CssClass="DGR_HEADER"></HeaderStyle>
                                                                            <ItemStyle CssClass="" Width="60%"></ItemStyle>
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="ParameterUnit" HeaderText="Parameter Unit">
                                                                            <HeaderStyle CssClass="DGR_HEADER"></HeaderStyle>
                                                                            <ItemStyle CssClass="" Width="30%" HorizontalAlign="Center"></ItemStyle>
                                                                        </asp:BoundField>
                                                                    </Columns>
                                                                    <RowStyle CssClass="DGR_ITEM" />
                                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                                    <AlternatingRowStyle CssClass="DGR_ALTERNATE" />
                                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                                    <PagerSettings Position="TopAndBottom" />
                                                                </asp:GridView>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
