<%@ page language="VB" autoeventwireup="false" inherits="Manage_DeviceOperationLogs, App_Web_gxiwuit5" enableeventvalidation="false" %>
<%@ Register TagPrefix="obout" Namespace="Obout.Grid" Assembly="obout_Grid_NET" %>
<%@ Register TagPrefix="obout" Namespace="OboutInc.Flyout2" Assembly="obout_Flyout2_NET" %>
<%@ Register TagPrefix="uctrl" Src="~/Header.ascx" TagName="header" %>
<%@ Register TagPrefix="owd" Namespace="OboutInc.Window" Assembly="obout_Window_NET" %>
<%@ Register TagPrefix="oem" Namespace="OboutInc.EasyMenu_Pro" Assembly="obout_EasyMenu_Pro" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
        <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />

</head>
<body>
 <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" style="border-right: gray 1px solid; border-top: gray 1px solid;
                border-left: gray 1px solid; border-bottom: gray 1px solid;">
                <tr style="background-color: lightsteelblue;
                padding-left: 5px; padding-top: 3px; padding-bottom: 3px; ">
                    <td style="font-weight: bold; font-size: 14px; background-color: lightsteelblue;padding:5px; color: white;">
                        Device Operation Logs
                    </td>
                    
                     <td align="right" style="font-size: 12px; background-color: lightsteelblue;
                    padding: 5px;">
                        Device
                        <asp:DropDownList ID="drp_Devices" runat="server"></asp:DropDownList>
                         <asp:Button ID="btnUpdate"  runat="server" Text="Refresh" OnClientClick="SetSource(this.id)"/>
                          <asp:HiddenField ID="hidSourceID" runat="server" />

                         <script type="text/javascript">
                             function SetSource(SourceID) {
                                 var hidSourceID = document.getElementById("<%=hidSourceID.ClientID%>");
                                 hidSourceID.value = SourceID;
                             }
                  </script>
                    </td>
                    
                </tr>
                <tr style=" background-color: lightsteelblue;">
                <td colspan="2">
                <hr />
                </td>
                </tr>
                <tr>
                    <td colspan="2">
                       <obout:Grid ID="Dg_DeviceOperationLogs" runat="server" AllowFiltering="true" CallbackMode="true"
                            EnableRecordHover="true" KeepSelectedRecords="true" Serialize="true" AutoGenerateColumns="false"
                            FolderStyle="~/styles/grid/styles/premiere_blue" AllowAddingRecords="false" >
                            <Columns>
                                <obout:Column ID="Id" DataField="DeviceOperationLogId" Visible="false" Width="100" ReadOnly="true"
                                    HeaderText="DeviceOperationLogId" runat="server" />
                                <obout:Column ID="Column2" DataField="DeviceSName" Visible="true" Width="220" HeaderText="Device Name"
                                    runat="server" />
                                     <obout:Column ID="Column1" DataField="SerialNumber" Visible="true" Width="220" HeaderText="Serial Number"
                                    runat="server" />
                                <obout:Column ID="Column3" DataField="OperationLogTypeName" Visible="true" Width="310" HeaderText="Device Operation Command"
                                    runat="server" />
                                 <obout:Column ID="Column5" DataField="DeviceOperationLogExecutedOn" Visible="true" Width="200" HeaderText="Execution Date" DataFormatString="{0:dd MMM yyyy HH:mm}" 
                                    runat="server" />
                            </Columns>
                        </obout:Grid>
                    </td>
                </tr>
            </table>
            </form>
</body>
</html>
