Update db
aggiunto metodo di modifica UDC git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@33 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
+27
-27
@@ -16,33 +16,33 @@ namespace GMW.Type
|
||||
}
|
||||
public Cartellino(DS_Applicazione.ElencoCartelliniRow riga)
|
||||
{
|
||||
UDC = riga.UDC;
|
||||
CodCS = riga.CodCS;
|
||||
CodCliente = riga.CodCliente;
|
||||
RagSociale = riga.RagSociale;
|
||||
Particolare = riga.Particolare;
|
||||
UDC = riga.UDC;
|
||||
CodCS = riga.CodCS;
|
||||
CodCliente = riga.CodCliente;
|
||||
RagSociale = riga.RagSociale;
|
||||
Particolare = riga.Particolare;
|
||||
DescParticolare = riga.DescParticolare;
|
||||
DisegnoGrezzo = riga.DisegnoGrezzo;
|
||||
Esponente = riga.Esponente;
|
||||
CodImpianto = riga.CodImpianto;
|
||||
DescImpianto = riga.DescImpianto;
|
||||
CodCliente = riga.CodCliente;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
DataFus = riga.DataFus;
|
||||
TurnoFus = riga.TurnoFus;
|
||||
CodImballo = riga.CodImballo;
|
||||
CodSoggetto = riga.CodSoggetto;
|
||||
DisegnoGrezzo = riga.DisegnoGrezzo;
|
||||
Esponente = riga.Esponente;
|
||||
CodImpianto = riga.CodImpianto;
|
||||
DescImpianto = riga.DescImpianto;
|
||||
CodCliente = riga.CodCliente;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
DataFus = riga.DataFus;
|
||||
TurnoFus = riga.TurnoFus;
|
||||
CodImballo = riga.CodImballo;
|
||||
CodSoggetto = riga.CodSoggetto;
|
||||
NomeSoggetto = riga.CodSoggetto; // !!! correggere
|
||||
NumCont = riga.NumCont;
|
||||
Tara = riga.Tara;
|
||||
Qta = riga.Qta;
|
||||
CodStato = riga.CodStato;
|
||||
IdxPosizione = riga.IdxPosizione;
|
||||
PesoTot = riga.PesoTot;
|
||||
PesoCad = riga.PesoCad;
|
||||
CreateDate = riga.CreateDate;
|
||||
ModDate = riga.ModDate;
|
||||
NumCont = riga.NumCont;
|
||||
Tara = riga.Tara;
|
||||
Quantita = riga.Qta;
|
||||
CodStato = riga.CodStato;
|
||||
IdxPosizione = riga.IdxPosizione;
|
||||
PesoTot = riga.PesoTot;
|
||||
PesoCad = riga.PesoCad;
|
||||
CreateDate = riga.CreateDate;
|
||||
ModDate = riga.ModDate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -124,7 +124,7 @@ namespace GMW.Type
|
||||
/// <summary>
|
||||
/// Quantità associata all'UDC
|
||||
/// </summary>
|
||||
public decimal Qta { get; set; }
|
||||
public decimal Quantita { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stato pezzo (sabbiato, smaterozzato, ...)
|
||||
/// </summary>
|
||||
@@ -175,7 +175,7 @@ namespace GMW.Type
|
||||
NomeSoggetto = riga.CodSoggetto; // !!! correggere
|
||||
NumCont = riga.NumCont;
|
||||
Tara = riga.Tara;
|
||||
Qta = riga.Qta;
|
||||
Quantita = riga.Qta;
|
||||
CodStato = riga.CodStato;
|
||||
IdxPosizione = riga.IdxPosizione;
|
||||
PesoTot = riga.PesoTot;
|
||||
|
||||
@@ -289,13 +289,13 @@ namespace GMW.WS
|
||||
/// <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="qta">numero pezzi associati all'UDC</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</returns>
|
||||
[WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
|
||||
public string UdcCall_GetNew_Pesa(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 qta, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato)
|
||||
public string UdcCall_GetNew_Pesa(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";
|
||||
@@ -309,8 +309,8 @@ namespace GMW.WS
|
||||
CodCS = memLayer.ML.confReadString("CodCS");
|
||||
}
|
||||
int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
|
||||
// faccio update!
|
||||
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", qta, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
// 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
|
||||
try
|
||||
{
|
||||
@@ -323,6 +323,72 @@ namespace GMW.WS
|
||||
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>
|
||||
/// <param name="UDC_edit">codice UDC del cartellino che si vuole modificare</param>
|
||||
/// <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</returns>
|
||||
[WebMethod(Description = "Modifica (se possibile poiché sbloccato) un cartellino esistente dato il suo UDC e salva i dati, restituendo conferma avvenuta modifica (true/false)")]
|
||||
public bool UdcCall_ModificaCartellino(string UDC_edit, 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";
|
||||
bool answ = false;
|
||||
// controllo se si possa aggiornare...
|
||||
GMW.Type.Cartellino currCart = new GMW.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)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("NEGATA Richiesta modifica UDC codice {0} fuori tempo massimo: finestra ammessa {1} min, sono passati {2} min da creazione/sblocco", UDC_edit, maxTimeMod, elapsedTime), tipoLog.WARNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Concessa Richiesta modifica UDC codice {0} fuori tempo massimo: finestra ammessa {1} min, sono passati {2} min da creazione/sblocco", UDC_edit, maxTimeMod, elapsedTime), tipoLog.INFO);
|
||||
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!!!
|
||||
// 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
|
||||
try
|
||||
{
|
||||
if (UDC_edit == tabUdc[0].UDC)
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Annulla un dato UDC (se permesso)
|
||||
/// </summary>
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="CodCS" value="MA"/>
|
||||
<add key="MinutiFinestraEditUDC" value="10"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,5 +3,8 @@
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="CodCS" value="MA"/>
|
||||
<add key="MinutiFinestraEditUDC" value="10"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+200
-1
@@ -13331,7 +13331,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.ElencoCartellini";
|
||||
@@ -13396,6 +13396,34 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
this._commandCollection[5].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[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_UDC_update";
|
||||
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_edit", 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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, 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("@Flusso", global::System.Data.SqlDbType.VarChar, 2, 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("@Anno", global::System.Data.SqlDbType.VarChar, 2, 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("@CodCliente", global::System.Data.SqlDbType.VarChar, 6, 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("@Particolare", global::System.Data.SqlDbType.VarChar, 15, 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("@CodImpianto", global::System.Data.SqlDbType.VarChar, 50, 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("@CodStampo", global::System.Data.SqlDbType.VarChar, 8, 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("@Esponente", global::System.Data.SqlDbType.VarChar, 6, 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("@Figura", global::System.Data.SqlDbType.VarChar, 4, 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("@DataFus", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoFus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.VarChar, 15, 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, 16, 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("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 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[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("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.VarChar, 50, 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("@UDC_parent", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -13658,6 +13686,177 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[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_Applicazione.ElencoCartelliniDataTable stp_updateUDC(
|
||||
string UDC_edit,
|
||||
string CodCS,
|
||||
string Flusso,
|
||||
string Anno,
|
||||
string CodCliente,
|
||||
string Particolare,
|
||||
string CodImpianto,
|
||||
string CodStampo,
|
||||
string Esponente,
|
||||
string Figura,
|
||||
global::System.Nullable<global::System.DateTime> DataFus,
|
||||
global::System.Nullable<int> TurnoFus,
|
||||
string CodImballo,
|
||||
string CodSoggetto,
|
||||
global::System.Nullable<double> Tara,
|
||||
global::System.Nullable<int> IdxPosizione,
|
||||
string CodTipoDichiaraz,
|
||||
string CodEvento,
|
||||
global::System.Nullable<decimal> Qta,
|
||||
global::System.Nullable<double> PesoTot,
|
||||
global::System.Nullable<double> PesoCad,
|
||||
string CodStato,
|
||||
string UDC_parent) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[6];
|
||||
if ((UDC_edit == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC_edit));
|
||||
}
|
||||
if ((CodCS == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS));
|
||||
}
|
||||
if ((Flusso == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Flusso));
|
||||
}
|
||||
if ((Anno == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Anno));
|
||||
}
|
||||
if ((CodCliente == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodCliente));
|
||||
}
|
||||
if ((Particolare == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(Particolare));
|
||||
}
|
||||
if ((CodImpianto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodImpianto));
|
||||
}
|
||||
if ((CodStampo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodStampo));
|
||||
}
|
||||
if ((Esponente == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((string)(Esponente));
|
||||
}
|
||||
if ((Figura == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((string)(Figura));
|
||||
}
|
||||
if ((DataFus.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[11].Value = ((System.DateTime)(DataFus.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((TurnoFus.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[12].Value = ((int)(TurnoFus.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodImballo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[13].Value = ((string)(CodImballo));
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((Tara.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[15].Value = ((double)(Tara.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[16].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodTipoDichiaraz == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[17].Value = ((string)(CodTipoDichiaraz));
|
||||
}
|
||||
if ((CodEvento == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[18].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[18].Value = ((string)(CodEvento));
|
||||
}
|
||||
if ((Qta.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[19].Value = ((decimal)(Qta.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[19].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((PesoTot.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[20].Value = ((double)(PesoTot.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[20].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((PesoCad.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[21].Value = ((double)(PesoCad.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[21].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodStato == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[22].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[22].Value = ((string)(CodStato));
|
||||
}
|
||||
if ((UDC_parent == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[23].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[23].Value = ((string)(UDC_parent));
|
||||
}
|
||||
DS_Applicazione.ElencoCartelliniDataTable dataTable = new DS_Applicazione.ElencoCartelliniDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(DS_Applicazione.ElencoCartelliniDataTable dataTable) {
|
||||
|
||||
+409
-376
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="240" ViewPortY="76" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="22" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="15" X="785" Y="654" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
@@ -16,11 +16,11 @@
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="11" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagCompanySito" ZOrder="10" X="1156" Y="-8" Height="172" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="9" X="1261" Y="306" Height="172" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="5" X="462" Y="346" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="1" X="462" Y="346" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="6" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="4" X="1209" Y="588" Height="324" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagOperatori" ZOrder="3" X="488" Y="821" Height="248" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="1" X="240" Y="910" Height="115" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="5" X="1209" Y="588" Height="324" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagOperatori" ZOrder="4" X="488" Y="821" Height="248" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="2" X="240" Y="910" Height="115" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagArticoli1" ZOrder="18" LineWidth="11">
|
||||
@@ -103,7 +103,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="2" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1181</X>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -77,10 +77,11 @@
|
||||
<Compile Include="Type\Articolo.cs" />
|
||||
<Compile Include="Type\ArtInProd.cs" />
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\Cliente.cs" />
|
||||
<Compile Include="Type\CompanySito.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="Type\Prodotto.cs" />
|
||||
<Compile Include="Type\Operatore.cs" />
|
||||
<Compile Include="Type\StatiProdotto.cs" />
|
||||
<Compile Include="Type\TipoDichiarazione.cs" />
|
||||
<Compile Include="Type\Cartellino.cs" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -3,5 +3,8 @@
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="CodCS" value="MA"/>
|
||||
<add key="MinutiFinestraEditUDC" value="10"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -54,6 +54,9 @@
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="_logLevel" value="6" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<add key="passkey" value="pi=314" />
|
||||
<add key="CodCS" value="MA" />
|
||||
<add key="MinutiFinestraEditUDC" value="10" />
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
@@ -77,10 +77,11 @@
|
||||
<Compile Include="Type\Articolo.cs" />
|
||||
<Compile Include="Type\ArtInProd.cs" />
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\Cliente.cs" />
|
||||
<Compile Include="Type\CompanySito.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="Type\Prodotto.cs" />
|
||||
<Compile Include="Type\Operatore.cs" />
|
||||
<Compile Include="Type\StatiProdotto.cs" />
|
||||
<Compile Include="Type\TipoDichiarazione.cs" />
|
||||
<Compile Include="Type\Cartellino.cs" />
|
||||
|
||||
@@ -38,14 +38,6 @@ namespace GMW.Type
|
||||
/// </summary>
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Numero di stampate
|
||||
/// </summary>
|
||||
public decimal NumStampate { get; set; }
|
||||
/// <summary>
|
||||
/// Data Inizio produzione
|
||||
/// </summary>
|
||||
public DateTime DataInizio { get; set; }
|
||||
@@ -54,6 +46,10 @@ namespace GMW.Type
|
||||
/// </summary>
|
||||
public string TurnoInizio { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Inizio validità stampo
|
||||
/// </summary>
|
||||
public DateTime InizioValid { get; set; }
|
||||
@@ -62,6 +58,10 @@ namespace GMW.Type
|
||||
/// </summary>
|
||||
public DateTime? FineValid { get; set; }
|
||||
/// <summary>
|
||||
/// Numero di stampate
|
||||
/// </summary>
|
||||
public decimal NumStampate { get; set; }
|
||||
/// <summary>
|
||||
/// Numero di figure
|
||||
/// </summary>
|
||||
public decimal NumFigure { get; set; }
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace GMW.Type
|
||||
protected Cartellino[] _elencoCartellini;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo TabStatoOdpUdc e la converte ad un array di tipo UDC[]
|
||||
/// legge una tab di tipo elencoCartellini e la converte ad un array di tipo cartellini[]
|
||||
/// </summary>
|
||||
/// <param name="tabArt2Imp"></param>
|
||||
public void caricaCartellini(DS_Applicazione.ElencoCartelliniDataTable tabArt2Imp)
|
||||
@@ -274,7 +274,7 @@ namespace GMW.Type
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco UDC
|
||||
/// Elenco cartellini
|
||||
/// </summary>
|
||||
public Cartellino[] elencoCartellini
|
||||
{
|
||||
@@ -286,5 +286,72 @@ namespace GMW.Type
|
||||
|
||||
#endregion
|
||||
|
||||
#region area Clienti
|
||||
|
||||
protected Cliente[] _elencoClienti;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo anagClienti e la converte ad un array di tipo clienti[]
|
||||
/// </summary>
|
||||
/// <param name="tabArt2Imp"></param>
|
||||
public void caricaClienti(DS_Applicazione.AnagClientiDataTable tabArt2Imp)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArt2Imp.Rows.Count;
|
||||
_elencoClienti = new Cliente[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Cliente obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Cliente(tabArt2Imp[i]);
|
||||
_elencoClienti[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco clienti
|
||||
/// </summary>
|
||||
public Cliente[] elencoClienti
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoClienti;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area Operatori
|
||||
|
||||
protected Operatore[] _elencoOperatori;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo anagOperatori e la converte ad un array di tipo operatori[]
|
||||
/// </summary>
|
||||
/// <param name="tabArt2Imp"></param>
|
||||
public void caricaOperatori(DS_Applicazione.AnagOperatoriDataTable tabArt2Imp)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArt2Imp.Rows.Count;
|
||||
_elencoOperatori = new Operatore[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Operatore obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Operatore(tabArt2Imp[i]);
|
||||
_elencoOperatori[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Operatori
|
||||
/// </summary>
|
||||
public Operatore[] elencoOperatori
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoOperatori;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// WebService per gestioen 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.15")]
|
||||
[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.32")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -46,18 +46,26 @@ namespace GMW.WS
|
||||
gestEl.caricaCompanySito(DataProxy.obj.taAnagCS.GetData());
|
||||
return gestEl.elencoCompanySito;
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica articoli
|
||||
/// fornisce l'anagrafica clienti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico articoli")]
|
||||
public GMW.Type.Articolo[] ElencoArticoli()
|
||||
[WebMethod(Description = "Elenco anagrafico clienti")]
|
||||
public GMW.Type.Cliente[] ElencoClienti()
|
||||
{
|
||||
|
||||
gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData());
|
||||
return gestEl.elencoArticoli;
|
||||
gestEl.caricaClienti(DataProxy.obj.taAnagClienti.GetData());
|
||||
return gestEl.elencoClienti;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica operatori
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico operatori")]
|
||||
public GMW.Type.Operatore[] ElencoOperatori()
|
||||
{
|
||||
|
||||
gestEl.caricaOperatori(DataProxy.obj.taAnagOperatore.GetData());
|
||||
return gestEl.elencoOperatori;
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// Fornisce l'elenco dei tipi di dichiarazione ammessi
|
||||
/// </summary>
|
||||
@@ -108,7 +116,6 @@ namespace GMW.WS
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.GetData());
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilance dati codice company e sito
|
||||
/// </summary>
|
||||
@@ -117,22 +124,9 @@ namespace GMW.WS
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance dati codice company e sito")]
|
||||
public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCS)
|
||||
{
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito));
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.stp_getByCodCS(CodCS));
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
#endif
|
||||
#if false
|
||||
/// <summary>
|
||||
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
|
||||
public GMW.Type.ArtInProd[] ElencoArtInProd()
|
||||
{
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.GetData());
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endregion
|
||||
@@ -295,13 +289,13 @@ namespace GMW.WS
|
||||
/// <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="qta">numero pezzi associati all'UDC</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</returns>
|
||||
[WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
|
||||
public string UdcCall_GetNew_Pesa(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 qta, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato)
|
||||
public string UdcCall_GetNew_Pesa(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";
|
||||
@@ -315,8 +309,8 @@ namespace GMW.WS
|
||||
CodCS = memLayer.ML.confReadString("CodCS");
|
||||
}
|
||||
int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
|
||||
// faccio update!
|
||||
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", qta, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
// 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
|
||||
try
|
||||
{
|
||||
@@ -329,6 +323,72 @@ namespace GMW.WS
|
||||
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>
|
||||
/// <param name="UDC_edit">codice UDC del cartellino che si vuole modificare</param>
|
||||
/// <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</returns>
|
||||
[WebMethod(Description = "Modifica (se possibile poiché sbloccato) un cartellino esistente dato il suo UDC e salva i dati, restituendo conferma avvenuta modifica (true/false)")]
|
||||
public bool UdcCall_ModificaCartellino(string UDC_edit, 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";
|
||||
bool answ = false;
|
||||
// controllo se si possa aggiornare...
|
||||
GMW.Type.Cartellino currCart = new GMW.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)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("NEGATA Richiesta modifica UDC codice {0} fuori tempo massimo: finestra ammessa {1} min, sono passati {2} min da creazione/sblocco", UDC_edit, maxTimeMod, elapsedTime), tipoLog.WARNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Concessa Richiesta modifica UDC codice {0} fuori tempo massimo: finestra ammessa {1} min, sono passati {2} min da creazione/sblocco", UDC_edit, maxTimeMod, elapsedTime), tipoLog.INFO);
|
||||
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!!!
|
||||
// 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
|
||||
try
|
||||
{
|
||||
if (UDC_edit == tabUdc[0].UDC)
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Annulla un dato UDC (se permesso)
|
||||
/// </summary>
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="CodCS" value="MA"/>
|
||||
<add key="MinutiFinestraEditUDC" value="10"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -3,5 +3,8 @@
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="CodCS" value="MA"/>
|
||||
<add key="MinutiFinestraEditUDC" value="10"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
|
||||
</appSettings>
|
||||
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