Update da nuove disposizioni x webservices...
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@23 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
+74
-24
@@ -13,34 +13,63 @@ namespace GMW.Type
|
||||
}
|
||||
public ArtInProd(DS_Applicazione.v_ArtInProdRow riga)
|
||||
{
|
||||
Cliente = riga.Cliente;
|
||||
Famiglia = riga.Famiglia;
|
||||
Particolare = riga.Particolare;
|
||||
//RIFARE!!!!
|
||||
CodImpianto = riga.CodImpianto;
|
||||
Particolare = riga.Particolare;
|
||||
DescrParticolare = riga.Particolare;
|
||||
Cliente = riga.Cliente;
|
||||
Articolo= riga.Particolare;
|
||||
CodStampo = riga.CodStampo;
|
||||
Disegno = "ND";
|
||||
Esponente= "ND";
|
||||
Famiglia = riga.Famiglia;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
FiguraIncisa = riga.FiguraIncisa;
|
||||
Fig1 = riga.FiguraIncisa;
|
||||
Fig2 = riga.FiguraIncisa;
|
||||
Fig3 = riga.FiguraIncisa;
|
||||
Fig4 = riga.FiguraIncisa;
|
||||
Lotto= "ND";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Codice impianto
|
||||
/// </summary>
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo + cliente (=particolare)
|
||||
/// </summary>
|
||||
public string Particolare { get; set; }
|
||||
/// <summary>
|
||||
/// Descrizione particolare
|
||||
/// </summary>
|
||||
public string DescrParticolare { get; set; }
|
||||
/// <summary>
|
||||
/// Cliente
|
||||
/// </summary>
|
||||
public string Cliente { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string Articolo { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Disegno
|
||||
/// </summary>
|
||||
public string Disegno { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Esponente
|
||||
/// </summary>
|
||||
public string Esponente { get; set; }
|
||||
/// <summary>
|
||||
/// Famiglia
|
||||
/// </summary>
|
||||
public string Famiglia { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string Particolare { get; set; }
|
||||
/// <summary>
|
||||
/// Codice impianto
|
||||
/// </summary>
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Inizio produzione
|
||||
/// </summary>
|
||||
public DateTime InizioProd { get; set; }
|
||||
@@ -49,32 +78,53 @@ namespace GMW.Type
|
||||
/// </summary>
|
||||
public DateTime? FineProd { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Figura
|
||||
/// </summary>
|
||||
public string Figura { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa
|
||||
/// Figura Incisa 1
|
||||
/// </summary>
|
||||
public string FiguraIncisa { get; set; }
|
||||
public string Fig1 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 2
|
||||
/// </summary>
|
||||
public string Fig2 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 3
|
||||
/// </summary>
|
||||
public string Fig3 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 4
|
||||
/// </summary>
|
||||
public string Fig4 { get; set; }
|
||||
/// <summary>
|
||||
/// Lotto
|
||||
/// </summary>
|
||||
public string Lotto { get; set; }
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianti2articoli
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.v_ArtInProdRow riga)
|
||||
{
|
||||
Cliente = riga.Cliente;
|
||||
Famiglia = riga.Famiglia;
|
||||
Particolare = riga.Particolare;
|
||||
//RIFARE!!!!
|
||||
CodImpianto = riga.CodImpianto;
|
||||
Particolare = riga.Particolare;
|
||||
DescrParticolare = riga.Particolare;
|
||||
Cliente = riga.Cliente;
|
||||
Articolo = riga.Particolare;
|
||||
CodStampo = riga.CodStampo;
|
||||
Disegno = "ND";
|
||||
Esponente = "ND";
|
||||
Famiglia = riga.Famiglia;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
FiguraIncisa = riga.FiguraIncisa;
|
||||
Fig1 = riga.FiguraIncisa;
|
||||
Fig2 = riga.FiguraIncisa;
|
||||
Fig3 = riga.FiguraIncisa;
|
||||
Fig4 = riga.FiguraIncisa;
|
||||
Lotto = "ND";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+37
-11
@@ -260,20 +260,20 @@ namespace GMW.WS
|
||||
/// <param name="CodTipoDichiarazione">tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)</param>
|
||||
/// <param name="CodOperatore">codice dell'operatore</param>
|
||||
/// <param name="UDC_Parent">codice dell'UDC parent (tara)</param>
|
||||
/// <param name="Particolare">codice del particolare</param>
|
||||
/// <param name="Particolare">codice del particolare (articolo) - da anagrafica!</param>
|
||||
/// <param name="qta">numero pezzi associati all'UDC</param>
|
||||
/// <param name="PesoTot">Peso totale rilevato</param>
|
||||
/// <param name="PesoCad">Peso unitario rilevato</param>
|
||||
/// <param name="CodImpianto"></param>
|
||||
/// <param name="DataRif"></param>
|
||||
/// <param name="TurnoRif"></param>
|
||||
/// <param name="CodStato">Codice dello stato del pezzo (da anagrafica: sabbiato, ...)</param>
|
||||
/// <param name="CodImpianto">Codice dell'impianto</param>
|
||||
/// <param name="DataRif">Data di rif per la dichiarazione</param>
|
||||
/// <param name="TurnoRif">Turno di rif per la dichiarazione</param>
|
||||
/// <param name="CodStatoProd">Codice dello stato del pezzo (da anagrafica: sabbiato, ...)</param>
|
||||
/// <param name="CodStampo">Codice dello stampo</param>
|
||||
/// <param name="Figura"></param>
|
||||
/// <param name="FiguraIncisa"></param>
|
||||
/// <param name="Figura">Codice figura</param>
|
||||
/// <param name="FiguraIncisa">Codice figura incisa</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, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStato, string CodStampo, string Figura, string FiguraIncisa)
|
||||
public string UdcCall_GetNew_Pesa(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStatoProd, string CodStampo, string Figura, string FiguraIncisa)
|
||||
{
|
||||
// ricavo cod company...
|
||||
string CodCompany = "ND";
|
||||
@@ -291,7 +291,7 @@ namespace GMW.WS
|
||||
}
|
||||
int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
|
||||
// faccio update!
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdcFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStato, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdcFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -306,17 +306,43 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// Annulla un dato UDC (se permesso)
|
||||
/// </summary>
|
||||
/// <param name="UDC_req">codice dell'UDC parent (tara)</param>
|
||||
/// <param name="UDC_req">codice dell'UDC)</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito ad annullare l'UDC</returns>
|
||||
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
|
||||
public bool UdcCall_annullaUDC(string UDC_req)
|
||||
{
|
||||
// init
|
||||
bool answ = false;
|
||||
// !!!FARE!!! scrivere annullam ento UDC
|
||||
try
|
||||
{
|
||||
GMW_data.DataProxy.obj.taStatoOdpUdc.stp_annullaUDC(UDC_req);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sblocca un dato UDC (se la chiave passata è valida)
|
||||
/// </summary>
|
||||
/// <param name="UDC_req">codice dell'UDC che si vuole sbloccare</param>
|
||||
/// <param name="passkey">parola chiave x effettuare lo sblocco</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito ad annullare l'UDC</returns>
|
||||
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
|
||||
public bool UdcCall_sbloccaUDC(string UDC_req, string passkey)
|
||||
{
|
||||
// init
|
||||
bool answ = false;
|
||||
// controllo la passkey
|
||||
string passkeyOk = memLayer.ML.confReadString("passkey");
|
||||
if (passkeyOk == passkey)
|
||||
{
|
||||
GMW_data.DataProxy.obj.taStatoOdpUdc.stp_sbloccaUdc(UDC_req);
|
||||
answ = true;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+91
-25
@@ -12710,7 +12710,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Partic" +
|
||||
@@ -12734,34 +12734,46 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
this._commandCollection[1].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[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_getStatoByUdc";
|
||||
this._commandCollection[2].CommandText = "dbo.stp_annullaUDC";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].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[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_insNewOdpUdcFull";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_getStatoByUdc";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOperatore", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].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[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStampo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiguraIncisa", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_insNewOdpUdcFull";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.VarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ODP", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOperatore", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].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[4].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[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStampo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Figura", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiguraIncisa", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_sbloccaUdc";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
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, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -12932,7 +12944,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_Applicazione.TabStatoOdpUdcDataTable stp_getStatoByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -12967,7 +12979,7 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
string CodStampo,
|
||||
string Figura,
|
||||
string FiguraIncisa) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((CodCompany == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -13741,6 +13753,60 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
global::System.Nullable<global::System.DateTime> Original_ModDate) {
|
||||
return this.Update(Original_CodCompany, Original_ODP, Original_UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Particolare, CodStato, CodStampo, Figura, FiguraIncisa, PesoTot, PesoCad, CreateDate, ModDate, Original_CodCompany, Original_ODP, Original_UDC, Original_Tara, Original_IdxStato, Original_Qta, Original_CodImballo, Original_CodImpianto, Original_Particolare, Original_CodStato, Original_CodStampo, Original_Figura, Original_FiguraIncisa, Original_PesoTot, Original_PesoCad, Original_CreateDate, Original_ModDate);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_annullaUDC(string UDC) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_sbloccaUdc(string UDC) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -952,6 +952,17 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_annullaUDC" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_annullaUDC" Modifier="Public" Name="stp_annullaUDC" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="stp_annullaUDC">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_annullaUDC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@UDC" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_getStatoByUdc" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="stp_getStatoByUdc" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="stp_getStatoByUdc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="stp_getStatoByUdc" UserSourceName="stp_getStatoByUdc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -992,6 +1003,17 @@ SELECT CodCompany, ODP, UDC, Tara, IdxStato, Qta, CodImballo, CodImpianto, Parti
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_sbloccaUdc" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_sbloccaUdc" Modifier="Public" Name="stp_sbloccaUdc" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="stp_sbloccaUdc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_sbloccaUdc</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@UDC" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StoricoEventiTableAdapter" GeneratorDataComponentClassName="StoricoEventiTableAdapter" Name="StoricoEventi" UserDataComponentName="StoricoEventiTableAdapter">
|
||||
@@ -1417,7 +1439,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagImballi" msprop:Generator_UserTableName="AnagImballi" msprop:Generator_RowDeletedName="AnagImballiRowDeleted" msprop:Generator_TableClassName="AnagImballiDataTable" msprop:Generator_RowChangedName="AnagImballiRowChanged" msprop:Generator_RowClassName="AnagImballiRow" msprop:Generator_RowChangingName="AnagImballiRowChanging" msprop:Generator_RowEvArgName="AnagImballiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagImballiRowChangeEventHandler" msprop:Generator_TablePropName="AnagImballi" msprop:Generator_TableVarName="tableAnagImballi" msprop:Generator_RowDeletingName="AnagImballiRowDeleting">
|
||||
<xs:element name="AnagImballi" msprop:Generator_UserTableName="AnagImballi" msprop:Generator_RowDeletedName="AnagImballiRowDeleted" msprop:Generator_RowChangedName="AnagImballiRowChanged" msprop:Generator_RowClassName="AnagImballiRow" msprop:Generator_RowChangingName="AnagImballiRowChanging" msprop:Generator_RowEvArgName="AnagImballiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagImballiRowChangeEventHandler" msprop:Generator_TableClassName="AnagImballiDataTable" msprop:Generator_TableVarName="tableAnagImballi" msprop:Generator_RowDeletingName="AnagImballiRowDeleting" msprop:Generator_TablePropName="AnagImballi">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodImballo" msprop:Generator_UserColumnName="CodImballo" msprop:Generator_ColumnPropNameInRow="CodImballo" msprop:Generator_ColumnVarNameInTable="columnCodImballo" msprop:Generator_ColumnPropNameInTable="CodImballoColumn">
|
||||
@@ -1437,7 +1459,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagArticoli" msprop:Generator_UserTableName="AnagArticoli" msprop:Generator_RowDeletedName="AnagArticoliRowDeleted" msprop:Generator_TableClassName="AnagArticoliDataTable" msprop:Generator_RowChangedName="AnagArticoliRowChanged" msprop:Generator_RowClassName="AnagArticoliRow" msprop:Generator_RowChangingName="AnagArticoliRowChanging" msprop:Generator_RowEvArgName="AnagArticoliRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagArticoliRowChangeEventHandler" msprop:Generator_TablePropName="AnagArticoli" msprop:Generator_TableVarName="tableAnagArticoli" msprop:Generator_RowDeletingName="AnagArticoliRowDeleting">
|
||||
<xs:element name="AnagArticoli" msprop:Generator_UserTableName="AnagArticoli" msprop:Generator_RowDeletedName="AnagArticoliRowDeleted" msprop:Generator_RowChangedName="AnagArticoliRowChanged" msprop:Generator_RowClassName="AnagArticoliRow" msprop:Generator_RowChangingName="AnagArticoliRowChanging" msprop:Generator_RowEvArgName="AnagArticoliRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagArticoliRowChangeEventHandler" msprop:Generator_TableClassName="AnagArticoliDataTable" msprop:Generator_TableVarName="tableAnagArticoli" msprop:Generator_RowDeletingName="AnagArticoliRowDeleting" msprop:Generator_TablePropName="AnagArticoli">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Particolare" msprop:Generator_UserColumnName="Particolare" msprop:Generator_ColumnPropNameInRow="Particolare" msprop:Generator_ColumnVarNameInTable="columnParticolare" msprop:Generator_ColumnPropNameInTable="ParticolareColumn">
|
||||
@@ -1471,7 +1493,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Impianti2Articoli" msprop:Generator_UserTableName="Impianti2Articoli" msprop:Generator_RowDeletedName="Impianti2ArticoliRowDeleted" msprop:Generator_TableClassName="Impianti2ArticoliDataTable" msprop:Generator_RowChangedName="Impianti2ArticoliRowChanged" msprop:Generator_RowClassName="Impianti2ArticoliRow" msprop:Generator_RowChangingName="Impianti2ArticoliRowChanging" msprop:Generator_RowEvArgName="Impianti2ArticoliRowChangeEvent" msprop:Generator_RowEvHandlerName="Impianti2ArticoliRowChangeEventHandler" msprop:Generator_TablePropName="Impianti2Articoli" msprop:Generator_TableVarName="tableImpianti2Articoli" msprop:Generator_RowDeletingName="Impianti2ArticoliRowDeleting">
|
||||
<xs:element name="Impianti2Articoli" msprop:Generator_UserTableName="Impianti2Articoli" msprop:Generator_RowDeletedName="Impianti2ArticoliRowDeleted" msprop:Generator_RowChangedName="Impianti2ArticoliRowChanged" msprop:Generator_RowClassName="Impianti2ArticoliRow" msprop:Generator_RowChangingName="Impianti2ArticoliRowChanging" msprop:Generator_RowEvArgName="Impianti2ArticoliRowChangeEvent" msprop:Generator_RowEvHandlerName="Impianti2ArticoliRowChangeEventHandler" msprop:Generator_TableClassName="Impianti2ArticoliDataTable" msprop:Generator_TableVarName="tableImpianti2Articoli" msprop:Generator_RowDeletingName="Impianti2ArticoliRowDeleting" msprop:Generator_TablePropName="Impianti2Articoli">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodImpianto" msprop:Generator_UserColumnName="CodImpianto" msprop:Generator_ColumnPropNameInRow="CodImpianto" msprop:Generator_ColumnVarNameInTable="columnCodImpianto" msprop:Generator_ColumnPropNameInTable="CodImpiantoColumn">
|
||||
@@ -1514,7 +1536,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_ArtInProd" msprop:Generator_UserTableName="v_ArtInProd" msprop:Generator_RowDeletedName="v_ArtInProdRowDeleted" msprop:Generator_TableClassName="v_ArtInProdDataTable" msprop:Generator_RowChangedName="v_ArtInProdRowChanged" msprop:Generator_RowClassName="v_ArtInProdRow" msprop:Generator_RowChangingName="v_ArtInProdRowChanging" msprop:Generator_RowEvArgName="v_ArtInProdRowChangeEvent" msprop:Generator_RowEvHandlerName="v_ArtInProdRowChangeEventHandler" msprop:Generator_TablePropName="v_ArtInProd" msprop:Generator_TableVarName="tablev_ArtInProd" msprop:Generator_RowDeletingName="v_ArtInProdRowDeleting">
|
||||
<xs:element name="v_ArtInProd" msprop:Generator_UserTableName="v_ArtInProd" msprop:Generator_RowDeletedName="v_ArtInProdRowDeleted" msprop:Generator_RowChangedName="v_ArtInProdRowChanged" msprop:Generator_RowClassName="v_ArtInProdRow" msprop:Generator_RowChangingName="v_ArtInProdRowChanging" msprop:Generator_RowEvArgName="v_ArtInProdRowChangeEvent" msprop:Generator_RowEvHandlerName="v_ArtInProdRowChangeEventHandler" msprop:Generator_TableClassName="v_ArtInProdDataTable" msprop:Generator_TableVarName="tablev_ArtInProd" msprop:Generator_RowDeletingName="v_ArtInProdRowDeleting" msprop:Generator_TablePropName="v_ArtInProd">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Cliente" msprop:Generator_UserColumnName="Cliente" msprop:Generator_ColumnPropNameInRow="Cliente" msprop:Generator_ColumnVarNameInTable="columnCliente" msprop:Generator_ColumnPropNameInTable="ClienteColumn" minOccurs="0">
|
||||
@@ -1571,7 +1593,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TabStatoOdpUdc" msprop:Generator_UserTableName="TabStatoOdpUdc" msprop:Generator_RowDeletedName="TabStatoOdpUdcRowDeleted" msprop:Generator_TableClassName="TabStatoOdpUdcDataTable" msprop:Generator_RowChangedName="TabStatoOdpUdcRowChanged" msprop:Generator_RowClassName="TabStatoOdpUdcRow" msprop:Generator_RowChangingName="TabStatoOdpUdcRowChanging" msprop:Generator_RowEvArgName="TabStatoOdpUdcRowChangeEvent" msprop:Generator_RowEvHandlerName="TabStatoOdpUdcRowChangeEventHandler" msprop:Generator_TablePropName="TabStatoOdpUdc" msprop:Generator_TableVarName="tableTabStatoOdpUdc" msprop:Generator_RowDeletingName="TabStatoOdpUdcRowDeleting">
|
||||
<xs:element name="TabStatoOdpUdc" msprop:Generator_UserTableName="TabStatoOdpUdc" msprop:Generator_RowDeletedName="TabStatoOdpUdcRowDeleted" msprop:Generator_RowChangedName="TabStatoOdpUdcRowChanged" msprop:Generator_RowClassName="TabStatoOdpUdcRow" msprop:Generator_RowChangingName="TabStatoOdpUdcRowChanging" msprop:Generator_RowEvArgName="TabStatoOdpUdcRowChangeEvent" msprop:Generator_RowEvHandlerName="TabStatoOdpUdcRowChangeEventHandler" msprop:Generator_TableClassName="TabStatoOdpUdcDataTable" msprop:Generator_TableVarName="tableTabStatoOdpUdc" msprop:Generator_RowDeletingName="TabStatoOdpUdcRowDeleting" msprop:Generator_TablePropName="TabStatoOdpUdc">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodCompany" msprop:Generator_UserColumnName="CodCompany" msprop:Generator_ColumnPropNameInRow="CodCompany" msprop:Generator_ColumnVarNameInTable="columnCodCompany" msprop:Generator_ColumnPropNameInTable="CodCompanyColumn">
|
||||
@@ -1654,7 +1676,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="StoricoEventi" msprop:Generator_UserTableName="StoricoEventi" msprop:Generator_RowDeletedName="StoricoEventiRowDeleted" msprop:Generator_TableClassName="StoricoEventiDataTable" msprop:Generator_RowChangedName="StoricoEventiRowChanged" msprop:Generator_RowClassName="StoricoEventiRow" msprop:Generator_RowChangingName="StoricoEventiRowChanging" msprop:Generator_RowEvArgName="StoricoEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="StoricoEventiRowChangeEventHandler" msprop:Generator_TablePropName="StoricoEventi" msprop:Generator_TableVarName="tableStoricoEventi" msprop:Generator_RowDeletingName="StoricoEventiRowDeleting">
|
||||
<xs:element name="StoricoEventi" msprop:Generator_UserTableName="StoricoEventi" msprop:Generator_RowDeletedName="StoricoEventiRowDeleted" msprop:Generator_RowChangedName="StoricoEventiRowChanged" msprop:Generator_RowClassName="StoricoEventiRow" msprop:Generator_RowChangingName="StoricoEventiRowChanging" msprop:Generator_RowEvArgName="StoricoEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="StoricoEventiRowChangeEventHandler" msprop:Generator_TableClassName="StoricoEventiDataTable" msprop:Generator_TableVarName="tableStoricoEventi" msprop:Generator_RowDeletingName="StoricoEventiRowDeleting" msprop:Generator_TablePropName="StoricoEventi">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxEv" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="IdxEv" msprop:Generator_ColumnPropNameInRow="IdxEv" msprop:Generator_ColumnVarNameInTable="columnIdxEv" msprop:Generator_ColumnPropNameInTable="IdxEvColumn" type="xs:int" />
|
||||
@@ -1742,7 +1764,7 @@ SELECT UDC_parent, UDC_child FROM RelazUDC WHERE (UDC_child = @UDC_child) AND (U
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="RelazUDC" msprop:Generator_UserTableName="RelazUDC" msprop:Generator_RowDeletedName="RelazUDCRowDeleted" msprop:Generator_TableClassName="RelazUDCDataTable" msprop:Generator_RowChangedName="RelazUDCRowChanged" msprop:Generator_RowClassName="RelazUDCRow" msprop:Generator_RowChangingName="RelazUDCRowChanging" msprop:Generator_RowEvArgName="RelazUDCRowChangeEvent" msprop:Generator_RowEvHandlerName="RelazUDCRowChangeEventHandler" msprop:Generator_TablePropName="RelazUDC" msprop:Generator_TableVarName="tableRelazUDC" msprop:Generator_RowDeletingName="RelazUDCRowDeleting">
|
||||
<xs:element name="RelazUDC" msprop:Generator_UserTableName="RelazUDC" msprop:Generator_RowDeletedName="RelazUDCRowDeleted" msprop:Generator_RowChangedName="RelazUDCRowChanged" msprop:Generator_RowClassName="RelazUDCRow" msprop:Generator_RowChangingName="RelazUDCRowChanging" msprop:Generator_RowEvArgName="RelazUDCRowChangeEvent" msprop:Generator_RowEvHandlerName="RelazUDCRowChangeEventHandler" msprop:Generator_TableClassName="RelazUDCDataTable" msprop:Generator_TableVarName="tableRelazUDC" msprop:Generator_RowDeletingName="RelazUDCRowDeleting" msprop:Generator_TablePropName="RelazUDC">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="UDC_parent" msprop:Generator_UserColumnName="UDC_parent" msprop:Generator_ColumnPropNameInRow="UDC_parent" msprop:Generator_ColumnVarNameInTable="columnUDC_parent" msprop:Generator_ColumnPropNameInTable="UDC_parentColumn">
|
||||
|
||||
@@ -4,25 +4,26 @@
|
||||
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="116" ViewPortY="89" 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:AnagImpianti" ZOrder="27" X="830" Y="90" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagCompany" ZOrder="23" X="591" Y="335" Height="115" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagSiti" ZOrder="26" X="884" Y="337" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="18" X="1169" Y="336" Height="191" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagOdp" ZOrder="21" X="147" Y="278" Height="248" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="19" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="2" X="1110" Y="696" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="17" X="99" Y="722" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="16" X="118" Y="575" Height="134" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="15" X="168" Y="43" Height="153" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Impianti2Articoli" ZOrder="14" X="489" Y="35" Height="248" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="11" X="1155" Y="0" Height="267" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:TabStatoOdpUdc" ZOrder="1" X="467" Y="529" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:StoricoEventi" ZOrder="5" X="855" Y="777" Height="305" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="28" X="830" Y="90" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagCompany" ZOrder="24" X="591" Y="335" Height="115" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagSiti" ZOrder="27" X="884" Y="337" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="19" X="1169" Y="336" Height="191" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagOdp" ZOrder="22" X="147" Y="278" Height="248" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="20" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="3" X="1110" Y="696" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="18" X="99" Y="722" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="17" X="118" Y="575" Height="134" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="16" X="168" Y="43" Height="153" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Impianti2Articoli" ZOrder="15" X="489" Y="35" Height="248" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="12" X="1155" Y="0" Height="267" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:TabStatoOdpUdc" ZOrder="2" X="467" Y="529" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:StoricoEventi" ZOrder="6" X="855" Y="777" Height="305" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RelazUDC" ZOrder="1" X="0" Y="0" Height="90" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="0" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagSiti" ZOrder="25" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagSiti" ZOrder="26" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>963</X>
|
||||
@@ -34,7 +35,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagSiti_AnagCompany" ZOrder="24" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagSiti_AnagCompany" ZOrder="25" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>821</X>
|
||||
@@ -46,7 +47,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagBilance_AnagSiti" ZOrder="22" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagBilance_AnagSiti" ZOrder="23" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1078</X>
|
||||
@@ -58,7 +59,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagOdp_AnagCompany" ZOrder="20" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagOdp_AnagCompany" ZOrder="21" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>591</X>
|
||||
@@ -70,7 +71,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagArticoli1" ZOrder="13" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagArticoli1" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>385</X>
|
||||
@@ -82,7 +83,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagImpianti" ZOrder="12" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagImpianti" ZOrder="13" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>830</X>
|
||||
@@ -94,7 +95,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagArticoli" ZOrder="10" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagArticoli" ZOrder="11" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
@@ -110,7 +111,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagImballi" ZOrder="9" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagImballi" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>360</X>
|
||||
@@ -122,7 +123,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagOdp" ZOrder="8" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagOdp" ZOrder="9" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>329</X>
|
||||
@@ -138,7 +139,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStati" ZOrder="7" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStati" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>867</X>
|
||||
@@ -150,7 +151,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStatiProdotto" ZOrder="6" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStatiProdotto" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>321</X>
|
||||
@@ -166,7 +167,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_StoricoEventi_AnagTipoDichiaraz" ZOrder="4" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_StoricoEventi_AnagTipoDichiaraz" ZOrder="5" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1185</X>
|
||||
@@ -182,7 +183,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_StoricoEventi_TabStatoOdpUdc" ZOrder="3" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_StoricoEventi_TabStatoOdpUdc" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>767</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.
@@ -1,17 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GMW._Default" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" />
|
||||
<div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -79,10 +79,18 @@
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="Type\Prodotto.cs" />
|
||||
<Compile Include="Type\StatiProdotto.cs" />
|
||||
<Compile Include="Type\TipoDichiarazione.cs" />
|
||||
<Compile Include="Type\UDC.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
<DependentUpon>bilance.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WS\entrataMerce.asmx.cs">
|
||||
<DependentUpon>entrataMerce.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWare\SteamWare.csproj">
|
||||
@@ -99,6 +107,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="mazzConnectionStrings.config" />
|
||||
<Content Include="WS\entrataMerce.asmx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Reports\CartellinoTara.rdlc" />
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="entrataMerce.asmx.cs" Class="GMW.WS.entrataMerce" %>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
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.
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.
@@ -1,5 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<?xml version="1.0"?><configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
@@ -35,6 +34,9 @@
|
||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
<httpHandlers>
|
||||
@@ -48,16 +50,16 @@
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<appSettings>
|
||||
<add key="printerCartTara" value="PDFCreator" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="_logLevel" value="6" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="printerCartTara" value="PDFCreator" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="_logLevel" value="6" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
@@ -95,4 +97,4 @@
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
</configuration>
|
||||
@@ -1,17 +1,15 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GMW._Default" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" />
|
||||
<div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -13,9 +13,9 @@ namespace GMW
|
||||
{
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+23
-7
@@ -1,18 +1,34 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
|
||||
public partial class _Default
|
||||
{
|
||||
protected System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
namespace GMW {
|
||||
|
||||
|
||||
public partial class _Default {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,10 +79,18 @@
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="Type\Prodotto.cs" />
|
||||
<Compile Include="Type\StatiProdotto.cs" />
|
||||
<Compile Include="Type\TipoDichiarazione.cs" />
|
||||
<Compile Include="Type\UDC.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
<DependentUpon>bilance.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WS\entrataMerce.asmx.cs">
|
||||
<DependentUpon>entrataMerce.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWare\SteamWare.csproj">
|
||||
@@ -99,6 +107,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="mazzConnectionStrings.config" />
|
||||
<Content Include="WS\entrataMerce.asmx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Reports\CartellinoTara.rdlc" />
|
||||
|
||||
@@ -11,77 +11,120 @@ namespace GMW.Type
|
||||
public ArtInProd()
|
||||
{
|
||||
}
|
||||
public ArtInProd(DS_Applicazione.v_ArtInProdRow riga)
|
||||
{
|
||||
//RIFARE!!!!
|
||||
CodImpianto = riga.CodImpianto;
|
||||
Particolare = riga.Particolare;
|
||||
DescrParticolare = riga.Particolare;
|
||||
Cliente = riga.Cliente;
|
||||
Articolo= riga.Particolare;
|
||||
CodStampo = riga.CodStampo;
|
||||
Disegno = "ND";
|
||||
Esponente= "ND";
|
||||
Famiglia = riga.Famiglia;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
Figura = riga.Figura;
|
||||
Fig1 = riga.FiguraIncisa;
|
||||
Fig2 = riga.FiguraIncisa;
|
||||
Fig3 = riga.FiguraIncisa;
|
||||
Fig4 = riga.FiguraIncisa;
|
||||
Lotto= "ND";
|
||||
}
|
||||
|
||||
protected string _CodImpianto;
|
||||
protected string _CodArticolo;
|
||||
protected DateTime _InizioProd;
|
||||
protected DateTime? _FineProd;
|
||||
/// <summary>
|
||||
/// Codice impianto
|
||||
/// </summary>
|
||||
public string CodImpianto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodImpianto;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodImpianto = value;
|
||||
}
|
||||
}
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo + cliente (=particolare)
|
||||
/// </summary>
|
||||
public string Particolare { get; set; }
|
||||
/// <summary>
|
||||
/// Descrizione particolare
|
||||
/// </summary>
|
||||
public string DescrParticolare { get; set; }
|
||||
/// <summary>
|
||||
/// Cliente
|
||||
/// </summary>
|
||||
public string Cliente { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
public string Articolo { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Disegno
|
||||
/// </summary>
|
||||
public string Disegno { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Esponente
|
||||
/// </summary>
|
||||
public string Esponente { get; set; }
|
||||
/// <summary>
|
||||
/// Famiglia
|
||||
/// </summary>
|
||||
public string Famiglia { get; set; }
|
||||
/// <summary>
|
||||
/// Inizio produzione
|
||||
/// </summary>
|
||||
public DateTime InizioProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _InizioProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_InizioProd = value;
|
||||
}
|
||||
}
|
||||
public DateTime InizioProd { get; set; }
|
||||
/// <summary>
|
||||
/// Fine produzione
|
||||
/// </summary>
|
||||
public DateTime? FineProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FineProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_FineProd = value;
|
||||
}
|
||||
}
|
||||
public DateTime? FineProd { get; set; }
|
||||
/// <summary>
|
||||
/// Figura
|
||||
/// </summary>
|
||||
public string Figura { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 1
|
||||
/// </summary>
|
||||
public string Fig1 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 2
|
||||
/// </summary>
|
||||
public string Fig2 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 3
|
||||
/// </summary>
|
||||
public string Fig3 { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa 4
|
||||
/// </summary>
|
||||
public string Fig4 { get; set; }
|
||||
/// <summary>
|
||||
/// Lotto
|
||||
/// </summary>
|
||||
public string Lotto { get; set; }
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianti2articoli
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga)
|
||||
public void setFromTabRow(DS_Applicazione.v_ArtInProdRow riga)
|
||||
{
|
||||
//RIFARE!!!!
|
||||
CodImpianto = riga.CodImpianto;
|
||||
CodArticolo = riga.CodArticolo;
|
||||
Particolare = riga.Particolare;
|
||||
DescrParticolare = riga.Particolare;
|
||||
Cliente = riga.Cliente;
|
||||
Articolo = riga.Particolare;
|
||||
CodStampo = riga.CodStampo;
|
||||
Disegno = "ND";
|
||||
Esponente = "ND";
|
||||
Famiglia = riga.Famiglia;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
Figura = riga.Figura;
|
||||
Fig1 = riga.FiguraIncisa;
|
||||
Fig2 = riga.FiguraIncisa;
|
||||
Fig3 = riga.FiguraIncisa;
|
||||
Fig4 = riga.FiguraIncisa;
|
||||
Lotto = "ND";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,60 +12,43 @@ namespace GMW.Type
|
||||
{
|
||||
}
|
||||
|
||||
protected string _CodArticolo;
|
||||
protected string _DescrArticolo;
|
||||
protected string _Figura;
|
||||
|
||||
public Articolo(DS_Applicazione.AnagArticoliRow riga)
|
||||
{
|
||||
Cliente = riga.Cliente;
|
||||
Famiglia = riga.Famiglia;
|
||||
Particolare = riga.Particolare;
|
||||
DescrArticolo = riga.DescrArticolo;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cliente
|
||||
/// </summary>
|
||||
public string Cliente { get; set; }
|
||||
/// <summary>
|
||||
/// Famiglia
|
||||
/// </summary>
|
||||
public string Famiglia { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
public string Particolare { get; set; }
|
||||
/// <summary>
|
||||
/// Descrizione Articolo
|
||||
/// </summary>
|
||||
public string DescrArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrArticolo = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Figura
|
||||
/// </summary>
|
||||
public string Figura
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Figura;
|
||||
}
|
||||
set
|
||||
{
|
||||
_Figura = value;
|
||||
}
|
||||
}
|
||||
public string DescrArticolo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianto tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga)
|
||||
{
|
||||
CodArticolo = riga.CodArticolo;
|
||||
Cliente = riga.Cliente;
|
||||
Famiglia = riga.Famiglia;
|
||||
Particolare = riga.Particolare;
|
||||
DescrArticolo = riga.DescrArticolo;
|
||||
Figura = riga.Figura;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,67 +11,30 @@ namespace GMW.Type
|
||||
public Bilancia()
|
||||
{
|
||||
}
|
||||
public Bilancia(DS_Applicazione.AnagBilanceRow riga)
|
||||
{
|
||||
CodBilancia = riga.CodBilancia;
|
||||
DescrBilancia = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito = riga.CodSito;
|
||||
}
|
||||
|
||||
protected string _CodBilancia;
|
||||
protected string _DescrBilancia;
|
||||
protected string _CodCompany;
|
||||
protected string _CodSito;
|
||||
/// <summary>
|
||||
/// Codice Bilancia
|
||||
/// </summary>
|
||||
public string CodBilancia
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodBilancia;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodBilancia = value;
|
||||
}
|
||||
}
|
||||
public string CodBilancia { get; set; }
|
||||
/// <summary>
|
||||
/// Descrizione Bilancia
|
||||
/// </summary>
|
||||
public string DescrBilancia
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrBilancia;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrBilancia = value;
|
||||
}
|
||||
}
|
||||
public string DescrBilancia { get; set; }
|
||||
/// <summary>
|
||||
/// Codice COmpany
|
||||
/// </summary>
|
||||
public string CodCompany
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodCompany;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodCompany = value;
|
||||
}
|
||||
}
|
||||
public string CodCompany { get; set; }
|
||||
/// <summary>
|
||||
/// Codice sito
|
||||
/// </summary>
|
||||
public string CodSito
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodSito;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodSito = value;
|
||||
}
|
||||
}
|
||||
public string CodSito { get; set; }
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga bilancia tipizzata
|
||||
/// </summary>
|
||||
|
||||
@@ -11,67 +11,30 @@ namespace GMW.Type
|
||||
public Impianto()
|
||||
{
|
||||
}
|
||||
public Impianto(DS_Applicazione.AnagImpiantiRow riga)
|
||||
{
|
||||
CodImpianto = riga.CodImpianto;
|
||||
DescrImpianto = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito = riga.CodSito;
|
||||
}
|
||||
|
||||
protected string _CodImpianto;
|
||||
protected string _DescrImpianto;
|
||||
protected string _CodCompany;
|
||||
protected string _CodSito;
|
||||
/// <summary>
|
||||
/// Codice impianto
|
||||
/// </summary>
|
||||
public string CodImpianto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodImpianto;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodImpianto = value;
|
||||
}
|
||||
}
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Descrizione impianto
|
||||
/// </summary>
|
||||
public string DescrImpianto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrImpianto;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrImpianto = value;
|
||||
}
|
||||
}
|
||||
public string DescrImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Codice COmpany
|
||||
/// </summary>
|
||||
public string CodCompany
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodCompany;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodCompany = value;
|
||||
}
|
||||
}
|
||||
public string CodCompany { get; set; }
|
||||
/// <summary>
|
||||
/// Codice sito
|
||||
/// </summary>
|
||||
public string CodSito
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodSito;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodSito = value;
|
||||
}
|
||||
}
|
||||
public string CodSito { get; set; }
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianto tipizzata
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Prodotto
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class StatiProdotto
|
||||
{
|
||||
public StatiProdotto()
|
||||
{
|
||||
}
|
||||
public StatiProdotto(DS_Applicazione.AnagStatiProdottoRow riga)
|
||||
{
|
||||
CodStato= riga.CodStato;
|
||||
DescrStato= riga.DescStato;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// codice dello stato del prodotto
|
||||
/// </summary>
|
||||
public string CodStato { get; set; }
|
||||
/// <summary>
|
||||
/// descrizione dello stato del prodotto
|
||||
/// </summary>
|
||||
public string DescrStato { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga tipoDichiaraz tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagStatiProdottoRow riga)
|
||||
{
|
||||
CodStato= riga.CodStato;
|
||||
DescrStato= riga.DescStato;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class TipoDichiarazione
|
||||
{
|
||||
public TipoDichiarazione()
|
||||
{
|
||||
}
|
||||
public TipoDichiarazione(DS_Applicazione.AnagTipoDichiarazRow riga)
|
||||
{
|
||||
CodTipoDichiaraz = riga.CodTipoDichiaraz;
|
||||
DescrTipoDichiaraz = riga.DescrTipoDichiaraz;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// codice del tipo di dichiarazione
|
||||
/// </summary>
|
||||
public string CodTipoDichiaraz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// descrizione del tipo di dichiarazione
|
||||
/// </summary>
|
||||
public string DescrTipoDichiaraz { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga tipoDichiaraz tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagTipoDichiarazRow riga)
|
||||
{
|
||||
CodTipoDichiaraz= riga.CodTipoDichiaraz;
|
||||
DescrTipoDichiaraz = riga.DescrTipoDichiaraz;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
/// <summary>
|
||||
/// classe che rappresenta l'intero UDC
|
||||
/// </summary>
|
||||
public class UDC
|
||||
{
|
||||
public UDC()
|
||||
{
|
||||
}
|
||||
public UDC(DS_Applicazione.TabStatoOdpUdcRow riga)
|
||||
{
|
||||
CodCompany = riga.CodCompany;
|
||||
ODP = riga.ODP;
|
||||
UDC_code = riga.UDC;
|
||||
Tara = riga.Tara;
|
||||
IdxStato = riga.IdxStato;
|
||||
Qta = riga.Qta;
|
||||
CodImballo = riga.CodImballo;
|
||||
CodImpianto = riga.CodImpianto;
|
||||
Particolare = riga.Particolare;
|
||||
CodStato = riga.CodStato;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
FiguraIncisa = riga.FiguraIncisa;
|
||||
CreateDate = riga.CreateDate;
|
||||
ModDate = riga.ModDate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Codice company
|
||||
/// </summary>
|
||||
public string CodCompany { get; set; }
|
||||
/// <summary>
|
||||
/// Codice ODP
|
||||
/// </summary>
|
||||
public string ODP { get; set; }
|
||||
/// <summary>
|
||||
/// Codice UDC
|
||||
/// </summary>
|
||||
public string UDC_code { get; set; }
|
||||
/// <summary>
|
||||
/// Tara dell'UDC
|
||||
/// </summary>
|
||||
public double Tara { get; set; }
|
||||
/// <summary>
|
||||
/// stato associato all'UDC
|
||||
/// </summary>
|
||||
public int IdxStato { get; set; }
|
||||
/// <summary>
|
||||
/// Quantità associata all'UDC
|
||||
/// </summary>
|
||||
public decimal Qta { get; set; }
|
||||
/// <summary>
|
||||
/// CodiceImballo associato all'UDC
|
||||
/// </summary>
|
||||
public string CodImballo { get; set; }
|
||||
/// <summary>
|
||||
/// Codice impianto
|
||||
/// </summary>
|
||||
public string CodImpianto { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string Particolare { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stato pezzo (sabbiato, smaterozzato, ...)
|
||||
/// </summary>
|
||||
public string CodStato { get; set; }
|
||||
/// <summary>
|
||||
/// Codice Stampo
|
||||
/// </summary>
|
||||
public string CodStampo { get; set; }
|
||||
/// <summary>
|
||||
/// Figura
|
||||
/// </summary>
|
||||
public string Figura { get; set; }
|
||||
/// <summary>
|
||||
/// Figura Incisa
|
||||
/// </summary>
|
||||
public string FiguraIncisa { get; set; }
|
||||
/// <summary>
|
||||
/// Data di creazione dell'UDC
|
||||
/// </summary>
|
||||
public DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// Data ultima modifica UDC
|
||||
/// </summary>
|
||||
public DateTime ModDate { get; set; }
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga statoOdpUdc
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.TabStatoOdpUdcRow riga)
|
||||
{
|
||||
CodCompany = riga.CodCompany;
|
||||
ODP = riga.ODP;
|
||||
UDC_code= riga.UDC;
|
||||
Tara = riga.Tara;
|
||||
IdxStato = riga.IdxStato;
|
||||
Qta = riga.Qta;
|
||||
CodImballo = riga.CodImballo;
|
||||
CodImpianto = riga.CodImpianto;
|
||||
Particolare = riga.Particolare;
|
||||
CodStato = riga.CodStato;
|
||||
CodStampo = riga.CodStampo;
|
||||
Figura = riga.Figura;
|
||||
FiguraIncisa = riga.FiguraIncisa;
|
||||
CreateDate = riga.CreateDate;
|
||||
ModDate = riga.ModDate;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,8 +12,77 @@ namespace GMW.Type
|
||||
{
|
||||
}
|
||||
|
||||
#region area tipo dichiarazione
|
||||
|
||||
protected TipoDichiarazione[] _elencoTipoDichiaraz;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagTipoDichiaraz e la converte ad un array di tipo TipoDichiarazione[]
|
||||
/// </summary>
|
||||
/// <param name="tabTipoDichiaraz"></param>
|
||||
public void caricaTipoDichiarazioni(DS_Applicazione.AnagTipoDichiarazDataTable tabTipoDichiaraz)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabTipoDichiaraz.Rows.Count;
|
||||
_elencoTipoDichiaraz = new TipoDichiarazione[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
TipoDichiarazione obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new TipoDichiarazione(tabTipoDichiaraz[i]);
|
||||
_elencoTipoDichiaraz[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco tipo di dichiarazioni ammesse
|
||||
/// </summary>
|
||||
public TipoDichiarazione[] elencoTipoDichiaraz
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoTipoDichiaraz;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area stato prodotti
|
||||
|
||||
protected StatiProdotto[] _elencoStatiProdotto;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagStatiProdotto e la converte ad un array di tipo StatiProdotto[]
|
||||
/// </summary>
|
||||
/// <param name="tabTipoDichiaraz"></param>
|
||||
public void caricaStatiProdotto(DS_Applicazione.AnagStatiProdottoDataTable tabStatiProd)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabStatiProd.Rows.Count;
|
||||
_elencoStatiProdotto = new StatiProdotto[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
StatiProdotto obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new StatiProdotto(tabStatiProd[i]);
|
||||
_elencoStatiProdotto[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco degli stati del prodotto ammessi
|
||||
/// </summary>
|
||||
public StatiProdotto[] elencoStatiProdotto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoStatiProdotto;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area articoli
|
||||
|
||||
|
||||
protected Articolo[] _elencoArticoli;
|
||||
|
||||
/// <summary>
|
||||
@@ -29,8 +98,7 @@ namespace GMW.Type
|
||||
Articolo obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Articolo();
|
||||
obj.setFromTabRow(tabArticoli[i]);
|
||||
obj = new Articolo(tabArticoli[i]);
|
||||
_elencoArticoli[i] = obj;
|
||||
}
|
||||
}
|
||||
@@ -43,7 +111,7 @@ namespace GMW.Type
|
||||
{
|
||||
return _elencoArticoli;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -64,8 +132,7 @@ namespace GMW.Type
|
||||
Impianto obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Impianto();
|
||||
obj.setFromTabRow(tabImpianti[i]);
|
||||
obj = new Impianto(tabImpianti[i]);
|
||||
_elencoImpianti[i] = obj;
|
||||
}
|
||||
}
|
||||
@@ -99,8 +166,7 @@ namespace GMW.Type
|
||||
Bilancia obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Bilancia();
|
||||
obj.setFromTabRow(tabBilance[i]);
|
||||
obj = new Bilancia(tabBilance[i]);
|
||||
_elencoBilance[i] = obj;
|
||||
}
|
||||
}
|
||||
@@ -125,17 +191,16 @@ namespace GMW.Type
|
||||
/// legge una tab di tipo Impianti2Articoli e la converte ad un array di tipo ArtInProd[]
|
||||
/// </summary>
|
||||
/// <param name="tabArt2Imp"></param>
|
||||
public void caricaArtInProd(DS_Applicazione.Impianti2ArticoliDataTable tabArt2Imp)
|
||||
public void caricaArtInProd(DS_Applicazione.v_ArtInProdDataTable tabArtInProd)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArt2Imp.Rows.Count;
|
||||
int numRighe = tabArtInProd.Rows.Count;
|
||||
_elencoArtInProd = new ArtInProd[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
ArtInProd obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new ArtInProd();
|
||||
obj.setFromTabRow(tabArt2Imp[i]);
|
||||
obj = new ArtInProd(tabArtInProd[i]);
|
||||
_elencoArtInProd[i] = obj;
|
||||
}
|
||||
}
|
||||
@@ -151,5 +216,44 @@ namespace GMW.Type
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area UDC
|
||||
|
||||
protected UDC[] _elencoUDC;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo TabStatoOdpUdc e la converte ad un array di tipo UDC[]
|
||||
/// </summary>
|
||||
/// <param name="tabArt2Imp"></param>
|
||||
public void caricaUDC(DS_Applicazione.Impianti2ArticoliDataTable tabArt2Imp)
|
||||
{
|
||||
|
||||
#if false
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArt2Imp.Rows.Count;
|
||||
_elencoArtInProd = new ArtInProd[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
ArtInProd obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new ArtInProd();
|
||||
obj.setFromTabRow(tabArt2Imp[i]);
|
||||
_elencoArtInProd[i] = obj;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco UDC
|
||||
/// </summary>
|
||||
public UDC[] elencoUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoUDC;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Data;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
using System.Data;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
using SteamWare;
|
||||
@@ -10,7 +11,7 @@ using SteamWare;
|
||||
namespace GMW.WS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for bilance
|
||||
/// 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")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
@@ -46,7 +47,26 @@ namespace GMW.WS
|
||||
gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData());
|
||||
return gestEl.elencoArticoli;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce l'elenco dei tipi di dichiarazione ammessi
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Fornisce l'elenco dei tipi di dichiarazione ammessi")]
|
||||
public GMW.Type.TipoDichiarazione[] ElencoTipoDichiarazioni()
|
||||
{
|
||||
|
||||
gestEl.caricaTipoDichiarazioni(DataProxy.obj.taTipoDich.GetData());
|
||||
return gestEl.elencoTipoDichiaraz;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce l'elenco degli stati dei prodotti ammessi
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Fornisce l'elenco degli stati dei prodotti ammessi")]
|
||||
public GMW.Type.StatiProdotto[] ElencoStatiProdotto()
|
||||
{
|
||||
|
||||
gestEl.caricaStatiProdotto(DataProxy.obj.taStatiProd.GetData());
|
||||
return gestEl.elencoStatiProdotto;
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco anagrafico impianti
|
||||
/// </summary>
|
||||
@@ -84,41 +104,125 @@ namespace GMW.WS
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito));
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
/// <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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region area gestione stati & UDC
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
|
||||
/// Richiede la tara per l'UDC indicato
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
|
||||
public GMW.Type.ArtInProd[] elencoArtInProd()
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns>restituisce la tara salvata in precedenza</returns>
|
||||
[WebMethod(Description = "Richiede la tara per l'UDC indicato")]
|
||||
public double UdcInfo_GetTara(string UDC)
|
||||
{
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd());
|
||||
return gestEl.elencoArtInProd;
|
||||
double answ = 0;
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC)[0].Tara;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
|
||||
/// Restituisce l'elenco degli UDC parent di quello specificato
|
||||
/// </summary>
|
||||
/// <param name="CodImpianto">CodImpianto come da anagrafica</param>
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Restituisce l'elenco degli UDC parent di quello specificato")]
|
||||
public string[] UdcInfo_GetParentUdcList(string UDC_rich)
|
||||
{
|
||||
int numRec = 1; //calcolare!
|
||||
string[] answ = new string[numRec];
|
||||
// caricare dati!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce l'elenco degli UDC child di quello specificato
|
||||
/// </summary>
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Restituisce l'elenco degli UDC child di quello specificato")]
|
||||
public string[] UdcInfo_GetChildUdcList(string UDC_rich)
|
||||
{
|
||||
int numRec = 1; //calcolare!
|
||||
string[] answ = new string[numRec];
|
||||
// caricare dati!!!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce tutti i dati dell'UDC indicato
|
||||
/// </summary>
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Restituisce tutti i dati dell'UDC indicato")]
|
||||
public GMW.Type.UDC UdcInfo_GetFullData(string UDC_rich)
|
||||
{
|
||||
GMW.Type.UDC answ = new GMW.Type.UDC();
|
||||
// caricare dati!!!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Controlla che il codice imballo inviato sia valido (pre creazione TARA)
|
||||
/// </summary>
|
||||
/// <param name="CodImballo"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Controlla che il codice imballo inviato sia valido (pre creazione TARA)")]
|
||||
public bool UdcInfo_CheckCodImballo(string CodImballo)
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco se ci sia il codice imballo indicato
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taAnagImballi.stp_getImballoByCod(CodImballo).Rows.Count > 0;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce l'elenco degli articoli attualmente in produzione per impianto, data e turno
|
||||
/// </summary>
|
||||
/// <param name="CodImpianto">Codice impianto (da anagrafica)</param>
|
||||
/// <param name="dataRic">data di riferimento</param>
|
||||
/// <param name="turnoRic">turno di riferimento (1-2-3)</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
|
||||
public GMW.Type.ArtInProd[] elencoArtInProd4Impianto(string CodImpianto)
|
||||
public GMW.Type.ArtInProd[] UdcInfo_ArtInProd4ImpDataTurno(string CodImpianto, DateTime dataRic, int turnoRic)
|
||||
{
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto));
|
||||
// calcolo quante ore sono il turno di riferimento...
|
||||
int oreTurno = 7 + (turnoRic - 1) * 8;
|
||||
// calrolo la data di riferimento come data richeista + ore x turno richiesto
|
||||
DateTime dataRif = dataRic.Date.AddHours(oreTurno);
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.stp_byImpData(CodImpianto, dataRif));
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fornisce un UDC a partire dalla richiesta e salva i dati
|
||||
/// Fornisce un nuovo codice UDC tipo TARA 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="tara">peso in kg (0 se non noto) da associare all'UDC come tara del contenitore</param>
|
||||
/// <param name="CodImballo">codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)</param>
|
||||
/// <param name="CodTipoDichiarazione">tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)</param>
|
||||
/// <param name="CodOperatore">codice dell'operatore</param>
|
||||
/// <returns>UDC: codice univoco del contenitore</returns>
|
||||
[WebMethod(Description = "Fornisce un UDC a partire dalla richiesta (per una certa stazione di pesatura) e salva i dati")]
|
||||
public string UdcGetNew(string CodBilancia, double tara)
|
||||
[WebMethod(Description = "Fornisce un nuovo codice UDC tipo TARA a partire dalla richiesta e salva i dati")]
|
||||
public string UdcCall_GetNew_Tara(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore)
|
||||
{
|
||||
// ricavo cod company...
|
||||
string CodCompany = "ND";
|
||||
@@ -135,7 +239,7 @@ namespace GMW.WS
|
||||
CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
|
||||
}
|
||||
// inserico riga generando il codice
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, 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, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_TARA"); // ATTENZIONE: "UDC_TARA" è "hard coded" nel db... !!!
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -146,63 +250,100 @@ namespace GMW.WS
|
||||
// output risultato
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Richiede la tara per l'UDC indicato
|
||||
/// Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati
|
||||
/// </summary>
|
||||
/// <param name="UDC">codice dell'UDC</param>
|
||||
/// <returns>restituisce la tara salvata in precedenza</returns>
|
||||
[WebMethod(Description = "Richiede la tara per l'UDC indicato")]
|
||||
public double UdcGetTara(string UDC)
|
||||
/// <param name="CodBilancia">codice anagrafico della bilanca che effettua la richiesta (codice della pesa)</param>
|
||||
/// <param name="tara">peso in kg (0 se non noto) da associare all'UDC come tara del contenitore</param>
|
||||
/// <param name="CodImballo">codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)</param>
|
||||
/// <param name="CodTipoDichiarazione">tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)</param>
|
||||
/// <param name="CodOperatore">codice dell'operatore</param>
|
||||
/// <param name="UDC_Parent">codice dell'UDC parent (tara)</param>
|
||||
/// <param name="Particolare">codice del particolare (articolo) - da anagrafica!</param>
|
||||
/// <param name="qta">numero pezzi associati all'UDC</param>
|
||||
/// <param name="PesoTot">Peso totale rilevato</param>
|
||||
/// <param name="PesoCad">Peso unitario rilevato</param>
|
||||
/// <param name="CodImpianto">Codice dell'impianto</param>
|
||||
/// <param name="DataRif">Data di rif per la dichiarazione</param>
|
||||
/// <param name="TurnoRif">Turno di rif per la dichiarazione</param>
|
||||
/// <param name="CodStatoProd">Codice dello stato del pezzo (da anagrafica: sabbiato, ...)</param>
|
||||
/// <param name="CodStampo">Codice dello stampo</param>
|
||||
/// <param name="Figura">Codice figura</param>
|
||||
/// <param name="FiguraIncisa">Codice figura incisa</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, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStatoProd, string CodStampo, string Figura, string FiguraIncisa)
|
||||
{
|
||||
double answ = 0;
|
||||
// ricavo cod company...
|
||||
string CodCompany = "ND";
|
||||
string CodSito = "ND";
|
||||
string answ = "NA";
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taStatoOdpUdc.getByUdc(UDC)[0].Tara;
|
||||
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;
|
||||
}
|
||||
int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
|
||||
// faccio update!
|
||||
DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdcFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "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>
|
||||
/// Salva i dati aggiornati per l'UDC in quanto a numero pezzi associati
|
||||
/// Annulla un dato UDC (se permesso)
|
||||
/// </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="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 CodBilancia, string UDC, string CodArticolo, int qta)
|
||||
/// <param name="UDC_req">codice dell'UDC)</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito ad annullare l'UDC</returns>
|
||||
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
|
||||
public bool UdcCall_annullaUDC(string UDC_req)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
GMW_data.DataProxy.obj.taStatoOdpUdc.stp_annullaUDC(UDC_req);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sblocca un dato UDC (se la chiave passata è valida)
|
||||
/// </summary>
|
||||
/// <param name="UDC_req">codice dell'UDC che si vuole sbloccare</param>
|
||||
/// <param name="passkey">parola chiave x effettuare lo sblocco</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito ad annullare l'UDC</returns>
|
||||
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
|
||||
public bool UdcCall_sbloccaUDC(string UDC_req, string passkey)
|
||||
{
|
||||
// init
|
||||
bool answ = false;
|
||||
// controllo la passkey
|
||||
string passkeyOk = memLayer.ML.confReadString("passkey");
|
||||
if (passkeyOk == passkey)
|
||||
{
|
||||
GMW_data.DataProxy.obj.taStatoOdpUdc.stp_sbloccaUdc(UDC_req);
|
||||
answ = true;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area stampe
|
||||
@@ -215,7 +356,7 @@ namespace GMW.WS
|
||||
/// <param name="UDC">codice UDC univoco</param>
|
||||
/// <returns>restituisce true/false a seconda che sia riuscito a stampare o meno</returns>
|
||||
[WebMethod(Description = "Effettua la stampa richiesta per l'UDC indicato")]
|
||||
public bool UdcPrintLabel(string place, tipoCartellino cartellino, string UDC)
|
||||
public bool UdcCall_PrintLabel(string place, tipoCartellino cartellino, string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
string printerName = memLayer.ML.confReadString("printerCartTara");
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="entrataMerce.asmx.cs" Class="GMW.WS.entrataMerce" %>
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Data;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for entrataMerce
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per la gestione dell'entrata merce integrate a <b>GMW</b> v.1.0.15")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
|
||||
[System.Web.Script.Services.ScriptService]
|
||||
public class entrataMerce : System.Web.Services.WebService
|
||||
{
|
||||
|
||||
#region area init
|
||||
|
||||
/// <summary>
|
||||
/// init del metodo
|
||||
/// </summary>
|
||||
public entrataMerce()
|
||||
{
|
||||
gestEl = new GMW.Type.elenchi();
|
||||
logLevel = memLayer.ML.confReadInt("_logLevel");
|
||||
}
|
||||
|
||||
protected GMW.Type.elenchi gestEl;
|
||||
protected int logLevel = 0;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Crea tanti cartellini gemelli per lo stesso lotto e con la stessa quantità dati codice company e sito, codice lotto, quantità totale, num cartellini
|
||||
/// </summary>
|
||||
/// <param name="CodCompany"></param>
|
||||
/// <param name="CodSito"></param>
|
||||
/// <param name="CodLotto"></param>
|
||||
/// <param name="qtaTotale"></param>
|
||||
/// <param name="numCartellini"></param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Crea tanti cartellini gemelli per lo stesso lotto e con la stessa quantità dati codice company e sito, codice lotto, quantità totale, num cartellini")]
|
||||
public bool CreaCartelliniPerLottoQta(string CodCompany, string CodSito, string CodLotto, float qtaTotale, int numCartellini)
|
||||
{
|
||||
bool answ = false;
|
||||
// dovrebbe allocare i cartellini...
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<?xml version="1.0"?><configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
@@ -35,7 +34,10 @@
|
||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
</assemblies>
|
||||
|
||||
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
|
||||
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
|
||||
</compilation>
|
||||
<httpHandlers>
|
||||
<remove verb="*" path="*.asmx"/>
|
||||
@@ -81,6 +83,7 @@
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="passkey" value="pi=314"/>
|
||||
<add key="GMWConnectionString" value="Data Source=localhost\sql2008;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
@@ -122,4 +125,4 @@
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
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.
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.
@@ -350,7 +350,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{ACF28274-A9DA-4570-8041-73C008174AD5}"
|
||||
"PackageCode" = "8:{3CF58AFF-D485-4AE0-BF57-B02D61BA4626}"
|
||||
"PackageCode" = "8:{BFB94E77-A4F8-4F0D-88B3-04EA6B082758}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
@@ -801,7 +801,7 @@
|
||||
{
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
@@ -829,7 +829,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user