diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index 9cb011fb..a2f8a53a 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW-RT/bin/GMW_data.dll b/GMW-RT/bin/GMW_data.dll index e8babba6..f7fa8a29 100644 Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ diff --git a/GMW-RT/bin/SteamWare.dll b/GMW-RT/bin/SteamWare.dll index d56201c2..c878578a 100644 Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ diff --git a/GMW-RT/obj/Debug/GMW-RT.csproj.FileListAbsolute.txt b/GMW-RT/obj/Debug/GMW-RT.csproj.FileListAbsolute.txt index e578ab71..2920f935 100644 --- a/GMW-RT/obj/Debug/GMW-RT.csproj.FileListAbsolute.txt +++ b/GMW-RT/obj/Debug/GMW-RT.csproj.FileListAbsolute.txt @@ -37,6 +37,7 @@ C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\SteamWare. C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\GMW_data.dll C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\GMW_data.pdb C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Antlr3.Runtime.pdb +C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.csprojResolveAssemblyReference.cache C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\NLog.config C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\GMW-RT.dll.config C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\GMW-RT.dll @@ -78,6 +79,5 @@ C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\Newt C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\System.Web.Optimization.xml C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\Microsoft.Build.Utilities.v3.5.xml C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\it\Microsoft.Build.Utilities.v3.5.resources.dll -C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.csprojResolveAssemblyReference.cache C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.dll C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.pdb diff --git a/GMW-UT/bin/GMW-UT.dll b/GMW-UT/bin/GMW-UT.dll index 90038657..f90eff42 100644 Binary files a/GMW-UT/bin/GMW-UT.dll and b/GMW-UT/bin/GMW-UT.dll differ diff --git a/GMW-UT/bin/GMW_data.dll b/GMW-UT/bin/GMW_data.dll index e8babba6..f7fa8a29 100644 Binary files a/GMW-UT/bin/GMW_data.dll and b/GMW-UT/bin/GMW_data.dll differ diff --git a/GMW-UT/bin/SteamWare.dll b/GMW-UT/bin/SteamWare.dll index d56201c2..c878578a 100644 Binary files a/GMW-UT/bin/SteamWare.dll and b/GMW-UT/bin/SteamWare.dll differ diff --git a/GMW/WebUserControls/mod_PostFinMultOUT.ascx b/GMW/WebUserControls/mod_PostFinMultOUT.ascx index 631ebcbe..d5a428e3 100644 --- a/GMW/WebUserControls/mod_PostFinMultOUT.ascx +++ b/GMW/WebUserControls/mod_PostFinMultOUT.ascx @@ -14,25 +14,6 @@ <%: traduci("UDC") %>
-
-
-
- - - - - - - -
- <%--
- -
-
- -
--%> -
-
- + @@ -73,25 +54,13 @@ - - - - - - - - - - - - - +
- <%----%>
@@ -127,8 +95,7 @@
-
- <%----%> +
<%: traduci("btnStampaUdc") %>
diff --git a/GMW/WebUserControls/mod_PostFinMultOUT.ascx.cs b/GMW/WebUserControls/mod_PostFinMultOUT.ascx.cs index 6d5b583f..9c1a7fd1 100644 --- a/GMW/WebUserControls/mod_PostFinMultOUT.ascx.cs +++ b/GMW/WebUserControls/mod_PostFinMultOUT.ascx.cs @@ -6,7 +6,7 @@ using GMW_data; namespace GMW.WebUserControls { - public partial class mod_PostFinMultOUT : System.Web.UI.UserControl + public partial class mod_PostFinMultOUT : GMW_data.UserControl { /// /// flusso associato (hard coded) a FUSI @@ -24,35 +24,7 @@ namespace GMW.WebUserControls /// dati x verifica CodSoggetto / matricola /// protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg"); - /// - /// stringa degli UDC selezionati per consumo COMPLETO (nel formato #UDC1##UDC2#) - /// - protected string udcSelC - { - get - { - return memLayer.ML.StringSessionObj(string.Format("UdcSelC_{0}", uid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("UdcSelC_{0}", uid), value); - } - } - /// - /// stringa degli UDC selezionati per consumo PARZIALE (nel formato #UDC1##UDC2#) - /// - protected string udcSelP - { - get - { - return memLayer.ML.StringSessionObj(string.Format("UdcSelP_{0}", uid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("UdcSelP_{0}", uid), value); - } - } - public event EventHandler eh_nuovaRicerca; + public event EventHandler eh_reqUpdate; /// /// stringa UID univoca @@ -75,9 +47,8 @@ namespace GMW.WebUserControls { Postazione.messaggiText = ""; Postazione.warningText = ""; - fixRicercaUdc(); traduciObj(); - idxCella = Postazione.currIdxCella; + CodBlocco = Postazione.currCodBlocco; checkNumKeyIn(); } doChecks(); @@ -96,37 +67,27 @@ namespace GMW.WebUserControls checkBarcode(); } } + /// - /// IDX cella associata alla linea corrente + /// CodBLocco associato alla linea corrente /// - protected int idxCella + protected string CodBlocco { get { - int answ = 0; - if (memLayer.ML.isInSessionObject("IdxCellaLineaLM_OUT")) + string answ = ""; + if (memLayer.ML.isInSessionObject("CodBloccoLineaLFM_OUT")) { - answ = memLayer.ML.IntSessionObj("IdxCellaLineaLM_OUT"); + answ = memLayer.ML.StringSessionObj("CodBloccoLineaLFM_OUT"); } return answ; } set { - memLayer.ML.setSessionVal("IdxCellaLineaLM_OUT", value); + memLayer.ML.setSessionVal("CodBloccoLineaLFM_OUT", value); } } /// - /// verifica se si debba mostrare un campo ricerca attivo... - /// - private void fixRicercaUdc() - { - if (memLayer.ML.isInSessionObject("valoreCercatoLMO")) - { - testoRicerca = memLayer.ML.StringSessionObj("valoreCercatoLMO"); - } - - } - /// /// richiesta (ri)stampa UDC /// /// @@ -210,8 +171,6 @@ namespace GMW.WebUserControls /// private void traduciObj() { - // labels - btnCerca.Text = traduci("btnSearch"); //txtBox txtQta.Text = memLayer.ML.confReadString("QtaImballoFiniti"); // buttons @@ -237,15 +196,6 @@ namespace GMW.WebUserControls } } /// - /// wrapper traduzione - /// - /// - /// - public string traduci(object lemma) - { - return user_std.UtSn.Traduci(lemma.ToString()); - } - /// /// indica il codice articolo correntemente selezionato /// protected string currParticolare @@ -260,16 +210,6 @@ namespace GMW.WebUserControls } } /// - /// indica se i caratteri vadano forzati a maiuscoli - /// - public bool forceUppercase - { - get - { - return memLayer.ML.confReadBool("forceUppercase"); - } - } - /// /// num pezzi dell'ultimo UDC del particolare generato /// public int pezziUdc @@ -437,6 +377,9 @@ namespace GMW.WebUserControls // imposto il particolare corrente currParticolare = barcodeIn; impostaParticolare(); + + // !!!FARE!!! nuovo comportamento x particolare + break; case tipoCodiceBarcode.UDC: // procedo solo se UDC esistente @@ -444,6 +387,10 @@ namespace GMW.WebUserControls { // calcolo nuovo particolare string newPart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare; + + + // !!!FARE!!! nuovo comportamento x particolare +#if false // 2015.09.25 salvo barcode UDC SSE NON E' un finito (flusso = "FI") --> dovrebbe evitare poi di avere relazioni UDC tra finito --> finito con consumo di uno x creazione altro... if (barcodeIn.IndexOf(flusso) < 0) { @@ -458,13 +405,8 @@ namespace GMW.WebUserControls // se era presente in elenco "P" lo elimino udcSelP = udcSelP.Replace(string.Format("#{0}#", barcodeIn), ""); } - } + } updFiltroPart(newPart); - //tolto x richiesta di quel pelato di Gian 2014.02.11 -#if false - // imposto particolare! - currParticolare = newPart; - impostaParticolare(); #endif } @@ -513,14 +455,11 @@ namespace GMW.WebUserControls } barcodeIn = ""; } -#if false else { Postazione.messaggiText = traduci("AttesaBCode"); Postazione.CssClass = "stileAttesa"; - } -#endif - //grView.DataBind(); + } txtBarcode.Focus(); } /// @@ -555,29 +494,11 @@ namespace GMW.WebUserControls } } /// - /// update del filtro su particolare x grview UDC caricati in linea - /// - /// - private void updFiltroPart(string newPart) - { - if (testoRicerca != newPart) - { - // imposto filtraggio x particoalre nell'elenco degli UDC della linea... - testoRicerca = newPart; - // salvo UDC da selezionare come consumo COMPLETO - salvaCerca(); - } - else - { - doUpdate(); - } - } - /// /// aggiorna tabella + focus a barcode /// public void doUpdate() { - idxCella = Postazione.currIdxCella; + CodBlocco = Postazione.currCodBlocco; checkStampa(); grView.DataBind(); txtBarcode.Focus(); @@ -587,6 +508,26 @@ namespace GMW.WebUserControls eh_reqUpdate(this, new EventArgs()); } } + + public bool isExcluded(object dateTimeIn) + { + bool answ = false; + DateTime dtIN = DateTime.Today; + DateTime adesso = DateTime.Now; + try + { + dtIN = Convert.ToDateTime(dateTimeIn); + } + catch + { } + // controllo DataOra IN nella linea multipla: se è < minimo tempo attraversamento oppure > max tempo attraversamento (da web.config) DEVE ESSERE BARRATA come ESCLUSA... + double etaUdc = adesso.Subtract(dtIN).TotalMinutes; + if (etaUdc < memLayer.ML.CRI("minTimeW25") || etaUdc > memLayer.ML.CRI("maxTimeW25")) + { + answ = true; + } + return answ; + } /// /// controllo l'abilitazioen alla stampa UDC: /// - particolare ok @@ -600,11 +541,13 @@ namespace GMW.WebUserControls //controllo siano inseriti valori qta if (qta > 0) { +#if false // controllo ci siano particolare e ci sia selezionato almeno un UDC if (currParticolare != "" && ((udcSelC.Replace("#", "").Length > 1) || (udcSelP.Replace("#", "").Length > 1))) { stampaOk = true; - } + } +#endif } divNote.Visible = stampaOk; } @@ -630,6 +573,7 @@ namespace GMW.WebUserControls string partUdcIn = ""; try { +#if false string fullUdc = string.Format("{0}#{1}", udcSelC, udcSelP); // ciclo tutti gli UDC consumati P e C e verifico loro particolare if (fullUdc.Replace("#", "").Length > 1) @@ -637,7 +581,8 @@ namespace GMW.WebUserControls string[] elencoUDC; elencoUDC = fullUdc.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries); partUdcIn = checkPartUDC(elencoUDC); - } + } +#endif } catch { } @@ -656,10 +601,6 @@ namespace GMW.WebUserControls string newUdcChild = ""; int qta = memLayer.ML.confReadInt("QtaImballoFiniti"); string noteTrim = txtNote.Text.Trim(); - // 2014.05.08 tolto e spostato in classe postazione gestione NOME LINEA x note, da verificare... -#if false - string nomeLinea = ddlLinea.SelectedItem.Text; -#endif noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim); try { @@ -724,6 +665,7 @@ namespace GMW.WebUserControls // devo gestire associazione e consumo cartellini FUSI if (newUdcChild != "") { +#if false string[] UDC_P; // ASSOCIO tutti gli UDC consumati sia Parziali che Completi al nuovo UDC if (udcSelP.Replace("#", "").Length > 1) @@ -741,7 +683,8 @@ namespace GMW.WebUserControls associaUdc(newUdcChild, UDC_P); // consumo gli UDC indicati come "C" consumaUdc(UDC_P); - } + } +#endif // ora stampo il nuovo cartellino!!! MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName); @@ -796,29 +739,18 @@ namespace GMW.WebUserControls Response.Redirect(user_std.pagCorrente); } } + /// - /// effettua il consumo di tutti gli UDC inviati come array di stringhe + /// effettua consumo UDC /// - /// - private void consumaUdc(string[] UDC_P) + /// + private void consumaUdc(string oldUdc) { - if (UDC_P.Length > 0) + // se è consumabile (IdxPosizione > 0)... + if (MagClass.magazzino.udcMpIsConsumabile(oldUdc)) { - // ciclo - foreach (string udc_p in UDC_P) - { - // se UDC è NON vuoto ed esiste - if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p)) - { - // se è consumabile (IdxPosizione > 0)... - if (MagClass.magazzino.udcMpIsConsumabile(udc_p)) - { - // consumo UDC - MagClass.magazzino.scaricaUdcMpWip(udc_p, Request.UserHostName); - // sposta UDC da posizione corrente a nessuna... - } - } - } + // consumo UDC + MagClass.magazzino.scaricaUdcMpWip(oldUdc, Request.UserHostName); } } /// @@ -826,63 +758,16 @@ namespace GMW.WebUserControls /// /// UDC da associare come child /// vettore di UDC da associare come parent - private void associaUdc(string newUdcChild, string[] UDC_P) + private void associaUdc(string newUdcChild, string UDC_Parent) { - if (UDC_P.Length > 0) + + // se UDC è NON vuoto ed esiste + if (UDC_Parent != "" && MagClass.magazzino.checkUDC(UDC_Parent)) { - // ciclo - foreach (string udc_p in UDC_P) - { - // se UDC è NON vuoto ed esiste - if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p)) - { - MagClass.magazzino.associaUdcParent(newUdcChild, udc_p, true); - } - } + MagClass.magazzino.associaUdcParent(newUdcChild, UDC_Parent, true); } } /// - /// verifica che il vettore di UDC abbia tutto lo stesso particolare e lo restituisce, altrimenti restituisce "" - /// - /// vettore di UDC da verificare - private string checkPartUDC(string[] UDC_P) - { - string answ = ""; - if (UDC_P.Length > 0) - { - // imposto il primo particolare... - answ = MagClass.magazzino.getParticolareByUDC(UDC_P[0]); - // ciclo - foreach (string udc_p in UDC_P) - { - if (MagClass.magazzino.getParticolareByUDC(udc_p) != answ) answ = ""; // se uno è diverso "azzero" - } - } - return answ; - } - /// - /// wrapper per log con salvataggio dell'IP del chiamante - /// - /// - /// - public bool httpLog(string _testoPre) - { - bool answ = false; - logger.lg.scriviLog(Postazione.IP + _testoPre); - return answ; - } - /// - /// wrapper per log con salvataggio dell'IP del chiamante - /// - /// - /// - public bool httpLog(string testoLog, tipoLog tipo) - { - bool answ = false; - logger.lg.scriviLog(Postazione.IP + testoLog, tipo); - return answ; - } - /// /// effettua reset dati /// public void doResetData() @@ -891,8 +776,6 @@ namespace GMW.WebUserControls qta = 0; currParticolare = ""; txtQta.Text = ""; - testoRicerca = ""; - salvaCerca(); doChecks(); } /// @@ -911,16 +794,6 @@ namespace GMW.WebUserControls eh_reqUpdate(this, new EventArgs()); } } - /// - /// passo alla modalità IN - /// - /// - /// - protected void btnIn_Click(object sender, EventArgs e) - { - Response.Redirect("LavorMeccIN.aspx"); - } - /// /// effettua refresh (su db) del blocco postazione /// @@ -936,6 +809,7 @@ namespace GMW.WebUserControls MagClass.magazzino.taAL.updatePost(codLinea, Postazione.name); } } +#if false /// /// CODICE cella associata alla linea corrente /// @@ -944,9 +818,9 @@ namespace GMW.WebUserControls get { string answ = ""; - if (memLayer.ML.isInSessionObject("codCellaLM")) + if (memLayer.ML.isInSessionObject("codCellaLFM")) { - answ = memLayer.ML.StringSessionObj("codCellaLM"); + answ = memLayer.ML.StringSessionObj("codCellaLFM"); } return answ; } @@ -954,7 +828,7 @@ namespace GMW.WebUserControls { memLayer.ML.setSessionVal("codCellaLM", value); } - } + } /// /// codice della linea corrente /// @@ -974,77 +848,12 @@ namespace GMW.WebUserControls memLayer.ML.setSessionVal(string.Format("LineaOut-{0}", uid), value); } } +#endif /// - /// cambiato valore in ricerca + /// cambio indice pagina /// /// /// - protected void txtCerca_TextChanged(object sender, EventArgs e) - { - // se è nuovo il testo resetto - if (testoRicerca != SteamWare.memLayer.ML.StringSessionObj("valoreCercatoLMO")) - { - udcSelC = ""; - udcSelP = ""; - } - salvaCerca(); - } - /// - /// effettuato reset - /// - /// - /// - protected void lnkReset_Click(object sender, EventArgs e) - { - testoRicerca = ""; - salvaCerca(); - } - /// - /// pressione del button di ricerca - /// - /// - /// - protected void btnCerca_Click(object sender, EventArgs e) - { - salvaCerca(); - } - - /// - /// testo ricerca trimmato da spazi - /// - protected string testoRicerca - { - get - { - return txtCerca.Text.Trim(); - } - set - { - txtCerca.Text = value; - } - } - /// - /// salvo ricerca particolare - /// - protected void salvaCerca() - { - if (testoRicerca == "") - { - SteamWare.memLayer.ML.emptySessionVal("valoreCercatoLMO"); - udcSelC = ""; - udcSelP = ""; - } - else - { - SteamWare.memLayer.ML.setSessionVal("valoreCercatoLMO", testoRicerca); - } - // raise dell'evento - if (eh_nuovaRicerca != null) - { - eh_nuovaRicerca(this, new EventArgs()); - } - doUpdate(); - } protected void grView_PageIndexChanged(object sender, EventArgs e) { // fix dell'ODS @@ -1101,54 +910,6 @@ namespace GMW.WebUserControls } } - protected void rbl_DataBinding(object sender, EventArgs e) - { - RadioButtonList rbl = (RadioButtonList)sender; - if (udcSelC.IndexOf(rbl.ToolTip) >= 0) - { - rbl.SelectedValue = "C"; - } - else if (udcSelP.IndexOf(rbl.ToolTip) >= 0) - { - rbl.SelectedValue = "P"; - } - } - - protected void rbl_DataBound(object sender, EventArgs e) - { - - } - /// - /// selezione UDC da elenco - /// - /// - /// - protected void rbl_SelectedIndexChanged(object sender, EventArgs e) - { - RadioButtonList rbl = (RadioButtonList)sender; - if (rbl.SelectedValue == "C") - { - udcSelC = string.Format("{0}#{1}#", udcSelC, rbl.ToolTip); - // se era presente in elenco "P" lo elimino - udcSelP = udcSelP.Replace(string.Format("#{0}#", rbl.ToolTip), ""); - } - else - { - udcSelP = string.Format("{0}#{1}#", udcSelP, rbl.ToolTip); - // se era presente in elenco "C" lo elimino - udcSelC = udcSelC.Replace(string.Format("#{0}#", rbl.ToolTip), ""); - } - // calcolo il particolare da selezionare... - string newPart = DataProxy.obj.taCartellini.stp_getByUdc(rbl.ToolTip)[0].Particolare; - updFiltroPart(newPart); - checkStampa(); - // raise dell'evento - if (eh_reqUpdate != null) - { - eh_reqUpdate(this, new EventArgs()); - } - } - /// /// preseleziono (se possibile) imballo... /// diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 2bcf8a87..6d3a2acf 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index e8babba6..f7fa8a29 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index d56201c2..c878578a 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll index a9f53dcf..552c1e4a 100644 Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ diff --git a/GMW_data/GMW_data.csproj b/GMW_data/GMW_data.csproj index f1d18a31..cd423f60 100644 --- a/GMW_data/GMW_data.csproj +++ b/GMW_data/GMW_data.csproj @@ -151,6 +151,7 @@ 3.5 + 3.5 @@ -239,6 +240,9 @@ + + ASPXCodeBehind +