Update WS con nuovi metodi x creare UDC finiti
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@177 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -88,7 +88,7 @@
|
||||
<add key="welcomeApp" value="GMW_welcomeApp" />
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minorRev" value="85"/>
|
||||
<add key="minorRev" value="160"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
|
||||
+90
-17
@@ -14,7 +14,7 @@ namespace GMW_WS
|
||||
/// <summary>
|
||||
/// WebService per gestione sw bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.85")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.160")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -27,11 +27,11 @@ namespace GMW_WS
|
||||
/// </summary>
|
||||
public bilance()
|
||||
{
|
||||
gestEl = new GMW.Type.elenchi();
|
||||
gestEl = new GMW_data.Type.elenchi();
|
||||
logLevel = memLayer.ML.confReadInt("_logLevel");
|
||||
}
|
||||
|
||||
protected GMW.Type.elenchi gestEl;
|
||||
protected GMW_data.Type.elenchi gestEl;
|
||||
protected int logLevel = 0;
|
||||
#endregion
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace GMW_WS
|
||||
/// Elenco anagrafico combinazioni company/sito
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico combinazioni company/sito")]
|
||||
public GMW.Type.CompanySito[] ElencoCompanySito()
|
||||
public GMW_data.Type.CompanySito[] ElencoCompanySito()
|
||||
{
|
||||
|
||||
gestEl.caricaCompanySito(DataProxy.obj.taAnagCS.GetData());
|
||||
@@ -51,7 +51,7 @@ namespace GMW_WS
|
||||
/// fornisce l'anagrafica clienti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico clienti")]
|
||||
public GMW.Type.Cliente[] ElencoClienti()
|
||||
public GMW_data.Type.Cliente[] ElencoClienti()
|
||||
{
|
||||
|
||||
gestEl.caricaClienti(DataProxy.obj.taAnagClienti.GetData());
|
||||
@@ -61,7 +61,7 @@ namespace GMW_WS
|
||||
/// fornisce l'anagrafica operatori
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico operatori")]
|
||||
public GMW.Type.Operatore[] ElencoOperatori()
|
||||
public GMW_data.Type.Operatore[] ElencoOperatori()
|
||||
{
|
||||
|
||||
gestEl.caricaOperatori(DataProxy.obj.taAnagOperatore.GetData());
|
||||
@@ -71,7 +71,7 @@ namespace GMW_WS
|
||||
/// Fornisce l'elenco dei tipi di dichiarazione ammessi
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Fornisce l'elenco dei tipi di dichiarazione ammessi")]
|
||||
public GMW.Type.TipoDichiarazione[] ElencoTipoDichiarazioni()
|
||||
public GMW_data.Type.TipoDichiarazione[] ElencoTipoDichiarazioni()
|
||||
{
|
||||
|
||||
gestEl.caricaTipoDichiarazioni(DataProxy.obj.taTipoDich.GetData());
|
||||
@@ -81,7 +81,7 @@ namespace GMW_WS
|
||||
/// Fornisce l'elenco degli stati dei prodotti ammessi
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Fornisce l'elenco degli stati dei prodotti ammessi")]
|
||||
public GMW.Type.StatiProdotto[] ElencoStatiProdotto()
|
||||
public GMW_data.Type.StatiProdotto[] ElencoStatiProdotto()
|
||||
{
|
||||
|
||||
gestEl.caricaStatiProdotto(DataProxy.obj.taStatiProd.GetData());
|
||||
@@ -91,7 +91,7 @@ namespace GMW_WS
|
||||
/// Elenco anagrafico impianti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti")]
|
||||
public GMW.Type.Impianto[] ElencoImpianti()
|
||||
public GMW_data.Type.Impianto[] ElencoImpianti()
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.GetData());
|
||||
return gestEl.elencoImpianti;
|
||||
@@ -100,7 +100,7 @@ namespace GMW_WS
|
||||
/// Elenco anagrafico imballi
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico imballi")]
|
||||
public GMW.Type.Imballo[] ElencoImballi()
|
||||
public GMW_data.Type.Imballo[] ElencoImballi()
|
||||
{
|
||||
gestEl.caricaImballi(DataProxy.obj.taAnagImballi.GetData());
|
||||
return gestEl.elencoImballi;
|
||||
@@ -111,7 +111,7 @@ namespace GMW_WS
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco anagrafica impianti dati codice company/sito (no dataset)")]
|
||||
public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCS)
|
||||
public GMW_data.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCS)
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.stp_getByCodCS(CodCS));
|
||||
return gestEl.elencoImpianti;
|
||||
@@ -120,7 +120,7 @@ namespace GMW_WS
|
||||
/// fornisce l'anagrafica bilance
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance")]
|
||||
public GMW.Type.Bilancia[] ElencoBilance()
|
||||
public GMW_data.Type.Bilancia[] ElencoBilance()
|
||||
{
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.GetData());
|
||||
return gestEl.elencoBilance;
|
||||
@@ -131,7 +131,7 @@ namespace GMW_WS
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance dati codice company e sito")]
|
||||
public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCS)
|
||||
public GMW_data.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCS)
|
||||
{
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.stp_getByCodCS(CodCS));
|
||||
return gestEl.elencoBilance;
|
||||
@@ -201,9 +201,9 @@ namespace GMW_WS
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Restituisce tutti i dati dell'UDC indicato")]
|
||||
public GMW.Type.Cartellino UdcInfo_GetFullData(string UDC)
|
||||
public GMW_data.Type.Cartellino UdcInfo_GetFullData(string UDC)
|
||||
{
|
||||
GMW.Type.Cartellino answ = new GMW.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0]);
|
||||
GMW_data.Type.Cartellino answ = new GMW_data.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0]);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -232,7 +232,7 @@ namespace GMW_WS
|
||||
/// <param name="turnoRic">turno di riferimento (1-2-3)</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli in produzione (per codice anagrafico)")]
|
||||
public GMW.Type.ArtInProd[] UdcInfo_ArtInProd4ImpDataTurno(string CodImpianto, DateTime dataRic, int turnoRic)
|
||||
public GMW_data.Type.ArtInProd[] UdcInfo_ArtInProd4ImpDataTurno(string CodImpianto, DateTime dataRic, int turnoRic)
|
||||
{
|
||||
// calcolo quante ore sono il turno di riferimento...
|
||||
int oreTurno = 7 + (turnoRic - 1) * 8;
|
||||
@@ -332,6 +332,79 @@ namespace GMW_WS
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati
|
||||
/// </summary>
|
||||
/// <param name="CodBilancia">codice anagrafico della bilanca che effettua la richiesta (codice della pesa)</param>
|
||||
/// <param name="CodCliente">codice anagrafico del cliente</param>
|
||||
/// <param name="Particolare">codice del particolare (articolo) - da anagrafica!</param>
|
||||
/// <param name="CodImpianto">Codice dell'impianto</param>
|
||||
/// <param name="CodStampo">Codice dello stampo</param>
|
||||
/// <param name="Esponente">codice dell'esponente dello stampo</param>
|
||||
/// <param name="Figura">Codice figura</param>
|
||||
/// <param name="DataRif">Data di rif per la dichiarazione</param>
|
||||
/// <param name="TurnoRif">Turno di rif per la dichiarazione</param>
|
||||
/// <param name="CodImballo">codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)</param>
|
||||
/// <param name="CodSoggetto">codice dell'operatore</param>
|
||||
/// <param name="UDC_Parent">codice dell'UDC parent (UDC della tara)</param>
|
||||
/// <param name="tara">peso in kg (0 se non noto) da associare all'UDC come tara del contenitore</param>
|
||||
/// <param name="CodTipoDichiarazione">tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)</param>
|
||||
/// <param name="Quantita">numero pezzi associati all'UDC</param>
|
||||
/// <param name="PesoTot">Peso totale rilevato</param>
|
||||
/// <param name="PesoCad">Peso unitario rilevato</param>
|
||||
/// <param name="CodStato">Codice dello stato del pezzo (da anagrafica: sabbiato, ...)</param>
|
||||
/// <returns>UDC del nuovo cartellino per FINITI</returns>
|
||||
[WebMethod(Description = "Fornisce un nuovo codice UDC 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...
|
||||
string CodCS = "ND";
|
||||
string answ = "NA";
|
||||
try
|
||||
{
|
||||
CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilancia)[0].CodCS;
|
||||
}
|
||||
catch
|
||||
{
|
||||
CodCS = memLayer.ML.confReadString("CodCS");
|
||||
}
|
||||
int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Associa 2 UDC di cui uno è stato consumato ed uno è quello nuovo creato a partire dal primo
|
||||
/// </summary>
|
||||
/// <param name="UDC_Parent">codice dell'UDC parent (UDC consumato)</param>
|
||||
/// <param name="UDC_Child">codice dell'UDC child (UDC nuovo)</param>
|
||||
/// <param name="CodSoggetto">codice dell'operatore</param>
|
||||
[WebMethod(Description = "Associa 2 UDC di cui uno è stato consumato ed uno è quello nuovo creato a partire dal primo")]
|
||||
public bool UdcCall_AssociaUdcPerConsumo(string UDC_Parent, string UDC_Child, string CodSoggetto)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
// salvo associazioen parent-child tra UDC!
|
||||
DataProxy.obj.taRelazUDC.Insert(UDC_Parent, UDC_Child);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Modifica (se possibile poiché sbloccato) un cartellino esistente dato il suo UDC e salva i dati, restituendo conferma avvenuta modifica (true/false)
|
||||
/// </summary>
|
||||
@@ -362,7 +435,7 @@ namespace GMW_WS
|
||||
string CodCS = "ND";
|
||||
bool answ = false;
|
||||
// controllo se si possa aggiornare...
|
||||
GMW.Type.Cartellino currCart = new GMW.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC_edit)[0]);
|
||||
GMW_data.Type.Cartellino currCart = new GMW_data.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC_edit)[0]);
|
||||
int maxTimeMod = memLayer.ML.confReadInt("MinutiFinestraEditUDC");
|
||||
double elapsedTime = DateTime.Now.Subtract(currCart.ModDate).TotalMinutes;
|
||||
if (DateTime.Now.Subtract(currCart.ModDate).TotalMinutes > maxTimeMod)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -28,11 +28,11 @@ namespace GMW_WS
|
||||
/// </summary>
|
||||
public entrataMerce()
|
||||
{
|
||||
gestEl = new GMW.Type.elenchi();
|
||||
gestEl = new GMW_data.Type.elenchi();
|
||||
logLevel = memLayer.ML.confReadInt("_logLevel");
|
||||
}
|
||||
|
||||
protected GMW.Type.elenchi gestEl;
|
||||
protected GMW_data.Type.elenchi gestEl;
|
||||
protected int logLevel = 0;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<add key="welcomeApp" value="GMW_welcomeApp" />
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minorRev" value="85"/>
|
||||
<add key="minorRev" value="160"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -344,14 +344,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_WS"
|
||||
"ProductCode" = "8:{04AE9758-A218-47B5-AC1B-EA88B6FDA581}"
|
||||
"PackageCode" = "8:{933268D2-1E65-4558-B9BD-AFCC10097A4B}"
|
||||
"ProductCode" = "8:{0F057819-DCF4-4DFE-9D17-0813FD3D7A71}"
|
||||
"PackageCode" = "8:{A4745658-76C4-4586-B097-609393CEBA68}"
|
||||
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.85"
|
||||
"ProductVersion" = "8:1.0.160"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -824,7 +824,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_C1E28C0CBEB3498E83D9B97B28568D55"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
|
||||
@@ -852,7 +852,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_D67ABEB91C7F428EB3C512E4A505628A"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_B61BA0CAC3474474B971A8F12A1C93F2"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user