diff --git a/GMW/WebUserControls/mod_trattamenti.ascx.cs b/GMW/WebUserControls/mod_trattamenti.ascx.cs
index 02abbd76..27381a82 100644
--- a/GMW/WebUserControls/mod_trattamenti.ascx.cs
+++ b/GMW/WebUserControls/mod_trattamenti.ascx.cs
@@ -30,11 +30,11 @@ namespace GMW.WebUserControls
/// attributo per TRATTAMENTO termico
///
protected string attrNumTra = "NT";
-#if false
///
/// flusso associato (hard coded) al TRATTAMENTO termico
///
protected string flusso_TR = "TR";
+#if false
///
/// tipo di evento associato alla creazione dell'UDC di trattamento termico
///
@@ -423,11 +423,15 @@ namespace GMW.WebUserControls
{
if (MagClass.magazzino.CodStatoUdc(barcodeIn) == statoUDC_pre)
{
+ // 2014.02.14 non permetto + di 1 UDC: svuoto elenco!
+ elencoUDC.Clear();
// se è ok aggiungo in elenco UDC e mostro udpate
checkUdc4elenco(barcodeIn);
// seleziono anche particolare corrente
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
- fixNumPezzi();
+ txtQta.Text = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Qta.ToString();
+ // 2014.02.14: non imposto + ultima qta perché ho preso da UDC sorgente
+ //fixNumPezzi();
pnlAll.CssClass = "stileComandoOk";
}
else
@@ -546,7 +550,7 @@ namespace GMW.WebUserControls
if (partDistintaOk)
{
string newUdcChild = "";
- //string newUdcParent = "";
+ string newUdcParent = "";
//bool UdcExists = false;
int anno = Convert.ToInt32(txtAnno.Text.Substring(txtAnno.Text.Trim().Length - 2, 2));
int qta = memLayer.ML.confReadInt("QtaImballoTratt");
@@ -599,8 +603,7 @@ namespace GMW.WebUserControls
{
// versione vecchia con creazione UDC di trattamento e relazione...
#if false
- // calcolo il nuovo codice UDC del trattamento
- newUdcParent = MagClass.magazzino.getComposizioneUDC(memLayer.ML.confReadString("CodCS"), flusso_TR, anno.ToString(), Convert.ToInt32(kvp.Key));
+
// verifico se ci sia già UDC
UdcExists = MagClass.magazzino.checkUDC(newUdcParent);
if (!UdcExists)
@@ -626,8 +629,10 @@ namespace GMW.WebUserControls
newUdcParent = "";
UdcExists = false;
#endif
+ // calcolo il nuovo codice UDC del trattamento
+ newUdcParent = MagClass.magazzino.getComposizioneUDC(memLayer.ML.confReadString("CodCS"), flusso_TR, anno.ToString(), Convert.ToInt32(kvp.Key));
// inserisco attributo trattamento
- MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrNumTra, kvp.Key);
+ MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrNumTra, newUdcParent);
}
// ora stampo il nuovo cartellino!!!
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartTratt, Request.UserHostName);
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index dd6b31e9..c0de5ab2 100644
Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ
diff --git a/ReleaseClienti/TK_prod/GMW.zip b/ReleaseClienti/TK_prod/GMW.zip
index af969243..2790caa1 100644
Binary files a/ReleaseClienti/TK_prod/GMW.zip and b/ReleaseClienti/TK_prod/GMW.zip differ
diff --git a/ReleaseClienti/TK_test/GMW.zip b/ReleaseClienti/TK_test/GMW.zip
index 89d1b1fa..c4b2655f 100644
Binary files a/ReleaseClienti/TK_test/GMW.zip and b/ReleaseClienti/TK_test/GMW.zip differ