diff --git a/GMW/WebUserControls/mod_kitAnime.ascx b/GMW/WebUserControls/mod_kitAnime.ascx
index 1c74362e..f9817b2f 100644
--- a/GMW/WebUserControls/mod_kitAnime.ascx
+++ b/GMW/WebUserControls/mod_kitAnime.ascx
@@ -14,7 +14,7 @@
+
@@ -72,11 +72,22 @@
- <%: traduci("lblQtaPart") %>
+ <%: traduci("lblQtaUDC") %>
+
+
+
+
+
+ <%: traduci("lblQtaKit") %>
+
+
+
diff --git a/GMW/WebUserControls/mod_kitAnime.ascx.cs b/GMW/WebUserControls/mod_kitAnime.ascx.cs
index 08329d23..37435397 100644
--- a/GMW/WebUserControls/mod_kitAnime.ascx.cs
+++ b/GMW/WebUserControls/mod_kitAnime.ascx.cs
@@ -138,7 +138,10 @@ namespace GMW.WebUserControls
{
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Anime {0}", udcReq), tipoLog.EXCEPTION);
}
- if (fatto) MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaAL", "Ri-Stampato AL KIT Anime");
+ if (fatto)
+ {
+ MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaAL", "Ri-Stampato AL KIT Anime");
+ }
// raise dell'evento
if (eh_reqUpdate != null)
{
@@ -168,8 +171,8 @@ namespace GMW.WebUserControls
///
private void traduciObj()
{
- //txtBox
qta = pezziKitAnime;
+ qtaKIT = 1;
// buttons
btnEmptyNote.Text = traduci("btnEmptyNote");
}
@@ -284,6 +287,29 @@ namespace GMW.WebUserControls
}
}
///
+ /// qta KIT
+ ///
+ public int qtaKIT
+ {
+ get
+ {
+ int _qta = 0;
+ try
+ {
+ _qta = Convert.ToInt32(txtQtaKit.Text.Trim());
+ }
+ catch
+ {
+ _qta = 0;
+ }
+ return _qta;
+ }
+ set
+ {
+ txtQtaKit.Text = value.ToString();
+ }
+ }
+ ///
/// controlla se ci sia un barcode
///
private void checkBarcode()
@@ -414,7 +440,7 @@ namespace GMW.WebUserControls
private void checkStampa()
{
bool stampaOk = false;
- if (currKitAnime != "" && qta > 0)
+ if (currKitAnime != "" && qta > 0 && qtaKIT > 0)
{
stampaOk = true;
}
@@ -512,7 +538,7 @@ namespace GMW.WebUserControls
if (newAL != "")
{
// lancio stampa
- MagClass.magazzino.stampaAL(newAL, Postazione.printer, Request.UserHostName);
+ MagClass.magazzino.stampaAL(newAL, Postazione.printer, Request.UserHostName);
// incremento timing...
adesso = DateTime.Now;
adesso = adesso.AddSeconds(1);
diff --git a/GMW/WebUserControls/mod_kitAnime.ascx.designer.cs b/GMW/WebUserControls/mod_kitAnime.ascx.designer.cs
index 24b377ad..b3aa52cd 100644
--- a/GMW/WebUserControls/mod_kitAnime.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_kitAnime.ascx.designer.cs
@@ -164,5 +164,14 @@ namespace GMW.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.TextBox txtQta;
+
+ ///
+ /// Controllo txtQtaKit.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtQtaKit;
}
}