diff --git a/GMW/WebUserControls/mod_PostFin_DT.ascx.cs b/GMW/WebUserControls/mod_PostFin_DT.ascx.cs
index 5d68caf4..bdf759bf 100644
--- a/GMW/WebUserControls/mod_PostFin_DT.ascx.cs
+++ b/GMW/WebUserControls/mod_PostFin_DT.ascx.cs
@@ -302,6 +302,7 @@ namespace GMW.WebUserControls
{
doReset();
}
+#if false
else if (barcodeIn == memLayer.ML.cdv("cmdCloseAL"))
{
// forza reset linea
@@ -309,7 +310,8 @@ namespace GMW.WebUserControls
sourceAL = "";
// resetta!
doReset();
- }
+ }
+#endif
break;
case tipoCodiceBarcode.UDC:
// controllo di avere destAL valido, sennò ricarico pagina...
@@ -318,50 +320,85 @@ namespace GMW.WebUserControls
// controllo se sia un UDC valido...
if (MagClass.magazzino.checkUDC(barcodeIn))
{
- // controllo se sia un UDC di finiti LIQ in posizione 4...
- DS_magazzino.ElencoCartelliniRow cartUDC = MagClass.magazzino.taCartellini.getByUdc(barcodeIn)[0];
- if (cartUDC.CodStato == statoUDC && cartUDC.IdxPosizione == memLayer.ML.cdvi("IdxPosizioneFiniti"))
+ // recupero particolare...
+ string Particolare = "";
+ string formato_DmtxUdc = "";
+ try
+
{
- // controllo NON ci sia già un UDC di pari particolare caricato nella postazione corrente (non posso avere 2 UDC a pari particolare da riempire...)
- if (MagClass.magazzino.taCartellini.getByParticolareAL(cartUDC.Particolare, destAL).Rows.Count == 0)
+ Particolare = MagClass.magazzino.taCartellini.getByUdc(barcodeIn)[0].Particolare;
+ }
+ catch
+ { }
+ if (Particolare != "")
+ {
+ // recupero formato Dmtx particolare...
+ formato_DmtxUdc = FormatoDtmxPartic(Particolare);
+ }
+ // verifico che il particolare dell'UDC sia compatibile con i formati datamatrix permessi sulla linea...
+ if (formato_DmtxUdc == FormatoDtmxLinea)
+ {
+ // verifico stato: tratt a sx, fin a dx...
+
+
+
+
+
+
+
+
+
+ // controllo se sia un UDC di finiti LIQ in posizione 4...
+ DS_magazzino.ElencoCartelliniRow cartUDC = MagClass.magazzino.taCartellini.getByUdc(barcodeIn)[0];
+ if (cartUDC.CodStato == statoUDC && cartUDC.IdxPosizione == memLayer.ML.cdvi("IdxPosizioneFiniti"))
{
- // controllo NON sia UDC in LDP e già PRELEVATO
- if (MagClass.magazzino.taRigheListePrelievo.getByUdc(barcodeIn).Select("Prelevato = 1").Length == 0)
+ // controllo NON ci sia già un UDC di pari particolare caricato nella postazione corrente (non posso avere 2 UDC a pari particolare da riempire...)
+ if (MagClass.magazzino.taCartellini.getByParticolareAL(cartUDC.Particolare, destAL).Rows.Count == 0)
{
- // se è ok RICARICO UDC in posizione corrente...
- bool fatto = MagClass.magazzino.liquidiRiprendiInCaricoUDC(barcodeIn, MagClass.magazzino.CodSoggCurrUser, destAL, Postazione.currIdxCella);
- if (fatto)
+ // controllo NON sia UDC in LDP e già PRELEVATO
+ if (MagClass.magazzino.taRigheListePrelievo.getByUdc(barcodeIn).Select("Prelevato = 1").Length == 0)
{
- Postazione.messaggiText = traduci("RiCaricatoUdcLiq");
- Postazione.warningText = "";
- Postazione.CssClass = cssOk;
- checkUpdateTablet(barcodeIn);
+ // se è ok RICARICO UDC in posizione corrente...
+ bool fatto = MagClass.magazzino.liquidiRiprendiInCaricoUDC(barcodeIn, MagClass.magazzino.CodSoggCurrUser, destAL, Postazione.currIdxCella);
+ if (fatto)
+ {
+ Postazione.messaggiText = traduci("RiCaricatoUdcLiq");
+ Postazione.warningText = "";
+ Postazione.CssClass = cssOk;
+ checkUpdateTablet(barcodeIn);
+ }
+ else
+ {
+ Postazione.messaggiText = "";
+ Postazione.warningText = traduci("ERR-LIQ-001");
+ Postazione.CssClass = cssErr;
+ }
}
else
{
Postazione.messaggiText = "";
- Postazione.warningText = traduci("ERR-LIQ-001");
+ Postazione.warningText = traduci("ERR-LIQ-005");
Postazione.CssClass = cssErr;
}
}
else
{
Postazione.messaggiText = "";
- Postazione.warningText = traduci("ERR-LIQ-005");
+ Postazione.warningText = traduci("ERR-LIQ-004");
Postazione.CssClass = cssErr;
}
}
else
{
Postazione.messaggiText = "";
- Postazione.warningText = traduci("ERR-LIQ-004");
+ Postazione.warningText = traduci("ERR-LIQ-002");
Postazione.CssClass = cssErr;
}
}
else
{
- Postazione.messaggiText = "";
- Postazione.warningText = traduci("ERR-LIQ-002");
+ //Postazione.messaggiText = "UDC: " + barcodeIn;
+ Postazione.warningText = traduci("ERR-UDC-DTX-001");
Postazione.CssClass = cssErr;
}
}
@@ -379,6 +416,7 @@ namespace GMW.WebUserControls
Postazione.CssClass = cssErr;
}
break;
+#if false
case tipoCodiceBarcode.AL:
// se linea libera...
if (currAL == "")
@@ -421,7 +459,8 @@ namespace GMW.WebUserControls
Postazione.warningText = traduci("ERR-ALT-002");
Postazione.CssClass = cssErr;
}
- break;
+ break;
+#endif
case tipoCodiceBarcode.DataMatrixTrovato:
string OldUDC = "";
int IdxPosizione = 0;
diff --git a/GMW_data/DS_DataMatrix.Designer.cs b/GMW_data/DS_DataMatrix.Designer.cs
index 13a8bbb1..bc17245c 100644
--- a/GMW_data/DS_DataMatrix.Designer.cs
+++ b/GMW_data/DS_DataMatrix.Designer.cs
@@ -19167,7 +19167,7 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT PartNumber, Particolare, FormatoDtmx FROM dbo.TrascDatamatrix";
@@ -19180,20 +19180,26 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dmtx.stp_TPN2P_getByTipo";
+ this._commandCollection[2].CommandText = "dmtx.stp_TPN2P_getByParticolare";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FormatoDtmx", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dmtx.stp_TD_updateQuery";
+ this._commandCollection[3].CommandText = "dmtx.stp_TPN2P_getByTipo";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FormatoDtmx", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dmtx.stp_TD_updateQuery";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FormatoDtmx", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -19224,8 +19230,25 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_DataMatrix.TrascDatamatrixDataTable getByPnFormato(string FormatoDtmx, string PartNumber) {
+ public virtual DS_DataMatrix.TrascDatamatrixDataTable getByParticolare(string Particolare) {
this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((Particolare == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Particolare));
+ }
+ DS_DataMatrix.TrascDatamatrixDataTable dataTable = new DS_DataMatrix.TrascDatamatrixDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_DataMatrix.TrascDatamatrixDataTable getByPnFormato(string FormatoDtmx, string PartNumber) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((FormatoDtmx == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -19447,7 +19470,7 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int updateQuery(string FormatoDtmx, string Particolare, string PartNumber, string Original_PartNumber) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((FormatoDtmx == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/GMW_data/DS_DataMatrix.xsd b/GMW_data/DS_DataMatrix.xsd
index 71e8ec0e..dd563a43 100644
--- a/GMW_data/DS_DataMatrix.xsd
+++ b/GMW_data/DS_DataMatrix.xsd
@@ -1332,6 +1332,17 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
+
+
+
+ dmtx.stp_TPN2P_getByParticolare
+
+
+
+
+
+
+
@@ -1712,7 +1723,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1732,7 +1743,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1746,7 +1757,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1781,7 +1792,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1801,7 +1812,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1821,7 +1832,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1863,7 +1874,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1876,7 +1887,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1912,7 +1923,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1948,7 +1959,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -1961,7 +1972,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2002,7 +2013,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2075,7 +2086,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2120,7 +2131,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2147,7 +2158,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2184,7 +2195,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2204,7 +2215,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2224,7 +2235,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2251,7 +2262,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2316,7 +2327,7 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
+
@@ -2408,9 +2419,9 @@ SELECT CodLinea, FormatoDtmx, DTX_INI, CodSoggetto_INI, DataOra_INI, DTX_END, Co
-
-
-
+
+
+
\ No newline at end of file
diff --git a/GMW_data/DS_DataMatrix.xss b/GMW_data/DS_DataMatrix.xss
index fb16c99e..99511218 100644
--- a/GMW_data/DS_DataMatrix.xss
+++ b/GMW_data/DS_DataMatrix.xss
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
@@ -26,7 +26,7 @@
-
+
diff --git a/GMW_data/UserControlBCodeMan.cs b/GMW_data/UserControlBCodeMan.cs
index 0f79dfc8..4d6098b7 100644
--- a/GMW_data/UserControlBCodeMan.cs
+++ b/GMW_data/UserControlBCodeMan.cs
@@ -34,7 +34,7 @@ namespace GMW_data
public string cssAdd = "stileComandoAdd";
#endregion
-
+
#region area base comune (variabili, valori eventi - stati - tipi - posizioni)
@@ -128,7 +128,7 @@ namespace GMW_data
public tipoCartellino tipoCartCurr = tipoCartellino.cartND;
#endregion
-
+
#region area base comune (metodi generali)
@@ -230,11 +230,10 @@ namespace GMW_data
MagClass.magazzino.taAL.updateCurrVal(Postazione.currCodLinea, value);
}
}
-
///
/// Formato Datamatrix della linea selezionata
///
- protected string FormatoDtmxLinea
+ public string FormatoDtmxLinea
{
get
{
@@ -249,6 +248,44 @@ namespace GMW_data
}
}
///
+ /// Formato Datamatrix dell'ultimo Datamatrix letto (come barcode)
+ ///
+ public string FormatoDtmxBarcode
+ {
+ get
+ {
+ return FormatoDtmxDecod(barcodeIn);
+ }
+ }
+ ///
+ /// decodifica formato Datamatrix
+ ///
+ public string FormatoDtmxDecod(string datamatrix)
+ {
+ string answ = "";
+ try
+ {
+ answ = DataMatrix.mgr.taVerifica.GetData(datamatrix)[0].FormatoDtmx;
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// Formato Datamatrix da particolare (tab TrascDatamatrix)
+ ///
+ public string FormatoDtmxPartic(string Particolare)
+ {
+ string answ = "";
+ try
+ {
+ answ = DataMatrix.mgr.taTDtmx.getByParticolare(Particolare)[0].FormatoDtmx;
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
/// codice particolare da datamatrix
///
/// boolean:
@@ -769,7 +806,7 @@ namespace GMW_data
// fix dell'ODS
checkFixOds();
}
-
+
public virtual void grView_Sorted(object sender, EventArgs e)
{
// fix dell'ODS
diff --git a/GMW_data/app.config b/GMW_data/app.config
index 3500faf0..5b921c9e 100644
--- a/GMW_data/app.config
+++ b/GMW_data/app.config
@@ -7,7 +7,7 @@
-
+
diff --git a/GMW_data/bin/Debug/GMW_data.dll.config b/GMW_data/bin/Debug/GMW_data.dll.config
index 3500faf0..5b921c9e 100644
--- a/GMW_data/bin/Debug/GMW_data.dll.config
+++ b/GMW_data/bin/Debug/GMW_data.dll.config
@@ -7,7 +7,7 @@
-
+