diff --git a/GMW/GMW_Term/GMW_Term.csproj b/GMW/GMW_Term/GMW_Term.csproj
index a1547366..9d71e313 100644
--- a/GMW/GMW_Term/GMW_Term.csproj
+++ b/GMW/GMW_Term/GMW_Term.csproj
@@ -364,6 +364,10 @@
+
+
+
+
diff --git a/GMW/GMW_Term/Web.config b/GMW/GMW_Term/Web.config
index 129a6c58..9dae0946 100644
--- a/GMW/GMW_Term/Web.config
+++ b/GMW/GMW_Term/Web.config
@@ -51,14 +51,14 @@
-
+
-
-
-
-
+
+
+
+
@@ -70,6 +70,7 @@
+
@@ -92,14 +93,15 @@
+
-
-
+
+
-
+
@@ -122,18 +124,18 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/GMW/GMW_Term/WebUserControls/mod_smartList.ascx.cs b/GMW/GMW_Term/WebUserControls/mod_smartList.ascx.cs
index ced577b6..cb86608b 100644
--- a/GMW/GMW_Term/WebUserControls/mod_smartList.ascx.cs
+++ b/GMW/GMW_Term/WebUserControls/mod_smartList.ascx.cs
@@ -27,7 +27,6 @@ namespace GMW_Term.WebUserControls
{ }
return answ;
}
-
set
{
memLayer.ML.setSessionVal("elencoUdcSmartLDP", value);
@@ -49,7 +48,6 @@ namespace GMW_Term.WebUserControls
{ }
return answ;
}
-
set
{
memLayer.ML.setSessionVal("elencoParticolariSmartLDP", value);
@@ -100,21 +98,46 @@ namespace GMW_Term.WebUserControls
* Ricalcola e salva:
* - elenco UDC
* - elenco particolari
+ * - crea LDP e relative righe x ogni UDC
* ***************************************************/
+ // errore: ora crea cartellini un pò TK un pò SP e quindi non li elimina
+
+ // lista di prelievo
+ string newLDP = "";
+ // controllo se vada aggiunto particolare
+ if (!elencoParticolari.ContainsKey(particolare))
+ {
+ // creo nuova LDP smart
+ newLDP = MagClass.magazzino.creaListaPrelievoSmart(memLayer.ML.confReadString("CodCS"), "00-Smart", particolare, "*", "*", 1, "*", "", "");
+ // aggiungo particolare a LDP Smart esistente
+ MagClass.magazzino.confermaUdcPrelevatoPerLista(newLDP, barcode);
+ // in array temporanei aggiungo nuovo particolare e salvo
+ elencoParticolari.Add(particolare, particolare);
+ elencoParticolariSmartLDP = elencoParticolari;
+ }
// controllo se vada aggiunto UDC
if (!elencoUdc.ContainsKey(barcode))
{
+ // cerco la LDP dato utente, tipo e UDC...
+ try
+ {
+ newLDP = MagClass.magazzino.taRigheListePrelievo.getByUdc(barcode)[0].CodLista;
+ }
+ catch
+ { }
+ if (newLDP != "")
+ {
+ // aggiungo particolare a LDP Smart esistente
+ MagClass.magazzino.confermaUdcPrelevatoPerLista(newLDP, barcode);
+ }
// aggiungo nuovo barcode e salvo
elencoUdc.Add(barcode, particolare);
elencoUdcSmartLDP = elencoUdc;
}
- // controllo se vada aggiunto particolare
- if (!elencoParticolari.ContainsKey(particolare))
+ else
{
- // aggiungo nuovo particolare e salvo
- elencoParticolari.Add(particolare, particolare);
- elencoParticolariSmartLDP = elencoParticolari;
+ // indico barcode già caricato, !!!FARE!!!
}
lblErrore.Visible = false;
}
@@ -132,28 +155,7 @@ namespace GMW_Term.WebUserControls
lblTotColli.Text = traduci("lblTotColli");
lblNumColli.Text = string.Format("{0} UDC", elencoUdcSmartLDP.Count);
lblParticolari.Text = traduci("lblParticolari");
- lblNumPart.Text = string.Format("{0} {1}", elencoParticolariSmartLDP.Count, traduci("particolari"));
-
-#if false
- lblListaAttiva.Text = traduci("ListaPrel");
- hlListaAttiva.Text = traduci("noListActive");
- lblDest.Text = "";
- lblProd.Text = "";
- lblPezzi.Text = "";
- try
- {
- // leggo una riga...
- DS_magazzino.ElencoListePrelievoRow riga = MagClass.magazzino.taElencoListePrelievo.getByCodLista(MagClass.magazzino.codListaAttivaUtente)[0];
- lblDest.Text = riga.Destinatario;
- lblProd.Text = riga.Particolare;
- lblPezzi.Text = string.Format("{0}/{1} pz", riga.Prelevato, riga.QtaTot);
- hlListaAttiva.Text = MagClass.magazzino.codListaAttivaUtente;
- }
- catch
- { }
-#endif
-
- // reload pagina?
+ lblNumPart.Text = string.Format("{0} {1}", elencoParticolariSmartLDP.Count, traduci("Particolari"));
}
///
/// Generazione delle liste di prelievo
@@ -162,7 +164,9 @@ namespace GMW_Term.WebUserControls
///
protected void btnGeneraListe_Click(object sender, EventArgs e)
{
+ // !!!FARE!!!
+ // prendo le liste smart e le completo
}
///
/// reset UDC x le liste di prelievo
@@ -171,7 +175,28 @@ namespace GMW_Term.WebUserControls
///
protected void btnResetListe_Click(object sender, EventArgs e)
{
-
+ // elimino LDP smart x l'utente... ciclo foreach!
+ string codLista = "";
+ foreach (string udcCurr in elencoUdcSmartLDP.Values)
+ {
+ try
+ {
+ codLista = MagClass.magazzino.taRigheListePrelievo.getByUdc(udcCurr)[0].CodLista;
+ // elimino righe
+ MagClass.magazzino.taRigheListePrelievo.stp_RLP_deleteFromCodLista(codLista);
+ // elimino lista
+ MagClass.magazzino.taElencoListePrelievo.DeleteQuery(codLista);
+ }
+ catch
+ { }
+ }
+ // svuoto array particolari e UDC
+ Dictionary empyList = new Dictionary();
+ elencoUdcSmartLDP = empyList;
+ elencoParticolariSmartLDP = empyList;
+ memLayer.ML.emptySessionVal("UDC_sel");
+ // aggiorno visualizzazione
+ updatePackListStatus();
}
///
/// fornisce verifica se l'udc sia già stato prelevato altrove...
@@ -183,33 +208,12 @@ namespace GMW_Term.WebUserControls
return GMW_data.MagClass.magazzino.taRigheListePrelievo.getPrelevateByUdc(udc.ToString()).Rows.Count > 0;
}
-#if false
- // controllo se barcode è ok x LDP corrente...
- if (MagClass.magazzino.verificaDatiUdc(MagClass.magazzino.codListaAttivaUtente, barcode))
- {
- MagClass.magazzino.confermaUdcPrelevatoPerLista(MagClass.magazzino.codListaAttivaUtente, barcode);
- lblErrore.Visible = false;
- }
- else
- {
- // salvo errore
- lblErrore.Visible = true;
- lblErrore.Text = traduci("BarcodeNonValidoLDP");
- }
- // svuoto barcode selezionato
- memLayer.ML.emptySessionVal("Barcode_sel");
-#endif
-
}
/*
* RIFARE
- * - gestione LDP temporanee... KSP+ cod utente (1 x utente quindi)
+ * - gestione LDP temporanee...
* + vanno create e devono poter essere cancellate da sito (elenco di quelle aperte)
- * + nuova tab
- * + controllo udc libero anche su seconda tabella
- *
- *
* */
}
\ No newline at end of file
diff --git a/GMW/GMW_Term/bin/GMW_Term.dll b/GMW/GMW_Term/bin/GMW_Term.dll
index ef42da3e..52fbbf1f 100644
Binary files a/GMW/GMW_Term/bin/GMW_Term.dll and b/GMW/GMW_Term/bin/GMW_Term.dll differ
diff --git a/GMW/GMW_Term/bin/GMW_data.dll b/GMW/GMW_Term/bin/GMW_data.dll
index 113a7e90..62346208 100644
Binary files a/GMW/GMW_Term/bin/GMW_data.dll and b/GMW/GMW_Term/bin/GMW_data.dll differ
diff --git a/GMW/GMW_Term/bin/SteamWare.XML b/GMW/GMW_Term/bin/SteamWare.XML
index becf76be..5246a012 100644
--- a/GMW/GMW_Term/bin/SteamWare.XML
+++ b/GMW/GMW_Term/bin/SteamWare.XML
@@ -1783,6 +1783,11 @@
modalità editing
+
+
+ modalità inserting nuovo valore
+
+
tipologia di file immagine
diff --git a/GMW/GMW_Term/bin/SteamWare.dll b/GMW/GMW_Term/bin/SteamWare.dll
index d02639d1..71c329f2 100644
Binary files a/GMW/GMW_Term/bin/SteamWare.dll and b/GMW/GMW_Term/bin/SteamWare.dll differ
diff --git a/GMW/GMW_Term/mazzAppSettings.config b/GMW/GMW_Term/mazzAppSettings.config
index 2bf64e61..cc91aaac 100644
--- a/GMW/GMW_Term/mazzAppSettings.config
+++ b/GMW/GMW_Term/mazzAppSettings.config
@@ -6,9 +6,9 @@
-
-
-
+
+
+
diff --git a/GMW/GMW_Term/mazzAppSettingsSP.config b/GMW/GMW_Term/mazzAppSettingsSP.config
index 2f787e18..7b8f7a30 100644
--- a/GMW/GMW_Term/mazzAppSettingsSP.config
+++ b/GMW/GMW_Term/mazzAppSettingsSP.config
@@ -6,9 +6,9 @@
-
-
-
+
+
+
@@ -76,9 +76,9 @@
-
+
-
+
diff --git a/GMW/GMW_Term/mazzAppSettingsTK.config b/GMW/GMW_Term/mazzAppSettingsTK.config
index 31c186c7..ae7834bf 100644
--- a/GMW/GMW_Term/mazzAppSettingsTK.config
+++ b/GMW/GMW_Term/mazzAppSettingsTK.config
@@ -1,14 +1,14 @@
-
+
-
-
-
+
+
+
@@ -20,12 +20,13 @@
+
-
+
@@ -49,7 +50,7 @@
-
+
diff --git a/GMW/GMW_Term/mazzAppSettingsTK_test.config b/GMW/GMW_Term/mazzAppSettingsTK_test.config
new file mode 100644
index 00000000..cbab9de8
--- /dev/null
+++ b/GMW/GMW_Term/mazzAppSettingsTK_test.config
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_Term/mazzConnectionStringsSP.config b/GMW/GMW_Term/mazzConnectionStringsSP.config
index 6c3cef55..320b727d 100644
--- a/GMW/GMW_Term/mazzConnectionStringsSP.config
+++ b/GMW/GMW_Term/mazzConnectionStringsSP.config
@@ -1,3 +1,3 @@
-
+
\ No newline at end of file
diff --git a/GMW/GMW_Term/mazzConnectionStringsTK_test.config b/GMW/GMW_Term/mazzConnectionStringsTK_test.config
new file mode 100644
index 00000000..7cc4b0da
--- /dev/null
+++ b/GMW/GMW_Term/mazzConnectionStringsTK_test.config
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/GMW/GMW_Term/obj/Debug/GMW_Term.dll b/GMW/GMW_Term/obj/Debug/GMW_Term.dll
index ef42da3e..52fbbf1f 100644
Binary files a/GMW/GMW_Term/obj/Debug/GMW_Term.dll and b/GMW/GMW_Term/obj/Debug/GMW_Term.dll differ
diff --git a/GMW/GMW_Term/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_Term/obj/Debug/ResolveAssemblyReference.cache
index d84bec48..0af1ca7d 100644
Binary files a/GMW/GMW_Term/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_Term/obj/Debug/ResolveAssemblyReference.cache differ