<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettaglioBlocco.ascx.cs"
    Inherits="GMW.WebUserControls.mod_dettaglioBlocco" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
<%@ Register Src="mod_paretoUdcBlocco.ascx" TagName="mod_paretoUdcBlocco" TagPrefix="uc1" %>
<%@ Register Src="mod_dettCelleBlocco.ascx" TagName="mod_dettCelleBlocco" TagPrefix="uc2" %>
<%@ Register Src="mod_paretoPartByFullSpec.ascx" TagName="mod_paretoPartByFullSpec"
    TagPrefix="uc3" %>
<%@ Register Src="mod_operazioniUdc.ascx" TagName="mod_operazioniUdc" TagPrefix="uc4" %>


<div class="row">
    <div class="col-sm-8">
        <asp:DropDownList runat="server" ID="ddlFiltroMag" AutoPostBack="True" DataSourceID="odsFiltroMag" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroMag_SelectedIndexChanged" OnDataBound="ddlFiltroMag_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
        <asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
            SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:DropDownList runat="server" ID="ddlFiltroBlock" AutoPostBack="True" DataSourceID="odsFiltroBlock" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroBlock_SelectedIndexChanged" OnDataBound="ddlFiltroBlock_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
        <asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
                <asp:ControlParameter ControlID="ddlFiltroMag" DefaultValue="MM" Name="CodMag" PropertyName="SelectedValue"
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <%--non usato!--%>
        <uc1:mod_filtro ID="mod_filtroMagLog" runat="server" isChecked="false" Visible="false" />
        <asp:ObjectDataSource ID="odsFiltroMagLog" runat="server" OldValuesParameterFormatString="Original_{0}"
            SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagLogicoTableAdapter">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    <div class="col-sm-4">
        <div style="float: right;">
            <asp:LinkButton runat="server" ID="lbtReturn" Text="..." OnClick="lnkReturn_Click" CssClass="btn btn-warning">
                <i aria-hidden='true' class="fa fa-arrow-circle-left"></i>
                <asp:Label runat="server" ID="lnkReturn"></asp:Label>
            </asp:LinkButton>
            <asp:LinkButton runat="server" ID="lnkReturn2" Text="..." OnClick="lnkReturn1_Click" Visible="false" />
        </div>
    </div>
</div>
<div class="row">
    <div class="col-sm-12 bg-success">
        <uc4:mod_operazioniUdc ID="mod_operazioniUdc1" runat="server" />
    </div>
    <div class="col-sm-12">
        <uc2:mod_dettCelleBlocco ID="mod_dettCelleBlocco1" runat="server" />
    </div>
    <div class="col-sm-6">
        <div style="float: left;">
            <uc1:mod_paretoUdcBlocco ID="mod_paretoUdcBlocco1" runat="server" />
        </div>
    </div>
    <div class="col-sm-6">
        <div style="font-size: 7pt; float: left;">
            <asp:Panel runat="server" ID="pnlDetail" CssClass="pnlDetail">
                <uc3:mod_paretoPartByFullSpec ID="mod_paretoPartByFullSpec1" runat="server" />
            </asp:Panel>
        </div>
    </div>
    <div class="col-sm-6 col-sm-offset-3">
        <div style="text-align: center; border: solid 1px #696969;">
            <b>Legenda</b>
            <table  style="font-weight: bold;">
                <tr>
                    <td style="width: 5%;">&nbsp
                    </td>
                    <td class="cellaPiena" style="width: 13%; height: 20px;">Piena
                    </td>
                    <td class="cellaOccupata" style="width: 13%; height: 20px;">Occupata
                    </td>
                    <td class="cellaLibera" style="width: 13%; height: 20px;">Libera
                    </td>
                    <td class="cellaInattiva" style="width: 13%; height: 20px;">Bloccata
                    </td>
                    <td style="width: 1px; height: 20px;">&nbsp;
                    </td>
                    <td class="selectedCell" style="width: 13%; height: 20px;">Selezionata (modifica)
                    </td>
                    <td style="width: 1px; height: 20px;">&nbsp;
                    </td>
                    <td class="cellaSelezAll" style="width: 13%; height: 20px;">Selezione SX
                    </td>
                    <td class="cellaSelezDett" style="width: 13%; height: 20px;">Selezione DX
                    </td>
                    <td style="width: 4%;">&nbsp
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
