<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MachineUnload.aspx.cs" Inherits="NKC_WF.MachineUnload" %>

<%@ Register Src="~/WebUserControls/cmp_MU_svgViewer.ascx" TagPrefix="uc1" TagName="cmp_MU_svgViewer" %>
<%@ Register Src="~/WebUserControls/cmp_MU_stats.ascx" TagPrefix="uc1" TagName="cmp_MU_stats" %>
<%@ Register Src="~/WebUserControls/cmp_MU_bins.ascx" TagPrefix="uc1" TagName="cmp_MU_bins" %>
<%@ Register Src="~/WebUserControls/cmp_MU_carts.ascx" TagPrefix="uc1" TagName="cmp_MU_carts" %>
<%@ Register Src="~/WebUserControls/cmp_MachSem.ascx" TagPrefix="uc1" TagName="cmp_MachSem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="mx-0">
        <div class="card text-center" style="width: 100%;">
            <asp:UpdatePanel runat="server" ID="upnlTitle" UpdateMode="Conditional">
                <ContentTemplate>
                    <div class="row card-header bg-secondary text-light">
                        <div class="col-5">
                            <uc1:cmp_MachSem runat="server" ID="cmp_MachSem" />
                            <asp:HiddenField ID="hfBatchID" runat="server" />
                        </div>
                        <div class="col-2">
                            <h4 class="mb-0"><i class="fa fa-download"></i>&nbsp;<%: traduci("MachineUnload") %><sub>(<%: hfBatchID.Value %>)</sub></h4>
                        </div>
                        <div class="col-5 text-right">
                            <asp:HyperLink runat="server" ID="hlPartMIA" Target="_blank" NavigateUrl="PartMIA" CssClass="btn btn-danger px-5"><i class="fa fa-bug" aria-hidden="true"></i>  <%: traduci("PartMIA") %></asp:HyperLink>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div class="card-body py-1 bg-dark" id="divMain" runat="server">
                <asp:UpdatePanel runat="server" ID="upnlStats" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:HiddenField ID="hfSheetID" runat="server" />
                        <uc1:cmp_MU_stats runat="server" ID="cmp_MU_stats" />
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div class="row">
                    <div class="col-2 pr-0">
                        <asp:UpdatePanel runat="server" ID="upnlBins" UpdateMode="Conditional">
                            <ContentTemplate>
                                <uc1:cmp_MU_bins runat="server" ID="cmp_MU_bins" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div class="col-8 py-0 my-0 px-0">
                        <asp:UpdatePanel runat="server" ID="upnlDrawings" UpdateMode="Conditional">
                            <ContentTemplate>
                                <uc1:cmp_MU_svgViewer runat="server" ID="cmp_MU_svgViewer" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div class="col-2 pl-0">
                        <asp:UpdatePanel runat="server" ID="upnlCarts" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Timer ID="timerSvg" runat="server" Interval="500" OnTick="timerSvg_Tick"></asp:Timer>
                                <uc1:cmp_MU_carts runat="server" ID="cmp_MU_carts" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>