Update di tutti i metodi webservice...
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@13 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -74,6 +74,9 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\Articolo.cs" />
|
||||
<Compile Include="Type\ArtInProd.cs" />
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class ArtInProd
|
||||
{
|
||||
public ArtInProd()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Inizio produzione
|
||||
/// </summary>
|
||||
public DateTime InizioProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _InizioProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_InizioProd = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Fine produzione
|
||||
/// </summary>
|
||||
public DateTime? FineProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FineProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_FineProd = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianti2articoli
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga)
|
||||
{
|
||||
CodImpianto = riga.CodImpianto;
|
||||
CodArticolo = riga.CodArticolo;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Articolo
|
||||
{
|
||||
public Articolo()
|
||||
{
|
||||
}
|
||||
|
||||
protected string _CodArticolo;
|
||||
protected string _DescrArticolo;
|
||||
protected string _Figura;
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianto tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga)
|
||||
{
|
||||
CodArticolo = riga.CodArticolo;
|
||||
DescrArticolo = riga.DescrArticolo;
|
||||
Figura = riga.Figura;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Bilancia
|
||||
{
|
||||
public Bilancia()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Descrizione Bilancia
|
||||
/// </summary>
|
||||
public string DescrBilancia
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrBilancia;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrBilancia = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice COmpany
|
||||
/// </summary>
|
||||
public string CodCompany
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodCompany;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodCompany = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice sito
|
||||
/// </summary>
|
||||
public string CodSito
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodSito;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodSito = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga bilancia tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagBilanceRow riga)
|
||||
{
|
||||
CodBilancia = riga.CodBilancia;
|
||||
DescrBilancia = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito = riga.CodSito;
|
||||
}
|
||||
}
|
||||
}
|
||||
+116
-4
@@ -12,7 +12,45 @@ namespace GMW.Type
|
||||
{
|
||||
}
|
||||
|
||||
#region area articoli
|
||||
|
||||
protected Articolo[] _elencoArticoli;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[]
|
||||
/// </summary>
|
||||
/// <param name="tabArticoli"></param>
|
||||
public void caricaArticoli(DS_Applicazione.AnagArticoliDataTable tabArticoli)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArticoli.Rows.Count;
|
||||
_elencoArticoli = new Articolo[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Articolo obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Articolo();
|
||||
obj.setFromTabRow(tabArticoli[i]);
|
||||
_elencoArticoli[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Articoli
|
||||
/// </summary>
|
||||
public Articolo[] elencoArticoli
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoArticoli;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area impianti
|
||||
|
||||
protected Impianto[] _elencoImpianti;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[]
|
||||
/// </summary>
|
||||
@@ -23,14 +61,17 @@ namespace GMW.Type
|
||||
int numRighe = tabImpianti.Rows.Count;
|
||||
_elencoImpianti = new Impianto[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Impianto singoloImpianto = new Impianto();
|
||||
Impianto obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
singoloImpianto.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = singoloImpianto;
|
||||
obj = new Impianto();
|
||||
obj.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = obj;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco Impianti
|
||||
/// </summary>
|
||||
public Impianto[] elencoImpianti
|
||||
{
|
||||
get
|
||||
@@ -39,5 +80,76 @@ namespace GMW.Type
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area bilance
|
||||
|
||||
protected Bilancia[] _elencoBilance;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagBilance e la converte ad un array di tipo Bilancia[]
|
||||
/// </summary>
|
||||
/// <param name="tabImpianti"></param>
|
||||
public void caricaBilance(DS_Applicazione.AnagBilanceDataTable tabBilance)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabBilance.Rows.Count;
|
||||
_elencoBilance = new Bilancia[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Bilancia obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Bilancia();
|
||||
obj.setFromTabRow(tabBilance[i]);
|
||||
_elencoBilance[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Bilance
|
||||
/// </summary>
|
||||
public Bilancia[] elencoBilance
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoBilance;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area articoli in prod
|
||||
|
||||
protected ArtInProd[] _elencoArtInProd;
|
||||
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Articoli in produzione
|
||||
/// </summary>
|
||||
public ArtInProd[] elencoArtInProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoArtInProd;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
+32
-31
@@ -11,7 +11,7 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// Summary description for bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.11")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.13")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -33,56 +33,54 @@ namespace GMW.WS
|
||||
|
||||
#region area anagrafiche
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica articoli
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico articoli")]
|
||||
public GMW_data.DS_Applicazione.AnagArticoliDataTable AnagArticoli()
|
||||
public GMW.Type.Articolo[] ElencoArticoli()
|
||||
{
|
||||
return DataProxy.obj.taAnagArt.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti")]
|
||||
public GMW_data.DS_Applicazione.AnagImpiantiDataTable AnagImpianti()
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.GetData();
|
||||
|
||||
gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData());
|
||||
return gestEl.elencoArticoli;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti (no dataset)
|
||||
/// Elenco anagrafico impianti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti (no dataset)")]
|
||||
[WebMethod(Description = "Elenco anagrafico impianti")]
|
||||
public GMW.Type.Impianto[] ElencoImpianti()
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.GetData());
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco anagrafica impianti dati codice company e sito (no dataset)
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafica impianti dati codice company e sito (no dataset)")]
|
||||
public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito));
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilance
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance")]
|
||||
public GMW_data.DS_Applicazione.AnagBilanceDataTable AnagBilance()
|
||||
public GMW.Type.Bilancia[] ElencoBilance()
|
||||
{
|
||||
return DataProxy.obj.taAnagBil.GetData();
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.GetData());
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti dati codice company e sito
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti dati codice company e sito")]
|
||||
public GMW_data.DS_Applicazione.AnagImpiantiDataTable AnagImpiantiByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito);
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilancedati codice company e sito
|
||||
/// fornisce l'anagrafica bilance dati codice company e sito
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance dati codice company e sito")]
|
||||
public GMW_data.DS_Applicazione.AnagBilanceDataTable AnagBilanceByCompanySito(string CodCompany, string CodSito)
|
||||
public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
return DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito);
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito));
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,9 +92,10 @@ namespace GMW.WS
|
||||
/// 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_data.DS_Applicazione.Impianti2ArticoliDataTable ArtInProd()
|
||||
public GMW.Type.ArtInProd[] ArtInProd()
|
||||
{
|
||||
return DataProxy.obj.taImp2Art.GetData();
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd());
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
|
||||
@@ -104,10 +103,12 @@ namespace GMW.WS
|
||||
/// <param name="CodImpianto">CodImpianto come da anagrafica</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
|
||||
public GMW_data.DS_Applicazione.Impianti2ArticoliDataTable Art4Impianto(string CodImpianto)
|
||||
public GMW.Type.ArtInProd[] ArtInProd4Impianto(string CodImpianto)
|
||||
{
|
||||
return DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto);
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto));
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fornisce un UDC a partire dalla richiesta e salva i dati
|
||||
/// </summary>
|
||||
|
||||
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
+13
-11
@@ -4555,14 +4555,16 @@ SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHE
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, FineProd\r\nFROM Imp" +
|
||||
"ianti2Articoli\r\nWHERE (FineProd IS NULL)\r\nAND CodImpianto= @CodImpianto";
|
||||
this._commandCollection[1].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year" +
|
||||
", 2, GETDATE())) AS FineProd\r\nFROM Impianti2Articoli\r\nWHERE (F" +
|
||||
"ineProd IS NULL) AND (CodImpianto = @CodImpianto)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImpianto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodImpianto", 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 = "SELECT CodImpianto, CodArticolo, InizioProd, FineProd\r\nFROM Imp" +
|
||||
"ianti2Articoli\r\nWHERE (FineProd IS NULL)";
|
||||
this._commandCollection[2].CommandText = "SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year" +
|
||||
", 2, GETDATE())) AS FineProd\r\nFROM Impianti2Articoli\r\nWHERE (F" +
|
||||
"ineProd IS NULL)";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
}
|
||||
|
||||
@@ -6441,10 +6443,10 @@ SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (C
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "SELECT CodBilancia, DescrImpianto, CodCompany, CodSito\r\nFROM An" +
|
||||
"agBilance\r\nWHERE (CodSito = @CodSito) AND (CodCompany = @CodCompany)";
|
||||
"agBilance\r\nWHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito) ";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCompany", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, "CodCompany", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSito", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CodSito", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -6488,19 +6490,19 @@ SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance WHERE (C
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_Applicazione.AnagBilanceDataTable getByCompanySito(string CodSito, string CodCompany) {
|
||||
public virtual DS_Applicazione.AnagBilanceDataTable getByCompanySito(string CodCompany, string CodSito) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((CodSito == null)) {
|
||||
if ((CodCompany == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodSito));
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodCompany));
|
||||
}
|
||||
if ((CodCompany == null)) {
|
||||
if ((CodSito == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCompany));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodSito));
|
||||
}
|
||||
DS_Applicazione.AnagBilanceDataTable dataTable = new DS_Applicazione.AnagBilanceDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
|
||||
@@ -69,10 +69,9 @@ SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHE
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.Impianti2Articoli" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getCurrByImpianto" GetMethodModifier="Public" GetMethodName="getCurrByImpianto" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getCurrByImpianto" UserSourceName="getCurrByImpianto">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CodImpianto, CodArticolo, InizioProd, FineProd
|
||||
<CommandText>SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd
|
||||
FROM Impianti2Articoli
|
||||
WHERE (FineProd IS NULL)
|
||||
AND CodImpianto= @CodImpianto</CommandText>
|
||||
WHERE (FineProd IS NULL) AND (CodImpianto = @CodImpianto)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="CodImpianto" ColumnName="CodImpianto" DataSourceName="GMW.dbo.Impianti2Articoli" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CodImpianto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CodImpianto" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -82,7 +81,7 @@ AND CodImpianto= @CodImpianto</CommandText>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.Impianti2Articoli" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getCurrProd" GetMethodModifier="Public" GetMethodName="getCurrProd" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getCurrProd" UserSourceName="getCurrProd">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CodImpianto, CodArticolo, InizioProd, FineProd
|
||||
<CommandText>SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd
|
||||
FROM Impianti2Articoli
|
||||
WHERE (FineProd IS NULL)</CommandText>
|
||||
<Parameters />
|
||||
@@ -411,10 +410,10 @@ WHERE (CodBilancia = @CodBilancia)</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CodBilancia, DescrImpianto, CodCompany, CodSito
|
||||
FROM AnagBilance
|
||||
WHERE (CodSito = @CodSito) AND (CodCompany = @CodCompany)</CommandText>
|
||||
WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito) </CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="CodSito" ColumnName="CodSito" DataSourceName="GMW.dbo.AnagBilance" DataTypeServer="nvarchar(10)" DbType="String" Direction="Input" ParameterName="@CodSito" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumn="CodSito" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="CodCompany" ColumnName="CodCompany" DataSourceName="GMW.dbo.AnagBilance" DataTypeServer="nvarchar(4)" DbType="String" Direction="Input" ParameterName="@CodCompany" Precision="0" ProviderType="NVarChar" Scale="0" Size="4" SourceColumn="CodCompany" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="CodSito" ColumnName="CodSito" DataSourceName="GMW.dbo.AnagBilance" DataTypeServer="nvarchar(10)" DbType="String" Direction="Input" ParameterName="@CodSito" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumn="CodSito" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
|
||||
@@ -6,18 +6,18 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="43" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Impianti2Articoli" ZOrder="17" X="471" Y="77" Height="191" Width="243" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="16" X="160" Y="86" Height="134" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="13" X="830" Y="90" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagCompany" ZOrder="9" X="591" Y="335" Height="115" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagSiti" ZOrder="12" X="884" Y="337" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="8" X="1109" Y="329" Height="191" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagOdp" ZOrder="6" X="147" Y="278" Height="248" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="4" X="823" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:TabStatoOdpUdc" ZOrder="1" X="434" Y="506" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:Impianti2Articoli" ZOrder="1" X="471" Y="77" Height="191" Width="243" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagArticoli" ZOrder="17" X="160" Y="86" Height="134" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="14" X="830" Y="90" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagCompany" ZOrder="10" X="591" Y="335" Height="115" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagSiti" ZOrder="13" X="884" Y="337" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="2" X="1109" Y="329" Height="191" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagOdp" ZOrder="8" X="147" Y="278" Height="248" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="6" X="823" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:TabStatoOdpUdc" ZOrder="3" X="434" Y="506" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagArticoli" ZOrder="15" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagArticoli" ZOrder="16" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>377</X>
|
||||
@@ -29,7 +29,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagImpianti" ZOrder="14" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Impianti2Articoli_AnagImpianti" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>830</X>
|
||||
@@ -41,7 +41,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagSiti" ZOrder="11" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagSiti" ZOrder="12" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>963</X>
|
||||
@@ -53,7 +53,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagSiti_AnagCompany" ZOrder="10" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagSiti_AnagCompany" ZOrder="11" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>821</X>
|
||||
@@ -65,7 +65,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagBilance_AnagSiti" ZOrder="7" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagBilance_AnagSiti" ZOrder="9" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1078</X>
|
||||
@@ -77,7 +77,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagOdp_AnagCompany" ZOrder="5" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagOdp_AnagCompany" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>591</X>
|
||||
@@ -89,7 +89,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagOdp" ZOrder="3" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagOdp" ZOrder="5" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>346</X>
|
||||
@@ -101,7 +101,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStati" ZOrder="2" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TabStatoOdpUdc_AnagStati" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>823</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.
@@ -74,6 +74,9 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\Articolo.cs" />
|
||||
<Compile Include="Type\ArtInProd.cs" />
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -74,6 +74,9 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\Articolo.cs" />
|
||||
<Compile Include="Type\ArtInProd.cs" />
|
||||
<Compile Include="Type\Bilancia.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class ArtInProd
|
||||
{
|
||||
public ArtInProd()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Inizio produzione
|
||||
/// </summary>
|
||||
public DateTime InizioProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _InizioProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_InizioProd = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Fine produzione
|
||||
/// </summary>
|
||||
public DateTime? FineProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _FineProd;
|
||||
}
|
||||
set
|
||||
{
|
||||
_FineProd = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianti2articoli
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga)
|
||||
{
|
||||
CodImpianto = riga.CodImpianto;
|
||||
CodArticolo = riga.CodArticolo;
|
||||
InizioProd = riga.InizioProd;
|
||||
FineProd = riga.FineProd;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Articolo
|
||||
{
|
||||
public Articolo()
|
||||
{
|
||||
}
|
||||
|
||||
protected string _CodArticolo;
|
||||
protected string _DescrArticolo;
|
||||
protected string _Figura;
|
||||
/// <summary>
|
||||
/// Codice Articolo
|
||||
/// </summary>
|
||||
public string CodArticolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodArticolo;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodArticolo = value;
|
||||
}
|
||||
}
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga impianto tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga)
|
||||
{
|
||||
CodArticolo = riga.CodArticolo;
|
||||
DescrArticolo = riga.DescrArticolo;
|
||||
Figura = riga.Figura;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Bilancia
|
||||
{
|
||||
public Bilancia()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Descrizione Bilancia
|
||||
/// </summary>
|
||||
public string DescrBilancia
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrBilancia;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrBilancia = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice COmpany
|
||||
/// </summary>
|
||||
public string CodCompany
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodCompany;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodCompany = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice sito
|
||||
/// </summary>
|
||||
public string CodSito
|
||||
{
|
||||
get
|
||||
{
|
||||
return _CodSito;
|
||||
}
|
||||
set
|
||||
{
|
||||
_CodSito = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializza a partire da una riga bilancia tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagBilanceRow riga)
|
||||
{
|
||||
CodBilancia = riga.CodBilancia;
|
||||
DescrBilancia = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito = riga.CodSito;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,45 @@ namespace GMW.Type
|
||||
{
|
||||
}
|
||||
|
||||
#region area articoli
|
||||
|
||||
protected Articolo[] _elencoArticoli;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[]
|
||||
/// </summary>
|
||||
/// <param name="tabArticoli"></param>
|
||||
public void caricaArticoli(DS_Applicazione.AnagArticoliDataTable tabArticoli)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabArticoli.Rows.Count;
|
||||
_elencoArticoli = new Articolo[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Articolo obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Articolo();
|
||||
obj.setFromTabRow(tabArticoli[i]);
|
||||
_elencoArticoli[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Articoli
|
||||
/// </summary>
|
||||
public Articolo[] elencoArticoli
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoArticoli;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area impianti
|
||||
|
||||
protected Impianto[] _elencoImpianti;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[]
|
||||
/// </summary>
|
||||
@@ -23,14 +61,17 @@ namespace GMW.Type
|
||||
int numRighe = tabImpianti.Rows.Count;
|
||||
_elencoImpianti = new Impianto[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Impianto singoloImpianto = new Impianto();
|
||||
Impianto obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
singoloImpianto.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = singoloImpianto;
|
||||
obj = new Impianto();
|
||||
obj.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = obj;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco Impianti
|
||||
/// </summary>
|
||||
public Impianto[] elencoImpianti
|
||||
{
|
||||
get
|
||||
@@ -39,5 +80,76 @@ namespace GMW.Type
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area bilance
|
||||
|
||||
protected Bilancia[] _elencoBilance;
|
||||
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagBilance e la converte ad un array di tipo Bilancia[]
|
||||
/// </summary>
|
||||
/// <param name="tabImpianti"></param>
|
||||
public void caricaBilance(DS_Applicazione.AnagBilanceDataTable tabBilance)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabBilance.Rows.Count;
|
||||
_elencoBilance = new Bilancia[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Bilancia obj;
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
obj = new Bilancia();
|
||||
obj.setFromTabRow(tabBilance[i]);
|
||||
_elencoBilance[i] = obj;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Bilance
|
||||
/// </summary>
|
||||
public Bilancia[] elencoBilance
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoBilance;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area articoli in prod
|
||||
|
||||
protected ArtInProd[] _elencoArtInProd;
|
||||
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco Articoli in produzione
|
||||
/// </summary>
|
||||
public ArtInProd[] elencoArtInProd
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoArtInProd;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace GMW.WS
|
||||
/// <summary>
|
||||
/// Summary description for bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.11")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.0.9.13")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
@@ -33,56 +33,54 @@ namespace GMW.WS
|
||||
|
||||
#region area anagrafiche
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica articoli
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico articoli")]
|
||||
public GMW_data.DS_Applicazione.AnagArticoliDataTable AnagArticoli()
|
||||
public GMW.Type.Articolo[] ElencoArticoli()
|
||||
{
|
||||
return DataProxy.obj.taAnagArt.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti")]
|
||||
public GMW_data.DS_Applicazione.AnagImpiantiDataTable AnagImpianti()
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.GetData();
|
||||
|
||||
gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData());
|
||||
return gestEl.elencoArticoli;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti (no dataset)
|
||||
/// Elenco anagrafico impianti
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti (no dataset)")]
|
||||
[WebMethod(Description = "Elenco anagrafico impianti")]
|
||||
public GMW.Type.Impianto[] ElencoImpianti()
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.GetData());
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco anagrafica impianti dati codice company e sito (no dataset)
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafica impianti dati codice company e sito (no dataset)")]
|
||||
public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito));
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilance
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance")]
|
||||
public GMW_data.DS_Applicazione.AnagBilanceDataTable AnagBilance()
|
||||
public GMW.Type.Bilancia[] ElencoBilance()
|
||||
{
|
||||
return DataProxy.obj.taAnagBil.GetData();
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.GetData());
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti dati codice company e sito
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti dati codice company e sito")]
|
||||
public GMW_data.DS_Applicazione.AnagImpiantiDataTable AnagImpiantiByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito);
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilancedati codice company e sito
|
||||
/// fornisce l'anagrafica bilance dati codice company e sito
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico Bilance dati codice company e sito")]
|
||||
public GMW_data.DS_Applicazione.AnagBilanceDataTable AnagBilanceByCompanySito(string CodCompany, string CodSito)
|
||||
public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCompany, string CodSito)
|
||||
{
|
||||
return DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito);
|
||||
gestEl.caricaBilance(DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito));
|
||||
return gestEl.elencoBilance;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,9 +92,10 @@ namespace GMW.WS
|
||||
/// 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_data.DS_Applicazione.Impianti2ArticoliDataTable ArtInProd()
|
||||
public GMW.Type.ArtInProd[] ArtInProd()
|
||||
{
|
||||
return DataProxy.obj.taImp2Art.GetData();
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrProd());
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
|
||||
@@ -104,10 +103,12 @@ namespace GMW.WS
|
||||
/// <param name="CodImpianto">CodImpianto come da anagrafica</param>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "Elenco impianti ed articoli attualmente in produzione (per codice anagrafico)")]
|
||||
public GMW_data.DS_Applicazione.Impianti2ArticoliDataTable Art4Impianto(string CodImpianto)
|
||||
public GMW.Type.ArtInProd[] ArtInProd4Impianto(string CodImpianto)
|
||||
{
|
||||
return DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto);
|
||||
gestEl.caricaArtInProd(DataProxy.obj.taImp2Art.getCurrByImpianto(CodImpianto));
|
||||
return gestEl.elencoArtInProd;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fornisce un UDC a partire dalla richiesta e salva i dati
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -349,14 +349,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{C5C879CD-188C-4018-AEDC-E5D9897F966A}"
|
||||
"PackageCode" = "8:{240D4EF0-0D19-4EA5-9B0A-D9C4909A8809}"
|
||||
"ProductCode" = "8:{74B6064C-0999-4AF3-A41D-21A6FEA1E38C}"
|
||||
"PackageCode" = "8:{0E16B9CB-999C-4B85-A445-50DE7A98730A}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:0.9.11"
|
||||
"ProductVersion" = "8:0.9.13"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -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.
Reference in New Issue
Block a user