diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index a8fc849e..89ad41de 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -74,6 +74,9 @@ Default.aspx + + + diff --git a/GMW/GMW/Type/ArtInProd.cs b/GMW/GMW/Type/ArtInProd.cs new file mode 100644 index 00000000..d8961a42 --- /dev/null +++ b/GMW/GMW/Type/ArtInProd.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; + /// + /// Codice impianto + /// + public string CodImpianto + { + get + { + return _CodImpianto; + } + set + { + _CodImpianto = value; + } + } + /// + /// Codice Articolo + /// + public string CodArticolo + { + get + { + return _CodArticolo; + } + set + { + _CodArticolo = value; + } + } + /// + /// Inizio produzione + /// + public DateTime InizioProd + { + get + { + return _InizioProd; + } + set + { + _InizioProd = value; + } + } + /// + /// Fine produzione + /// + public DateTime? FineProd + { + get + { + return _FineProd; + } + set + { + _FineProd = value; + } + } + /// + /// inizializza a partire da una riga impianti2articoli + /// + /// + public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga) + { + CodImpianto = riga.CodImpianto; + CodArticolo = riga.CodArticolo; + InizioProd = riga.InizioProd; + FineProd = riga.FineProd; + } + } +} diff --git a/GMW/GMW/Type/Articolo.cs b/GMW/GMW/Type/Articolo.cs new file mode 100644 index 00000000..02a6714b --- /dev/null +++ b/GMW/GMW/Type/Articolo.cs @@ -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; + /// + /// Codice Articolo + /// + public string CodArticolo + { + get + { + return _CodArticolo; + } + set + { + _CodArticolo = value; + } + } + /// + /// Descrizione Articolo + /// + public string DescrArticolo + { + get + { + return _DescrArticolo; + } + set + { + _DescrArticolo = value; + } + } + /// + /// Figura + /// + public string Figura + { + get + { + return _Figura; + } + set + { + _Figura = value; + } + } + /// + /// inizializza a partire da una riga impianto tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga) + { + CodArticolo = riga.CodArticolo; + DescrArticolo = riga.DescrArticolo; + Figura = riga.Figura; + } + } +} diff --git a/GMW/GMW/Type/Bilancia.cs b/GMW/GMW/Type/Bilancia.cs new file mode 100644 index 00000000..40316e1f --- /dev/null +++ b/GMW/GMW/Type/Bilancia.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 Bilancia + { + public Bilancia() + { + } + + protected string _CodBilancia; + protected string _DescrBilancia; + protected string _CodCompany; + protected string _CodSito; + /// + /// Codice Bilancia + /// + public string CodBilancia + { + get + { + return _CodBilancia; + } + set + { + _CodBilancia = value; + } + } + /// + /// Descrizione Bilancia + /// + public string DescrBilancia + { + get + { + return _DescrBilancia; + } + set + { + _DescrBilancia = value; + } + } + /// + /// Codice COmpany + /// + public string CodCompany + { + get + { + return _CodCompany; + } + set + { + _CodCompany = value; + } + } + /// + /// Codice sito + /// + public string CodSito + { + get + { + return _CodSito; + } + set + { + _CodSito = value; + } + } + /// + /// inizializza a partire da una riga bilancia tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagBilanceRow riga) + { + CodBilancia = riga.CodBilancia; + DescrBilancia = riga.DescrImpianto; + CodCompany = riga.CodCompany; + CodSito = riga.CodSito; + } + } +} diff --git a/GMW/GMW/Type/elenchi.cs b/GMW/GMW/Type/elenchi.cs index 1853d923..ef813400 100644 --- a/GMW/GMW/Type/elenchi.cs +++ b/GMW/GMW/Type/elenchi.cs @@ -12,7 +12,45 @@ namespace GMW.Type { } + #region area articoli + + protected Articolo[] _elencoArticoli; + + /// + /// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[] + /// + /// + 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; + } + } + /// + /// Elenco Articoli + /// + public Articolo[] elencoArticoli + { + get + { + return _elencoArticoli; + } + } + + #endregion + + #region area impianti + protected Impianto[] _elencoImpianti; + /// /// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[] /// @@ -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; } } - + /// + /// Elenco Impianti + /// public Impianto[] elencoImpianti { get @@ -39,5 +80,76 @@ namespace GMW.Type } } + #endregion + + #region area bilance + + protected Bilancia[] _elencoBilance; + + /// + /// legge una tab di tipo AnagBilance e la converte ad un array di tipo Bilancia[] + /// + /// + 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; + } + } + /// + /// Elenco Bilance + /// + public Bilancia[] elencoBilance + { + get + { + return _elencoBilance; + } + } + + #endregion + + #region area articoli in prod + + protected ArtInProd[] _elencoArtInProd; + + /// + /// legge una tab di tipo Impianti2Articoli e la converte ad un array di tipo ArtInProd[] + /// + /// + 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; + } + } + /// + /// Elenco Articoli in produzione + /// + public ArtInProd[] elencoArtInProd + { + get + { + return _elencoArtInProd; + } + } + + #endregion } } diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs index d4623e8e..bc46f0c0 100644 --- a/GMW/GMW/WS/bilance.asmx.cs +++ b/GMW/GMW/WS/bilance.asmx.cs @@ -11,7 +11,7 @@ namespace GMW.WS /// /// Summary description for bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW 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 GMW 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 + /// /// fornisce l'anagrafica articoli /// [WebMethod(Description = "Elenco anagrafico articoli")] - public GMW_data.DS_Applicazione.AnagArticoliDataTable AnagArticoli() + public GMW.Type.Articolo[] ElencoArticoli() { - return DataProxy.obj.taAnagArt.GetData(); - } - /// - /// fornisce l'anagrafica impianti - /// - [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; } /// - /// fornisce l'anagrafica impianti (no dataset) + /// Elenco anagrafico impianti /// - [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; } - + /// + /// Elenco anagrafica impianti dati codice company e sito (no dataset) + /// + [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; + } + /// /// fornisce l'anagrafica bilance /// [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; } /// - /// fornisce l'anagrafica impianti dati codice company e sito - /// - [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); - } - /// - /// fornisce l'anagrafica bilancedati codice company e sito + /// fornisce l'anagrafica bilance dati codice company e sito /// [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) /// [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; } /// /// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico) @@ -104,10 +103,12 @@ namespace GMW.WS /// CodImpianto come da anagrafica /// [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; } + /// /// Fornisce un UDC a partire dalla richiesta e salva i dati /// diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index ee9064f1..97e34566 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 1a1a926d..395c14bb 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index e15e3354..332256ee 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache index 1ab030a2..42129678 100644 Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs index d52dcac4..2d64e8e6 100644 --- a/GMW/GMW_data/DS_Applicazione.Designer.cs +++ b/GMW/GMW_data/DS_Applicazione.Designer.cs @@ -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); diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd index 7bf7d5fb..82e528d4 100644 --- a/GMW/GMW_data/DS_Applicazione.xsd +++ b/GMW/GMW_data/DS_Applicazione.xsd @@ -69,10 +69,9 @@ SELECT CodImpianto, CodArticolo, InizioProd, FineProd FROM Impianti2Articoli WHE - SELECT CodImpianto, CodArticolo, InizioProd, FineProd + SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd FROM Impianti2Articoli -WHERE (FineProd IS NULL) -AND CodImpianto= @CodImpianto +WHERE (FineProd IS NULL) AND (CodImpianto = @CodImpianto) @@ -82,7 +81,7 @@ AND CodImpianto= @CodImpianto - SELECT CodImpianto, CodArticolo, InizioProd, FineProd + SELECT CodImpianto, CodArticolo, InizioProd, ISNULL(FineProd, DATEADD(year, 2, GETDATE())) AS FineProd FROM Impianti2Articoli WHERE (FineProd IS NULL) @@ -411,10 +410,10 @@ WHERE (CodBilancia = @CodBilancia) SELECT CodBilancia, DescrImpianto, CodCompany, CodSito FROM AnagBilance -WHERE (CodSito = @CodSito) AND (CodCompany = @CodCompany) +WHERE (CodCompany = @CodCompany) AND (CodSito = @CodSito) - + diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss index 37253e78..931db709 100644 --- a/GMW/GMW_data/DS_Applicazione.xss +++ b/GMW/GMW_data/DS_Applicazione.xss @@ -6,18 +6,18 @@ --> - - - - - - - - - + + + + + + + + + - + 377 @@ -29,7 +29,7 @@ - + 830 @@ -41,7 +41,7 @@ - + 963 @@ -53,7 +53,7 @@ - + 821 @@ -65,7 +65,7 @@ - + 1078 @@ -77,7 +77,7 @@ - + 591 @@ -89,7 +89,7 @@ - + 346 @@ -101,7 +101,7 @@ - + 823 diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index ea7cca5d..1f217b6c 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll index ee9064f1..97e34566 100644 Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index ea7cca5d..1f217b6c 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll index 4d6ab9f9..83654943 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll index ee9064f1..97e34566 100644 Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll index c1b499c9..232a3cb7 100644 Binary files a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/GMW/GMW_deploy/Release/GMW.csproj b/GMW/GMW_deploy/Release/GMW.csproj index a8fc849e..89ad41de 100644 --- a/GMW/GMW_deploy/Release/GMW.csproj +++ b/GMW/GMW_deploy/Release/GMW.csproj @@ -74,6 +74,9 @@ Default.aspx + + + diff --git a/GMW/GMW_deploy/Release/bin/GMW.dll b/GMW/GMW_deploy/Release/bin/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW.dll and b/GMW/GMW_deploy/Release/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/bin/GMW_data.dll b/GMW/GMW_deploy/Release/bin/GMW_data.dll index ee9064f1..97e34566 100644 Binary files a/GMW/GMW_deploy/Release/bin/GMW_data.dll and b/GMW/GMW_deploy/Release/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll index 1a1a926d..395c14bb 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache index e15e3354..332256ee 100644 Binary files a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Release/obj/Release/GMW.dll b/GMW/GMW_deploy/Release/obj/Release/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/GMW.dll and b/GMW/GMW_deploy/Release/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache index 1ab030a2..42129678 100644 Binary files a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Source/GMW.csproj b/GMW/GMW_deploy/Source/GMW.csproj index a8fc849e..89ad41de 100644 --- a/GMW/GMW_deploy/Source/GMW.csproj +++ b/GMW/GMW_deploy/Source/GMW.csproj @@ -74,6 +74,9 @@ Default.aspx + + + diff --git a/GMW/GMW_deploy/Source/Type/ArtInProd.cs b/GMW/GMW_deploy/Source/Type/ArtInProd.cs new file mode 100644 index 00000000..d8961a42 --- /dev/null +++ b/GMW/GMW_deploy/Source/Type/ArtInProd.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; + /// + /// Codice impianto + /// + public string CodImpianto + { + get + { + return _CodImpianto; + } + set + { + _CodImpianto = value; + } + } + /// + /// Codice Articolo + /// + public string CodArticolo + { + get + { + return _CodArticolo; + } + set + { + _CodArticolo = value; + } + } + /// + /// Inizio produzione + /// + public DateTime InizioProd + { + get + { + return _InizioProd; + } + set + { + _InizioProd = value; + } + } + /// + /// Fine produzione + /// + public DateTime? FineProd + { + get + { + return _FineProd; + } + set + { + _FineProd = value; + } + } + /// + /// inizializza a partire da una riga impianti2articoli + /// + /// + public void setFromTabRow(DS_Applicazione.Impianti2ArticoliRow riga) + { + CodImpianto = riga.CodImpianto; + CodArticolo = riga.CodArticolo; + InizioProd = riga.InizioProd; + FineProd = riga.FineProd; + } + } +} diff --git a/GMW/GMW_deploy/Source/Type/Articolo.cs b/GMW/GMW_deploy/Source/Type/Articolo.cs new file mode 100644 index 00000000..02a6714b --- /dev/null +++ b/GMW/GMW_deploy/Source/Type/Articolo.cs @@ -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; + /// + /// Codice Articolo + /// + public string CodArticolo + { + get + { + return _CodArticolo; + } + set + { + _CodArticolo = value; + } + } + /// + /// Descrizione Articolo + /// + public string DescrArticolo + { + get + { + return _DescrArticolo; + } + set + { + _DescrArticolo = value; + } + } + /// + /// Figura + /// + public string Figura + { + get + { + return _Figura; + } + set + { + _Figura = value; + } + } + /// + /// inizializza a partire da una riga impianto tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagArticoliRow riga) + { + CodArticolo = riga.CodArticolo; + DescrArticolo = riga.DescrArticolo; + Figura = riga.Figura; + } + } +} diff --git a/GMW/GMW_deploy/Source/Type/Bilancia.cs b/GMW/GMW_deploy/Source/Type/Bilancia.cs new file mode 100644 index 00000000..40316e1f --- /dev/null +++ b/GMW/GMW_deploy/Source/Type/Bilancia.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 Bilancia + { + public Bilancia() + { + } + + protected string _CodBilancia; + protected string _DescrBilancia; + protected string _CodCompany; + protected string _CodSito; + /// + /// Codice Bilancia + /// + public string CodBilancia + { + get + { + return _CodBilancia; + } + set + { + _CodBilancia = value; + } + } + /// + /// Descrizione Bilancia + /// + public string DescrBilancia + { + get + { + return _DescrBilancia; + } + set + { + _DescrBilancia = value; + } + } + /// + /// Codice COmpany + /// + public string CodCompany + { + get + { + return _CodCompany; + } + set + { + _CodCompany = value; + } + } + /// + /// Codice sito + /// + public string CodSito + { + get + { + return _CodSito; + } + set + { + _CodSito = value; + } + } + /// + /// inizializza a partire da una riga bilancia tipizzata + /// + /// + public void setFromTabRow(DS_Applicazione.AnagBilanceRow riga) + { + CodBilancia = riga.CodBilancia; + DescrBilancia = riga.DescrImpianto; + CodCompany = riga.CodCompany; + CodSito = riga.CodSito; + } + } +} diff --git a/GMW/GMW_deploy/Source/Type/elenchi.cs b/GMW/GMW_deploy/Source/Type/elenchi.cs index 1853d923..ef813400 100644 --- a/GMW/GMW_deploy/Source/Type/elenchi.cs +++ b/GMW/GMW_deploy/Source/Type/elenchi.cs @@ -12,7 +12,45 @@ namespace GMW.Type { } + #region area articoli + + protected Articolo[] _elencoArticoli; + + /// + /// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[] + /// + /// + 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; + } + } + /// + /// Elenco Articoli + /// + public Articolo[] elencoArticoli + { + get + { + return _elencoArticoli; + } + } + + #endregion + + #region area impianti + protected Impianto[] _elencoImpianti; + /// /// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[] /// @@ -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; } } - + /// + /// Elenco Impianti + /// public Impianto[] elencoImpianti { get @@ -39,5 +80,76 @@ namespace GMW.Type } } + #endregion + + #region area bilance + + protected Bilancia[] _elencoBilance; + + /// + /// legge una tab di tipo AnagBilance e la converte ad un array di tipo Bilancia[] + /// + /// + 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; + } + } + /// + /// Elenco Bilance + /// + public Bilancia[] elencoBilance + { + get + { + return _elencoBilance; + } + } + + #endregion + + #region area articoli in prod + + protected ArtInProd[] _elencoArtInProd; + + /// + /// legge una tab di tipo Impianti2Articoli e la converte ad un array di tipo ArtInProd[] + /// + /// + 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; + } + } + /// + /// Elenco Articoli in produzione + /// + public ArtInProd[] elencoArtInProd + { + get + { + return _elencoArtInProd; + } + } + + #endregion } } diff --git a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs index d4623e8e..bc46f0c0 100644 --- a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs +++ b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs @@ -11,7 +11,7 @@ namespace GMW.WS /// /// Summary description for bilance /// - [WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a GMW 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 GMW 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 + /// /// fornisce l'anagrafica articoli /// [WebMethod(Description = "Elenco anagrafico articoli")] - public GMW_data.DS_Applicazione.AnagArticoliDataTable AnagArticoli() + public GMW.Type.Articolo[] ElencoArticoli() { - return DataProxy.obj.taAnagArt.GetData(); - } - /// - /// fornisce l'anagrafica impianti - /// - [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; } /// - /// fornisce l'anagrafica impianti (no dataset) + /// Elenco anagrafico impianti /// - [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; } - + /// + /// Elenco anagrafica impianti dati codice company e sito (no dataset) + /// + [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; + } + /// /// fornisce l'anagrafica bilance /// [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; } /// - /// fornisce l'anagrafica impianti dati codice company e sito - /// - [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); - } - /// - /// fornisce l'anagrafica bilancedati codice company e sito + /// fornisce l'anagrafica bilance dati codice company e sito /// [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) /// [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; } /// /// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico) @@ -104,10 +103,12 @@ namespace GMW.WS /// CodImpianto come da anagrafica /// [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; } + /// /// Fornisce un UDC a partire dalla richiesta e salva i dati /// diff --git a/GMW/GMW_deploy/Source/bin/GMW.dll b/GMW/GMW_deploy/Source/bin/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW.dll and b/GMW/GMW_deploy/Source/bin/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/bin/GMW_data.dll b/GMW/GMW_deploy/Source/bin/GMW_data.dll index ee9064f1..97e34566 100644 Binary files a/GMW/GMW_deploy/Source/bin/GMW_data.dll and b/GMW/GMW_deploy/Source/bin/GMW_data.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll index 1a1a926d..395c14bb 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache index e15e3354..332256ee 100644 Binary files a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_deploy/Source/obj/Release/GMW.dll b/GMW/GMW_deploy/Source/obj/Release/GMW.dll index 8d9878c5..946f8846 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/GMW.dll and b/GMW/GMW_deploy/Source/obj/Release/GMW.dll differ diff --git a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache index 1ab030a2..42129678 100644 Binary files a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_installer/GMW_installer.vdproj b/GMW/GMW_installer/GMW_installer.vdproj index 5e66c5ba..f3b3e81e 100644 --- a/GMW/GMW_installer/GMW_installer.vdproj +++ b/GMW/GMW_installer/GMW_installer.vdproj @@ -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" diff --git a/GMW/GMW_installer/Release/GMW_installer.msi b/GMW/GMW_installer/Release/GMW_installer.msi index 7a1f02e4..bc41607c 100644 Binary files a/GMW/GMW_installer/Release/GMW_installer.msi and b/GMW/GMW_installer/Release/GMW_installer.msi differ