Nuovo installer!
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@11 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// Summary description for 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.0.9.10")]
|
||||
[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.0.9.11")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -105,17 +105,20 @@ namespace GMW.WS
|
||||
{
|
||||
// ricavo cod company...
|
||||
string CodCompany = "ND";
|
||||
string CodSito = "ND";
|
||||
string answ = "NA";
|
||||
try
|
||||
{
|
||||
CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
|
||||
CodSito = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodSito;
|
||||
}
|
||||
catch
|
||||
{
|
||||
CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
|
||||
CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
|
||||
}
|
||||
// inserico riga generando il codice
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", tara);
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", tara);
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -146,16 +149,40 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati
|
||||
/// </summary>
|
||||
/// <param name="CodBilancia">codice anagrafico della bilanca che effettua la richiesta (codice della pesa)</param>
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <param name="CodArticolo">codice dell'articolo + figura</param>
|
||||
/// <param name="numPezzi">numero pezzi associati all'UDC</param>
|
||||
/// <param name="qta">numero pezzi associati all'UDC</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito a salvare o meno i dati</returns>
|
||||
[WebMethod(Description = "Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati")]
|
||||
public bool UdcUpdate(string UDC, string CodArticolo, int numPezzi)
|
||||
public bool UdcUpdate(string CodBilancia, string UDC, string CodArticolo, int qta)
|
||||
{
|
||||
bool answ = true;
|
||||
// qui dovrei salvare sia nel log delle info che nello stato UDC le informazioni fornitemi
|
||||
|
||||
// init
|
||||
bool answ = false;
|
||||
// ricavo cod company...
|
||||
string CodCompany = "ND";
|
||||
try
|
||||
{
|
||||
CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
|
||||
}
|
||||
catch
|
||||
{
|
||||
CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
|
||||
}
|
||||
// faccio update!
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.updateByBilancia(CodCompany, UDC, CodArticolo, qta);
|
||||
// leggo la riga con la qta
|
||||
try
|
||||
{
|
||||
decimal qtaIns = tabUdc[0].Qta;
|
||||
if (qtaIns == qta)
|
||||
{
|
||||
// allora ha aggiornato!
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
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.
Reference in New Issue
Block a user