<%@ page language="C#" autoeventwireup="true" enableeventvalidation="false" inherits="DataLog, App_Web_datalog.aspx.fe996db7" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPDataLogPrintBar.ascx" TagName="iERPDataLogPrintBar"
    TagPrefix="dsip" %>
<%@ Register Src="~/UserControls/ucChart.ascx" TagName="ucChart" TagPrefix="ucChart" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<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" src="../App_Include/JavaScript/swfobject.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 doc = document.forms[0];
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;


            doc.hdnGWidth.value = w - 100;
            doc.hdnGHeight.value = h - 150;

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

            var cObj = document.getElementById("<%#divGraph.ClientID %>");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 10) + "px";
            }

            var cObj = document.getElementById("<%#pnlGraph.ClientID %>");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 50) + "px";

            }

            cObj = document.getElementById("<%#PanelSearchEntry.ClientID%>");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 200) + "px";
            }

            hideWait();
        }

        function validateRecord() {
            var doc = document.forms[0];
            if (doc.cmbInstrument.selectedIndex == 0) 
            {
                alert("Select Equipment...");
                doc.cmbInstrument.focus();
                return false;
            }
            var date1=document.getElementById("<%#txtFromDate.ClientID%>");
            var date2=document.getElementById("<%#txtToDate.ClientID%>");
            
            if (date1 !=null)
            {
                var theDate1=new Date(Date.parse(date1.value));
            }
            else
            {
             return false;
            }
            
            if(date2 !=null)
            {
                var theDate2=new Date(Date.parse(date2.value));
            }           
            else
            {
            return false;
            }
            
            var calDiff=0;
            if (theDate1%4==0 || theDate2%4==0)
            {
            calDiff =366;
            }
            else
            {
            calDiff =365;
            }
            
            var diff=dayDiff(theDate1,theDate2);
            if (parseInt(diff) >calDiff) 
            {
                alert("Invalid Date  Range! Please select date with in range of 1 year.");
                date1.focus();
                return false;
            }
            return true;
        }
        function dayDiff(date1,date2)
                {
                    var one_day=1000*60*60*24;

                    var date1_ms=date1.getTime();

                    var date2_ms=date2.getTime();
                    var difference_ms=date2_ms -date1_ms;
                    return Math.round(difference_ms/one_day);
                    }

        
        function validatePrint() {
            var doc = document.forms[0];
            if (doc.cmbInstrument.selectedIndex == 0) {
                alert("Select Equipment...");
                doc.cmbInstrument.focus();
                return false;
            }
            return true;

        }



        function ShowPnlGraph() {
            var cObj = document.getElementById("divGraph");
            if (cObj != null) {
                cObj.style.visibility = "visible";
                cObj.style.display = "block";
            }
        }
        function HidePnlGraph() {
            var cObj = document.getElementById("divGraph");
            if (cObj != null) {
                cObj.style.visibility = "hidden";
                cObj.style.display = "none";
            }
        }
        function unloadpage() {
            var cObj = document.getElementById("btnUnload");
            if (cObj != null) {
                cObj.click();
            }
        }
               

    </script>
    
     <script type="text/javascript">
                function checkDate(sender, args) {
            if (sender._selectedDate > new Date()) {
                alert("You cannot select a Future date than today!");
                sender._selectedDate = new Date();
                // set the date back to the current date
                sender._textbox.set_Value(sender._selectedDate.format(sender._format))
                        }

        }
    </script>

    <script language="javascript" type="text/javascript">
        function Print(prompt, frame) {

            IdPrint.style.visibility = "hidden";
            factory.printing.portrait = "false";
            factory.printing.Print(true);
            IdPrint.style.visibility = "visible";
        }
    </script>

    <script language="javascript">

        function CloseWindow() {

            window.open('', '_self', '');

            window.close();

        }

    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); resizeHolder(); init(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);"
    onunload="unloadpage();">
    <object id="factory" style="display: none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
        codebase="../smsx.cab">
    </object>
    <form id="Form1" runat="server" class="tablefont" target="_blank">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />

    <script type="text/javascript">

        FusionCharts.printManager.enabled(true);
        FusionCharts.addEventListener(FusionChartsEvents.PrintReadyStateChange, function(identifier, parameter) { if (parameter.ready) { alert("Chart is now ready for printing."); document.getElementById('imgbtnPrint').disabled = false; } });    
            
    </script>

    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="tablefont">
        <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">
                        <dsip:iERPDataLogPrintBar ID="iERPDataLogPrintBar1" runat="server" Caption="Report Builder"
                            PageAccess="11111" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnGWidth" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnGHeight" runat="server" Value="0" />
                            <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="hdnRecordKeys" runat="server" Value="" />
                            <asp:HiddenField ID="hdnGRowCount" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnLogType" runat="server" Value="" />
                            <asp:HiddenField ID="hdnReviewedApproved" runat="server" Value="" />
                            <asp:HiddenField ID="hdnFromDateTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnToDateTime" runat="server" Value="" />
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr height="62px">
                                        <td colspan="5">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left" valign="middle">
                                            Equipment
                                        </td>
                                        <td width="40%">
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td align="left" width="30%">
                                                        <asp:DropDownList ID="cmbInstrument" runat="server" OnSelectedIndexChanged="cmbInstrument_SelectedIndexChanged"
                                                            AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td align="left">
                                                        &nbsp;<asp:ImageButton ID="ibtGraph" runat="server" ImageUrl="~/ToolBarIcon/Graph.png"
                                                            Height="30px" Width="32px" ToolTip="Graph" BackColor="Transparent" OnClick="ibtGraph_Click"
                                                            Visible="false" />
                                                        <asp:Button ID="btnUnload" runat="server" OnClick="btnUnload_Click" Style="display: none;" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left" valign="middle">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            From Date
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:TextBox ID="txtFromDate" runat="server" CssClass="dateInput" MaxLength="20"
                                                onBlur="GetDateField(this);" onFocus="SetDateField(this);" ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ]"
                                                Width="25%"></asp:TextBox>
                                            <img id="imgCal1" style="cursor: pointer;" runat="server" alt="Click to Show Calendar"
                                                align="middle" src="../Images/date.gif" />
                                            <asp:CalendarExtender ID="cal1" runat="server" PopupButtonID="imgCal1" TargetControlID="txtFromDate"
                                                Format="dd-MMM-yyyy" CssClass="zcCalendar" Enabled="True">
                                            </asp:CalendarExtender>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                            To Date
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:TextBox ID="txtToDate" runat="server" CssClass="dateInput" MaxLength="20" onBlur="GetDateField(this);"
                                                onFocus="SetDateField(this);" ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ]"
                                                Width="25%"></asp:TextBox>
                                            <img id="imgCal2" style="cursor: pointer;" runat="server" alt="Click to Show Calendar"
                                                align="middle" src="../Images/date.gif" />
                                            <asp:CalendarExtender ID="cal2" runat="server" PopupButtonID="imgCal2" TargetControlID="txtToDate"
                                                Format="dd-MMM-yyyy" CssClass="zcCalendar" Enabled="True" OnClientDateSelectionChanged="checkDate">
                                            </asp:CalendarExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            From Time
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:DropDownList ID="cmbFromHours" runat="server">
                                                <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbFromMins" runat="server">
                                                <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                                <asp:ListItem Value="24">24</asp:ListItem>
                                                <asp:ListItem Value="25">25</asp:ListItem>
                                                <asp:ListItem Value="26">26</asp:ListItem>
                                                <asp:ListItem Value="27">27</asp:ListItem>
                                                <asp:ListItem Value="28">28</asp:ListItem>
                                                <asp:ListItem Value="29">29</asp:ListItem>
                                                <asp:ListItem Value="30">30</asp:ListItem>
                                                <asp:ListItem Value="31">31</asp:ListItem>
                                                <asp:ListItem Value="32">32</asp:ListItem>
                                                <asp:ListItem Value="33">33</asp:ListItem>
                                                <asp:ListItem Value="34">34</asp:ListItem>
                                                <asp:ListItem Value="35">35</asp:ListItem>
                                                <asp:ListItem Value="36">36</asp:ListItem>
                                                <asp:ListItem Value="37">37</asp:ListItem>
                                                <asp:ListItem Value="38">38</asp:ListItem>
                                                <asp:ListItem Value="39">39</asp:ListItem>
                                                <asp:ListItem Value="40">40</asp:ListItem>
                                                <asp:ListItem Value="41">41</asp:ListItem>
                                                <asp:ListItem Value="42">42</asp:ListItem>
                                                <asp:ListItem Value="43">43</asp:ListItem>
                                                <asp:ListItem Value="44">44</asp:ListItem>
                                                <asp:ListItem Value="45">45</asp:ListItem>
                                                <asp:ListItem Value="46">46</asp:ListItem>
                                                <asp:ListItem Value="47">47</asp:ListItem>
                                                <asp:ListItem Value="48">48</asp:ListItem>
                                                <asp:ListItem Value="49">49</asp:ListItem>
                                                <asp:ListItem Value="50">50</asp:ListItem>
                                                <asp:ListItem Value="51">51</asp:ListItem>
                                                <asp:ListItem Value="52">52</asp:ListItem>
                                                <asp:ListItem Value="53">53</asp:ListItem>
                                                <asp:ListItem Value="54">54</asp:ListItem>
                                                <asp:ListItem Value="55">55</asp:ListItem>
                                                <asp:ListItem Value="56">56</asp:ListItem>
                                                <asp:ListItem Value="57">57</asp:ListItem>
                                                <asp:ListItem Value="58">58</asp:ListItem>
                                                <asp:ListItem Value="59">59</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                            To Time
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:DropDownList ID="cmbToHours" runat="server">
                                                <asp:ListItem Value="00">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23" Selected="True">23</asp:ListItem>
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbToMins" runat="server">
                                                <asp:ListItem Value="00">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                                <asp:ListItem Value="24">24</asp:ListItem>
                                                <asp:ListItem Value="25">25</asp:ListItem>
                                                <asp:ListItem Value="26">26</asp:ListItem>
                                                <asp:ListItem Value="27">27</asp:ListItem>
                                                <asp:ListItem Value="28">28</asp:ListItem>
                                                <asp:ListItem Value="29">29</asp:ListItem>
                                                <asp:ListItem Value="30">30</asp:ListItem>
                                                <asp:ListItem Value="31">31</asp:ListItem>
                                                <asp:ListItem Value="32">32</asp:ListItem>
                                                <asp:ListItem Value="33">33</asp:ListItem>
                                                <asp:ListItem Value="34">34</asp:ListItem>
                                                <asp:ListItem Value="35">35</asp:ListItem>
                                                <asp:ListItem Value="36">36</asp:ListItem>
                                                <asp:ListItem Value="37">37</asp:ListItem>
                                                <asp:ListItem Value="38">38</asp:ListItem>
                                                <asp:ListItem Value="39">39</asp:ListItem>
                                                <asp:ListItem Value="40">40</asp:ListItem>
                                                <asp:ListItem Value="41">41</asp:ListItem>
                                                <asp:ListItem Value="42">42</asp:ListItem>
                                                <asp:ListItem Value="43">43</asp:ListItem>
                                                <asp:ListItem Value="44">44</asp:ListItem>
                                                <asp:ListItem Value="45">45</asp:ListItem>
                                                <asp:ListItem Value="46">46</asp:ListItem>
                                                <asp:ListItem Value="47">47</asp:ListItem>
                                                <asp:ListItem Value="48">48</asp:ListItem>
                                                <asp:ListItem Value="49">49</asp:ListItem>
                                                <asp:ListItem Value="50">50</asp:ListItem>
                                                <asp:ListItem Value="51">51</asp:ListItem>
                                                <asp:ListItem Value="52">52</asp:ListItem>
                                                <asp:ListItem Value="53">53</asp:ListItem>
                                                <asp:ListItem Value="54">54</asp:ListItem>
                                                <asp:ListItem Value="55">55</asp:ListItem>
                                                <asp:ListItem Value="56">56</asp:ListItem>
                                                <asp:ListItem Value="57">57</asp:ListItem>
                                                <asp:ListItem Value="58">58</asp:ListItem>
                                                <asp:ListItem Value="59" Selected="True">59</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left" valign="middle">
                                            Ploting Duration
                                        </td>
                                        <td width="40%">
                                            <asp:DropDownList ID="cmbDuration" runat="server" Width="50px">
                                                <asp:ListItem></asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                                <asp:ListItem>60</asp:ListItem>
                                                <asp:ListItem>120</asp:ListItem>
                                                <asp:ListItem>240</asp:ListItem>
                                                <asp:ListItem>360</asp:ListItem>
                                                <asp:ListItem>480</asp:ListItem>
                                            </asp:DropDownList>
                                            (Minutes)<font size="1">If Date Diff. is more then,please. use max. plot duration</font>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left" valign="middle">
                                            Parameter Type
                                        </td>
                                        <td width="40%">
                                            <asp:DropDownList ID="cmbParameterType" runat="server">
                                                <asp:ListItem Value="T">Temperature</asp:ListItem>
                                                <asp:ListItem Value="H">Humidity</asp:ListItem>
                                                <asp:ListItem Value="B" Selected="True">Both</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left" valign="middle">
                                            Report Type
                                        </td>
                                        <td width="90%" align="left" valign="middle" colspan="4">
                                            <asp:DropDownList ID="cmbReportType" runat="server">
                                                <asp:ListItem Value="D" Selected="True">Data Log</asp:ListItem>
                                                <asp:ListItem Value="S">Data Log Summary</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <%--<tr>
                                        <td class="frametitle" align="center" style="height: 20px" width="98%" visible="false">
                                            <font size="2"><b></b>&nbsp;<strong>Equipment Parameters </strong></font>
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="PanelSearchEntry" ScrollBars="Auto" runat="server" Visible="false"
                                                HorizontalAlign="Center" Width="99%">
                                                <asp:GridView ID="GVDeviceParameter" Width="100%" runat="server" CellPadding="0"
                                                    AllowSorting="True" AutoGenerateColumns="False" BorderColor="#E0E4EA">
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chkRecordId" runat="server"></asp:CheckBox>
                                                            </ItemTemplate>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                                                    AutoPostBack="false" ToolTip="Select/Deselect All"></asp:CheckBox>
                                                            </HeaderTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" Width="1%" CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="EquipmentMasterParameterId" HeaderText="EquipmentMasterParameterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="Name">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblParameterName" runat="server" Text='<%# Eval("ParameterName")%>'
                                                                    MaxLength="25" Width="98%"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="Left" Width="70%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Unit" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblUnit" runat="server" Text='<%# Eval("ParameterUnit")%>' Width="98%"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="Left" Width="25%" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="rowNum" HeaderText="rowNum">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ParameterName" HeaderText="ParameterName">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ParameterAxis" HeaderText="ParameterAxis">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ParameterColorCode" HeaderText="ParameterColorCode">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ParameterType" HeaderText="ParameterType">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" Height="25px" />
                                                    <PagerSettings Position="TopAndBottom" />
                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                    <RowStyle CssClass="DGR_ITEM" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <div id="divGraph" runat="server" align="center" style="width: 100%; height: 1500px;
                            top: 0px; left: 0px; position: absolute; visibility: hidden; display: none; background-color: #333333;
                            padding-left: 1%; text-align: center; vertical-align: middle; filter: alpha(opacity=100);
                            opacity: 0.90;">
                            <%--filter: alpha(opacity=75); opacity: 0.75;--%>
                            <%--<div id="divAttach" runat="server" class="LockOff">--%>
                            <br />
                            <asp:Panel ID="pnlGraph" runat="server" BorderColor="Silver" BorderStyle="Ridge"
                                BackColor="White" BorderWidth="5" Width="97%">
                                <table id="tblAttach" 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="Table11" cellspacing="1" cellpadding="1" width="100%"
                                                align="center" border="0">
                                                <tr>
                                                    <td align="left">
                                                        <b>&nbsp;Graph</b>
                                                    </td>
                                                    <td align="right">
                                                        <asp:ImageButton ID="imgAttachClose" runat="server" ImageUrl="~/ToolBarIcon/Cancel.png"
                                                            BackColor="Transparent" OnClientClick="return HidePnlGraph();" ToolTip="Close" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <table class="formbg" id="Table12" cellspacing="1" cellpadding="1" width="99%" align="center"
                                                border="0">
                                                <tr align="center" valign="middle">
                                                    <td align="center" valign="middle">
                                                        <ucChart:ucChart ID="ucChart1" runat="server" />
                                                        <%--<div id="IdPrint">
                                                            <table align="center">
                                                                <tr>
                                                                    <td>
                                                                        Primary LL<asp:TextBox ID="txtPLL" CssClass="numInput" Width="50px" MaxLength="4"
                                                                            runat="server"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        Primary UL<asp:TextBox ID="txtPUL" CssClass="numInput" Width="50px" MaxLength="4"
                                                                            runat="server"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        Secondary LL<asp:TextBox ID="txtSLL" CssClass="numInput" Width="50px" MaxLength="4"
                                                                            runat="server"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        Secondary UL<asp:TextBox ID="txtSUL" CssClass="numInput" Width="50px" MaxLength="4"
                                                                            runat="server"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        No of Plots<asp:TextBox ID="txtNoOfPlots" CssClass="numInput" Width="50px" MaxLength="3"
                                                                            runat="server" Text="30"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="imgbtnReplot" runat="server" ImageUrl="~/ToolBarIcon/Graph.png"
                                                                            Height="30px" Width="32px" ToolTip="Replot" BackColor="Transparent" OnClick="imgbtnReplot_Click" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="imgbtnReSet" runat="server" ImageUrl="~/ToolBarIcon/DSITButtonRefresh.png"
                                                                            Height="30px" Width="32px" ToolTip="Reset" BackColor="Transparent" OnClick="imgbtnReSet_Click" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="imgbtnMinus" runat="server" ImageUrl="~/Images/Zoom Out.png"
                                                                            Height="30px" Width="32px" ToolTip="Zoom Out" BackColor="Transparent" OnClick="imgbtnMinus_Click" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="imgbtnPlus" runat="server" ImageUrl="~/Images/Zoom In.png" Height="30px"
                                                                            Width="32px" ToolTip="Zoom In" BackColor="Transparent" OnClick="imgbtnPlus_Click" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="imgbtnPrint" runat="server" ImageUrl="~/ToolBarIcon/DSITButtonPrint.png"
                                                                            Height="30px" Width="32px" ToolTip="Print" BackColor="Transparent" OnClientClick="FusionCharts.printManager.managedPrint()"
                                                                            OnClick="imgbtnPrint_Click" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="btnPrint" runat="server" OnClientClick="Print(false)" Text="Print"
                                                                            ToolTip="Print" Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                        <br />
                                                        <table id="Table1" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                                            <tr>
                                                                <td align="center">
                                                                    <asp:Panel ID="Panel1" runat="server">
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                        </table>--%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                    </ContentTemplate>
                    <Triggers>
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
