diff --git a/NKC_WF/WebUserControls/cmp_MU_bins.ascx b/NKC_WF/WebUserControls/cmp_MU_bins.ascx
index 84a6fe1..e51cdd9 100644
--- a/NKC_WF/WebUserControls/cmp_MU_bins.ascx
+++ b/NKC_WF/WebUserControls/cmp_MU_bins.ascx
@@ -1,48 +1,61 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_MU_bins.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_MU_bins" %>
-
-
-
-
-
-
-
-
-
-
- No Record
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ No Record
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/NKC_WF/WebUserControls/cmp_MU_bins.ascx.cs b/NKC_WF/WebUserControls/cmp_MU_bins.ascx.cs
index 9b5086b..484f197 100644
--- a/NKC_WF/WebUserControls/cmp_MU_bins.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_MU_bins.ascx.cs
@@ -1,8 +1,10 @@
-using System;
+using AppData;
+using NKC_SDK;
+using System;
namespace NKC_WF.WebUserControls
{
- public partial class cmp_MU_bins : System.Web.UI.UserControl
+ public partial class cmp_MU_bins : BaseUserControl
{
///
/// Batch corrente...
@@ -54,6 +56,29 @@ namespace NKC_WF.WebUserControls
}
}
///
+ /// BinId selezionato
+ ///
+ public int selBinId
+ {
+ get
+ {
+ int answ = 0;
+ int.TryParse(grView.SelectedValue.ToString(), out answ);
+ return answ;
+ }
+ }
+ ///
+ /// Stampante associata
+ ///
+ protected string printer
+ {
+ get
+ {
+ string answ = DataLayer.man.getPrinter("PC-MACHINE-UNLOAD2");
+ return answ;
+ }
+ }
+ ///
/// restituisce URL immagine QRCode
///
///
@@ -128,5 +153,49 @@ namespace NKC_WF.WebUserControls
doUpdate();
}
}
+ ///
+ /// Alla selezione mando in stampa il singolo record
+ ///
+ ///
+ ///
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // invio SINGOLO record in stampa
+ DataLayer.man.stampaDoc(selBinId.ToString(), printer, tipoDocumento.docBinPre, Request.UserHostName);
+ // reset
+ doReset();
+ }
+ ///
+ /// comando reset
+ ///
+ ///
+ ///
+ protected void lbtPrintAll_Click(object sender, EventArgs e)
+ {
+ // chiamo stored x stampare OGNI cart del BATCH
+ var tabBins = DataLayer.man.taBN.getByBatch(BatchId);
+ try
+ {
+ if (tabBins != null && tabBins.Count > 0)
+ {
+ foreach (var item in tabBins)
+ {
+ // invio SINGOLO record in stampa
+ DataLayer.man.stampaDoc(item.BinID.ToString(), printer, tipoDocumento.docBinPre, Request.UserHostName);
+ }
+ }
+ }
+ catch
+ { }
+ // reset
+ doReset();
+ }
+
+ private void doReset()
+ {
+ // resetto
+ grView.SelectedIndex = -1;
+ grView.DataBind();
+ }
}
}
\ No newline at end of file
diff --git a/NKC_WF/WebUserControls/cmp_MU_carts.ascx.cs b/NKC_WF/WebUserControls/cmp_MU_carts.ascx.cs
index 423e4b3..8eada11 100644
--- a/NKC_WF/WebUserControls/cmp_MU_carts.ascx.cs
+++ b/NKC_WF/WebUserControls/cmp_MU_carts.ascx.cs
@@ -84,6 +84,9 @@ namespace NKC_WF.WebUserControls
return answ;
}
}
+ ///
+ /// Stampante associata
+ ///
protected string printer
{
get