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

<div class="row">
    <div class="col-2">
    </div>
    <div class="col-8">
        <%: traduci("PressCtrlP_Print") %>
    </div>
    <div class="col-2">
        <asp:DropDownList runat="server" ID="ddlQrSize" AutoPostBack="True" OnSelectedIndexChanged="ddlQrSize_SelectedIndexChanged">
            <asp:ListItem Text="Small" Value="32"></asp:ListItem>
            <asp:ListItem Text="Medium" Value="64" Selected="True"></asp:ListItem>
            <asp:ListItem Text="Large" Value="128"></asp:ListItem>
            <asp:ListItem Text="Larger" Value="256"></asp:ListItem>
        </asp:DropDownList>
    </div>
</div>
<hr />
<div class="row">
    <asp:Repeater runat="server" ID="repDetail" DataSourceID="ods">
        <ItemTemplate>
            <div class="col-6 mb-3">
                <div class="card">
                    <div class="card-header py-0">
                        <h5><%# Eval("OtherItemExtCode") %></h5>
                    </div>
                    <div class="card-body py-1">
                        <div class="row">
                            <div class="col-8 text-left card-text">
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("OtherItemDesc") %>' />
                            </div>
                            <div class="col-4">
                                <asp:Image runat="server" Height='<%# qrSize %>' ImageUrl='<%# getImgUrl(Eval("OtherItemDtmx")) %>' />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="AppData.DS_AppTableAdapters.OtherItemTableAdapter"></asp:ObjectDataSource>
</div>
