diff --git a/XPS/App_Code/DS_applicazione.xsd b/XPS/App_Code/DS_applicazione.xsd index 303079c..9dd0c87 100644 --- a/XPS/App_Code/DS_applicazione.xsd +++ b/XPS/App_Code/DS_applicazione.xsd @@ -197,12 +197,14 @@ ORDER BY DataArrivo DESC + + - SELECT Ciclo, Cliente, Cod, CodCli, CodCliente, CodStato, Colli, DDT, DataArrivo, DataDDT, DataPrevista, Peso, Posizione, Qta, Righe, Stato, descrizione, maxStato, minStato FROM v_commesse WHERE (Cod = @Cod) + SELECT Ciclo, Cliente, Cod, CodCli, CodCliente, CodStato, Colli, DDT, DataArrivo, DataDDT, DataPrevista, Peso, Posizione, Qta, Righe, Stato, descrizione, maxCodStato, maxStato, minCodStato, minStato FROM v_commesse WHERE (Cod = @Cod) @@ -212,7 +214,7 @@ ORDER BY DataArrivo DESC - SELECT v_commesse.* FROM v_commesse INNER JOIN Filtro2Stati ON v_commesse.CodStato = Filtro2Stati.CodStato WHERE (Filtro2Stati.CodFiltro = @CodFiltro) ORDER BY v_commesse.DataArrivo DESC + SELECT v_commesse.Ciclo, v_commesse.Cliente, v_commesse.Cod, v_commesse.CodCli, v_commesse.CodCliente, v_commesse.CodStato, v_commesse.Colli, v_commesse.DDT, v_commesse.DataArrivo, v_commesse.DataDDT, v_commesse.DataPrevista, v_commesse.Peso, v_commesse.Posizione, v_commesse.Qta, v_commesse.Righe, v_commesse.Stato, v_commesse.descrizione, v_commesse.maxCodStato, v_commesse.maxStato, v_commesse.minCodStato, v_commesse.minStato FROM v_commesse INNER JOIN Filtro2Stati ON v_commesse.CodStato = Filtro2Stati.CodStato WHERE (Filtro2Stati.CodFiltro = @CodFiltro) ORDER BY v_commesse.DataArrivo DESC @@ -861,14 +863,14 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + @@ -881,14 +883,14 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + @@ -901,21 +903,21 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + - + @@ -926,199 +928,6 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1135,28 +944,14 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - - - - - - - - - - - - - - - + @@ -1170,6 +965,20 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat + + + + + + + + + + + + + + @@ -1180,16 +989,10 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + + - - - - - - - - + @@ -1197,14 +1000,35 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + + + + + + + + + + + + + + + + + + + + + + @@ -1214,14 +1038,103 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -1283,6 +1196,7 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat + @@ -1291,8 +1205,110 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1305,28 +1321,28 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + - + - + @@ -1339,56 +1355,56 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + - + - + - + - + - + - + @@ -1401,44 +1417,44 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + - + - - + + - + - - + + @@ -1448,10 +1464,10 @@ WHERE (CodMappa = @CodMappa) AND (CodObj = @CodObj) AND (CodStato = @CodStat - + - + diff --git a/XPS/Bin/SteamWare.XML b/XPS/Bin/SteamWare.XML index c877e5b..d2f1fa8 100644 --- a/XPS/Bin/SteamWare.XML +++ b/XPS/Bin/SteamWare.XML @@ -757,6 +757,11 @@ modalità editing + + + tipologia di file immagine + + tipo di immagini usate per le icone di comando in web applications @@ -1701,6 +1706,15 @@ verrà usato x posizione {1}, tipo "_s.png" + + + restituisce la stringa del path corretto per l'immagine richiesta nel formato "~/images/{0}{1}" + + verrà usato x posizione {0}, tipo "view" + verrà usato x posizione {1}, tipo "_s.png" + tipo del file richiesto..." + + effettua traduzione del lemma diff --git a/XPS/Bin/SteamWare.dll b/XPS/Bin/SteamWare.dll index 62ef365..88c129a 100644 Binary files a/XPS/Bin/SteamWare.dll and b/XPS/Bin/SteamWare.dll differ diff --git a/XPS/Bin/SteamWareXPS.dll b/XPS/Bin/SteamWareXPS.dll index 7f6f931..9da6f39 100644 Binary files a/XPS/Bin/SteamWareXPS.dll and b/XPS/Bin/SteamWareXPS.dll differ diff --git a/XPS/images/semaGiallo_l.gif b/XPS/images/semaGiallo_l.gif new file mode 100644 index 0000000..6b3a4db Binary files /dev/null and b/XPS/images/semaGiallo_l.gif differ diff --git a/XPS/images/semaGiallo_m.gif b/XPS/images/semaGiallo_m.gif new file mode 100644 index 0000000..9fb553b Binary files /dev/null and b/XPS/images/semaGiallo_m.gif differ diff --git a/XPS/images/semaGiallo_s.gif b/XPS/images/semaGiallo_s.gif new file mode 100644 index 0000000..50f620e Binary files /dev/null and b/XPS/images/semaGiallo_s.gif differ diff --git a/XPS/images/semaRosso_l.gif b/XPS/images/semaRosso_l.gif new file mode 100644 index 0000000..cf47b40 Binary files /dev/null and b/XPS/images/semaRosso_l.gif differ diff --git a/XPS/images/semaRosso_m.gif b/XPS/images/semaRosso_m.gif new file mode 100644 index 0000000..113f78b Binary files /dev/null and b/XPS/images/semaRosso_m.gif differ diff --git a/XPS/images/semaRosso_s.gif b/XPS/images/semaRosso_s.gif new file mode 100644 index 0000000..93f1e67 Binary files /dev/null and b/XPS/images/semaRosso_s.gif differ diff --git a/XPS/images/semaVerde_l.gif b/XPS/images/semaVerde_l.gif new file mode 100644 index 0000000..3e1cf8f Binary files /dev/null and b/XPS/images/semaVerde_l.gif differ diff --git a/XPS/images/semaVerde_m.gif b/XPS/images/semaVerde_m.gif new file mode 100644 index 0000000..829c0fa Binary files /dev/null and b/XPS/images/semaVerde_m.gif differ diff --git a/XPS/images/semaVerde_s.gif b/XPS/images/semaVerde_s.gif new file mode 100644 index 0000000..ee9be66 Binary files /dev/null and b/XPS/images/semaVerde_s.gif differ diff --git a/XPS/mod_elencoComm.ascx b/XPS/mod_elencoComm.ascx index 82bbcba..e77a5cb 100644 --- a/XPS/mod_elencoComm.ascx +++ b/XPS/mod_elencoComm.ascx @@ -125,8 +125,11 @@ - + + + +
--> diff --git a/XPS/mod_elencoComm.ascx.cs b/XPS/mod_elencoComm.ascx.cs index fb45e7f..e2b6e89 100644 --- a/XPS/mod_elencoComm.ascx.cs +++ b/XPS/mod_elencoComm.ascx.cs @@ -390,7 +390,53 @@ public partial class mod_elencoComm : ApplicationUserControl if (currMode != modoXPS_Equa.direzione) answ = false; return answ; } - // + /// + /// definisce se sia visibile il semaforo di stato spedizione + /// + /// + /// + public bool isSemaforoVisibile(object minCodStato, object maxCodStato) + { + bool answ = false; + if ((Convert.ToInt32(maxCodStato) > 4) && (Convert.ToInt32(minCodStato) < 6)) answ = true; // se il max è superiore a 4 qualcosa è spedibile... o spedito, ergo mostro semaforo... + return answ; + } + /// + /// restituisce path all'immagine corretta x il semaforo di "spedibilità" dato lo stato: + /// ROSSO: niente pronto + /// VERDE: tutto spedito + /// GIALLO: qualcosa di pronto (o anche spedito) e qualcosa no... + /// + /// + /// + /// + public string immagineDaStato(object minCodStato, object maxCodStato) + { + string answ = imgPath(SteamWare.tipoImg.semaforoGiallo, SteamWare.dimImg.medium, tipoFileImg.gif); + int codMin = Convert.ToInt32(minCodStato); + int codMax = Convert.ToInt32(maxCodStato); + // in base ai 2 valori relativi decido semafori... + if (codMax < 5) answ = imgPath(SteamWare.tipoImg.semaforoRosso, SteamWare.dimImg.medium, tipoFileImg.gif); + if (codMin > 4) answ = imgPath(SteamWare.tipoImg.semaforoVerde, SteamWare.dimImg.medium, tipoFileImg.gif); + return answ; + } + /// + /// restituisce tooltip spiegazione stato + /// + /// + /// + /// + public string toolTipDaStato(object minCodStato, object maxCodStato) + { + string answ = traduci("commParzProntaSpedire"); + int codMin = Convert.ToInt32(minCodStato); + int codMax = Convert.ToInt32(maxCodStato); + // in base ai 2 valori relativi decido semafori... + if (codMax < 5) answ = traduci("commNonProntaSpedire"); + if (codMin > 4) answ = traduci("commProntaSpedire"); + return answ; + } + /// /// determina se l'utente possa cancellare, x ora sempre si... /// diff --git a/db/SteamWare_XPS.zip b/db/SteamWare_XPS.zip index f4ed238..0fe7fa5 100644 Binary files a/db/SteamWare_XPS.zip and b/db/SteamWare_XPS.zip differ