diff --git a/GMW/GMW_WS/Web.config b/GMW/GMW_WS/Web.config
index 8d716788..3b435558 100644
--- a/GMW/GMW_WS/Web.config
+++ b/GMW/GMW_WS/Web.config
@@ -88,7 +88,7 @@
-
+
@@ -114,6 +114,11 @@
+
+
+
+
+
diff --git a/GMW/GMW_WS/bilance.asmx.cs b/GMW/GMW_WS/bilance.asmx.cs
index a5647940..d6ddf55d 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.160")]
+ [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.200")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class bilance : System.Web.Services.WebService
@@ -317,7 +317,7 @@ namespace GMW_WS
{
CodCS = memLayer.ML.confReadString("CodCS");
}
- int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
+ int IdxPosizione = memLayer.ML.confReadInt("IdxPosNewFusi");
// creo nuovo cartellino!
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_PESA", Quantita, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
// leggo la riga
@@ -354,7 +354,7 @@ namespace GMW_WS
/// Peso unitario rilevato
/// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
/// UDC del nuovo cartellino per FINITI
- [WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
+ [WebMethod(Description = "Fornisce un nuovo codice UDC FINITI tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
public string UdcCall_GetNew_Finito(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)
{
// ricavo cod company...
@@ -368,7 +368,58 @@ namespace GMW_WS
{
CodCS = memLayer.ML.confReadString("CodCS");
}
- int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
+ int IdxPosizione = memLayer.ML.confReadInt("IdxPosNewFinito");
+ // creo nuovo cartellino!
+ DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_FINITO", Quantita, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_FINITO" è "hard coded" nel db... !!!
+ // leggo la riga
+ try
+ {
+ answ = tabUdc[0].UDC;
+ // salvo associazioen parent-child tra UDC!
+ DataProxy.obj.taRelazUDC.Insert(UDC_Parent, answ);
+ }
+ catch
+ { }
+ return answ;
+ }
+
+ ///
+ /// Fornisce un nuovo codice UDC tipo completo (con pezzi) 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, ...)
+ /// UDC del nuovo cartellino per FINITI
+ [WebMethod(Description = "Fornisce un nuovo codice UDC WIP tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
+ public string UdcCall_GetNew_WIP(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)
+ {
+ // ricavo cod company...
+ string CodCS = "ND";
+ string answ = "NA";
+ try
+ {
+ CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilancia)[0].CodCS;
+ }
+ catch
+ {
+ CodCS = memLayer.ML.confReadString("CodCS");
+ }
+ int IdxPosizione = memLayer.ML.confReadInt("IdxPosNewWip");
// creo nuovo cartellino!
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_FINITO", Quantita, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_FINITO" è "hard coded" nel db... !!!
// leggo la riga
@@ -453,7 +504,7 @@ namespace GMW_WS
{
CodCS = memLayer.ML.confReadString("CodCS");
}
- int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
+ int IdxPosizione = memLayer.ML.confReadInt("IdxPosNewFusi");
// faccio update!
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_updateUDC(UDC_edit, CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_MOD", Quantita, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_MOD" è "hard coded" nel db... !!!
// leggo la riga
diff --git a/GMW/GMW_WS/bin/GMW.dll b/GMW/GMW_WS/bin/GMW.dll
index 557659af..6edee884 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 55b12f2f..c161f692 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 3756b9c4..14f6292c 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 7cb0786b..185f5a3f 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 e747c157..c04b791b 100644
--- a/GMW/GMW_WS/mazzAppSettings.config
+++ b/GMW/GMW_WS/mazzAppSettings.config
@@ -6,7 +6,7 @@
-
+
@@ -33,6 +33,11 @@
+
+
+
+
+
diff --git a/GMW/GMW_WS/obj/Release/GMW_WS.dll b/GMW/GMW_WS/obj/Release/GMW_WS.dll
index 55b12f2f..c161f692 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 83501400..643d318f 100644
Binary files a/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_WS/obj/Release/ResolveAssemblyReference.cache differ