diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll
index 3420325f..80ddce2c 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 c45b0306..36836b51 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 426809a8..49d32877 100644
Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ
diff --git a/GMW/GMW.csproj b/GMW/GMW.csproj
index d059bcba..c9fbb9e5 100644
--- a/GMW/GMW.csproj
+++ b/GMW/GMW.csproj
@@ -446,7 +446,7 @@
-
+
@@ -1453,12 +1453,12 @@
mod_periodoAnalisi.ascx
-
- mod_postFusioni.ascx
+
+ mod_PostFusioni.ascx
ASPXCodeBehind
-
- mod_postFusioni.ascx
+
+ mod_PostFusioni.ascx
mod_PostLiq_DT.ascx
diff --git a/GMW/Post_FusioniSP.aspx b/GMW/Post_FusioniSP.aspx
index 0ded43e3..e057226e 100644
--- a/GMW/Post_FusioniSP.aspx
+++ b/GMW/Post_FusioniSP.aspx
@@ -1,5 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="Post_FusioniSP.aspx.cs" Inherits="GMW.Post_FusioniSP" %>
+<%@ Register src="~/WebUserControls/mod_PostFusioni.ascx" tagname="mod_PostFusioni" tagprefix="uc1" %>
+
@@ -23,4 +25,5 @@
Creazione report anomalie quotidiano (orientativamente conteggio numero datamatrix di ogni fase, conteggio anomalie e qualificazione delle stesse)
Nuova postazione da inserire in area fusione per la stampa di etichette adesive barcode adeguatamente formattato da gestire come attributo UDC e che permetta di salvare data-ora di fine fusione (come data-ora stampa) per poterle legare poi al cartellino e all’assieme RX successivo tramite scansione pistola barcode
+
diff --git a/GMW/Post_FusioniSP.aspx.designer.cs b/GMW/Post_FusioniSP.aspx.designer.cs
index 0b00d558..f8963a60 100644
--- a/GMW/Post_FusioniSP.aspx.designer.cs
+++ b/GMW/Post_FusioniSP.aspx.designer.cs
@@ -3,15 +3,22 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
-namespace GMW
-{
-
-
- public partial class Post_FusioniSP
- {
+namespace GMW {
+
+
+ public partial class Post_FusioniSP {
+
+ ///
+ /// mod_PostFusioni1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_PostFusioni mod_PostFusioni1;
}
}
diff --git a/GMW/WebUserControls/mod_LiqDtAnom.ascx.cs b/GMW/WebUserControls/mod_LiqDtAnom.ascx.cs
index 3ff3e136..303fe158 100644
--- a/GMW/WebUserControls/mod_LiqDtAnom.ascx.cs
+++ b/GMW/WebUserControls/mod_LiqDtAnom.ascx.cs
@@ -645,7 +645,7 @@ namespace GMW.WebUserControls
// assegno datamatrix a Udc Destinazione e associo UDC TT ad UDC FI
bool spostaDtx = false;
// se lo trovo chiamo procedura di spostamento Dtx tra UDC sorgente --> dest
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCFin, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCFin, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, true);
return spostaDtx;
}
///
@@ -663,11 +663,11 @@ namespace GMW.WebUserControls
// se ho UdcRX lo cambio...
if (UDCRx != "")
{
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCRx, barcodeIn, "ContrRx", DateTime.Now, MagClass.magazzino.CodSoggCurrUser, true);
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCRx, barcodeIn, "ContrRx", DateTime.Now, MagClass.magazzino.CodSoggCurrUser, true, true);
}
// sostituisco UDC TT e Fin..
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCTratt, barcodeIn, statoUdcIn, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, true);
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCFin, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCTratt, barcodeIn, statoUdcIn, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, true, true);
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(UDCFin, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, true);
return spostaDtx;
}
///
diff --git a/GMW/WebUserControls/mod_PostLiq_DT.ascx.cs b/GMW/WebUserControls/mod_PostLiq_DT.ascx.cs
index 6a05fb5e..65a52196 100644
--- a/GMW/WebUserControls/mod_PostLiq_DT.ascx.cs
+++ b/GMW/WebUserControls/mod_PostLiq_DT.ascx.cs
@@ -550,33 +550,35 @@ namespace GMW.WebUserControls
}
if (NewUDC == "")
{
- // scambio UDC e prendo quello TT
- OldUDC = OldUDC.Replace(flussoTemp, flussoAnc);
- // controllo se devo usare chiamata a stored unica (UDC + aggancio AL + cella corretta) o due chiamate
- if (memLayer.ML.confReadBool("useStoredLiqSP"))
+ // verifico che NON sia modalità "rimozione" datamatrix
+ if (!chkDtxMode.Checked)
{
- // nuova stored con AL e cella......
- NewUDC = MagClass.magazzino.creaUdcWithAlCella(destAL, sourceAL, barcodeIn, statoUdcOut, Postazione.currCodCella, flusso, "", currParticolare, "", "", "", "", OldUDC, 0, memLayer.ML.confReadString("CodImballoFiniti"), "U", MagClass.magazzino.CodSoggCurrUser, pezziUdc, 0, 0, adesso, 0, statoUdcOut, memLayer.ML.confReadInt("IdxPosizioneFinTemp"), "IdxPosizioneFinTemp", codEventoUdcOut, "", "", adesso.Year, Request.UserHostName);
- }
- else
- {
- // oppure lo creo...
- NewUDC = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", OldUDC, 0, memLayer.ML.confReadString("CodImballoFiniti"), "U", MagClass.magazzino.CodSoggCurrUser, pezziUdc, 0, 0, adesso, 0, statoUdcOut, memLayer.ML.confReadInt("IdxPosizioneFinTemp"), "IdxPosizioneFinTemp", codEventoUdcOut, "", "", adesso.Year, Request.UserHostName);
- // lo associo all'AL!
- MagClass.magazzino.taAL2UDC.Insert(destAL, NewUDC, adesso, MagClass.magazzino.CodSoggCurrUser);
- // verifico se sia modalità "rimozione" datamatrix x cui tolgo i datamatrix dall'UDC finale..
- if (chkDtxMode.Checked)
+ // scambio UDC e prendo quello TT
+ OldUDC = OldUDC.Replace(flussoTemp, flussoAnc);
+ // controllo se devo usare chiamata a stored unica (UDC + aggancio AL + cella corretta) o due chiamate
+ if (memLayer.ML.confReadBool("useStoredLiqSP"))
{
- // tolgo da AL (se caricato), faccio udpate e sposto su UDC sorgente...
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(OldUDC, barcodeIn, statoUdcIn, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ // nuova stored con AL e cella......
+ NewUDC = MagClass.magazzino.creaUdcWithAlCella(destAL, sourceAL, barcodeIn, statoUdcOut, Postazione.currCodCella, flusso, "", currParticolare, "", "", "", "", OldUDC, 0, memLayer.ML.confReadString("CodImballoFiniti"), "U", MagClass.magazzino.CodSoggCurrUser, pezziUdc, 0, 0, adesso, 0, statoUdcOut, memLayer.ML.confReadInt("IdxPosizioneFinTemp"), "IdxPosizioneFinTemp", codEventoUdcOut, "", "", adesso.Year, Request.UserHostName);
}
else
{
- // se lo trovo chiamo procedura di spostamento Dtx tra UDC sorgente --> dest (con eventuale creazione dest)
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(NewUDC, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ // oppure lo creo...
+ NewUDC = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", OldUDC, 0, memLayer.ML.confReadString("CodImballoFiniti"), "U", MagClass.magazzino.CodSoggCurrUser, pezziUdc, 0, 0, adesso, 0, statoUdcOut, memLayer.ML.confReadInt("IdxPosizioneFinTemp"), "IdxPosizioneFinTemp", codEventoUdcOut, "", "", adesso.Year, Request.UserHostName);
+ // lo associo all'AL!
+ MagClass.magazzino.taAL2UDC.Insert(destAL, NewUDC, adesso, MagClass.magazzino.CodSoggCurrUser);
+
+
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(NewUDC, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, false);
+ // disattivo AL (se non era già disattivo...) x evitare si possa togliere senza chiudere...
+ MagClass.magazzino.taEA.DisattivaAL(sourceAL);
}
- // disattivo AL (se non era già disattivo...) x evitare si possa togliere senza chiudere...
- MagClass.magazzino.taEA.DisattivaAL(sourceAL);
+ }
+ else
+ {
+ Postazione.messaggiText = barcodeIn;
+ Postazione.warningText = traduci("UdcNonTrovato");
+ Postazione.CssClass = cssErr;
}
}
else
@@ -584,13 +586,19 @@ namespace GMW.WebUserControls
// verifico se sia modalità "rimozione" datamatrix x cui tolgo i datamatrix dall'UDC finale..
if (chkDtxMode.Checked)
{
- // tolgo da AL (se caricato), faccio udpate e sposto su UDC sorgente...
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(OldUDC, barcodeIn, statoUdcIn, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ // scambio UDC e prendo quello TT
+ OldUDC = OldUDC.Replace(flussoTemp, flussoAnc);
+ // VERIFICO se Dtx sia GIA' in udc destinazione...
+ if (DataMatrix.mgr.taDtx2UDC.getByDtx(barcodeIn).Select(string.Format("UDC = '{0}'", NewUDC)).Length > 0)
+ {
+ // tolgo da AL (se caricato), faccio update e sposto su UDC sorgente...
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(OldUDC, barcodeIn, statoUdcIn, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, true);
+ }
}
else
{
// se lo trovo chiamo procedura di spostamento Dtx tra UDC sorgente --> dest (con eventuale creazione dest)
- DataMatrix.mgr.taDtx2UDC.UpdateUDC(NewUDC, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false);
+ DataMatrix.mgr.taDtx2UDC.UpdateUDC(NewUDC, barcodeIn, statoUdcOut, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, false);
}
// disattivo AL (se non era già disattivo...) x evitare si possa togliere senza chiudere...
MagClass.magazzino.taEA.DisattivaAL(sourceAL);
diff --git a/GMW/WebUserControls/mod_postFusioni.ascx b/GMW/WebUserControls/mod_postFusioni.ascx
index 8ad0d7e1..69a1dcc4 100644
--- a/GMW/WebUserControls/mod_postFusioni.ascx
+++ b/GMW/WebUserControls/mod_postFusioni.ascx
@@ -1,4 +1,4 @@
-<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_postFusioni.ascx.cs" Inherits="GMW.WebUserControls.mod_postFusioni" %>
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_PostFusioni.ascx.cs" Inherits="GMW.WebUserControls.mod_PostFusioni" %>
deve riportare un orologio e possibilità di stampare un barcode su stampante etichette che poi (letto agli RX) permette di caricare l'attributo della fusione (dataora)
formato barcode: DT + data-ora
diff --git a/GMW/WebUserControls/mod_postFusioni.ascx.cs b/GMW/WebUserControls/mod_postFusioni.ascx.cs
index a43922ad..50089e2e 100644
--- a/GMW/WebUserControls/mod_postFusioni.ascx.cs
+++ b/GMW/WebUserControls/mod_postFusioni.ascx.cs
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace GMW.WebUserControls
{
- public partial class mod_postFusioni : System.Web.UI.UserControl
+ public partial class mod_PostFusioni : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
diff --git a/GMW/WebUserControls/mod_postFusioni.ascx.designer.cs b/GMW/WebUserControls/mod_postFusioni.ascx.designer.cs
index a8df02b3..0c7eb9c4 100644
--- a/GMW/WebUserControls/mod_postFusioni.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_postFusioni.ascx.designer.cs
@@ -11,7 +11,7 @@ namespace GMW.WebUserControls
{
- public partial class mod_postFusioni
+ public partial class mod_PostFusioni
{
}
}
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index 003afa6b..bb40ad27 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 c45b0306..36836b51 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 426809a8..49d32877 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 a9d85cbd..99c978a5 100644
Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ
diff --git a/GMW_data/DS_DataMatrix.Designer.cs b/GMW_data/DS_DataMatrix.Designer.cs
index a5d17ad6..d7c2c6d1 100644
--- a/GMW_data/DS_DataMatrix.Designer.cs
+++ b/GMW_data/DS_DataMatrix.Designer.cs
@@ -9148,6 +9148,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@updateQtyUdc", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@setAnom", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9560,7 +9561,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int UpdateUDC(string UDC, string DataMatrix, string CodStato, global::System.Nullable DataMod, string CodSoggetto, global::System.Nullable updateQtyUdc) {
+ public virtual int UpdateUDC(string UDC, string DataMatrix, string CodStato, global::System.Nullable DataMod, string CodSoggetto, global::System.Nullable updateQtyUdc, global::System.Nullable setAnom) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((UDC == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -9598,6 +9599,12 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC
else {
command.Parameters[6].Value = global::System.DBNull.Value;
}
+ if ((setAnom.HasValue == true)) {
+ command.Parameters[7].Value = ((bool)(setAnom.Value));
+ }
+ else {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
diff --git a/GMW_data/DS_DataMatrix.xsd b/GMW_data/DS_DataMatrix.xsd
index 30484866..2165775d 100644
--- a/GMW_data/DS_DataMatrix.xsd
+++ b/GMW_data/DS_DataMatrix.xsd
@@ -545,6 +545,7 @@ SELECT DataMatrix, CodStato, UDC, DataOra, CodSoggetto, Particolare FROM Dtx2UDC
+
@@ -821,7 +822,7 @@ FROM v_Attr2Dtx
-
+
@@ -834,7 +835,7 @@ FROM v_Attr2Dtx
-
+
@@ -848,7 +849,7 @@ FROM v_Attr2Dtx
-
+
@@ -883,7 +884,7 @@ FROM v_Attr2Dtx
-
+
@@ -903,7 +904,7 @@ FROM v_Attr2Dtx
-
+
@@ -923,7 +924,7 @@ FROM v_Attr2Dtx
-
+
@@ -965,7 +966,7 @@ FROM v_Attr2Dtx
-
+
@@ -978,7 +979,7 @@ FROM v_Attr2Dtx
-
+
@@ -1014,7 +1015,7 @@ FROM v_Attr2Dtx
-
+
@@ -1050,7 +1051,7 @@ FROM v_Attr2Dtx
-
+
diff --git a/VersGen/GMW.cs b/VersGen/GMW.cs
index e3252181..1f613e78 100644
--- a/VersGen/GMW.cs
+++ b/VersGen/GMW.cs
@@ -5,7 +5,7 @@
using System.Reflection;
-[assembly: AssemblyVersion("2.5.697.1621")]
-[assembly: AssemblyFileVersion("2.5.697.1621")]
+[assembly: AssemblyVersion("2.5.698.1622")]
+[assembly: AssemblyFileVersion("2.5.698.1622")]
[assembly: AssemblyCopyright("Steamware © 2007-2014")]
[assembly: AssemblyCompany("Steamware")]
diff --git a/VersGen/GMW.tt b/VersGen/GMW.tt
index b02b95c2..b6b3a796 100644
--- a/VersGen/GMW.tt
+++ b/VersGen/GMW.tt
@@ -6,8 +6,8 @@
using System.Reflection;
-[assembly: AssemblyVersion("2.5.697.<#= this.RevisionNumber #>")]
-[assembly: AssemblyFileVersion("2.5.697.<#= this.RevisionNumber #>")]
+[assembly: AssemblyVersion("2.5.698.<#= this.RevisionNumber #>")]
+[assembly: AssemblyFileVersion("2.5.698.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+