Update con tipi espliciti x db
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@12 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -74,6 +74,8 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
<DependentUpon>bilance.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Impianto
|
||||
{
|
||||
public Impianto()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Descrizione impianto
|
||||
/// </summary>
|
||||
public string DescrImpianto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrImpianto;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrImpianto = 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 impianto tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagImpiantiRow riga)
|
||||
{
|
||||
CodImpianto = riga.CodImpianto;
|
||||
DescrImpianto = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito= riga.CodSito;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class elenchi
|
||||
{
|
||||
public elenchi()
|
||||
{
|
||||
}
|
||||
|
||||
protected Impianto[] _elencoImpianti;
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[]
|
||||
/// </summary>
|
||||
/// <param name="tabImpianti"></param>
|
||||
public void caricaImpianti(DS_Applicazione.AnagImpiantiDataTable tabImpianti)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabImpianti.Rows.Count;
|
||||
_elencoImpianti = new Impianto[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Impianto singoloImpianto = new Impianto();
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
singoloImpianto.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = singoloImpianto;
|
||||
}
|
||||
}
|
||||
|
||||
public Impianto[] elencoImpianti
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoImpianti;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using System.Web;
|
||||
using System.Web.Services;
|
||||
using System.Data;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
|
||||
namespace GMW.WS
|
||||
{
|
||||
@@ -23,8 +24,10 @@ namespace GMW.WS
|
||||
/// </summary>
|
||||
public bilance()
|
||||
{
|
||||
gestEl = new GMW.Type.elenchi();
|
||||
}
|
||||
|
||||
protected GMW.Type.elenchi gestEl;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -46,6 +49,17 @@ namespace GMW.WS
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.GetData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti (no dataset)
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti (no dataset)")]
|
||||
public GMW.Type.Impianto[] ElencoImpianti()
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.GetData());
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilance
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -74,6 +74,8 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
<DependentUpon>bilance.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -74,6 +74,8 @@
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Type\elenchi.cs" />
|
||||
<Compile Include="Type\Impianto.cs" />
|
||||
<Compile Include="WS\bilance.asmx.cs">
|
||||
<DependentUpon>bilance.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class Impianto
|
||||
{
|
||||
public Impianto()
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Descrizione impianto
|
||||
/// </summary>
|
||||
public string DescrImpianto
|
||||
{
|
||||
get
|
||||
{
|
||||
return _DescrImpianto;
|
||||
}
|
||||
set
|
||||
{
|
||||
_DescrImpianto = 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 impianto tipizzata
|
||||
/// </summary>
|
||||
/// <param name="riga"></param>
|
||||
public void setFromTabRow(DS_Applicazione.AnagImpiantiRow riga)
|
||||
{
|
||||
CodImpianto = riga.CodImpianto;
|
||||
DescrImpianto = riga.DescrImpianto;
|
||||
CodCompany = riga.CodCompany;
|
||||
CodSito= riga.CodSito;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.Type
|
||||
{
|
||||
public class elenchi
|
||||
{
|
||||
public elenchi()
|
||||
{
|
||||
}
|
||||
|
||||
protected Impianto[] _elencoImpianti;
|
||||
/// <summary>
|
||||
/// legge una tab di tipo AnagImpianti e la converte ad un array di tipo Impianto[]
|
||||
/// </summary>
|
||||
/// <param name="tabImpianti"></param>
|
||||
public void caricaImpianti(DS_Applicazione.AnagImpiantiDataTable tabImpianti)
|
||||
{
|
||||
// conto quanti elementi ha la tab x inizializzare l'array...
|
||||
int numRighe = tabImpianti.Rows.Count;
|
||||
_elencoImpianti = new Impianto[numRighe];
|
||||
// prendo un obj impianto da valorizzare di volta in volta...
|
||||
Impianto singoloImpianto = new Impianto();
|
||||
for (int i = 0; i < numRighe; i++)
|
||||
{
|
||||
singoloImpianto.setFromTabRow(tabImpianti[i]);
|
||||
_elencoImpianti[i] = singoloImpianto;
|
||||
}
|
||||
}
|
||||
|
||||
public Impianto[] elencoImpianti
|
||||
{
|
||||
get
|
||||
{
|
||||
return _elencoImpianti;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using System.Web;
|
||||
using System.Web.Services;
|
||||
using System.Data;
|
||||
using GMW_data;
|
||||
using GMW;
|
||||
|
||||
namespace GMW.WS
|
||||
{
|
||||
@@ -23,8 +24,10 @@ namespace GMW.WS
|
||||
/// </summary>
|
||||
public bilance()
|
||||
{
|
||||
gestEl = new GMW.Type.elenchi();
|
||||
}
|
||||
|
||||
protected GMW.Type.elenchi gestEl;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -46,6 +49,17 @@ namespace GMW.WS
|
||||
{
|
||||
return DataProxy.obj.taAnagImp.GetData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica impianti (no dataset)
|
||||
/// </summary>
|
||||
[WebMethod(Description = "Elenco anagrafico impianti (no dataset)")]
|
||||
public GMW.Type.Impianto[] ElencoImpianti()
|
||||
{
|
||||
gestEl.caricaImpianti(DataProxy.obj.taAnagImp.GetData());
|
||||
return gestEl.elencoImpianti;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce l'anagrafica bilance
|
||||
/// </summary>
|
||||
|
||||
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:{C5C879CD-188C-4018-AEDC-E5D9897F966A}"
|
||||
"PackageCode" = "8:{2F0415CB-AEC6-4AC9-BD6A-CCF178B3ADC9}"
|
||||
"PackageCode" = "8:{240D4EF0-0D19-4EA5-9B0A-D9C4909A8809}"
|
||||
"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\\Debug\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
@@ -829,7 +829,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user