<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_MachSem.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_MachSem" %>

<asp:HiddenField runat="server" ID="hfMachine" Value="NE00" />
<asp:HiddenField runat="server" ID="hfMachClass" Value="light" />
<asp:HiddenField runat="server" ID="hfStat01" Value="N.A." />
<asp:HiddenField runat="server" ID="hfStat02" Value="N.A." />
<asp:HiddenField runat="server" ID="hfStat03" Value="N.A." />
<asp:HiddenField runat="server" ID="hfCode01" Value="00" />
<asp:HiddenField runat="server" ID="hfCode02" Value="00" />
<asp:HiddenField runat="server" ID="hfCode03" Value="00" />
<asp:HiddenField runat="server" ID="hfCss01" Value="secondary" />
<asp:HiddenField runat="server" ID="hfCss02" Value="secondary" />
<asp:HiddenField runat="server" ID="hfCss03" Value="secondary" />

<div class="row" runat="server" id="divSelect">
    <asp:DropDownList runat="server" ID="ddlMachine" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="ddlMachine_SelectedIndexChanged">
        <asp:ListItem Text="-- PLEASE SELECT ---" Value="" />
        <asp:ListItem Text="NE01" Value="NE01" />
        <asp:ListItem Text="NE02" Value="NE02" />
    </asp:DropDownList>
</div>

<asp:UpdatePanel runat="server" ID="upnlTitle" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Timer ID="timerLoad" runat="server" Interval="2000" OnTick="timerLoad_Tick"></asp:Timer>
        <div class="row small py-0" runat="server" id="divRuntime">
            <div class="col-2 pr-0">
                <asp:LinkButton runat="server" ID="lbtReset" class="btn btn-info btn-block text-center" OnClick="lbtReset_Click"><i class="fa fa-refresh" aria-hidden="true"></i>&nbsp;<%: hfMachine.Value %></asp:LinkButton>
            </div>
            <div class="col-10">
                <div class="d-flex text-center">
                    <div class="py-1 px-2 table-<%: hfCss01.Value %> flex-fill">
                        <b><i class="fa fa-qrcode" aria-hidden="true"></i>&nbsp;<%: traduci("print") %>&nbsp;|&nbsp;<%: hfCode01.Value %></b><div class="small">
                            <%: hfStat01.Value %>
                        </div>
                    </div>
                    <div class="py-1 px-2 table-<%: hfCss02.Value %> flex-fill">
                        <b><i class="fa fa-cogs" aria-hidden="true"></i>&nbsp;<%: traduci("CNC") %>&nbsp;|&nbsp;<%: hfCode02.Value %></b><div class="small">
                            <%: hfStat02.Value %>
                        </div>
                    </div>
                    <div class="py-1 px-2 bg-<%: hfCss03.Value %> flex-fill">
                        <b><i class="fa fa-hand-rock-o" aria-hidden="true"></i>&nbsp;<%: traduci("unload") %>&nbsp;|&nbsp;<%: hfCode03.Value %></b><div class="small">
                            <%: hfStat03.Value %>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>