diff --git a/GMW/GMW/Web.config b/GMW/GMW/Web.config
index 8bb10194..47cf768e 100644
--- a/GMW/GMW/Web.config
+++ b/GMW/GMW/Web.config
@@ -62,7 +62,7 @@
-
+
@@ -109,7 +109,8 @@
-
+
+
diff --git a/GMW/GMW/WebUserControls/mod_labConsUdc.ascx.cs b/GMW/GMW/WebUserControls/mod_labConsUdc.ascx.cs
index 9eda44e9..e5d80577 100644
--- a/GMW/GMW/WebUserControls/mod_labConsUdc.ascx.cs
+++ b/GMW/GMW/WebUserControls/mod_labConsUdc.ascx.cs
@@ -221,7 +221,6 @@ namespace GMW.WebUserControls
///
protected void btnConsumaMP_Click(object sender, EventArgs e)
{
- DateTime start;
string UDC = "";
foreach (GridViewRow riga in grView.Rows)
{
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 29064f25..a86fbb27 100644
Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ
diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll
index a9ea05fa..94533cb1 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/mazzAppSettings.config b/GMW/GMW/mazzAppSettings.config
index 3fb97f24..fa494b3f 100644
--- a/GMW/GMW/mazzAppSettings.config
+++ b/GMW/GMW/mazzAppSettings.config
@@ -7,7 +7,7 @@
-
+
@@ -54,7 +54,8 @@
-
+
+
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index 29064f25..cc5e0e4f 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache
index 2008c10b..8022d30c 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll
index b72a306f..a86fbb27 100644
Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ
diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache
index aadc9fb3..c3db9dd6 100644
Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS/Web.config b/GMW/GMW_WS/Web.config
index 7d655cf6..2a46f515 100644
--- a/GMW/GMW_WS/Web.config
+++ b/GMW/GMW_WS/Web.config
@@ -88,7 +88,7 @@
-
+
@@ -126,7 +126,8 @@
-
+
+
diff --git a/GMW/GMW_WS/bilance.asmx.cs b/GMW/GMW_WS/bilance.asmx.cs
index afcfc7c2..a05cfe4e 100644
--- a/GMW/GMW_WS/bilance.asmx.cs
+++ b/GMW/GMW_WS/bilance.asmx.cs
@@ -14,7 +14,7 @@ namespace GMW_WS
///
/// WebService per gestione sw bilance
///
- [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.300")]
+ [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW v.1.0.310")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class bilance : System.Web.Services.WebService
@@ -657,6 +657,96 @@ namespace GMW_WS
return answ;
}
+ ///
+ /// Fornisce un nuovo codice UDC da rientro terzissta tipo completo (con pezzi e cod magazzino) a partire dalla richiesta e salva i dati
+ ///
+ /// codice anagrafico della bilanca che effettua la richiesta (codice della pesa)
+ /// codice anagrafico del cliente
+ /// codice del particolare (articolo) - da anagrafica!
+ /// Codice dell'impianto
+ /// Codice dello stampo
+ /// codice dell'esponente dello stampo
+ /// Codice figura
+ /// Data di rif per la dichiarazione
+ /// Turno di rif per la dichiarazione
+ /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
+ /// codice dell'operatore
+ /// codice dell'UDC parent (UDC della tara)
+ /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
+ /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
+ /// numero pezzi associati all'UDC
+ /// Peso totale rilevato
+ /// Peso unitario rilevato
+ /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
+ /// Codice del magazzino in cui inserire l'UDC
+ /// TRUE = genera movimento AS400, FALSE = NON genera movimento di magazzino
+ /// UDC del nuovo cartellino per FINITI
+ [WebMethod(Description = "Fornisce un nuovo codice UDC da rientro terzissta tipo completo (con pezzi e cod magazzino) a partire dalla richiesta e salva i dati")]
+ public string UdcCall_GetNew_RientroTerz(string CodBilancia, string CodCliente, string Particolare, string CodImpianto, string CodStampo, string Esponente, string Figura, string UDC_Parent, double Tara, string CodImballo, string CodTipoDichiarazione, string CodSoggetto, int Quantita, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato, int CodMag, bool toAS400)
+ {
+ // trim fix
+ string CodBilanciaTrim = CodBilancia.Trim();
+ string CodClienteTrim = CodCliente.Trim();
+ string ParticolareTrim = Particolare.Trim();
+ string CodImpiantoTrim = CodImpianto.Trim();
+ string CodStampoTrim = CodStampo.Trim();
+ string EsponenteTrim = Esponente.Trim();
+ string FiguraTrim = Figura.Trim();
+ string UDC_ParentTrim = UDC_Parent.Trim();
+ string CodImballoTrim = CodImballo.Trim();
+ string CodTipoDichiarazioneTrim = CodTipoDichiarazione.Trim();
+ string CodSoggettoTrim = CodSoggetto.Trim();
+ string CodStatoTrim = CodStato.Trim();
+ // ricavo cod company...
+ string CodCS = "ND";
+ string answ = "NA";
+ try
+ {
+ CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilanciaTrim)[0].CodCS;
+ }
+ catch
+ {
+ CodCS = memLayer.ML.confReadString("CodCS");
+ }
+ int IdxPosizione = 0;
+ if (CodMag > 0)
+ {
+ IdxPosizione = CodMag;
+ }
+ else
+ {
+ IdxPosizione = memLayer.ML.confReadInt("IdxPosNewRienTerz");
+ }
+ // loggo tutto!
+ if (logLevel > 5)
+ {
+ try
+ {
+ logger.lg.scriviLog(string.Format("UdcCall_GetNew_WIP: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13} | {14} | {15} | {16} | {17} | {18} | {19} | {20} | {21} | {22}", CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_WIP", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false), tipoLog.INFO);
+ }
+ catch
+ { }
+ }
+ // creo nuovo cartellino!
+ DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_RITER", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false); // ATTENZIONE: "UDC_RITER" è "hard coded" nel db... !!!
+ // leggo la riga
+ try
+ {
+ answ = tabUdc[0].UDC;
+ // salvo associazioen parent-child tra UDC!
+ DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, answ);
+ }
+ catch
+ { }
+ // se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
+ if (!toAS400)
+ {
+ DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, answ, IdxPosizione.ToString(), Quantita);
+ }
+ return answ;
+ }
+
+
#endregion
#region gestione UDC: editing
@@ -694,12 +784,25 @@ namespace GMW_WS
{
// consuma il vecchio (parent) in magazzino... da 84 a -84...
MagClass.magazzino.scaricaUdcMpWip(UDC_ParentTrim);
- // salvo associazione parent-child tra UDC!
- DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, UDC_ChildTrim);
+
answ = true;
}
- catch
- { }
+ catch (Exception e)
+ {
+ logger.lg.scriviLog(string.Format("Errore nello scaricamento dell'udc {0}:{1}{2}", UDC_ParentTrim, Environment.NewLine, e), tipoLog.EXCEPTION);
+ }
+ if (answ) // solo se è andato scaricamento tento di creare associazioen cartellini
+ {
+ try
+ {
+ // salvo associazione parent-child tra UDC!
+ DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, UDC_ChildTrim);
+ }
+ catch (Exception e)
+ {
+ logger.lg.scriviLog(string.Format("Errore nell'associazione UDC padre/figlio tra {0} e {1}:{2}{3}", UDC_ParentTrim, UDC_ChildTrim, Environment.NewLine, e), tipoLog.EXCEPTION);
+ }
+ }
return answ;
}
@@ -909,6 +1012,95 @@ namespace GMW_WS
return answ;
}
+ ///
+ /// Sposta un UDC da 88 a 84 (con consumo immediato se da web.config)
+ ///
+ /// codice dell'UDC)
+ /// codice dell'operatore
+ /// restituisce true/false a seconda che sia riuscito a fare lo spostamento
+ [WebMethod(Description = "Sposta un UDC da 88 a 84 (con consumo immediato se da web.config)")]
+ public bool UdcCall_rientroInWip(string UDC_req, string CodSoggetto)
+ {
+ // trim fix
+ string UDC_reqTrim = UDC_req.Trim();
+ string CodSoggettoTrim = CodSoggetto.Trim();
+ string CodCs = memLayer.ML.confReadString("CodCS");
+ int idxCellaTo = MagClass.magazzino.taCelle.getByCodMag(CodCs, "84")[0].IdxCella; // è la cella WIP del mag 84...
+
+ // init
+ bool answ = false;
+ // loggo tutto!
+ if (logLevel > 5)
+ {
+ try
+ {
+ logger.lg.scriviLog(string.Format("UdcCall_rientroInWip: {0} | {1}", UDC_reqTrim, CodSoggettoTrim), tipoLog.INFO);
+ }
+ catch
+ { }
+ }
+ try
+ {
+ answ = MagClass.magazzino.spostaUDC(CodCs, UDC_reqTrim, idxCellaTo);
+ }
+ catch
+ { }
+ // se richiesto faccio consumo immediato...
+ if (memLayer.ML.confReadBool("Cosumo84PostDelibera"))
+ {
+ // prendo i dati PRIMA che scarichi l'UDC... e con qta negativa xché qui devo "rimetterlo a posto"...
+ DS_magazzino.ElencoCartelliniRow rigaUdc = MagClass.magazzino.taElencoCartellini.getDetailsUdcByUdc(UDC_req)[0];
+ string Particolare = rigaUdc.Particolare;
+ int IdxPosizione = rigaUdc.IdxPosizione;
+ decimal Quantita = -rigaUdc.Qta;
+ // faccio spostamento!
+ bool fatto = MagClass.magazzino.scaricaUdcMpWip(UDC_req);
+ // calcolo l'eventuale rettifica x AS
+ if (fatto)
+ {
+ // devo fare un movimento di compensazioen su mag 84 x non scaricare subito la quantità che ho appena messo in AS400...
+ DataProxy.obj.taCartellini.stp_rettMovAs400(Particolare, UDC_req, IdxPosizione.ToString(), Quantita);
+ }
+ }
+ return answ;
+ }
+ ///
+ /// Sposta un UDC da 88 a 54
+ ///
+ /// codice dell'UDC)
+ /// codice dell'operatore
+ /// restituisce true/false a seconda che sia riuscito a fare lo spostamento
+ [WebMethod(Description = "Sposta un UDC da 88 a 54")]
+ public bool UdcCall_rientroInFiniti(string UDC_req, string CodSoggetto)
+ {
+ // trim fix
+ string UDC_reqTrim = UDC_req.Trim();
+ string CodSoggettoTrim = CodSoggetto.Trim();
+ string CodCs = memLayer.ML.confReadString("CodCS");
+ int idxCellaTo = MagClass.magazzino.taCelle.getByCodMag(CodCs, "54")[0].IdxCella; // è la cella FINITI del mag 54...
+
+ // init
+ bool answ = false;
+ // loggo tutto!
+ if (logLevel > 5)
+ {
+ try
+ {
+ logger.lg.scriviLog(string.Format("UdcCall_rientroInFiniti: {0} | {1}", UDC_reqTrim, CodSoggettoTrim), tipoLog.INFO);
+ }
+ catch
+ { }
+ }
+ try
+ {
+
+ MagClass.magazzino.spostaUDC(CodCs, UDC_reqTrim, idxCellaTo);
+ answ = true;
+ }
+ catch
+ { }
+ return answ;
+ }
#region area rettifiche e scarti
@@ -1015,13 +1207,15 @@ namespace GMW_WS
/// posizione che effettua la richiesta (codice della pesa)
/// tipo di cartellino richiesto
/// codice UDC univoco
+ /// nome completo stampante oppure stringa vuota ("") per default
/// restituisce true/false a seconda che sia riuscito a stampare o meno
[WebMethod(Description = "Effettua la stampa richiesta per l'UDC indicato")]
- public bool UdcCall_PrintLabel(string place, tipoCartellino cartellino, string UDC)
+ public bool UdcCall_PrintLabel(string place, tipoCartellino cartellino, string UDC, string printerFullName)
{
// trim fix
string placeTrim = place.Trim();
string UDCTrim = UDC.Trim();
+ string printerFullNameTrim = printerFullName.Trim();
bool answ = false;
// loggo tutto!
@@ -1029,12 +1223,12 @@ namespace GMW_WS
{
try
{
- logger.lg.scriviLog(string.Format("UdcCall_PrintLabel: {0} | {1} | {2}", placeTrim, cartellino, UDCTrim), tipoLog.INFO);
+ logger.lg.scriviLog(string.Format("UdcCall_PrintLabel: {0} | {1} | {2} | {3}", placeTrim, cartellino, UDCTrim, printerFullNameTrim), tipoLog.INFO);
}
catch
{ }
}
- answ = reportPrinter.obj.stampaCartellino(cartellino, UDCTrim);
+ answ = reportPrinter.obj.stampaCartellino(cartellino, UDCTrim, printerFullNameTrim);
return answ;
}
diff --git a/GMW/GMW_WS/bin/GMW.dll b/GMW/GMW_WS/bin/GMW.dll
index 907ef345..a86fbb27 100644
Binary files a/GMW/GMW_WS/bin/GMW.dll and b/GMW/GMW_WS/bin/GMW.dll differ
diff --git a/GMW/GMW_WS/bin/GMW_WS.dll b/GMW/GMW_WS/bin/GMW_WS.dll
index 3fe60e05..94b9babe 100644
Binary files a/GMW/GMW_WS/bin/GMW_WS.dll and b/GMW/GMW_WS/bin/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/bin/GMW_data.dll b/GMW/GMW_WS/bin/GMW_data.dll
index dcf5bbed..94533cb1 100644
Binary files a/GMW/GMW_WS/bin/GMW_data.dll and b/GMW/GMW_WS/bin/GMW_data.dll differ
diff --git a/GMW/GMW_WS/bin/SteamWare.dll b/GMW/GMW_WS/bin/SteamWare.dll
index 03b76143..df0450e8 100644
Binary files a/GMW/GMW_WS/bin/SteamWare.dll and b/GMW/GMW_WS/bin/SteamWare.dll differ
diff --git a/GMW/GMW_WS/mazzAppSettings.config b/GMW/GMW_WS/mazzAppSettings.config
index f66ab18e..f64734e5 100644
--- a/GMW/GMW_WS/mazzAppSettings.config
+++ b/GMW/GMW_WS/mazzAppSettings.config
@@ -6,7 +6,7 @@
-
+
@@ -44,7 +44,8 @@
-
+
+
diff --git a/GMW/GMW_WS/obj/Debug/GMW_WS.dll b/GMW/GMW_WS/obj/Debug/GMW_WS.dll
index 3fe60e05..511c88f0 100644
Binary files a/GMW/GMW_WS/obj/Debug/GMW_WS.dll and b/GMW/GMW_WS/obj/Debug/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache
index b11f7da1..2e946de2 100644
Binary files a/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_WS/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS/obj/Release/GMW_WS.dll b/GMW/GMW_WS/obj/Release/GMW_WS.dll
index d4274361..94b9babe 100644
Binary files a/GMW/GMW_WS/obj/Release/GMW_WS.dll and b/GMW/GMW_WS/obj/Release/GMW_WS.dll differ
diff --git a/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache
index 4b73b586..70adb3a6 100644
Binary files a/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
index 2695fb49..ce933d31 100644
--- a/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
+++ b/GMW/GMW_WS_installer/GMW_WS_installer.vdproj
@@ -344,14 +344,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW_WS"
- "ProductCode" = "8:{642D6C51-DF13-4D8D-A9D5-7217BF156841}"
- "PackageCode" = "8:{EC1565F6-5E77-4A94-93E5-A34CF8293B05}"
+ "ProductCode" = "8:{866EE1D4-5C62-4A91-B2EF-39078C4CEE4D}"
+ "PackageCode" = "8:{726C554D-05A7-4A7A-BACA-CD518CCF1ABF}"
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
- "ProductVersion" = "8:1.0.300"
+ "ProductVersion" = "8:1.0.310"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:+39-035460560"
"ARPHELPLINK" = "8:http://www.steamware.net"
diff --git a/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi b/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi
index f499830c..dee1b1e7 100644
Binary files a/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi and b/GMW/GMW_WS_installer/Release/GMW_WS_installer.msi differ
diff --git a/GMW/GMW_data/DS_magazzino.Designer.cs b/GMW/GMW_data/DS_magazzino.Designer.cs
index 759afe5f..7914bc74 100644
--- a/GMW/GMW_data/DS_magazzino.Designer.cs
+++ b/GMW/GMW_data/DS_magazzino.Designer.cs
@@ -14988,9 +14988,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
@@ -15151,7 +15148,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_magazzino.ElencoCartelliniDataTable updateIdxPosizione(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable IdxPosizione) {
+ public virtual DS_magazzino.ElencoCartelliniDataTable updateIdxPosizione(string UDC, global::System.Nullable IdxPosizione) {
this.Adapter.SelectCommand = this.CommandCollection[6];
if ((UDC == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -15159,29 +15156,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
}
- if ((CodSoggetto == null)) {
- this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSoggetto));
- }
- if ((CodTipoDichiaraz == null)) {
- this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodTipoDichiaraz));
- }
- if ((CodEvento == null)) {
- this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodEvento));
- }
if ((IdxPosizione.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[5].Value = ((int)(IdxPosizione.Value));
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxPosizione.Value));
}
else {
- this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
DS_magazzino.ElencoCartelliniDataTable dataTable = new DS_magazzino.ElencoCartelliniDataTable();
this.Adapter.Fill(dataTable);
diff --git a/GMW/GMW_data/DS_magazzino.xsd b/GMW/GMW_data/DS_magazzino.xsd
index 24b359c6..c239aec6 100644
--- a/GMW/GMW_data/DS_magazzino.xsd
+++ b/GMW/GMW_data/DS_magazzino.xsd
@@ -286,9 +286,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
-
-
@@ -2527,274 +2524,127 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2809,18 +2659,18 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
@@ -2830,7 +2680,154 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2844,99 +2841,99 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
+
@@ -2947,6 +2944,336 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2963,351 +3290,21 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -3320,131 +3317,131 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
-
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
@@ -3464,8 +3461,8 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
-
+
+
@@ -3478,74 +3475,74 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/GMW/GMW_data/DS_magazzino.xss b/GMW/GMW_data/DS_magazzino.xss
index 32fb538c..dea138f5 100644
--- a/GMW/GMW_data/DS_magazzino.xss
+++ b/GMW/GMW_data/DS_magazzino.xss
@@ -6,30 +6,30 @@
-->
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,7 +68,7 @@
-
+
712
@@ -108,7 +108,7 @@
197
- 778
+ 797
197
@@ -116,7 +116,7 @@
-
+
430
@@ -128,7 +128,7 @@
-
+
735
@@ -140,7 +140,7 @@
-
+
392
@@ -156,7 +156,7 @@
-
+
1007
diff --git a/GMW/GMW_data/MagClass.cs b/GMW/GMW_data/MagClass.cs
index e20202bd..22c4253c 100644
--- a/GMW/GMW_data/MagClass.cs
+++ b/GMW/GMW_data/MagClass.cs
@@ -216,11 +216,13 @@ namespace GMW_data
// cambio (eventualmente) la posizione "logica" dato lo spostamento (il codice magazzino...)
int idxBlocco = taCelle.getByIdxCella(IdxCellaTo)[0].IdxBlocco;
int idxPosizione = Convert.ToInt32(taBlocchi.getByIdx(idxBlocco)[0].CodMag);
- taCartellini.updateIdxPosizione(UDC, CodSoggCurrUser, "U", "UDC_POS", idxPosizione);
+ taCartellini.updateIdxPosizione(UDC, idxPosizione);
}
}
- catch
- { }
+ catch (Exception e)
+ {
+ logger.lg.scriviLog(string.Format("Errore durante indicazione posizione UDC: {0}", e), tipoLog.EXCEPTION);
+ }
}
return answ;
}
@@ -356,8 +358,8 @@ namespace GMW_data
{
// faccio movimento compensativo... in segno negativo risp alla posiz POST
DataProxy.obj.taCartellini.stp_rettMovAs400(rigaUdcPost.Particolare, rigaUdcPost.UDC, rigaUdcPost.IdxPosizione.ToString(), rigaUdcPost.Qta);
- answ = true;
}
+ answ = true;
}
catch (Exception e)
{
@@ -930,8 +932,7 @@ namespace GMW_data
* indico la lista come completata = 1 (true)
* */
// setup eventuali valori x rettifica
- DS_magazzino.ElencoCartelliniRow rigaUdc;
- bool fatto = false;
+ bool fatto = false;
esitoOperazione answ = esitoOperazione.errore;
int trovate = 0;
@@ -1270,7 +1271,7 @@ namespace GMW_data
answ = true;
foreach (DS_magazzino.RapQualRow rqRow in tabRapQual)
{
- answ = reportPrinter.obj.stampaCartellino(tipoCartellino.cartMP, rqRow.UDC);
+ answ = reportPrinter.obj.stampaCartellino(tipoCartellino.cartMP, rqRow.UDC, "");
}
}
return answ;
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index a9ea05fa..ec18fe80 100644
Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll
index cb685f31..94533cb1 100644
Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index a9ea05fa..ec18fe80 100644
Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache
index 22478140..f4bc0b4a 100644
Binary files a/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_data/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll
index d7f6df58..2bed952e 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_magazzino.Designer.cs.dll differ
diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll
index cb685f31..94533cb1 100644
Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/reportPrinter.cs b/GMW/GMW_data/reportPrinter.cs
index 3209110e..17d26ecc 100644
--- a/GMW/GMW_data/reportPrinter.cs
+++ b/GMW/GMW_data/reportPrinter.cs
@@ -185,17 +185,16 @@ public class reportPrinter
Dispose();
}
- ///
+ ///
/// effettua la stampa del cartellino indicato
- ///
- ///
- ///
- ///
- ///
- public bool stampaCartellino(tipoCartellino cartellino, string UDC)
+ ///
+ ///
+ ///
+ /// indirizzo di rete completo stampante del tipo \\nomePc\nomeStampante, oppure "" x default
+ ///
+ public bool stampaCartellino(tipoCartellino cartellino, string UDC, string printerName)
{
bool answ = false;
- string printerName = "";
string outForm = "";
string pagWidth = "";
string pagHeigth = "";
@@ -204,21 +203,6 @@ public class reportPrinter
string tipo = "";
switch (cartellino)
{
- // eliminare da qui
- case tipoCartellino.MP:
- tipo = "CartMP";
- report = reportRichiesto.CartellinoMP;
- break;
- case tipoCartellino.soloTara:
- tipo = "CartTara";
- report = reportRichiesto.CartellinoTara;
- break;
- case tipoCartellino.completo:
- tipo = "CartCompleto";
- report = reportRichiesto.CartellinoFusi;
- break;
- //...a qui...
-
case tipoCartellino.cartFin:
tipo = "CartFin";
report = reportRichiesto.CartellinoFin;
@@ -243,7 +227,10 @@ public class reportPrinter
break;
}
// carico di dati con lettura da web.config parametrica
- printerName = memLayer.ML.confReadString(string.Format("printer{0}", tipo));
+ if (printerName == "")
+ {
+ printerName = memLayer.ML.confReadString(string.Format("printer{0}", tipo));
+ }
outForm = "EMF";
pagWidth = memLayer.ML.confReadString(string.Format("PageWidth{0}", tipo));
pagHeigth = memLayer.ML.confReadString(string.Format("PageHeight{0}", tipo));
diff --git a/GMW/GMW_data/utils.cs b/GMW/GMW_data/utils.cs
index a10e404b..175cf98b 100644
--- a/GMW/GMW_data/utils.cs
+++ b/GMW/GMW_data/utils.cs
@@ -64,10 +64,7 @@ public enum tipoCartellino
cartMP,
cartFusi,
cartTara,
- cartWip,
- MP, // DELETE!!!
- soloTara, // DELETE!!!
- completo // DELETE!!!
+ cartWip
}
public enum tipoSelettore
{