Ricreato repository... SU GOGS
This commit is contained in:
+129
-117
@@ -1,3 +1,123 @@
|
||||
#############################################
|
||||
# Area generale
|
||||
#############################################
|
||||
*.suo
|
||||
*.bak
|
||||
*.cache
|
||||
*.pdb
|
||||
|
||||
#ignoro gli artifatti di compilazione precedente...
|
||||
/bin/*
|
||||
/obj/*
|
||||
|
||||
|
||||
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
x64/
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*
|
||||
|
||||
# NCrunch
|
||||
*.ncrunch*
|
||||
.*crunch*.local.xml
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish
|
||||
|
||||
# Publish Web Output
|
||||
*.Publish.xml
|
||||
|
||||
# NuGet Packages Directory
|
||||
packages
|
||||
packages/
|
||||
packages/*
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx
|
||||
*.build.csdef
|
||||
|
||||
# Windows Store app package directory
|
||||
AppPackages/
|
||||
|
||||
# Others
|
||||
[Bb]in
|
||||
[Oo]bj
|
||||
# rimetto files sql...
|
||||
#sql
|
||||
TestResults
|
||||
[Tt]est[Rr]esult*
|
||||
*.Cache
|
||||
ClientBin
|
||||
[Ss]tyle[Cc]op.*
|
||||
~$*
|
||||
*.dbmdl
|
||||
Generated_Code #added for RIA/Silverlight projects
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
|
||||
# ---> VisualStudio
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
@@ -24,7 +144,9 @@ bld/
|
||||
[Oo]bj/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs
|
||||
.vs/
|
||||
.vs/*
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
@@ -45,6 +167,12 @@ dlldata.c
|
||||
project.lock.json
|
||||
artifacts/
|
||||
|
||||
# Ignore other intermediate files that NuGet might create. project.lock.json is used in conjunction
|
||||
# with project.json; project.assets.json is used in conjunction with package references in project files.
|
||||
#project.lock.json
|
||||
project.assets.json
|
||||
*.nuget.props
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
@@ -138,10 +266,6 @@ publish/
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# TODO: Comment the next line if you want to checkin your web deploy settings
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
@@ -218,116 +342,4 @@ FakesAssemblies/
|
||||
_Pvt_Extensions
|
||||
|
||||
# ---> VisualStudioCode
|
||||
.settings
|
||||
|
||||
|
||||
# ---> C Sharp
|
||||
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
||||
# mstest test results
|
||||
TestResults
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
x64/
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*
|
||||
|
||||
# NCrunch
|
||||
*.ncrunch*
|
||||
.*crunch*.local.xml
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish
|
||||
|
||||
# Publish Web Output
|
||||
*.Publish.xml
|
||||
|
||||
# NuGet Packages Directory
|
||||
packages
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx
|
||||
*.build.csdef
|
||||
|
||||
# Windows Store app package directory
|
||||
AppPackages/
|
||||
|
||||
# Others
|
||||
[Bb]in
|
||||
[Oo]bj
|
||||
sql
|
||||
TestResults
|
||||
[Tt]est[Rr]esult*
|
||||
*.Cache
|
||||
ClientBin
|
||||
[Ss]tyle[Cc]op.*
|
||||
~$*
|
||||
*.dbmdl
|
||||
Generated_Code #added for RIA/Silverlight projects
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
|
||||
.settings
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "SteamWareLib/SteamWare.csproj", "{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|.NET = Debug|.NET
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Release|.NET = Release|.NET
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,87 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Pagina base applicazioni SteamWare da cui derivare le altre
|
||||
/// </summary>
|
||||
public class ApplicationSimplePage : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// Iniziazlizzazione void (non fa nulla)
|
||||
/// </summary>
|
||||
protected ApplicationSimplePage()
|
||||
{ }
|
||||
|
||||
#region area public
|
||||
|
||||
#endregion
|
||||
|
||||
#region flusso creazione pagina =c=
|
||||
|
||||
/// <summary>
|
||||
/// Metodo MAIN: viene eseguita al caricamento ed effettua delle routines per il controllo utente e istanzia l'oggetto memLayer
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void Page_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region utility =c=
|
||||
|
||||
/// <summary>
|
||||
/// rimanda alla pagina di Work In Progress salvando in session un titolo ed una descrizione che al pagina wip poi mostrerà all'utente
|
||||
/// </summary>
|
||||
/// <param name="titoloWIP">titolo da mostrare nella pagina WIP</param>
|
||||
/// <param name="descrizioneWIP">descrizione da mostrare nella pagina WIP</param>
|
||||
protected void paginaWIP(string titoloWIP, string descrizioneWIP)
|
||||
{
|
||||
Session["titoloWIP"] = titoloWIP;
|
||||
Session["descrizioneWIP"] = descrizioneWIP;
|
||||
Response.Redirect("WIP.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="testoLog">The testo log.</param>
|
||||
/// <param name="tipo">The tipo.</param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,82 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe di wrap verso i TableAdapter dell'area billing
|
||||
/// </summary>
|
||||
public class BillingProxy
|
||||
{
|
||||
#region area protected
|
||||
|
||||
/// <summary>
|
||||
/// metodo protected di avvio della classe
|
||||
/// </summary>
|
||||
protected BillingProxy()
|
||||
{
|
||||
// inizializzo i table adapters
|
||||
avvioTableAdapters();
|
||||
setupConnectionString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// procedura di avvio dei tableAdapter
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdapters()
|
||||
{
|
||||
taClienti = new DS_BillingTableAdapters.clientiTableAdapter();
|
||||
taCostiAss = new DS_BillingTableAdapters.CostiAssorbitiTableAdapter();
|
||||
taDocs = new DS_BillingTableAdapters.DocumentiTableAdapter();
|
||||
taRows = new DS_BillingTableAdapters.RigheTableAdapter();
|
||||
taScad = new DS_BillingTableAdapters.ScadenzeTableAdapter();
|
||||
taVAT = new DS_BillingTableAdapters.VATTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionString()
|
||||
{
|
||||
string connStr = memLayer.ML.CRS("BilligConnectionString");
|
||||
taClienti.Connection.ConnectionString = connStr;
|
||||
taCostiAss.Connection.ConnectionString = connStr;
|
||||
taDocs.Connection.ConnectionString = connStr;
|
||||
taRows.Connection.ConnectionString = connStr;
|
||||
taScad.Connection.ConnectionString = connStr;
|
||||
taVAT.Connection.ConnectionString = connStr;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.clientiTableAdapter taClienti;
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.CostiAssorbitiTableAdapter taCostiAss;
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.DocumentiTableAdapter taDocs;
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.RigheTableAdapter taRows;
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.ScadenzeTableAdapter taScad;
|
||||
/// <summary>
|
||||
/// tableAdapter documenti
|
||||
/// </summary>
|
||||
public DS_BillingTableAdapters.VATTableAdapter taVAT;
|
||||
|
||||
/// <summary>
|
||||
/// classe singleton x la gestione dei tableadapters
|
||||
/// </summary>
|
||||
public static BillingProxy man = new BillingProxy();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
using System.Collections;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe di gestione lettura
|
||||
/// </summary>
|
||||
public class CsvParser
|
||||
{
|
||||
/// <summary>
|
||||
/// esegue parsing fornendo dati ed headers
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <param name="headers"></param>
|
||||
/// <returns></returns>
|
||||
public static DataTable Parse(string data, bool headers)
|
||||
{
|
||||
return Parse(new StringReader(data), headers);
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue parsing fornendo dati
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public static DataTable Parse(string data)
|
||||
{
|
||||
return Parse(new StringReader(data));
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue parsing fornendo dati come stream
|
||||
/// </summary>
|
||||
/// <param name="stream"></param>
|
||||
/// <returns></returns>
|
||||
public static DataTable Parse(TextReader stream)
|
||||
{
|
||||
return Parse(stream, false);
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue parsing fornendo dati come stream ed headers
|
||||
/// </summary>
|
||||
/// <param name="stream"></param>
|
||||
/// <param name="headers"></param>
|
||||
/// <returns></returns>
|
||||
public static DataTable Parse(TextReader stream, bool headers)
|
||||
{
|
||||
DataTable table = new DataTable();
|
||||
CsvStream csv = new CsvStream(stream);
|
||||
string[] row = csv.GetNextRow();
|
||||
if (row == null)
|
||||
return null;
|
||||
if (headers)
|
||||
{
|
||||
foreach (string header in row)
|
||||
{
|
||||
if (header != null && header.Length > 0 && !table.Columns.Contains(header))
|
||||
table.Columns.Add(header, typeof(string));
|
||||
else
|
||||
table.Columns.Add(GetNextColumnHeader(table), typeof(string));
|
||||
}
|
||||
row = csv.GetNextRow();
|
||||
}
|
||||
while (row != null)
|
||||
{
|
||||
while (row.Length > table.Columns.Count)
|
||||
table.Columns.Add(GetNextColumnHeader(table), typeof(string));
|
||||
table.Rows.Add(row);
|
||||
row = csv.GetNextRow();
|
||||
}
|
||||
return table;
|
||||
}
|
||||
|
||||
private static string GetNextColumnHeader(DataTable table)
|
||||
{
|
||||
int c = 1;
|
||||
while (true)
|
||||
{
|
||||
string h = "Column" + c++;
|
||||
if (!table.Columns.Contains(h))
|
||||
return h;
|
||||
}
|
||||
}
|
||||
|
||||
//The CsvStream class does the actual work - read the CSV source in one character at a time and return meaningful chunks of decoded data, namely data items and rows.
|
||||
private class CsvStream
|
||||
{
|
||||
private TextReader stream;
|
||||
|
||||
public CsvStream(TextReader s)
|
||||
{
|
||||
stream = s;
|
||||
}
|
||||
|
||||
public string[] GetNextRow()
|
||||
{
|
||||
ArrayList row = new ArrayList();
|
||||
while (true)
|
||||
{
|
||||
string item = GetNextItem();
|
||||
if (item == null)
|
||||
return row.Count == 0 ? null : (string[])row.ToArray(typeof(string));
|
||||
row.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
private bool EOS = false;
|
||||
private bool EOL = false;
|
||||
|
||||
private string GetNextItem()
|
||||
{
|
||||
if (EOL)
|
||||
{
|
||||
// previous item was last in line, start new line
|
||||
EOL = false;
|
||||
return null;
|
||||
}
|
||||
|
||||
bool quoted = false;
|
||||
bool predata = true;
|
||||
bool postdata = false;
|
||||
StringBuilder item = new StringBuilder();
|
||||
|
||||
while (true)
|
||||
{
|
||||
char c = GetNextChar(true);
|
||||
if (EOS)
|
||||
return item.Length > 0 ? item.ToString() : null;
|
||||
|
||||
if ((postdata || !quoted) && (c == ',' || c == ';'))
|
||||
// end of item, return
|
||||
return item.ToString();
|
||||
|
||||
if ((predata || postdata || !quoted) && (c == '\x0A' || c == '\x0D'))
|
||||
{
|
||||
// we are at the end of the line, eat newline characters and exit
|
||||
EOL = true;
|
||||
if (c == '\x0D' && GetNextChar(false) == '\x0A')
|
||||
// new line sequence is 0D0A
|
||||
GetNextChar(true);
|
||||
return item.ToString();
|
||||
}
|
||||
|
||||
if (predata && c == ' ')
|
||||
// whitespace preceeding data, discard
|
||||
continue;
|
||||
|
||||
if (predata && c == '"')
|
||||
{
|
||||
// quoted data is starting
|
||||
quoted = true;
|
||||
predata = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (predata)
|
||||
{
|
||||
// data is starting without quotes
|
||||
predata = false;
|
||||
item.Append(c);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c == '"' && quoted)
|
||||
{
|
||||
if (GetNextChar(false) == '"')
|
||||
// double quotes within quoted string means add a quote
|
||||
item.Append(GetNextChar(true));
|
||||
else
|
||||
// end-quote reached
|
||||
postdata = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// all cases covered, character must be data
|
||||
item.Append(c);
|
||||
}
|
||||
}
|
||||
|
||||
private char[] buffer = new char[4096];
|
||||
private int pos = 0;
|
||||
private int length = 0;
|
||||
|
||||
private char GetNextChar(bool eat)
|
||||
{
|
||||
if (pos >= length)
|
||||
{
|
||||
length = stream.ReadBlock(buffer, 0, buffer.Length);
|
||||
if (length == 0)
|
||||
{
|
||||
EOS = true;
|
||||
return '\0';
|
||||
}
|
||||
pos = 0;
|
||||
}
|
||||
if (eat)
|
||||
return buffer[pos++];
|
||||
else
|
||||
return buffer[pos];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+7620
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
|
||||
|
||||
public partial class DS_Auth
|
||||
{
|
||||
}
|
||||
}
|
||||
namespace SteamWare
|
||||
{
|
||||
|
||||
|
||||
public partial class DS_Auth {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,947 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_Auth" targetNamespace="http://tempuri.org/DS_Auth.xsd" xmlns:mstns="http://tempuri.org/DS_Auth.xsd" xmlns="http://tempuri.org/DS_Auth.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="2" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="DS_AuthConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DS_AuthConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.DS_AuthConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_AnagraficaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_AnagraficaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.ETS_AnagraficaConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SteamWare_BremboConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SteamWare_BremboConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.SteamWare_BremboConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PermessiTableAdapter" GeneratorDataComponentClassName="PermessiTableAdapter" Name="Permessi" UserDataComponentName="PermessiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.Permessi" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Permessi] WHERE (([COD_PERMESSO] = @Original_COD_PERMESSO) AND ([URL] = @Original_URL) AND ((@IsNull_GRUPPO = 1 AND [GRUPPO] IS NULL) OR ([GRUPPO] = @Original_GRUPPO)) AND ((@IsNull_NUMERO = 1 AND [NUMERO] IS NULL) OR ([NUMERO] = @Original_NUMERO)) AND ((@IsNull_NOME = 1 AND [NOME] IS NULL) OR ([NOME] = @Original_NOME)) AND ((@IsNull_DESCRIZIONE = 1 AND [DESCRIZIONE] IS NULL) OR ([DESCRIZIONE] = @Original_DESCRIZIONE)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_URL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NOME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NOME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DESCRIZIONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DESCRIZIONE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Permessi] ([COD_PERMESSO], [URL], [GRUPPO], [NUMERO], [NOME], [DESCRIZIONE]) VALUES (@COD_PERMESSO, @URL, @GRUPPO, @NUMERO, @NOME, @DESCRIZIONE);
|
||||
SELECT COD_PERMESSO, URL, GRUPPO, NUMERO, NOME, DESCRIZIONE FROM Permessi WHERE (COD_PERMESSO = @COD_PERMESSO)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@URL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NOME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DESCRIZIONE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT COD_PERMESSO, URL, GRUPPO, NUMERO, NOME, DESCRIZIONE FROM dbo.Permessi</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Permessi] SET [COD_PERMESSO] = @COD_PERMESSO, [URL] = @URL, [GRUPPO] = @GRUPPO, [NUMERO] = @NUMERO, [NOME] = @NOME, [DESCRIZIONE] = @DESCRIZIONE WHERE (([COD_PERMESSO] = @Original_COD_PERMESSO) AND ([URL] = @Original_URL) AND ((@IsNull_GRUPPO = 1 AND [GRUPPO] IS NULL) OR ([GRUPPO] = @Original_GRUPPO)) AND ((@IsNull_NUMERO = 1 AND [NUMERO] IS NULL) OR ([NUMERO] = @Original_NUMERO)) AND ((@IsNull_NOME = 1 AND [NOME] IS NULL) OR ([NOME] = @Original_NOME)) AND ((@IsNull_DESCRIZIONE = 1 AND [DESCRIZIONE] IS NULL) OR ([DESCRIZIONE] = @Original_DESCRIZIONE)));
|
||||
SELECT COD_PERMESSO, URL, GRUPPO, NUMERO, NOME, DESCRIZIONE FROM Permessi WHERE (COD_PERMESSO = @COD_PERMESSO)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@URL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NOME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DESCRIZIONE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_URL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="URL" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GRUPPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GRUPPO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NUMERO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMERO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NOME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NOME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NOME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DESCRIZIONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DESCRIZIONE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="COD_PERMESSO" DataSetColumn="COD_PERMESSO" />
|
||||
<Mapping SourceColumn="URL" DataSetColumn="URL" />
|
||||
<Mapping SourceColumn="GRUPPO" DataSetColumn="GRUPPO" />
|
||||
<Mapping SourceColumn="NUMERO" DataSetColumn="NUMERO" />
|
||||
<Mapping SourceColumn="NOME" DataSetColumn="NOME" />
|
||||
<Mapping SourceColumn="DESCRIZIONE" DataSetColumn="DESCRIZIONE" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Permessi2FunzioneTableAdapter" GeneratorDataComponentClassName="Permessi2FunzioneTableAdapter" Name="Permessi2Funzione" UserDataComponentName="Permessi2FunzioneTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.Permessi2Funzione" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Permessi2Funzione] WHERE (([COD_PERMESSO] = @Original_COD_PERMESSO) AND ([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_READWRITE = 1 AND [READWRITE] IS NULL) OR ([READWRITE] = @Original_READWRITE)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_READWRITE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_READWRITE" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Permessi2Funzione] ([COD_PERMESSO], [COD_FUNZIONE], [READWRITE]) VALUES (@COD_PERMESSO, @COD_FUNZIONE, @READWRITE);
|
||||
SELECT COD_PERMESSO, COD_FUNZIONE, READWRITE FROM Permessi2Funzione WHERE (COD_FUNZIONE = @COD_FUNZIONE) AND (COD_PERMESSO = @COD_PERMESSO)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@READWRITE" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT COD_PERMESSO, COD_FUNZIONE, READWRITE FROM dbo.Permessi2Funzione</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Permessi2Funzione] SET [COD_PERMESSO] = @COD_PERMESSO, [COD_FUNZIONE] = @COD_FUNZIONE, [READWRITE] = @READWRITE WHERE (([COD_PERMESSO] = @Original_COD_PERMESSO) AND ([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_READWRITE = 1 AND [READWRITE] IS NULL) OR ([READWRITE] = @Original_READWRITE)));
|
||||
SELECT COD_PERMESSO, COD_FUNZIONE, READWRITE FROM Permessi2Funzione WHERE (COD_FUNZIONE = @COD_FUNZIONE) AND (COD_PERMESSO = @COD_PERMESSO)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@READWRITE" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COD_PERMESSO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COD_PERMESSO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_READWRITE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@Original_READWRITE" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="READWRITE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="COD_PERMESSO" DataSetColumn="COD_PERMESSO" />
|
||||
<Mapping SourceColumn="COD_FUNZIONE" DataSetColumn="COD_FUNZIONE" />
|
||||
<Mapping SourceColumn="READWRITE" DataSetColumn="READWRITE" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FUNZIONETableAdapter" GeneratorDataComponentClassName="FUNZIONETableAdapter" Name="FUNZIONE" UserDataComponentName="FUNZIONETableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.FUNZIONE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[FUNZIONE] WHERE (([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_DESCRIZIONE = 1 AND [DESCRIZIONE] IS NULL) OR ([DESCRIZIONE] = @Original_DESCRIZIONE)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DESCRIZIONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DESCRIZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[FUNZIONE] ([COD_FUNZIONE], [DESCRIZIONE]) VALUES (@COD_FUNZIONE, @DESCRIZIONE);
|
||||
SELECT COD_FUNZIONE, DESCRIZIONE FROM FUNZIONE WHERE (COD_FUNZIONE = @COD_FUNZIONE)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT COD_FUNZIONE, DESCRIZIONE FROM dbo.FUNZIONE</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[FUNZIONE] SET [COD_FUNZIONE] = @COD_FUNZIONE, [DESCRIZIONE] = @DESCRIZIONE WHERE (([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_DESCRIZIONE = 1 AND [DESCRIZIONE] IS NULL) OR ([DESCRIZIONE] = @Original_DESCRIZIONE)));
|
||||
SELECT COD_FUNZIONE, DESCRIZIONE FROM FUNZIONE WHERE (COD_FUNZIONE = @COD_FUNZIONE)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DESCRIZIONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DESCRIZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="COD_FUNZIONE" DataSetColumn="COD_FUNZIONE" />
|
||||
<Mapping SourceColumn="DESCRIZIONE" DataSetColumn="DESCRIZIONE" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DIRITTITableAdapter" GeneratorDataComponentClassName="DIRITTITableAdapter" Name="DIRITTI" UserDataComponentName="DIRITTITableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.DIRITTI" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[DIRITTI] WHERE (([USER_NAME] = @Original_USER_NAME) AND ([COD_CDC] = @Original_COD_CDC) AND ([COD_MODULO] = @Original_COD_MODULO) AND ([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_VALUE = 1 AND [VALUE] IS NULL) OR ([VALUE] = @Original_VALUE)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_CDC" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_MODULO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VALUE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[DIRITTI] ([USER_NAME], [COD_CDC], [COD_MODULO], [COD_FUNZIONE], [VALUE]) VALUES (@USER_NAME, @COD_CDC, @COD_MODULO, @COD_FUNZIONE, @VALUE);
|
||||
SELECT USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE, VALUE FROM DIRITTI WHERE (COD_CDC = @COD_CDC) AND (COD_FUNZIONE = @COD_FUNZIONE) AND (COD_MODULO = @COD_MODULO) AND (USER_NAME = @USER_NAME)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_CDC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_MODULO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE, VALUE FROM dbo.DIRITTI</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[DIRITTI] SET [USER_NAME] = @USER_NAME, [COD_CDC] = @COD_CDC, [COD_MODULO] = @COD_MODULO, [COD_FUNZIONE] = @COD_FUNZIONE, [VALUE] = @VALUE WHERE (([USER_NAME] = @Original_USER_NAME) AND ([COD_CDC] = @Original_COD_CDC) AND ([COD_MODULO] = @Original_COD_MODULO) AND ([COD_FUNZIONE] = @Original_COD_FUNZIONE) AND ((@IsNull_VALUE = 1 AND [VALUE] IS NULL) OR ([VALUE] = @Original_VALUE)));
|
||||
SELECT USER_NAME, COD_CDC, COD_MODULO, COD_FUNZIONE, VALUE FROM DIRITTI WHERE (COD_CDC = @COD_CDC) AND (COD_FUNZIONE = @COD_FUNZIONE) AND (COD_MODULO = @COD_MODULO) AND (USER_NAME = @USER_NAME)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_CDC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_MODULO" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_CDC" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_MODULO" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COD_FUNZIONE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VALUE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="USER_NAME" DataSetColumn="USER_NAME" />
|
||||
<Mapping SourceColumn="COD_CDC" DataSetColumn="COD_CDC" />
|
||||
<Mapping SourceColumn="COD_MODULO" DataSetColumn="COD_MODULO" />
|
||||
<Mapping SourceColumn="COD_FUNZIONE" DataSetColumn="COD_FUNZIONE" />
|
||||
<Mapping SourceColumn="VALUE" DataSetColumn="VALUE" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Diritti_AddMissing" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="AddMissing" Modifier="Public" Name="AddMissing" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="AddMissing">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Diritti_AddMissing</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Diritti_DeleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Diritti_DeleteQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Diritti_GetByUserModulo" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByUserModulo" GetMethodModifier="Public" GetMethodName="getByUserModulo" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByUserModulo" UserSourceName="getByUserModulo">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Diritti_GetByUserModulo</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagDevicesTableAdapter" GeneratorDataComponentClassName="AnagDevicesTableAdapter" Name="AnagDevices" UserDataComponentName="AnagDevicesTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.AnagDevices" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [AnagDevices] WHERE (([IdxDevice] = @Original_IdxDevice) AND ([DeviceSecret] = @Original_DeviceSecret) AND ([USER_NAME] = @Original_USER_NAME) AND ([DeviceName] = @Original_DeviceName) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([dataOraEnabled] = @Original_dataOraEnabled) AND ([dataOraLastSeen] = @Original_dataOraLastSeen) AND ((@IsNull_lastIPv4 = 1 AND [lastIPv4] IS NULL) OR ([lastIPv4] = @Original_lastIPv4)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_lastIPv4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [AnagDevices] ([DeviceSecret], [USER_NAME], [DeviceName], [Description], [dataOraEnabled], [dataOraLastSeen], [lastIPv4]) VALUES (@DeviceSecret, @USER_NAME, @DeviceName, @Description, @dataOraEnabled, @dataOraLastSeen, @lastIPv4);
|
||||
SELECT IdxDevice, DeviceSecret, USER_NAME, DeviceName, Description, dataOraEnabled, dataOraLastSeen, lastIPv4 FROM AnagDevices WHERE (IdxDevice = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT IdxDevice, DeviceSecret, USER_NAME, DeviceName, Description, dataOraEnabled, dataOraLastSeen, lastIPv4
|
||||
FROM AnagDevices</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [AnagDevices] SET [DeviceSecret] = @DeviceSecret, [USER_NAME] = @USER_NAME, [DeviceName] = @DeviceName, [Description] = @Description, [dataOraEnabled] = @dataOraEnabled, [dataOraLastSeen] = @dataOraLastSeen, [lastIPv4] = @lastIPv4 WHERE (([IdxDevice] = @Original_IdxDevice) AND ([DeviceSecret] = @Original_DeviceSecret) AND ([USER_NAME] = @Original_USER_NAME) AND ([DeviceName] = @Original_DeviceName) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([dataOraEnabled] = @Original_dataOraEnabled) AND ([dataOraLastSeen] = @Original_dataOraLastSeen) AND ((@IsNull_lastIPv4 = 1 AND [lastIPv4] IS NULL) OR ([lastIPv4] = @Original_lastIPv4)));
|
||||
SELECT IdxDevice, DeviceSecret, USER_NAME, DeviceName, Description, dataOraEnabled, dataOraLastSeen, lastIPv4 FROM AnagDevices WHERE (IdxDevice = @IdxDevice)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_lastIPv4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="IdxDevice" ColumnName="IdxDevice" DataSourceName="SteamWare_Anagrafica.dbo.AnagDevices" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="IdxDevice" DataSetColumn="IdxDevice" />
|
||||
<Mapping SourceColumn="DeviceSecret" DataSetColumn="DeviceSecret" />
|
||||
<Mapping SourceColumn="DeviceName" DataSetColumn="DeviceName" />
|
||||
<Mapping SourceColumn="Description" DataSetColumn="Description" />
|
||||
<Mapping SourceColumn="dataOraEnabled" DataSetColumn="dataOraEnabled" />
|
||||
<Mapping SourceColumn="dataOraLastSeen" DataSetColumn="dataOraLastSeen" />
|
||||
<Mapping SourceColumn="lastIPv4" DataSetColumn="lastIPv4" />
|
||||
<Mapping SourceColumn="USER_NAME" DataSetColumn="USER_NAME" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDeviceSecret" GetMethodModifier="Public" GetMethodName="getByDeviceSecret" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDeviceSecret" UserSourceName="getByDeviceSecret">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AD_GetBySecret</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByUser" GetMethodModifier="Public" GetMethodName="getByUser" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByUser" UserSourceName="getByUser">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AD_GetByUser</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByUserSecret" GetMethodModifier="Public" GetMethodName="getByUserSecret" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByUserSecret" UserSourceName="getByUserSecret">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AD_GetByUserSecret</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="updateIP" Modifier="Public" Name="updateIP" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="updateIP">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AD_updateIP</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDevice" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@lastSeen" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="15" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UtentiTableAdapter" GeneratorDataComponentClassName="UtentiTableAdapter" Name="Utenti" UserDataComponentName="UtentiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.Utenti" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Utenti] WHERE (([USER_NAME] = @Original_USER_NAME) AND ([cognome] = @Original_cognome) AND ([nome] = @Original_nome) AND ([email] = @Original_email) AND ([authKey] = @Original_authKey) AND ([numAuth] = @Original_numAuth) AND ([attivo] = @Original_attivo) AND ([CodGruppo] = @Original_CodGruppo) AND ([resetAuthKeyReq] = @Original_resetAuthKeyReq))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cognome" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="authKey" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_numAuth" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="numAuth" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="attivo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodGruppo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_resetAuthKeyReq" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="resetAuthKeyReq" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Utenti] ([USER_NAME], [cognome], [nome], [email], [authKey], [numAuth], [attivo], [CodGruppo], [resetAuthKeyReq]) VALUES (@USER_NAME, @cognome, @nome, @email, @authKey, @numAuth, @attivo, @CodGruppo, @resetAuthKeyReq);
|
||||
SELECT USER_NAME, cognome, nome, email, authKey, numAuth, attivo, CodGruppo, resetAuthKeyReq FROM Utenti WHERE (USER_NAME = @USER_NAME)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cognome" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="authKey" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@numAuth" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="numAuth" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="attivo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodGruppo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@resetAuthKeyReq" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="resetAuthKeyReq" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT USER_NAME, cognome, nome, email, authKey, numAuth, attivo, CodGruppo, resetAuthKeyReq FROM dbo.Utenti</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Utenti] SET [USER_NAME] = @USER_NAME, [cognome] = @cognome, [nome] = @nome, [email] = @email, [authKey] = @authKey, [numAuth] = @numAuth, [attivo] = @attivo, [CodGruppo] = @CodGruppo, [resetAuthKeyReq] = @resetAuthKeyReq WHERE (([USER_NAME] = @Original_USER_NAME) AND ([cognome] = @Original_cognome) AND ([nome] = @Original_nome) AND ([email] = @Original_email) AND ([authKey] = @Original_authKey) AND ([numAuth] = @Original_numAuth) AND ([attivo] = @Original_attivo) AND ([CodGruppo] = @Original_CodGruppo) AND ([resetAuthKeyReq] = @Original_resetAuthKeyReq));
|
||||
SELECT USER_NAME, cognome, nome, email, authKey, numAuth, attivo, CodGruppo, resetAuthKeyReq FROM Utenti WHERE (USER_NAME = @USER_NAME)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cognome" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="authKey" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@numAuth" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="numAuth" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="attivo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodGruppo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@resetAuthKeyReq" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="resetAuthKeyReq" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="USER_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="cognome" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nome" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="authKey" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_numAuth" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="numAuth" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="attivo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodGruppo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_resetAuthKeyReq" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="resetAuthKeyReq" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="USER_NAME" DataSetColumn="USER_NAME" />
|
||||
<Mapping SourceColumn="cognome" DataSetColumn="cognome" />
|
||||
<Mapping SourceColumn="nome" DataSetColumn="nome" />
|
||||
<Mapping SourceColumn="email" DataSetColumn="email" />
|
||||
<Mapping SourceColumn="authKey" DataSetColumn="authKey" />
|
||||
<Mapping SourceColumn="numAuth" DataSetColumn="numAuth" />
|
||||
<Mapping SourceColumn="attivo" DataSetColumn="attivo" />
|
||||
<Mapping SourceColumn="CodGruppo" DataSetColumn="CodGruppo" />
|
||||
<Mapping SourceColumn="resetAuthKeyReq" DataSetColumn="resetAuthKeyReq" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_confirmResetAK" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="confirmResetAK" Modifier="Public" Name="confirmResetAK" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="confirmResetAK">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_confirmResetAK</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numAut" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="DeleteQuery">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_DeleteQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_getByEmail" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByEmail" GetMethodModifier="Public" GetMethodName="getByEmail" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByEmail" UserSourceName="getByEmail">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_getByEmail</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_getByEmailAK" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByEmailAK" GetMethodModifier="Public" GetMethodName="getByEmailAK" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByEmailAK" UserSourceName="getByEmailAK">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_getByEmailAK</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="InsertQuery">
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_InsertQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numAuth" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_InsertQueryAndRight" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertQueryAndRight" Modifier="Public" Name="InsertQueryAndRight" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="InsertQueryAndRight">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_InsertQueryAndRight</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numAuth" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_CDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_MODULO" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@COD_FUNZIONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="31" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_recordAuthKeyUse" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="recordAuthKeyUse" Modifier="Public" Name="recordAuthKeyUse" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="recordAuthKeyUse">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_recordAuthKeyUse</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_rejectResetAK" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="rejectResetAK" Modifier="Public" Name="rejectResetAK" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="rejectResetAK">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_rejectResetAK</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_reqAuthKeyReset" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="reqAuthKeyReset" Modifier="Public" Name="reqAuthKeyReset" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="reqAuthKeyReset">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_reqAuthKeyReset</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_ResetKeyAndDevices" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ResetKeyAndDevices" Modifier="Public" Name="ResetKeyAndDevices" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy7" UserSourceName="ResetKeyAndDevices">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_ResetKeyAndDevices</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NewAuthKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_ToggleAttivo" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ToggleAttivo" Modifier="Public" Name="ToggleAttivo" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy8" UserSourceName="ToggleAttivo">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_ToggleAttivo</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NewAuthKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_UpdateNumAuth" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdateNumAuth" Modifier="Public" Name="UpdateNumAuth" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy9" UserSourceName="UpdateNumAuth">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_UpdateNumAuth</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@deltaNumAuth" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DS_AuthConnectionString (Settings)" DbObjectName="SteamWare_Anagrafica.dbo.stp_Utenti_UpdateQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy10" UserSourceName="UpdateQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Utenti_UpdateQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@authKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numAuth" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_Auth" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Auth" msprop:Generator_UserDSName="DS_Auth">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Permessi" msprop:Generator_TableClassName="PermessiDataTable" msprop:Generator_TableVarName="tablePermessi" msprop:Generator_TablePropName="Permessi" msprop:Generator_RowDeletingName="PermessiRowDeleting" msprop:Generator_RowChangingName="PermessiRowChanging" msprop:Generator_RowEvHandlerName="PermessiRowChangeEventHandler" msprop:Generator_RowDeletedName="PermessiRowDeleted" msprop:Generator_UserTableName="Permessi" msprop:Generator_RowChangedName="PermessiRowChanged" msprop:Generator_RowEvArgName="PermessiRowChangeEvent" msprop:Generator_RowClassName="PermessiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="COD_PERMESSO" msprop:Generator_ColumnVarNameInTable="columnCOD_PERMESSO" msprop:Generator_ColumnPropNameInRow="COD_PERMESSO" msprop:Generator_ColumnPropNameInTable="COD_PERMESSOColumn" msprop:Generator_UserColumnName="COD_PERMESSO">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="URL" msprop:Generator_ColumnVarNameInTable="columnURL" msprop:Generator_ColumnPropNameInRow="URL" msprop:Generator_ColumnPropNameInTable="URLColumn" msprop:Generator_UserColumnName="URL">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="GRUPPO" msprop:Generator_ColumnVarNameInTable="columnGRUPPO" msprop:Generator_ColumnPropNameInRow="GRUPPO" msprop:Generator_ColumnPropNameInTable="GRUPPOColumn" msprop:Generator_UserColumnName="GRUPPO" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="NUMERO" msprop:Generator_ColumnVarNameInTable="columnNUMERO" msprop:Generator_ColumnPropNameInRow="NUMERO" msprop:Generator_ColumnPropNameInTable="NUMEROColumn" msprop:Generator_UserColumnName="NUMERO" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="NOME" msprop:Generator_ColumnVarNameInTable="columnNOME" msprop:Generator_ColumnPropNameInRow="NOME" msprop:Generator_ColumnPropNameInTable="NOMEColumn" msprop:Generator_UserColumnName="NOME" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DESCRIZIONE" msprop:Generator_ColumnVarNameInTable="columnDESCRIZIONE" msprop:Generator_ColumnPropNameInRow="DESCRIZIONE" msprop:Generator_ColumnPropNameInTable="DESCRIZIONEColumn" msprop:Generator_UserColumnName="DESCRIZIONE" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Permessi2Funzione" msprop:Generator_TableClassName="Permessi2FunzioneDataTable" msprop:Generator_TableVarName="tablePermessi2Funzione" msprop:Generator_TablePropName="Permessi2Funzione" msprop:Generator_RowDeletingName="Permessi2FunzioneRowDeleting" msprop:Generator_RowChangingName="Permessi2FunzioneRowChanging" msprop:Generator_RowEvHandlerName="Permessi2FunzioneRowChangeEventHandler" msprop:Generator_RowDeletedName="Permessi2FunzioneRowDeleted" msprop:Generator_UserTableName="Permessi2Funzione" msprop:Generator_RowChangedName="Permessi2FunzioneRowChanged" msprop:Generator_RowEvArgName="Permessi2FunzioneRowChangeEvent" msprop:Generator_RowClassName="Permessi2FunzioneRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="COD_PERMESSO" msprop:Generator_ColumnVarNameInTable="columnCOD_PERMESSO" msprop:Generator_ColumnPropNameInRow="COD_PERMESSO" msprop:Generator_ColumnPropNameInTable="COD_PERMESSOColumn" msprop:Generator_UserColumnName="COD_PERMESSO">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="COD_FUNZIONE" msprop:Generator_ColumnVarNameInTable="columnCOD_FUNZIONE" msprop:Generator_ColumnPropNameInRow="COD_FUNZIONE" msprop:Generator_ColumnPropNameInTable="COD_FUNZIONEColumn" msprop:Generator_UserColumnName="COD_FUNZIONE">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="31" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="READWRITE" msprop:Generator_ColumnVarNameInTable="columnREADWRITE" msprop:Generator_ColumnPropNameInRow="READWRITE" msprop:Generator_ColumnPropNameInTable="READWRITEColumn" msprop:Generator_UserColumnName="READWRITE" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="FUNZIONE" msprop:Generator_TableClassName="FUNZIONEDataTable" msprop:Generator_TableVarName="tableFUNZIONE" msprop:Generator_TablePropName="FUNZIONE" msprop:Generator_RowDeletingName="FUNZIONERowDeleting" msprop:Generator_RowChangingName="FUNZIONERowChanging" msprop:Generator_RowEvHandlerName="FUNZIONERowChangeEventHandler" msprop:Generator_RowDeletedName="FUNZIONERowDeleted" msprop:Generator_UserTableName="FUNZIONE" msprop:Generator_RowChangedName="FUNZIONERowChanged" msprop:Generator_RowEvArgName="FUNZIONERowChangeEvent" msprop:Generator_RowClassName="FUNZIONERow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="COD_FUNZIONE" msprop:Generator_ColumnVarNameInTable="columnCOD_FUNZIONE" msprop:Generator_ColumnPropNameInRow="COD_FUNZIONE" msprop:Generator_ColumnPropNameInTable="COD_FUNZIONEColumn" msprop:Generator_UserColumnName="COD_FUNZIONE">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="31" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DESCRIZIONE" msprop:Generator_ColumnVarNameInTable="columnDESCRIZIONE" msprop:Generator_ColumnPropNameInRow="DESCRIZIONE" msprop:Generator_ColumnPropNameInTable="DESCRIZIONEColumn" msprop:Generator_UserColumnName="DESCRIZIONE" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="DIRITTI" msprop:Generator_TableClassName="DIRITTIDataTable" msprop:Generator_TableVarName="tableDIRITTI" msprop:Generator_TablePropName="DIRITTI" msprop:Generator_RowDeletingName="DIRITTIRowDeleting" msprop:Generator_RowChangingName="DIRITTIRowChanging" msprop:Generator_RowEvHandlerName="DIRITTIRowChangeEventHandler" msprop:Generator_RowDeletedName="DIRITTIRowDeleted" msprop:Generator_UserTableName="DIRITTI" msprop:Generator_RowChangedName="DIRITTIRowChanged" msprop:Generator_RowEvArgName="DIRITTIRowChangeEvent" msprop:Generator_RowClassName="DIRITTIRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="USER_NAME" msprop:Generator_ColumnVarNameInTable="columnUSER_NAME" msprop:Generator_ColumnPropNameInRow="USER_NAME" msprop:Generator_ColumnPropNameInTable="USER_NAMEColumn" msprop:Generator_UserColumnName="USER_NAME">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="COD_CDC" msprop:Generator_ColumnVarNameInTable="columnCOD_CDC" msprop:Generator_ColumnPropNameInRow="COD_CDC" msprop:Generator_ColumnPropNameInTable="COD_CDCColumn" msprop:Generator_UserColumnName="COD_CDC">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="COD_MODULO" msprop:Generator_ColumnVarNameInTable="columnCOD_MODULO" msprop:Generator_ColumnPropNameInRow="COD_MODULO" msprop:Generator_ColumnPropNameInTable="COD_MODULOColumn" msprop:Generator_UserColumnName="COD_MODULO">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="31" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="COD_FUNZIONE" msprop:Generator_ColumnVarNameInTable="columnCOD_FUNZIONE" msprop:Generator_ColumnPropNameInRow="COD_FUNZIONE" msprop:Generator_ColumnPropNameInTable="COD_FUNZIONEColumn" msprop:Generator_UserColumnName="COD_FUNZIONE">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="31" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="VALUE" msprop:Generator_ColumnVarNameInTable="columnVALUE" msprop:Generator_ColumnPropNameInRow="VALUE" msprop:Generator_ColumnPropNameInTable="VALUEColumn" msprop:Generator_UserColumnName="VALUE" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="255" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagDevices" msprop:Generator_TableClassName="AnagDevicesDataTable" msprop:Generator_TableVarName="tableAnagDevices" msprop:Generator_TablePropName="AnagDevices" msprop:Generator_RowDeletingName="AnagDevicesRowDeleting" msprop:Generator_RowChangingName="AnagDevicesRowChanging" msprop:Generator_RowEvHandlerName="AnagDevicesRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagDevicesRowDeleted" msprop:Generator_UserTableName="AnagDevices" msprop:Generator_RowChangedName="AnagDevicesRowChanged" msprop:Generator_RowEvArgName="AnagDevicesRowChangeEvent" msprop:Generator_RowClassName="AnagDevicesRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxDevice" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxDevice" msprop:Generator_ColumnPropNameInRow="IdxDevice" msprop:Generator_ColumnPropNameInTable="IdxDeviceColumn" msprop:Generator_UserColumnName="IdxDevice" type="xs:int" />
|
||||
<xs:element name="DeviceSecret" msprop:Generator_ColumnVarNameInTable="columnDeviceSecret" msprop:Generator_ColumnPropNameInRow="DeviceSecret" msprop:Generator_ColumnPropNameInTable="DeviceSecretColumn" msprop:Generator_UserColumnName="DeviceSecret">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DeviceName" msprop:Generator_ColumnVarNameInTable="columnDeviceName" msprop:Generator_ColumnPropNameInRow="DeviceName" msprop:Generator_ColumnPropNameInTable="DeviceNameColumn" msprop:Generator_UserColumnName="DeviceName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dataOraEnabled" msprop:Generator_ColumnVarNameInTable="columndataOraEnabled" msprop:Generator_ColumnPropNameInRow="dataOraEnabled" msprop:Generator_ColumnPropNameInTable="dataOraEnabledColumn" msprop:Generator_UserColumnName="dataOraEnabled" type="xs:dateTime" />
|
||||
<xs:element name="dataOraLastSeen" msprop:Generator_ColumnVarNameInTable="columndataOraLastSeen" msprop:Generator_ColumnPropNameInRow="dataOraLastSeen" msprop:Generator_ColumnPropNameInTable="dataOraLastSeenColumn" msprop:Generator_UserColumnName="dataOraLastSeen" type="xs:dateTime" />
|
||||
<xs:element name="lastIPv4" msprop:Generator_ColumnVarNameInTable="columnlastIPv4" msprop:Generator_ColumnPropNameInRow="lastIPv4" msprop:Generator_ColumnPropNameInTable="lastIPv4Column" msprop:Generator_UserColumnName="lastIPv4" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="15" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="USER_NAME" msprop:Generator_ColumnVarNameInTable="columnUSER_NAME" msprop:Generator_ColumnPropNameInRow="USER_NAME" msprop:Generator_ColumnPropNameInTable="USER_NAMEColumn" msprop:Generator_UserColumnName="USER_NAME">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Utenti" msprop:Generator_TableClassName="UtentiDataTable" msprop:Generator_TableVarName="tableUtenti" msprop:Generator_RowChangedName="UtentiRowChanged" msprop:Generator_TablePropName="Utenti" msprop:Generator_RowDeletingName="UtentiRowDeleting" msprop:Generator_RowChangingName="UtentiRowChanging" msprop:Generator_RowEvHandlerName="UtentiRowChangeEventHandler" msprop:Generator_RowDeletedName="UtentiRowDeleted" msprop:Generator_RowClassName="UtentiRow" msprop:Generator_UserTableName="Utenti" msprop:Generator_RowEvArgName="UtentiRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="USER_NAME" msprop:Generator_ColumnVarNameInTable="columnUSER_NAME" msprop:Generator_ColumnPropNameInRow="USER_NAME" msprop:Generator_ColumnPropNameInTable="USER_NAMEColumn" msprop:Generator_UserColumnName="USER_NAME">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="cognome" msprop:Generator_ColumnVarNameInTable="columncognome" msprop:Generator_ColumnPropNameInRow="cognome" msprop:Generator_ColumnPropNameInTable="cognomeColumn" msprop:Generator_UserColumnName="cognome">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nome" msprop:Generator_ColumnVarNameInTable="columnnome" msprop:Generator_ColumnPropNameInRow="nome" msprop:Generator_ColumnPropNameInTable="nomeColumn" msprop:Generator_UserColumnName="nome">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" msprop:Generator_UserColumnName="email">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="authKey" msprop:Generator_ColumnVarNameInTable="columnauthKey" msprop:Generator_ColumnPropNameInRow="authKey" msprop:Generator_ColumnPropNameInTable="authKeyColumn" msprop:Generator_UserColumnName="authKey">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numAuth" msprop:Generator_ColumnVarNameInTable="columnnumAuth" msprop:Generator_ColumnPropNameInRow="numAuth" msprop:Generator_ColumnPropNameInTable="numAuthColumn" msprop:Generator_UserColumnName="numAuth" type="xs:int" />
|
||||
<xs:element name="attivo" msprop:Generator_ColumnVarNameInTable="columnattivo" msprop:Generator_ColumnPropNameInRow="attivo" msprop:Generator_ColumnPropNameInTable="attivoColumn" msprop:Generator_UserColumnName="attivo" type="xs:boolean" />
|
||||
<xs:element name="CodGruppo" msprop:Generator_ColumnVarNameInTable="columnCodGruppo" msprop:Generator_ColumnPropNameInRow="CodGruppo" msprop:Generator_ColumnPropNameInTable="CodGruppoColumn" msprop:Generator_UserColumnName="CodGruppo">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="resetAuthKeyReq" msprop:Generator_ColumnVarNameInTable="columnresetAuthKeyReq" msprop:Generator_ColumnPropNameInRow="resetAuthKeyReq" msprop:Generator_ColumnPropNameInTable="resetAuthKeyReqColumn" msprop:Generator_UserColumnName="resetAuthKeyReq" type="xs:boolean" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Permessi" />
|
||||
<xs:field xpath="mstns:COD_PERMESSO" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Permessi2Funzione_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Permessi2Funzione" />
|
||||
<xs:field xpath="mstns:COD_PERMESSO" />
|
||||
<xs:field xpath="mstns:COD_FUNZIONE" />
|
||||
</xs:unique>
|
||||
<xs:unique name="FUNZIONE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:FUNZIONE" />
|
||||
<xs:field xpath="mstns:COD_FUNZIONE" />
|
||||
</xs:unique>
|
||||
<xs:unique name="DIRITTI_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:DIRITTI" />
|
||||
<xs:field xpath="mstns:USER_NAME" />
|
||||
<xs:field xpath="mstns:COD_CDC" />
|
||||
<xs:field xpath="mstns:COD_MODULO" />
|
||||
<xs:field xpath="mstns:COD_FUNZIONE" />
|
||||
</xs:unique>
|
||||
<xs:unique name="AnagDevices_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:AnagDevices" />
|
||||
<xs:field xpath="mstns:IdxDevice" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Utenti_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Utenti" />
|
||||
<xs:field xpath="mstns:USER_NAME" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_Permessi2Funzione_Permessi" msdata:parent="Permessi" msdata:child="Permessi2Funzione" msdata:parentkey="COD_PERMESSO" msdata:childkey="COD_PERMESSO" msprop:Generator_UserChildTable="Permessi2Funzione" msprop:Generator_ChildPropName="GetPermessi2FunzioneRows" msprop:Generator_UserRelationName="FK_Permessi2Funzione_Permessi" msprop:Generator_ParentPropName="PermessiRow" msprop:Generator_RelationVarName="relationFK_Permessi2Funzione_Permessi" msprop:Generator_UserParentTable="Permessi" />
|
||||
<msdata:Relationship name="FK_Permessi2Funzione_FUNZIONE" msdata:parent="FUNZIONE" msdata:child="Permessi2Funzione" msdata:parentkey="COD_FUNZIONE" msdata:childkey="COD_FUNZIONE" msprop:Generator_UserChildTable="Permessi2Funzione" msprop:Generator_ChildPropName="GetPermessi2FunzioneRows" msprop:Generator_UserRelationName="FK_Permessi2Funzione_FUNZIONE" msprop:Generator_RelationVarName="relationFK_Permessi2Funzione_FUNZIONE" msprop:Generator_UserParentTable="FUNZIONE" msprop:Generator_ParentPropName="FUNZIONERow" />
|
||||
<msdata:Relationship name="FK_DIRITTI_FUNZIONE" msdata:parent="FUNZIONE" msdata:child="DIRITTI" msdata:parentkey="COD_FUNZIONE" msdata:childkey="COD_FUNZIONE" msprop:Generator_UserChildTable="DIRITTI" msprop:Generator_ChildPropName="GetDIRITTIRows" msprop:Generator_UserRelationName="FK_DIRITTI_FUNZIONE" msprop:Generator_ParentPropName="FUNZIONERow" msprop:Generator_RelationVarName="relationFK_DIRITTI_FUNZIONE" msprop:Generator_UserParentTable="FUNZIONE" />
|
||||
<msdata:Relationship name="FK_DIRITTI_Utenti" msdata:parent="Utenti" msdata:child="DIRITTI" msdata:parentkey="USER_NAME" msdata:childkey="USER_NAME" msprop:Generator_UserChildTable="DIRITTI" msprop:Generator_ChildPropName="GetDIRITTIRows" msprop:Generator_UserRelationName="FK_DIRITTI_Utenti" msprop:Generator_ParentPropName="UtentiRow" msprop:Generator_RelationVarName="relationFK_DIRITTI_Utenti" msprop:Generator_UserParentTable="Utenti" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="176" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Permessi" ZOrder="6" X="1075" Y="348" Height="191" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:Permessi2Funzione" ZOrder="5" X="1059" Y="162" Height="134" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:FUNZIONE" ZOrder="2" X="823" Y="162" Height="115" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:DIRITTI" ZOrder="4" X="524" Y="162" Height="229" Width="260" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagDevices" ZOrder="1" X="647" Y="550" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Utenti" ZOrder="3" X="196" Y="225" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Permessi2Funzione_Permessi" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1182</X>
|
||||
<Y>348</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1182</X>
|
||||
<Y>296</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Permessi2Funzione_FUNZIONE" ZOrder="9" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1030</X>
|
||||
<Y>267</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>1059</X>
|
||||
<Y>267</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_FUNZIONE" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>882</X>
|
||||
<Y>277</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>882</X>
|
||||
<Y>305</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>784</X>
|
||||
<Y>305</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_Utenti" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>297</X>
|
||||
<Y>225</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>297</X>
|
||||
<Y>203</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>524</X>
|
||||
<Y>203</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
Generated
+14272
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
}
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
|
||||
|
||||
public partial class DS_Billing
|
||||
{
|
||||
}
|
||||
}
|
||||
namespace SteamWare
|
||||
{
|
||||
|
||||
|
||||
public partial class DS_Billing {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="13" ViewPortY="78" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:selTipo" ZOrder="13" X="1145" Y="88" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:selCli" ZOrder="14" X="1151" Y="228" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:Documenti" ZOrder="15" X="133" Y="107" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Righe" ZOrder="2" X="501" Y="368" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:selIVA" ZOrder="12" X="1182" Y="395" Height="115" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:VAT" ZOrder="11" X="436" Y="778" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:clienti" ZOrder="10" X="103" Y="584" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Scadenze" ZOrder="6" X="869" Y="777" Height="210" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:StatoIPS" ZOrder="9" X="1243" Y="647" Height="172" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:FattureAperte" ZOrder="8" X="827" Y="189" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Pagamenti" ZOrder="7" X="918" Y="550" Height="210" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:StatoMarg" ZOrder="4" X="1188" Y="842" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:CostiAssorbiti" ZOrder="1" X="529" Y="113" Height="229" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Documenti_Righe" ZOrder="5" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>433</X>
|
||||
<Y>461</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>501</X>
|
||||
<Y>461</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:CostiAssorbiti_Documenti1" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>529</X>
|
||||
<Y>199</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>433</X>
|
||||
<Y>199</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
Generated
+3366
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,359 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_Utility" targetNamespace="http://tempuri.org/DS_Utility.xsd" xmlns:mstns="http://tempuri.org/DS_Utility.xsd" xmlns="http://tempuri.org/DS_Utility.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="2" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SEL_fatture_SteamWareConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SEL_fatture_SteamWareConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.SEL_fatture_SteamWareConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="GMWConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GMWConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.GMWConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="DbConfConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DbConfConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.GMWConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ListValuesTableAdapter" GeneratorDataComponentClassName="ListValuesTableAdapter" Name="ListValues" UserDataComponentName="ListValuesTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[ListValues] WHERE (([TableName] = @Original_TableName) AND ([FieldName] = @Original_FieldName) AND ([value] = @Original_value) AND ((@IsNull_label = 1 AND [label] IS NULL) OR ([label] = @Original_label)) AND ((@IsNull_ordinal = 1 AND [ordinal] IS NULL) OR ([ordinal] = @Original_ordinal)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_label" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[ListValues] ([TableName], [FieldName], [value], [label], [ordinal]) VALUES (@TableName, @FieldName, @value, @label, @ordinal);
|
||||
SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldName = @FieldName) AND (TableName = @TableName) AND (value = @value)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT TableName, FieldName, value, label, ordinal FROM dbo.ListValues</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[ListValues] SET [TableName] = @TableName, [FieldName] = @FieldName, [value] = @value, [label] = @label, [ordinal] = @ordinal WHERE (([TableName] = @Original_TableName) AND ([FieldName] = @Original_FieldName) AND ([value] = @Original_value) AND ((@IsNull_label = 1 AND [label] IS NULL) OR ([label] = @Original_label)) AND ((@IsNull_ordinal = 1 AND [ordinal] IS NULL) OR ([ordinal] = @Original_ordinal)));
|
||||
SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldName = @FieldName) AND (TableName = @TableName) AND (value = @value)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_label" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="TableName" DataSetColumn="TableName" />
|
||||
<Mapping SourceColumn="FieldName" DataSetColumn="FieldName" />
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
<Mapping SourceColumn="ordinal" DataSetColumn="ordinal" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_delete</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTable" GetMethodModifier="Public" GetMethodName="getByTable" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTable" UserSourceName="getByTable">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_getByTable</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getDistTableName" GetMethodModifier="Public" GetMethodName="getDistTableName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getDistTableName" UserSourceName="getDistTableName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_getDistTable</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_insNew</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="updateQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_update</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selListValTableAdapter" GeneratorDataComponentClassName="v_selListValTableAdapter" Name="v_selListVal" UserDataComponentName="v_selListValTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT value, label FROM dbo.v_selListVal</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTableField" GetMethodModifier="Public" GetMethodName="getByTableField" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTableField" UserSourceName="getByTableField">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_getValidValues</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTableFieldLang" GetMethodModifier="Public" GetMethodName="getByTableFieldLang" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTableFieldLang" UserSourceName="getByTableFieldLang">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_listValues_getValidValuesTrad</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ConfigTableAdapter" GeneratorDataComponentClassName="ConfigTableAdapter" Name="Config" UserDataComponentName="ConfigTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectName="GMW.dbo.Config" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Config] WHERE (([chiave] = @Original_chiave) AND ((@IsNull_valore = 1 AND [valore] IS NULL) OR ([valore] = @Original_valore)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_note)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_chiave" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="chiave" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_note" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Config] ([chiave], [valore], [note]) VALUES (@chiave, @valore, @note);
|
||||
SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@chiave" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="chiave" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT chiave, valore, note FROM dbo.Config</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Config] SET [chiave] = @chiave, [valore] = @valore, [note] = @note WHERE (([chiave] = @Original_chiave) AND ((@IsNull_valore = 1 AND [valore] IS NULL) OR ([valore] = @Original_valore)) AND ((@IsNull_note = 1 AND [note] IS NULL) OR ([note] = @Original_note)));
|
||||
SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@chiave" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="chiave" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_chiave" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="chiave" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_note" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="chiave" DataSetColumn="chiave" />
|
||||
<Mapping SourceColumn="valore" DataSetColumn="valore" />
|
||||
<Mapping SourceColumn="note" DataSetColumn="note" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="DbConfConnectionString (Settings)" DbObjectName="GMW.dbo.stp_confByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_confByKey</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@chiave" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_Utility" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Utility" msprop:Generator_UserDSName="DS_Utility">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="ListValues" msprop:Generator_TableClassName="ListValuesDataTable" msprop:Generator_TableVarName="tableListValues" msprop:Generator_RowChangedName="ListValuesRowChanged" msprop:Generator_TablePropName="ListValues" msprop:Generator_RowDeletingName="ListValuesRowDeleting" msprop:Generator_RowChangingName="ListValuesRowChanging" msprop:Generator_RowEvHandlerName="ListValuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ListValuesRowDeleted" msprop:Generator_RowClassName="ListValuesRow" msprop:Generator_UserTableName="ListValues" msprop:Generator_RowEvArgName="ListValuesRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="TableName" msprop:Generator_ColumnVarNameInTable="columnTableName" msprop:Generator_ColumnPropNameInRow="TableName" msprop:Generator_ColumnPropNameInTable="TableNameColumn" msprop:Generator_UserColumnName="TableName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="FieldName" msprop:Generator_ColumnVarNameInTable="columnFieldName" msprop:Generator_ColumnPropNameInRow="FieldName" msprop:Generator_ColumnPropNameInTable="FieldNameColumn" msprop:Generator_UserColumnName="FieldName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="ordinal" msprop:Generator_ColumnVarNameInTable="columnordinal" msprop:Generator_ColumnPropNameInRow="ordinal" msprop:Generator_ColumnPropNameInTable="ordinalColumn" msprop:Generator_UserColumnName="ordinal" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_selListVal" msprop:Generator_TableClassName="v_selListValDataTable" msprop:Generator_TableVarName="tablev_selListVal" msprop:Generator_RowChangedName="v_selListValRowChanged" msprop:Generator_TablePropName="v_selListVal" msprop:Generator_RowDeletingName="v_selListValRowDeleting" msprop:Generator_RowChangingName="v_selListValRowChanging" msprop:Generator_RowEvHandlerName="v_selListValRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selListValRowDeleted" msprop:Generator_RowClassName="v_selListValRow" msprop:Generator_UserTableName="v_selListVal" msprop:Generator_RowEvArgName="v_selListValRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="112" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Config" msprop:Generator_TableClassName="ConfigDataTable" msprop:Generator_TableVarName="tableConfig" msprop:Generator_TablePropName="Config" msprop:Generator_RowDeletingName="ConfigRowDeleting" msprop:Generator_RowChangingName="ConfigRowChanging" msprop:Generator_RowEvHandlerName="ConfigRowChangeEventHandler" msprop:Generator_RowDeletedName="ConfigRowDeleted" msprop:Generator_UserTableName="Config" msprop:Generator_RowChangedName="ConfigRowChanged" msprop:Generator_RowEvArgName="ConfigRowChangeEvent" msprop:Generator_RowClassName="ConfigRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="chiave" msprop:Generator_ColumnVarNameInTable="columnchiave" msprop:Generator_ColumnPropNameInRow="chiave" msprop:Generator_ColumnPropNameInTable="chiaveColumn" msprop:Generator_UserColumnName="chiave">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="valore" msprop:Generator_ColumnVarNameInTable="columnvalore" msprop:Generator_ColumnPropNameInRow="valore" msprop:Generator_ColumnPropNameInTable="valoreColumn" msprop:Generator_UserColumnName="valore" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="note" msprop:Generator_ColumnVarNameInTable="columnnote" msprop:Generator_ColumnPropNameInRow="note" msprop:Generator_ColumnPropNameInTable="noteColumn" msprop:Generator_UserColumnName="note" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:ListValues" />
|
||||
<xs:field xpath="mstns:TableName" />
|
||||
<xs:field xpath="mstns:FieldName" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Config_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Config" />
|
||||
<xs:field xpath="mstns:chiave" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ListValues" ZOrder="3" X="70" Y="70" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:v_selListVal" ZOrder="2" X="440" Y="70" Height="153" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:Config" ZOrder="1" X="800" Y="283" Height="153" Width="183" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Generated
+2309
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,292 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_devices" targetNamespace="http://tempuri.org/DS_devices.xsd" xmlns:mstns="http://tempuri.org/DS_devices.xsd" xmlns="http://tempuri.org/DS_devices.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_AnagraficaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_AnagraficaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.ETS_AnagraficaConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="Equa_AnagraficaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Equa_AnagraficaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.Equa_AnagraficaConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagDevicesTableAdapter" GeneratorDataComponentClassName="AnagDevicesTableAdapter" Name="AnagDevices" UserDataComponentName="AnagDevicesTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.AnagDevices" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [AnagDevices] WHERE (([IdxDevice] = @Original_IdxDevice) AND ([DeviceSecret] = @Original_DeviceSecret) AND ((@IsNull_Dominio = 1 AND [Dominio] IS NULL) OR ([Dominio] = @Original_Dominio)) AND ((@IsNull_UsrName = 1 AND [UsrName] IS NULL) OR ([UsrName] = @Original_UsrName)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([DeviceName] = @Original_DeviceName) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([dataOraEnabled] = @Original_dataOraEnabled) AND ([dataOraLastSeen] = @Original_dataOraLastSeen) AND ((@IsNull_lastIPv4 = 1 AND [lastIPv4] IS NULL) OR ([lastIPv4] = @Original_lastIPv4)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Dominio" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Dominio" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UsrName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_lastIPv4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [AnagDevices] ([DeviceSecret], [Dominio], [UsrName], [MatrOpr], [DeviceName], [Description], [dataOraEnabled], [dataOraLastSeen], [lastIPv4]) VALUES (@DeviceSecret, @Dominio, @UsrName, @MatrOpr, @DeviceName, @Description, @dataOraEnabled, @dataOraLastSeen, @lastIPv4);
|
||||
SELECT IdxDevice, DeviceSecret, Dominio, UsrName, MatrOpr, DeviceName, Description, dataOraEnabled, dataOraLastSeen, lastIPv4 FROM AnagDevices WHERE (IdxDevice = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT *
|
||||
FROM AnagDevices</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [AnagDevices] SET [DeviceSecret] = @DeviceSecret, [Dominio] = @Dominio, [UsrName] = @UsrName, [MatrOpr] = @MatrOpr, [DeviceName] = @DeviceName, [Description] = @Description, [dataOraEnabled] = @dataOraEnabled, [dataOraLastSeen] = @dataOraLastSeen, [lastIPv4] = @lastIPv4 WHERE (([IdxDevice] = @Original_IdxDevice) AND ([DeviceSecret] = @Original_DeviceSecret) AND ((@IsNull_Dominio = 1 AND [Dominio] IS NULL) OR ([Dominio] = @Original_Dominio)) AND ((@IsNull_UsrName = 1 AND [UsrName] IS NULL) OR ([UsrName] = @Original_UsrName)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([DeviceName] = @Original_DeviceName) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ([dataOraEnabled] = @Original_dataOraEnabled) AND ([dataOraLastSeen] = @Original_dataOraLastSeen) AND ((@IsNull_lastIPv4 = 1 AND [lastIPv4] IS NULL) OR ([lastIPv4] = @Original_lastIPv4)));
|
||||
SELECT IdxDevice, DeviceSecret, Dominio, UsrName, MatrOpr, DeviceName, Description, dataOraEnabled, dataOraLastSeen, lastIPv4 FROM AnagDevices WHERE (IdxDevice = @IdxDevice)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceSecret" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Dominio" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Dominio" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Dominio" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UsrName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UsrName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MatrOpr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatrOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DeviceName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Description" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraEnabled" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraEnabled" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOraLastSeen" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOraLastSeen" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_lastIPv4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="lastIPv4" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="IdxDevice" ColumnName="IdxDevice" DataSourceName="SteamWare_Anagrafica.dbo.AnagDevices" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDevice" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxDevice" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="IdxDevice" DataSetColumn="IdxDevice" />
|
||||
<Mapping SourceColumn="DeviceSecret" DataSetColumn="DeviceSecret" />
|
||||
<Mapping SourceColumn="DeviceName" DataSetColumn="DeviceName" />
|
||||
<Mapping SourceColumn="Description" DataSetColumn="Description" />
|
||||
<Mapping SourceColumn="dataOraEnabled" DataSetColumn="dataOraEnabled" />
|
||||
<Mapping SourceColumn="dataOraLastSeen" DataSetColumn="dataOraLastSeen" />
|
||||
<Mapping SourceColumn="lastIPv4" DataSetColumn="lastIPv4" />
|
||||
<Mapping SourceColumn="DOMINIO" DataSetColumn="Dominio" />
|
||||
<Mapping SourceColumn="USER_NAME" DataSetColumn="User_Name" />
|
||||
<Mapping SourceColumn="Dominio" DataSetColumn="Dominio" />
|
||||
<Mapping SourceColumn="UsrName" DataSetColumn="User_Name" />
|
||||
<Mapping SourceColumn="MatrOpr" DataSetColumn="MatrOpr" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_delByDeviceName" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="delByDeviceName" Modifier="Public" Name="delByDeviceName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="delByDeviceName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_delByDeviceName</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_delByDeviceSecret" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="delByDeviceSecret" Modifier="Public" Name="delByDeviceSecret" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="delByDeviceSecret">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_delByDeviceSecret</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_delByDominioUser" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="delByDominioUser" Modifier="Public" Name="delByDominioUser" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="delByDominioUser">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_delByDominioUser</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="NVarChar" Scale="0" Size="30" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_delByDominioUserDeviceName" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="delByDominioUserDeviceName" Modifier="Public" Name="delByDominioUserDeviceName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="delByDominioUserDeviceName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_delByDominioUserDeviceName</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="NVarChar" Scale="0" Size="30" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_getByDeviceName" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDeviceName" GetMethodModifier="Public" GetMethodName="getByDeviceName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDeviceName" UserSourceName="getByDeviceName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_getByDeviceName</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_getByDeviceSecret" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDeviceSecret" GetMethodModifier="Public" GetMethodName="getByDeviceSecret" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDeviceSecret" UserSourceName="getByDeviceSecret">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_getByDeviceSecret</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_getByIdxDipendente" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="getByIdxDipendente" Modifier="Public" Name="getByIdxDipendente" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="getByIdxDipendente">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_getByIdxDipendente</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="NVarChar" Scale="0" Size="30" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_insert</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceSecret" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Dominio" Precision="0" ProviderType="NVarChar" Scale="0" Size="30" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UsrName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@MatrOpr" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DeviceName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataOraRif" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="15" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Equa_AnagraficaConnectionString (Settings)" DbObjectName="Equa_Anagrafica.dbo.stp_Dev_updateIP" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateIP" Modifier="Public" Name="updateIP" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="updateIP">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Dev_updateIP</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxDevice" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataOraRif" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@lastIPv4" Precision="0" ProviderType="NVarChar" Scale="0" Size="15" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_devices" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_devices" msprop:Generator_UserDSName="DS_devices">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="AnagDevices" msprop:Generator_TableClassName="AnagDevicesDataTable" msprop:Generator_TableVarName="tableAnagDevices" msprop:Generator_RowChangedName="AnagDevicesRowChanged" msprop:Generator_TablePropName="AnagDevices" msprop:Generator_RowDeletingName="AnagDevicesRowDeleting" msprop:Generator_RowChangingName="AnagDevicesRowChanging" msprop:Generator_RowEvHandlerName="AnagDevicesRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagDevicesRowDeleted" msprop:Generator_RowClassName="AnagDevicesRow" msprop:Generator_UserTableName="AnagDevices" msprop:Generator_RowEvArgName="AnagDevicesRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxDevice" msprop:Generator_ColumnVarNameInTable="columnIdxDevice" msprop:Generator_ColumnPropNameInRow="IdxDevice" msprop:Generator_ColumnPropNameInTable="IdxDeviceColumn" msprop:Generator_UserColumnName="IdxDevice" type="xs:int" />
|
||||
<xs:element name="DeviceSecret" msprop:Generator_ColumnVarNameInTable="columnDeviceSecret" msprop:Generator_ColumnPropNameInRow="DeviceSecret" msprop:Generator_ColumnPropNameInTable="DeviceSecretColumn" msprop:Generator_UserColumnName="DeviceSecret">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DeviceName" msprop:Generator_ColumnVarNameInTable="columnDeviceName" msprop:Generator_ColumnPropNameInRow="DeviceName" msprop:Generator_ColumnPropNameInTable="DeviceNameColumn" msprop:Generator_UserColumnName="DeviceName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dataOraEnabled" msprop:Generator_ColumnVarNameInTable="columndataOraEnabled" msprop:Generator_ColumnPropNameInRow="dataOraEnabled" msprop:Generator_ColumnPropNameInTable="dataOraEnabledColumn" msprop:Generator_UserColumnName="dataOraEnabled" type="xs:dateTime" />
|
||||
<xs:element name="dataOraLastSeen" msprop:Generator_ColumnVarNameInTable="columndataOraLastSeen" msprop:Generator_ColumnPropNameInRow="dataOraLastSeen" msprop:Generator_ColumnPropNameInTable="dataOraLastSeenColumn" msprop:Generator_UserColumnName="dataOraLastSeen" type="xs:dateTime" />
|
||||
<xs:element name="lastIPv4" msprop:Generator_ColumnVarNameInTable="columnlastIPv4" msprop:Generator_ColumnPropNameInRow="lastIPv4" msprop:Generator_ColumnPropNameInTable="lastIPv4Column" msprop:Generator_UserColumnName="lastIPv4" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="15" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Dominio" msprop:Generator_ColumnVarNameInTable="columnDominio" msprop:Generator_ColumnPropNameInRow="Dominio" msprop:Generator_ColumnPropNameInTable="DominioColumn" msprop:Generator_UserColumnName="Dominio" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="30" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="User_Name" msprop:Generator_ColumnVarNameInTable="columnUser_Name" msprop:Generator_ColumnPropNameInRow="User_Name" msprop:Generator_ColumnPropNameInTable="User_NameColumn" msprop:Generator_UserColumnName="User_Name" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="MatrOpr" msprop:Generator_ColumnVarNameInTable="columnMatrOpr" msprop:Generator_ColumnPropNameInRow="MatrOpr" msprop:Generator_ColumnPropNameInTable="MatrOprColumn" msprop:Generator_UserColumnName="MatrOpr" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:AnagDevices" />
|
||||
<xs:field xpath="mstns:IdxDevice" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:AnagDevices" ZOrder="1" X="379" Y="223" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Generated
+6103
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,708 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_logging" targetNamespace="http://tempuri.org/DS_logging.xsd" xmlns:mstns="http://tempuri.org/DS_logging.xsd" xmlns="http://tempuri.org/DS_logging.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="loggerConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="loggerConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.loggerConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="T_anagFiltroTableAdapter" GeneratorDataComponentClassName="T_anagFiltroTableAdapter" Name="T_anagFiltro" UserDataComponentName="T_anagFiltroTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.T_anagFiltro" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[T_anagFiltro] WHERE (([idxFiltro] = @Original_idxFiltro) AND ((@IsNull_filtro = 1 AND [filtro] IS NULL) OR ([filtro] = @Original_filtro)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_filtro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_filtro" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[T_anagFiltro] ([filtro]) VALUES (@filtro);
|
||||
SELECT idxFiltro, filtro FROM T_anagFiltro WHERE (idxFiltro = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxFiltro, filtro FROM dbo.T_anagFiltro</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[T_anagFiltro] SET [filtro] = @filtro WHERE (([idxFiltro] = @Original_idxFiltro) AND ((@IsNull_filtro = 1 AND [filtro] IS NULL) OR ([filtro] = @Original_filtro)));
|
||||
SELECT idxFiltro, filtro FROM T_anagFiltro WHERE (idxFiltro = @idxFiltro)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_filtro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_filtro" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="filtro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxFiltro" ColumnName="idxFiltro" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxFiltro" DataSetColumn="idxFiltro" />
|
||||
<Mapping SourceColumn="filtro" DataSetColumn="filtro" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="T_logUtenteTableAdapter" GeneratorDataComponentClassName="T_logUtenteTableAdapter" Name="T_logUtente" UserDataComponentName="T_logUtenteTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.T_logUtente" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[T_logUtente] WHERE (([idxNota] = @Original_idxNota) AND ((@IsNull_dataNota = 1 AND [dataNota] IS NULL) OR ([dataNota] = @Original_dataNota)) AND ((@IsNull_userNota = 1 AND [userNota] IS NULL) OR ([userNota] = @Original_userNota)) AND ((@IsNull_nota = 1 AND [nota] IS NULL) OR ([nota] = @Original_nota)) AND ((@IsNull_idxFiltro = 1 AND [idxFiltro] IS NULL) OR ([idxFiltro] = @Original_idxFiltro)) AND ((@IsNull_val = 1 AND [val] IS NULL) OR ([val] = @Original_val)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dataNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataNota" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_userNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userNota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_nota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_val" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_val" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[T_logUtente] ([dataNota], [userNota], [nota], [idxFiltro], [val]) VALUES (@dataNota, @userNota, @nota, @idxFiltro, @val);
|
||||
SELECT idxNota, dataNota, userNota, nota, idxFiltro, val FROM T_logUtente WHERE (idxNota = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataNota" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userNota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@val" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxNota, dataNota, userNota, nota, idxFiltro, val FROM dbo.T_logUtente</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[T_logUtente] SET [dataNota] = @dataNota, [userNota] = @userNota, [nota] = @nota, [idxFiltro] = @idxFiltro, [val] = @val WHERE (([idxNota] = @Original_idxNota) AND ((@IsNull_dataNota = 1 AND [dataNota] IS NULL) OR ([dataNota] = @Original_dataNota)) AND ((@IsNull_userNota = 1 AND [userNota] IS NULL) OR ([userNota] = @Original_userNota)) AND ((@IsNull_nota = 1 AND [nota] IS NULL) OR ([nota] = @Original_nota)) AND ((@IsNull_idxFiltro = 1 AND [idxFiltro] IS NULL) OR ([idxFiltro] = @Original_idxFiltro)) AND ((@IsNull_val = 1 AND [val] IS NULL) OR ([val] = @Original_val)));
|
||||
SELECT idxNota, dataNota, userNota, nota, idxFiltro, val FROM T_logUtente WHERE (idxNota = @idxNota)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataNota" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userNota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@val" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dataNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataNota" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_userNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userNota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_nota" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_val" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_val" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="val" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxNota" ColumnName="idxNota" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxNota" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxNota" DataSetColumn="idxNota" />
|
||||
<Mapping SourceColumn="dataNota" DataSetColumn="dataNota" />
|
||||
<Mapping SourceColumn="userNota" DataSetColumn="userNota" />
|
||||
<Mapping SourceColumn="nota" DataSetColumn="nota" />
|
||||
<Mapping SourceColumn="idxFiltro" DataSetColumn="idxFiltro" />
|
||||
<Mapping SourceColumn="val" DataSetColumn="val" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.T_logUtente" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFiltro" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="getByFiltro" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFiltro" UserSourceName="getByFiltro">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT T_logUtente.idxNota, T_logUtente.dataNota, T_logUtente.userNota, T_logUtente.nota, T_logUtente.idxFiltro, T_logUtente.val
|
||||
FROM T_logUtente INNER JOIN
|
||||
T_anagFiltro ON T_logUtente.idxFiltro = T_anagFiltro.idxFiltro
|
||||
WHERE (T_anagFiltro.filtro LIKE @filtro + '%')</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="filtro" ColumnName="filtro" DataSourceName="Flamma_SC.dbo.T_anagFiltro" DataTypeServer="nvarchar(300)" DbType="String" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="NVarChar" Scale="0" Size="300" SourceColumn="filtro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.sp_insLogUtFull" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_insLogUtFull" Modifier="Public" Name="sp_insLogUtFull" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="sp_insLogUtFull">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_insLogUtFull</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@userNota" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@nota" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@val" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="300" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="InputOutput" ParameterName="@idxNota" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_logUtenteTableAdapter" GeneratorDataComponentClassName="v_logUtenteTableAdapter" Name="v_logUtente" UserDataComponentName="v_logUtenteTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.v_logUtente" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxNota, filtro, dataNota, userNota, nota, val, numRec FROM dbo.v_logUtente</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxNota" DataSetColumn="idxNota" />
|
||||
<Mapping SourceColumn="filtro" DataSetColumn="filtro" />
|
||||
<Mapping SourceColumn="dataNota" DataSetColumn="dataNota" />
|
||||
<Mapping SourceColumn="userNota" DataSetColumn="userNota" />
|
||||
<Mapping SourceColumn="nota" DataSetColumn="nota" />
|
||||
<Mapping SourceColumn="val" DataSetColumn="val" />
|
||||
<Mapping SourceColumn="numRec" DataSetColumn="numRec" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.S_v_logUtente" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFiltro" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="getByFiltro" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFiltro" UserSourceName="getByFiltro">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.S_v_logUtente</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="T_anagRecordTableAdapter" GeneratorDataComponentClassName="T_anagRecordTableAdapter" Name="T_anagRecord" UserDataComponentName="T_anagRecordTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.T_anagRecord" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[T_anagRecord] WHERE (([idxTipoRec] = @Original_idxTipoRec) AND ((@IsNull_descrRec = 1 AND [descrRec] IS NULL) OR ([descrRec] = @Original_descrRec)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_descrRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_descrRec" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[T_anagRecord] ([descrRec]) VALUES (@descrRec);
|
||||
SELECT idxTipoRec, descrRec FROM T_anagRecord WHERE (idxTipoRec = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrRec" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxTipoRec, descrRec FROM dbo.T_anagRecord</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[T_anagRecord] SET [descrRec] = @descrRec WHERE (([idxTipoRec] = @Original_idxTipoRec) AND ((@IsNull_descrRec = 1 AND [descrRec] IS NULL) OR ([descrRec] = @Original_descrRec)));
|
||||
SELECT idxTipoRec, descrRec FROM T_anagRecord WHERE (idxTipoRec = @idxTipoRec)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrRec" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_descrRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_descrRec" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxTipoRec" ColumnName="idxTipoRec" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxTipoRec" DataSetColumn="idxTipoRec" />
|
||||
<Mapping SourceColumn="descrRec" DataSetColumn="descrRec" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="T_logRecordsTableAdapter" GeneratorDataComponentClassName="T_logRecordsTableAdapter" Name="T_logRecords" UserDataComponentName="T_logRecordsTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.T_logRecords" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[T_logRecords] WHERE (([idxRecord] = @Original_idxRecord) AND ([dataOra] = @Original_dataOra) AND ([userEv] = @Original_userEv) AND ((@IsNull_pagina = 1 AND [pagina] IS NULL) OR ([pagina] = @Original_pagina)) AND ((@IsNull_idxTipoRec = 1 AND [idxTipoRec] IS NULL) OR ([idxTipoRec] = @Original_idxTipoRec)) AND ((@IsNull_idxFiltro = 1 AND [idxFiltro] IS NULL) OR ([idxFiltro] = @Original_idxFiltro)) AND ((@IsNull_valOrig = 1 AND [valOrig] IS NULL) OR ([valOrig] = @Original_valOrig)) AND ((@IsNull_valNew = 1 AND [valNew] IS NULL) OR ([valNew] = @Original_valNew)) AND ((@IsNull_idxNota = 1 AND [idxNota] IS NULL) OR ([idxNota] = @Original_idxNota)) AND ((@IsNull_cestinato = 1 AND [cestinato] IS NULL) OR ([cestinato] = @Original_cestinato)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOra" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userEv" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userEv" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pagina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_pagina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valOrig" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valOrig" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valNew" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valNew" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cestinato" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_cestinato" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[T_logRecords] ([dataOra], [userEv], [pagina], [idxTipoRec], [idxFiltro], [valOrig], [valNew], [idxNota], [cestinato]) VALUES (@dataOra, @userEv, @pagina, @idxTipoRec, @idxFiltro, @valOrig, @valNew, @idxNota, @cestinato);
|
||||
SELECT idxRecord, dataOra, userEv, pagina, idxTipoRec, idxFiltro, valOrig, valNew, idxNota, cestinato FROM T_logRecords WHERE (idxRecord = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOra" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userEv" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userEv" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@pagina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valOrig" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valNew" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@cestinato" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT * FROM dbo.T_logRecords</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[T_logRecords] SET [dataOra] = @dataOra, [userEv] = @userEv, [pagina] = @pagina, [idxTipoRec] = @idxTipoRec, [idxFiltro] = @idxFiltro, [valOrig] = @valOrig, [valNew] = @valNew, [idxNota] = @idxNota, [cestinato] = @cestinato WHERE (([idxRecord] = @Original_idxRecord) AND ([dataOra] = @Original_dataOra) AND ([userEv] = @Original_userEv) AND ((@IsNull_pagina = 1 AND [pagina] IS NULL) OR ([pagina] = @Original_pagina)) AND ((@IsNull_idxTipoRec = 1 AND [idxTipoRec] IS NULL) OR ([idxTipoRec] = @Original_idxTipoRec)) AND ((@IsNull_idxFiltro = 1 AND [idxFiltro] IS NULL) OR ([idxFiltro] = @Original_idxFiltro)) AND ((@IsNull_valOrig = 1 AND [valOrig] IS NULL) OR ([valOrig] = @Original_valOrig)) AND ((@IsNull_valNew = 1 AND [valNew] IS NULL) OR ([valNew] = @Original_valNew)) AND ((@IsNull_idxNota = 1 AND [idxNota] IS NULL) OR ([idxNota] = @Original_idxNota)) AND ((@IsNull_cestinato = 1 AND [cestinato] IS NULL) OR ([cestinato] = @Original_cestinato)));
|
||||
SELECT idxRecord, dataOra, userEv, pagina, idxTipoRec, idxFiltro, valOrig, valNew, idxNota, cestinato FROM T_logRecords WHERE (idxRecord = @idxRecord)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOra" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@userEv" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userEv" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@pagina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valOrig" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@valNew" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@cestinato" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_dataOra" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dataOra" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_userEv" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="userEv" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pagina" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_pagina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="pagina" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxTipoRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxTipoRec" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFiltro" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFiltro" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valOrig" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valOrig" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valOrig" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_valNew" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_valNew" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="valNew" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxNota" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxNota" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cestinato" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_cestinato" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="cestinato" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxRecord" ColumnName="idxRecord" DataSourceName="Flamma_SC.dbo.T_logRecords" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxRecord" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="dataOra" DataSetColumn="dataOra" />
|
||||
<Mapping SourceColumn="userEv" DataSetColumn="userEv" />
|
||||
<Mapping SourceColumn="pagina" DataSetColumn="pagina" />
|
||||
<Mapping SourceColumn="idxTipoRec" DataSetColumn="idxTipoRec" />
|
||||
<Mapping SourceColumn="idxFiltro" DataSetColumn="idxFiltro" />
|
||||
<Mapping SourceColumn="valOrig" DataSetColumn="valOrig" />
|
||||
<Mapping SourceColumn="valNew" DataSetColumn="valNew" />
|
||||
<Mapping SourceColumn="idxNota" DataSetColumn="idxNota" />
|
||||
<Mapping SourceColumn="cestinato" DataSetColumn="cestinato" />
|
||||
<Mapping SourceColumn="idxRecord" DataSetColumn="idxRecord" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.sp_cestinaLogRecFiltro" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_cestinaLogRecFiltro" Modifier="Public" Name="sp_cestinaLogRecFiltro" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="sp_cestinaLogRecFiltro">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_cestinaLogRecFiltro</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.sp_cestinaLogRecUt" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_cestinaLogRecUt" Modifier="Public" Name="sp_cestinaLogRecUt" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="sp_cestinaLogRecUt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_cestinaLogRecUt</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@userEv" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.sp_deleteLogMaxData" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_deleteLogMaxData" Modifier="Public" Name="sp_deleteLogMaxData" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="sp_deleteLogMaxData">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_deleteLogMaxData</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dataMax" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.sp_deleteLogUser" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_deleteLogUser" Modifier="Public" Name="sp_deleteLogUser" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="sp_deleteLogUser">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_deleteLogUser</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@userEv" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="logger.dbo.sp_insRecFull" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_insRecFull" Modifier="Public" Name="sp_insRecFull" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="sp_insRecFull">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_insRecFull</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@userEv" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pagina" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@valOrig" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@valNew" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@evento" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="300" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.sp_setLastRec2nota" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_setLastRec2nota" Modifier="Public" Name="sp_setLastRec2nota" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="sp_setLastRec2nota">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_setLastRec2nota</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="300" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxNota" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.sp_setRec2nota" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="sp_setRec2nota" Modifier="Public" Name="sp_setRec2nota" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="sp_setRec2nota">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.sp_setRec2nota</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxRecord" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxNota" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_logRecordsTableAdapter" GeneratorDataComponentClassName="v_logRecordsTableAdapter" Name="v_logRecords" UserDataComponentName="v_logRecordsTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.v_logRecords" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxRecord, dataOra, userEv, SIGLA, pagina, descrRec, filtro, valOrig, valNew, idxNota, cestinato FROM dbo.v_logRecords</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxRecord" DataSetColumn="idxRecord" />
|
||||
<Mapping SourceColumn="dataOra" DataSetColumn="dataOra" />
|
||||
<Mapping SourceColumn="userEv" DataSetColumn="userEv" />
|
||||
<Mapping SourceColumn="SIGLA" DataSetColumn="SIGLA" />
|
||||
<Mapping SourceColumn="pagina" DataSetColumn="pagina" />
|
||||
<Mapping SourceColumn="descrRec" DataSetColumn="descrRec" />
|
||||
<Mapping SourceColumn="filtro" DataSetColumn="filtro" />
|
||||
<Mapping SourceColumn="valOrig" DataSetColumn="valOrig" />
|
||||
<Mapping SourceColumn="valNew" DataSetColumn="valNew" />
|
||||
<Mapping SourceColumn="idxNota" DataSetColumn="idxNota" />
|
||||
<Mapping SourceColumn="cestinato" DataSetColumn="cestinato" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="loggerConnectionString (Settings)" DbObjectName="Flamma_SC.dbo.S_v_logRecords" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFiltro" GetMethodModifier="Public" GetMethodName="getByFiltro" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFiltro" UserSourceName="getByFiltro">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.S_v_logRecords</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@filtro" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_logging" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DS_logging" msprop:Generator_DataSetName="DS_logging">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="T_anagFiltro" msprop:Generator_UserTableName="T_anagFiltro" msprop:Generator_RowDeletedName="T_anagFiltroRowDeleted" msprop:Generator_RowChangedName="T_anagFiltroRowChanged" msprop:Generator_RowClassName="T_anagFiltroRow" msprop:Generator_RowChangingName="T_anagFiltroRowChanging" msprop:Generator_RowEvArgName="T_anagFiltroRowChangeEvent" msprop:Generator_RowEvHandlerName="T_anagFiltroRowChangeEventHandler" msprop:Generator_TableClassName="T_anagFiltroDataTable" msprop:Generator_TableVarName="tableT_anagFiltro" msprop:Generator_RowDeletingName="T_anagFiltroRowDeleting" msprop:Generator_TablePropName="T_anagFiltro">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxFiltro" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="idxFiltro" msprop:Generator_ColumnPropNameInRow="idxFiltro" msprop:Generator_ColumnVarNameInTable="columnidxFiltro" msprop:Generator_ColumnPropNameInTable="idxFiltroColumn" type="xs:int" />
|
||||
<xs:element name="filtro" msprop:Generator_UserColumnName="filtro" msprop:Generator_ColumnPropNameInRow="filtro" msprop:Generator_ColumnVarNameInTable="columnfiltro" msprop:Generator_ColumnPropNameInTable="filtroColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="T_logUtente" msprop:Generator_UserTableName="T_logUtente" msprop:Generator_RowDeletedName="T_logUtenteRowDeleted" msprop:Generator_RowChangedName="T_logUtenteRowChanged" msprop:Generator_RowClassName="T_logUtenteRow" msprop:Generator_RowChangingName="T_logUtenteRowChanging" msprop:Generator_RowEvArgName="T_logUtenteRowChangeEvent" msprop:Generator_RowEvHandlerName="T_logUtenteRowChangeEventHandler" msprop:Generator_TableClassName="T_logUtenteDataTable" msprop:Generator_TableVarName="tableT_logUtente" msprop:Generator_RowDeletingName="T_logUtenteRowDeleting" msprop:Generator_TablePropName="T_logUtente">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxNota" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="idxNota" msprop:Generator_ColumnVarNameInTable="columnidxNota" msprop:Generator_ColumnPropNameInRow="idxNota" msprop:Generator_ColumnPropNameInTable="idxNotaColumn" type="xs:int" />
|
||||
<xs:element name="dataNota" msprop:Generator_UserColumnName="dataNota" msprop:Generator_ColumnVarNameInTable="columndataNota" msprop:Generator_ColumnPropNameInRow="dataNota" msprop:Generator_ColumnPropNameInTable="dataNotaColumn" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="userNota" msprop:Generator_UserColumnName="userNota" msprop:Generator_ColumnVarNameInTable="columnuserNota" msprop:Generator_ColumnPropNameInRow="userNota" msprop:Generator_ColumnPropNameInTable="userNotaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nota" msprop:Generator_UserColumnName="nota" msprop:Generator_ColumnVarNameInTable="columnnota" msprop:Generator_ColumnPropNameInRow="nota" msprop:Generator_ColumnPropNameInTable="notaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="idxFiltro" msprop:Generator_UserColumnName="idxFiltro" msprop:Generator_ColumnVarNameInTable="columnidxFiltro" msprop:Generator_ColumnPropNameInRow="idxFiltro" msprop:Generator_ColumnPropNameInTable="idxFiltroColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="val" msprop:Generator_UserColumnName="val" msprop:Generator_ColumnVarNameInTable="columnval" msprop:Generator_ColumnPropNameInRow="val" msprop:Generator_ColumnPropNameInTable="valColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_logUtente" msprop:Generator_UserTableName="v_logUtente" msprop:Generator_RowDeletedName="v_logUtenteRowDeleted" msprop:Generator_RowChangedName="v_logUtenteRowChanged" msprop:Generator_RowClassName="v_logUtenteRow" msprop:Generator_RowChangingName="v_logUtenteRowChanging" msprop:Generator_RowEvArgName="v_logUtenteRowChangeEvent" msprop:Generator_RowEvHandlerName="v_logUtenteRowChangeEventHandler" msprop:Generator_TableClassName="v_logUtenteDataTable" msprop:Generator_TableVarName="tablev_logUtente" msprop:Generator_RowDeletingName="v_logUtenteRowDeleting" msprop:Generator_TablePropName="v_logUtente">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxNota" msprop:Generator_UserColumnName="idxNota" msprop:Generator_ColumnVarNameInTable="columnidxNota" msprop:Generator_ColumnPropNameInRow="idxNota" msprop:Generator_ColumnPropNameInTable="idxNotaColumn" type="xs:int" />
|
||||
<xs:element name="filtro" msdata:ReadOnly="true" msprop:Generator_UserColumnName="filtro" msprop:Generator_ColumnVarNameInTable="columnfiltro" msprop:Generator_ColumnPropNameInRow="filtro" msprop:Generator_ColumnPropNameInTable="filtroColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dataNota" msprop:Generator_UserColumnName="dataNota" msprop:Generator_ColumnVarNameInTable="columndataNota" msprop:Generator_ColumnPropNameInRow="dataNota" msprop:Generator_ColumnPropNameInTable="dataNotaColumn" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="userNota" msprop:Generator_UserColumnName="userNota" msprop:Generator_ColumnVarNameInTable="columnuserNota" msprop:Generator_ColumnPropNameInRow="userNota" msprop:Generator_ColumnPropNameInTable="userNotaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="nota" msprop:Generator_UserColumnName="nota" msprop:Generator_ColumnVarNameInTable="columnnota" msprop:Generator_ColumnPropNameInRow="nota" msprop:Generator_ColumnPropNameInTable="notaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="val" msprop:Generator_UserColumnName="val" msprop:Generator_ColumnVarNameInTable="columnval" msprop:Generator_ColumnPropNameInRow="val" msprop:Generator_ColumnPropNameInTable="valColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="numRec" msprop:Generator_UserColumnName="numRec" msprop:Generator_ColumnVarNameInTable="columnnumRec" msprop:Generator_ColumnPropNameInRow="numRec" msprop:Generator_ColumnPropNameInTable="numRecColumn" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="T_anagRecord" msprop:Generator_UserTableName="T_anagRecord" msprop:Generator_RowDeletedName="T_anagRecordRowDeleted" msprop:Generator_RowChangedName="T_anagRecordRowChanged" msprop:Generator_RowClassName="T_anagRecordRow" msprop:Generator_RowChangingName="T_anagRecordRowChanging" msprop:Generator_RowEvArgName="T_anagRecordRowChangeEvent" msprop:Generator_RowEvHandlerName="T_anagRecordRowChangeEventHandler" msprop:Generator_TableClassName="T_anagRecordDataTable" msprop:Generator_TableVarName="tableT_anagRecord" msprop:Generator_RowDeletingName="T_anagRecordRowDeleting" msprop:Generator_TablePropName="T_anagRecord">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxTipoRec" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="idxTipoRec" msprop:Generator_ColumnVarNameInTable="columnidxTipoRec" msprop:Generator_ColumnPropNameInRow="idxTipoRec" msprop:Generator_ColumnPropNameInTable="idxTipoRecColumn" type="xs:int" />
|
||||
<xs:element name="descrRec" msprop:Generator_UserColumnName="descrRec" msprop:Generator_ColumnVarNameInTable="columndescrRec" msprop:Generator_ColumnPropNameInRow="descrRec" msprop:Generator_ColumnPropNameInTable="descrRecColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="T_logRecords" msprop:Generator_UserTableName="T_logRecords" msprop:Generator_RowDeletedName="T_logRecordsRowDeleted" msprop:Generator_RowChangedName="T_logRecordsRowChanged" msprop:Generator_RowClassName="T_logRecordsRow" msprop:Generator_RowChangingName="T_logRecordsRowChanging" msprop:Generator_RowEvArgName="T_logRecordsRowChangeEvent" msprop:Generator_RowEvHandlerName="T_logRecordsRowChangeEventHandler" msprop:Generator_TableClassName="T_logRecordsDataTable" msprop:Generator_TableVarName="tableT_logRecords" msprop:Generator_RowDeletingName="T_logRecordsRowDeleting" msprop:Generator_TablePropName="T_logRecords">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dataOra" msprop:Generator_UserColumnName="dataOra" msprop:Generator_ColumnVarNameInTable="columndataOra" msprop:Generator_ColumnPropNameInRow="dataOra" msprop:Generator_ColumnPropNameInTable="dataOraColumn" type="xs:dateTime" />
|
||||
<xs:element name="userEv" msprop:Generator_UserColumnName="userEv" msprop:Generator_ColumnVarNameInTable="columnuserEv" msprop:Generator_ColumnPropNameInRow="userEv" msprop:Generator_ColumnPropNameInTable="userEvColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pagina" msprop:Generator_UserColumnName="pagina" msprop:Generator_ColumnVarNameInTable="columnpagina" msprop:Generator_ColumnPropNameInRow="pagina" msprop:Generator_ColumnPropNameInTable="paginaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="idxTipoRec" msprop:Generator_UserColumnName="idxTipoRec" msprop:Generator_ColumnVarNameInTable="columnidxTipoRec" msprop:Generator_ColumnPropNameInRow="idxTipoRec" msprop:Generator_ColumnPropNameInTable="idxTipoRecColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="idxFiltro" msprop:Generator_UserColumnName="idxFiltro" msprop:Generator_ColumnVarNameInTable="columnidxFiltro" msprop:Generator_ColumnPropNameInRow="idxFiltro" msprop:Generator_ColumnPropNameInTable="idxFiltroColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="valOrig" msprop:Generator_UserColumnName="valOrig" msprop:Generator_ColumnVarNameInTable="columnvalOrig" msprop:Generator_ColumnPropNameInRow="valOrig" msprop:Generator_ColumnPropNameInTable="valOrigColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="valNew" msprop:Generator_UserColumnName="valNew" msprop:Generator_ColumnVarNameInTable="columnvalNew" msprop:Generator_ColumnPropNameInRow="valNew" msprop:Generator_ColumnPropNameInTable="valNewColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="idxNota" msprop:Generator_UserColumnName="idxNota" msprop:Generator_ColumnVarNameInTable="columnidxNota" msprop:Generator_ColumnPropNameInRow="idxNota" msprop:Generator_ColumnPropNameInTable="idxNotaColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="cestinato" msprop:Generator_UserColumnName="cestinato" msprop:Generator_ColumnVarNameInTable="columncestinato" msprop:Generator_ColumnPropNameInRow="cestinato" msprop:Generator_ColumnPropNameInTable="cestinatoColumn" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="idxRecord" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="idxRecord" msprop:Generator_ColumnVarNameInTable="columnidxRecord" msprop:Generator_ColumnPropNameInRow="idxRecord" msprop:Generator_ColumnPropNameInTable="idxRecordColumn" type="xs:int" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_logRecords" msprop:Generator_UserTableName="v_logRecords" msprop:Generator_RowDeletedName="v_logRecordsRowDeleted" msprop:Generator_RowChangedName="v_logRecordsRowChanged" msprop:Generator_RowClassName="v_logRecordsRow" msprop:Generator_RowChangingName="v_logRecordsRowChanging" msprop:Generator_RowEvArgName="v_logRecordsRowChangeEvent" msprop:Generator_RowEvHandlerName="v_logRecordsRowChangeEventHandler" msprop:Generator_TableClassName="v_logRecordsDataTable" msprop:Generator_TableVarName="tablev_logRecords" msprop:Generator_RowDeletingName="v_logRecordsRowDeleting" msprop:Generator_TablePropName="v_logRecords">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxRecord" msprop:Generator_UserColumnName="idxRecord" msprop:Generator_ColumnVarNameInTable="columnidxRecord" msprop:Generator_ColumnPropNameInRow="idxRecord" msprop:Generator_ColumnPropNameInTable="idxRecordColumn" type="xs:int" />
|
||||
<xs:element name="dataOra" msprop:Generator_UserColumnName="dataOra" msprop:Generator_ColumnVarNameInTable="columndataOra" msprop:Generator_ColumnPropNameInRow="dataOra" msprop:Generator_ColumnPropNameInTable="dataOraColumn" type="xs:dateTime" />
|
||||
<xs:element name="userEv" msprop:Generator_UserColumnName="userEv" msprop:Generator_ColumnVarNameInTable="columnuserEv" msprop:Generator_ColumnPropNameInRow="userEv" msprop:Generator_ColumnPropNameInTable="userEvColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="SIGLA" msprop:Generator_UserColumnName="SIGLA" msprop:Generator_ColumnVarNameInTable="columnSIGLA" msprop:Generator_ColumnPropNameInRow="SIGLA" msprop:Generator_ColumnPropNameInTable="SIGLAColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pagina" msprop:Generator_UserColumnName="pagina" msprop:Generator_ColumnVarNameInTable="columnpagina" msprop:Generator_ColumnPropNameInRow="pagina" msprop:Generator_ColumnPropNameInTable="paginaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="descrRec" msprop:Generator_UserColumnName="descrRec" msprop:Generator_ColumnVarNameInTable="columndescrRec" msprop:Generator_ColumnPropNameInRow="descrRec" msprop:Generator_ColumnPropNameInTable="descrRecColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="filtro" msprop:Generator_UserColumnName="filtro" msprop:Generator_ColumnVarNameInTable="columnfiltro" msprop:Generator_ColumnPropNameInRow="filtro" msprop:Generator_ColumnPropNameInTable="filtroColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="300" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="valOrig" msprop:Generator_UserColumnName="valOrig" msprop:Generator_ColumnVarNameInTable="columnvalOrig" msprop:Generator_ColumnPropNameInRow="valOrig" msprop:Generator_ColumnPropNameInTable="valOrigColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="valNew" msprop:Generator_UserColumnName="valNew" msprop:Generator_ColumnVarNameInTable="columnvalNew" msprop:Generator_ColumnPropNameInRow="valNew" msprop:Generator_ColumnPropNameInTable="valNewColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="idxNota" msprop:Generator_UserColumnName="idxNota" msprop:Generator_ColumnVarNameInTable="columnidxNota" msprop:Generator_ColumnPropNameInRow="idxNota" msprop:Generator_ColumnPropNameInTable="idxNotaColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="cestinato" msprop:Generator_UserColumnName="cestinato" msprop:Generator_ColumnVarNameInTable="columncestinato" msprop:Generator_ColumnPropNameInRow="cestinato" msprop:Generator_ColumnPropNameInTable="cestinatoColumn" type="xs:boolean" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:T_anagFiltro" />
|
||||
<xs:field xpath="mstns:idxFiltro" />
|
||||
</xs:unique>
|
||||
<xs:unique name="T_logUtente_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:T_logUtente" />
|
||||
<xs:field xpath="mstns:idxNota" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_logUtente_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_logUtente" />
|
||||
<xs:field xpath="mstns:idxNota" />
|
||||
</xs:unique>
|
||||
<xs:unique name="T_anagRecord_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:T_anagRecord" />
|
||||
<xs:field xpath="mstns:idxTipoRec" />
|
||||
</xs:unique>
|
||||
<xs:unique name="T_logRecords_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:T_logRecords" />
|
||||
<xs:field xpath="mstns:idxRecord" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_logRecords_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_logRecords" />
|
||||
<xs:field xpath="mstns:idxRecord" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_T_logEventi_T_logUtente1" msdata:parent="T_logUtente" msdata:child="T_logRecords" msdata:parentkey="idxNota" msdata:childkey="idxNota" msprop:Generator_UserRelationName="FK_T_logEventi_T_logUtente1" msprop:Generator_RelationVarName="relationFK_T_logEventi_T_logUtente1" msprop:Generator_UserChildTable="T_logRecords" msprop:Generator_UserParentTable="T_logUtente" msprop:Generator_ParentPropName="T_logUtenteRow" msprop:Generator_ChildPropName="_GetT_logRecordsRows" />
|
||||
<msdata:Relationship name="FK_T_logRecords_T_anagFiltro1" msdata:parent="T_anagFiltro" msdata:child="T_logRecords" msdata:parentkey="idxFiltro" msdata:childkey="idxFiltro" msprop:Generator_UserRelationName="FK_T_logRecords_T_anagFiltro1" msprop:Generator_RelationVarName="relationFK_T_logRecords_T_anagFiltro1" msprop:Generator_UserChildTable="T_logRecords" msprop:Generator_UserParentTable="T_anagFiltro" msprop:Generator_ParentPropName="T_anagFiltroRow" msprop:Generator_ChildPropName="GetT_logRecordsRows" />
|
||||
<msdata:Relationship name="FK_T_logRecords_T_angrRecord1" msdata:parent="T_anagRecord" msdata:child="T_logRecords" msdata:parentkey="idxTipoRec" msdata:childkey="idxTipoRec" msprop:Generator_UserRelationName="FK_T_logRecords_T_angrRecord1" msprop:Generator_RelationVarName="relationFK_T_logRecords_T_angrRecord1" msprop:Generator_UserChildTable="T_logRecords" msprop:Generator_UserParentTable="T_anagRecord" msprop:Generator_ParentPropName="T_anagRecordRow" msprop:Generator_ChildPropName="_GetT_logRecordsRows" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="110" ViewPortY="114" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:T_anagFiltro" ZOrder="9" X="175" Y="334" Height="105" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:T_logUtente" ZOrder="8" X="896" Y="238" Height="207" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
|
||||
<Shape ID="DesignTable:v_logUtente" ZOrder="7" X="567" Y="580" Height="207" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="143" />
|
||||
<Shape ID="DesignTable:T_anagRecord" ZOrder="6" X="185" Y="164" Height="105" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:T_logRecords" ZOrder="5" X="502" Y="167" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" />
|
||||
<Shape ID="DesignTable:v_logRecords" ZOrder="1" X="164" Y="553" Height="275" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="211" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_T_logEventi_T_logUtente1" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>896</X>
|
||||
<Y>292</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>802</X>
|
||||
<Y>292</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_T_logRecords_T_anagFiltro1" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>389</X>
|
||||
<Y>343</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>502</X>
|
||||
<Y>343</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_T_logRecords_T_angrRecord1" ZOrder="2" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>408</X>
|
||||
<Y>198</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>502</X>
|
||||
<Y>198</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
+10176
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:CDC" ZOrder="5" X="455" Y="51" Height="204" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="96" />
|
||||
<Shape ID="DesignTable:MODULO" ZOrder="18" X="475" Y="625" Height="111" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:FUNZIONE" ZOrder="9" X="146" Y="396" Height="122" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:Permessi" ZOrder="17" X="126" Y="-26" Height="173" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
|
||||
<Shape ID="DesignTable:Permessi2Funzione" ZOrder="16" X="121" Y="212" Height="122" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:DIRITTI" ZOrder="6" X="434" Y="305" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:UTENTE" ZOrder="1" X="792" Y="240" Height="395" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="232" />
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="8" X="878" Y="739" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
|
||||
<Shape ID="DesignTable:UserDataExt" ZOrder="4" X="129" Y="802" Height="229" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:UserData" ZOrder="3" X="130" Y="549" Height="191" Width="259" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Permessi2Funzion_FUNZIONE" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>182</X>
|
||||
<Y>396</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>182</X>
|
||||
<Y>334</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Permessi2Funzion_Permessi" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>166</X>
|
||||
<Y>147</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>166</X>
|
||||
<Y>212</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_CDC1" ZOrder="13" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>569</X>
|
||||
<Y>255</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>569</X>
|
||||
<Y>305</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_FUNZIONE" ZOrder="12" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>331</X>
|
||||
<Y>396</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>331</X>
|
||||
<Y>364</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>434</X>
|
||||
<Y>364</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_MODULO1" ZOrder="11" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>603</X>
|
||||
<Y>625</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>603</X>
|
||||
<Y>553</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_DIRITTI_UTENTE" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>792</X>
|
||||
<Y>387</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>734</X>
|
||||
<Y>387</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_UTENTE_CDC" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>720</X>
|
||||
<Y>255</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>720</X>
|
||||
<Y>263</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>792</X>
|
||||
<Y>263</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_UserDataExt_UserData" ZOrder="2" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>237</X>
|
||||
<Y>740</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>237</X>
|
||||
<Y>802</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
+4577
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,363 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DataLayer_generic" targetNamespace="http://tempuri.org/DataLayer_generic.xsd" xmlns:mstns="http://tempuri.org/DataLayer_generic.xsd" xmlns="http://tempuri.org/DataLayer_generic.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="2" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SteamWare_BremboConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="SteamWare_BremboConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.SteamWare_BremboConnectionString1" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SteamWare_BremboConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="SteamWare_BremboConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.SteamWare_BremboConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SteamWare_VocabolarioConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SteamWare_VocabolarioConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.SteamWare.Properties.Settings.GlobalReference.Default.SteamWare_VocabolarioConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VocabolarioTableAdapter" GeneratorDataComponentClassName="VocabolarioTableAdapter" Name="Vocabolario" UserDataComponentName="VocabolarioTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.dbo.Vocabolario" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Vocabolario] WHERE (([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma) AND ([Traduzione] = @Original_Traduzione))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lemma" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Traduzione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (@Lingua, @Lemma, @Traduzione);
|
||||
SELECT Lingua, Lemma, Traduzione FROM Vocabolario WHERE (Lemma = @Lemma) AND (Lingua = @Lingua)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lemma" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Traduzione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT Lingua, Lemma, Traduzione FROM dbo.Vocabolario</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Vocabolario] SET [Lingua] = @Lingua, [Lemma] = @Lemma, [Traduzione] = @Traduzione WHERE (([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma) AND ([Traduzione] = @Original_Traduzione));
|
||||
SELECT Lingua, Lemma, Traduzione FROM Vocabolario WHERE (Lemma = @Lemma) AND (Lingua = @Lingua)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lemma" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Traduzione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lemma" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Traduzione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="Lingua" DataSetColumn="Lingua" />
|
||||
<Mapping SourceColumn="Lemma" DataSetColumn="Lemma" />
|
||||
<Mapping SourceColumn="Traduzione" DataSetColumn="Traduzione" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>voc.stp_deleteQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.voc.stp_getByLingua" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByLingua" GetMethodModifier="Public" GetMethodName="getByLingua" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByLingua" UserSourceName="getByLingua">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>voc.stp_getByLingua</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.voc.stp_getByLinguaLemmaLike" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByLinguaLemmaLike" GetMethodModifier="Public" GetMethodName="getByLinguaLemmaLike" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByLinguaLemmaLike" UserSourceName="getByLinguaLemmaLike">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>voc.stp_getByLinguaLemmaLike</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@search" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdateQuery">
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>voc.stp_updateQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.voc.stp_upsertLemma" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="upsertLemma" Modifier="Public" Name="upsertLemma" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="upsertLemma">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>voc.stp_upsertLemma</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lemma" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Traduzione" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LingueTableAdapter" GeneratorDataComponentClassName="LingueTableAdapter" Name="Lingue" UserDataComponentName="LingueTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.dbo.Lingue" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[Lingue] WHERE (([Lingua] = @Original_Lingua) AND ([DescrizioneLingua] = @Original_DescrizioneLingua))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrizioneLingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrizioneLingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[Lingue] ([Lingua], [DescrizioneLingua]) VALUES (@Lingua, @DescrizioneLingua);
|
||||
SELECT Lingua, DescrizioneLingua FROM Lingue WHERE (Lingua = @Lingua)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrizioneLingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrizioneLingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Lingua, DescrizioneLingua FROM dbo.Lingue</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[Lingue] SET [Lingua] = @Lingua, [DescrizioneLingua] = @DescrizioneLingua WHERE (([Lingua] = @Original_Lingua) AND ([DescrizioneLingua] = @Original_DescrizioneLingua));
|
||||
SELECT Lingua, DescrizioneLingua FROM Lingue WHERE (Lingua = @Lingua)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrizioneLingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrizioneLingua" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrizioneLingua" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrizioneLingua" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="Lingua" DataSetColumn="Lingua" />
|
||||
<Mapping SourceColumn="DescrizioneLingua" DataSetColumn="DescrizioneLingua" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LogUpdateDbTableAdapter" GeneratorDataComponentClassName="LogUpdateDbTableAdapter" Name="LogUpdateDb" UserDataComponentName="LogUpdateDbTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectName="SteamWare_Vocabolario.dbo.LogUpdateDb" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[LogUpdateDb] WHERE (([Versione] = @Original_Versione) AND ((@IsNull_Data = 1 AND [Data] IS NULL) OR ([Data] = @Original_Data)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Versione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Versione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Data" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[LogUpdateDb] ([Versione], [Data]) VALUES (@Versione, @Data);
|
||||
SELECT Versione, Data FROM LogUpdateDb WHERE (Versione = @Versione)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Versione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Versione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Versione, Data FROM dbo.LogUpdateDb</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[LogUpdateDb] SET [Versione] = @Versione, [Data] = @Data WHERE (([Versione] = @Original_Versione) AND ((@IsNull_Data = 1 AND [Data] IS NULL) OR ([Data] = @Original_Data)));
|
||||
SELECT Versione, Data FROM LogUpdateDb WHERE (Versione = @Versione)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Versione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Versione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Versione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Versione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Data" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Data" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="Versione" DataSetColumn="Versione" />
|
||||
<Mapping SourceColumn="Data" DataSetColumn="Data" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="SteamWare_VocabolarioConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="getDbVers" Modifier="Public" Name="getDbVers" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getDbVers">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT MAX(Versione) AS Versione
|
||||
FROM LogUpdateDb</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DataLayer_generic" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="DataLayer_generic" msprop:Generator_UserDSName="DataLayer_generic">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="selettore" msprop:Generator_UserTableName="selettore" msprop:Generator_RowEvArgName="selettoreRowChangeEvent" msprop:Generator_TableVarName="tableselettore" msprop:Generator_TablePropName="selettore" msprop:Generator_RowDeletingName="selettoreRowDeleting" msprop:Generator_RowChangingName="selettoreRowChanging" msprop:Generator_RowDeletedName="selettoreRowDeleted" msprop:Generator_RowEvHandlerName="selettoreRowChangeEventHandler" msprop:Generator_TableClassName="selettoreDataTable" msprop:Generator_RowChangedName="selettoreRowChanged" msprop:Generator_RowClassName="selettoreRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Vocabolario" msprop:Generator_UserTableName="Vocabolario" msprop:Generator_RowEvArgName="VocabolarioRowChangeEvent" msprop:Generator_TableVarName="tableVocabolario" msprop:Generator_TablePropName="Vocabolario" msprop:Generator_RowDeletingName="VocabolarioRowDeleting" msprop:Generator_RowChangingName="VocabolarioRowChanging" msprop:Generator_RowDeletedName="VocabolarioRowDeleted" msprop:Generator_RowEvHandlerName="VocabolarioRowChangeEventHandler" msprop:Generator_TableClassName="VocabolarioDataTable" msprop:Generator_RowChangedName="VocabolarioRowChanged" msprop:Generator_RowClassName="VocabolarioRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Lingua" msprop:Generator_ColumnVarNameInTable="columnLingua" msprop:Generator_ColumnPropNameInRow="Lingua" msprop:Generator_ColumnPropNameInTable="LinguaColumn" msprop:Generator_UserColumnName="Lingua">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="3" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Lemma" msprop:Generator_ColumnVarNameInTable="columnLemma" msprop:Generator_ColumnPropNameInRow="Lemma" msprop:Generator_ColumnPropNameInTable="LemmaColumn" msprop:Generator_UserColumnName="Lemma">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Traduzione" msprop:Generator_ColumnVarNameInTable="columnTraduzione" msprop:Generator_ColumnPropNameInRow="Traduzione" msprop:Generator_ColumnPropNameInTable="TraduzioneColumn" msprop:Generator_UserColumnName="Traduzione">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Lingue" msprop:Generator_UserTableName="Lingue" msprop:Generator_RowEvArgName="LingueRowChangeEvent" msprop:Generator_TableVarName="tableLingue" msprop:Generator_TablePropName="Lingue" msprop:Generator_RowDeletingName="LingueRowDeleting" msprop:Generator_RowChangingName="LingueRowChanging" msprop:Generator_RowDeletedName="LingueRowDeleted" msprop:Generator_RowEvHandlerName="LingueRowChangeEventHandler" msprop:Generator_TableClassName="LingueDataTable" msprop:Generator_RowChangedName="LingueRowChanged" msprop:Generator_RowClassName="LingueRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Lingua" msprop:Generator_ColumnVarNameInTable="columnLingua" msprop:Generator_ColumnPropNameInRow="Lingua" msprop:Generator_ColumnPropNameInTable="LinguaColumn" msprop:Generator_UserColumnName="Lingua">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="3" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescrizioneLingua" msprop:Generator_ColumnVarNameInTable="columnDescrizioneLingua" msprop:Generator_ColumnPropNameInRow="DescrizioneLingua" msprop:Generator_ColumnPropNameInTable="DescrizioneLinguaColumn" msprop:Generator_UserColumnName="DescrizioneLingua">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="serieDati" msprop:Generator_UserTableName="serieDati" msprop:Generator_RowEvArgName="serieDatiRowChangeEvent" msprop:Generator_TableVarName="tableserieDati" msprop:Generator_TablePropName="serieDati" msprop:Generator_RowDeletingName="serieDatiRowDeleting" msprop:Generator_RowChangingName="serieDatiRowChanging" msprop:Generator_RowDeletedName="serieDatiRowDeleted" msprop:Generator_RowEvHandlerName="serieDatiRowChangeEventHandler" msprop:Generator_TableClassName="serieDatiDataTable" msprop:Generator_RowChangedName="serieDatiRowChanged" msprop:Generator_RowClassName="serieDatiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="valore" msprop:Generator_ColumnVarNameInTable="columnvalore" msprop:Generator_ColumnPropNameInRow="valore" msprop:Generator_ColumnPropNameInTable="valoreColumn" msprop:Generator_UserColumnName="valore" type="xs:double" minOccurs="0" />
|
||||
<xs:element name="colore" msprop:Generator_ColumnVarNameInTable="columncolore" msprop:Generator_ColumnPropNameInRow="colore" msprop:Generator_ColumnPropNameInTable="coloreColumn" msprop:Generator_UserColumnName="colore" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="contatore" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columncontatore" msprop:Generator_ColumnPropNameInRow="contatore" msprop:Generator_ColumnPropNameInTable="contatoreColumn" msprop:Generator_UserColumnName="contatore" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="timeData" msprop:Generator_ColumnVarNameInTable="columntimeData" msprop:Generator_ColumnPropNameInRow="timeData" msprop:Generator_ColumnPropNameInTable="timeDataColumn" msprop:Generator_UserColumnName="timeData" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="files" msprop:Generator_UserTableName="files" msprop:Generator_RowEvArgName="filesRowChangeEvent" msprop:Generator_TableVarName="tablefiles" msprop:Generator_TablePropName="files" msprop:Generator_RowDeletingName="filesRowDeleting" msprop:Generator_RowChangingName="filesRowChanging" msprop:Generator_RowDeletedName="filesRowDeleted" msprop:Generator_RowEvHandlerName="filesRowChangeEventHandler" msprop:Generator_TableClassName="filesDataTable" msprop:Generator_RowChangedName="filesRowChanged" msprop:Generator_RowClassName="filesRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Nome" msprop:Generator_ColumnVarNameInTable="columnNome" msprop:Generator_ColumnPropNameInRow="Nome" msprop:Generator_ColumnPropNameInTable="NomeColumn" msprop:Generator_UserColumnName="Nome" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="dataCreaz" msprop:Generator_ColumnVarNameInTable="columndataCreaz" msprop:Generator_ColumnPropNameInRow="dataCreaz" msprop:Generator_ColumnPropNameInTable="dataCreazColumn" msprop:Generator_UserColumnName="dataCreaz" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="dataMod" msprop:Generator_ColumnVarNameInTable="columndataMod" msprop:Generator_ColumnPropNameInRow="dataMod" msprop:Generator_ColumnPropNameInTable="dataModColumn" msprop:Generator_UserColumnName="dataMod" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="size" msprop:Generator_ColumnVarNameInTable="columnsize" msprop:Generator_ColumnPropNameInRow="size" msprop:Generator_ColumnPropNameInTable="sizeColumn" msprop:Generator_UserColumnName="size" type="xs:double" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="LogUpdateDb" msprop:Generator_UserTableName="LogUpdateDb" msprop:Generator_RowEvArgName="LogUpdateDbRowChangeEvent" msprop:Generator_TableVarName="tableLogUpdateDb" msprop:Generator_TablePropName="LogUpdateDb" msprop:Generator_RowDeletingName="LogUpdateDbRowDeleting" msprop:Generator_RowChangingName="LogUpdateDbRowChanging" msprop:Generator_RowDeletedName="LogUpdateDbRowDeleted" msprop:Generator_RowEvHandlerName="LogUpdateDbRowChangeEventHandler" msprop:Generator_TableClassName="LogUpdateDbDataTable" msprop:Generator_RowChangedName="LogUpdateDbRowChanged" msprop:Generator_RowClassName="LogUpdateDbRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" msprop:Generator_UserColumnName="Versione" type="xs:int" />
|
||||
<xs:element name="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="serieTimeVal" msprop:Generator_UserTableName="serieTimeVal" msprop:Generator_RowEvArgName="serieTimeValRowChangeEvent" msprop:Generator_TableVarName="tableserieTimeVal" msprop:Generator_TablePropName="serieTimeVal" msprop:Generator_RowDeletingName="serieTimeValRowDeleting" msprop:Generator_RowChangingName="serieTimeValRowChanging" msprop:Generator_RowDeletedName="serieTimeValRowDeleted" msprop:Generator_RowEvHandlerName="serieTimeValRowChangeEventHandler" msprop:Generator_TableClassName="serieTimeValDataTable" msprop:Generator_RowChangedName="serieTimeValRowChanged" msprop:Generator_RowClassName="serieTimeValRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="DataStart" msprop:Generator_ColumnVarNameInTable="columnDataStart" msprop:Generator_ColumnPropNameInRow="DataStart" msprop:Generator_ColumnPropNameInTable="DataStartColumn" msprop:Generator_UserColumnName="DataStart" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="DataEnd" msprop:Generator_ColumnVarNameInTable="columnDataEnd" msprop:Generator_ColumnPropNameInRow="DataEnd" msprop:Generator_ColumnPropNameInTable="DataEndColumn" msprop:Generator_UserColumnName="DataEnd" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="valore" msprop:Generator_ColumnVarNameInTable="columnvalore" msprop:Generator_ColumnPropNameInRow="valore" msprop:Generator_ColumnPropNameInTable="valoreColumn" msprop:Generator_UserColumnName="valore" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="tipo" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="tipo" msprop:Generator_ColumnVarNameInTable="columntipo" msprop:Generator_ColumnPropNameInTable="tipoColumn" msprop:Generator_UserColumnName="tipo" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:selettore" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Vocabolario_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Vocabolario" />
|
||||
<xs:field xpath="mstns:Lingua" />
|
||||
<xs:field xpath="mstns:Lemma" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Lingue_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Lingue" />
|
||||
<xs:field xpath="mstns:Lingua" />
|
||||
</xs:unique>
|
||||
<xs:unique name="LogUpdateDb_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:LogUpdateDb" />
|
||||
<xs:field xpath="mstns:Versione" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_Vocabolario_Lingue" msdata:parent="Lingue" msdata:child="Vocabolario" msdata:parentkey="Lingua" msdata:childkey="Lingua" msprop:Generator_UserChildTable="Vocabolario" msprop:Generator_ChildPropName="GetVocabolarioRows" msprop:Generator_UserRelationName="FK_Vocabolario_Lingue" msprop:Generator_RelationVarName="relationFK_Vocabolario_Lingue" msprop:Generator_UserParentTable="Lingue" msprop:Generator_ParentPropName="LingueRow" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Vocabolario" ZOrder="1" X="128" Y="164" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:Lingue" ZOrder="6" X="548" Y="173" Height="130" Width="180" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="79" />
|
||||
<Shape ID="DesignTable:LogUpdateDb" ZOrder="3" X="846" Y="177" Height="147" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="60" />
|
||||
<Shape ID="DesignTable:selettore" ZOrder="8" X="225" Y="495" Height="68" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:serieDati" ZOrder="5" X="476" Y="491" Height="125" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:files" ZOrder="4" X="692" Y="458" Height="106" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:serieTimeVal" ZOrder="2" X="949" Y="372" Height="124" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="120" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_Vocabolario_Lingue" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>548</X>
|
||||
<Y>253</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>428</X>
|
||||
<Y>253</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
</Connectors>
|
||||
</DiagramLayout>
|
||||
@@ -0,0 +1,51 @@
|
||||
namespace SteamWare.DataType
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class DatoBarPlot
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DatoBarPlot"/> class.
|
||||
/// </summary>
|
||||
/// <param name="_label">The _label.</param>
|
||||
/// <param name="_valore">The _valore.</param>
|
||||
/// <param name="_css">The _CSS.</param>
|
||||
/// <param name="_tooltip">The _tooltip.</param>
|
||||
public DatoBarPlot(string _label, int _valore, string _css, string _tooltip)
|
||||
{
|
||||
label = _label;
|
||||
valore = _valore;
|
||||
css = _css;
|
||||
tooltip = _tooltip;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the label.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The label.
|
||||
/// </value>
|
||||
public string label { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the valore.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The valore.
|
||||
/// </value>
|
||||
public int valore { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the CSS.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The CSS.
|
||||
/// </value>
|
||||
public string css { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the tooltip.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The tooltip.
|
||||
/// </value>
|
||||
public string tooltip { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,260 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe di wrap verso i TableAdapter impiegati
|
||||
/// </summary>
|
||||
public class DataWrap
|
||||
{
|
||||
#region area protected
|
||||
|
||||
/// <summary>
|
||||
/// metodo protected di avvio della classe
|
||||
/// </summary>
|
||||
protected DataWrap()
|
||||
{
|
||||
// inizializzo i table adapters
|
||||
avvioTableAdaptersBase();
|
||||
setupConnectionStringBase();
|
||||
avvioTableAdaptersSpec();
|
||||
setupConnectionStringSpec();
|
||||
setupVocabolario();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// procedura di avvio dei tableAdapter
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdaptersBase()
|
||||
{
|
||||
taLingue = new SteamWare.DataLayer_genericTableAdapters.LingueTableAdapter();
|
||||
taVocabolario = new SteamWare.DataLayer_genericTableAdapters.VocabolarioTableAdapter();
|
||||
taLogVoc = new SteamWare.DataLayer_genericTableAdapters.LogUpdateDbTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// procedura di avvio dei tableAdapter
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdaptersSpec()
|
||||
{
|
||||
taCdc = new SteamWare.DataLayer_AnagGenTableAdapters.CDCTableAdapter();
|
||||
taDiritti = new SteamWare.DataLayer_AnagGenTableAdapters.DIRITTITableAdapter();
|
||||
taPermessi = new SteamWare.DataLayer_AnagGenTableAdapters.PermessiTableAdapter();
|
||||
taFunzione = new SteamWare.DataLayer_AnagGenTableAdapters.FUNZIONETableAdapter();
|
||||
taPermessi2Funzione = new SteamWare.DataLayer_AnagGenTableAdapters.Permessi2FunzioneTableAdapter();
|
||||
taUtente = new SteamWare.DataLayer_AnagGenTableAdapters.UTENTETableAdapter();
|
||||
taUserData = new SteamWare.DataLayer_AnagGenTableAdapters.UserDataTableAdapter();
|
||||
taUserDataExt = new SteamWare.DataLayer_AnagGenTableAdapters.UserDataExtTableAdapter();
|
||||
taLogAna = new SteamWare.DataLayer_AnagGenTableAdapters.LogUpdateDbTableAdapter();
|
||||
taAnagDev = new DS_devicesTableAdapters.AnagDevicesTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
string connStr = memLayer.ML.confReadString("VocabolarioConnectionString");
|
||||
// connections del db vocabolario
|
||||
taLingue.Connection.ConnectionString = connStr;
|
||||
taVocabolario.Connection.ConnectionString = connStr;
|
||||
taLogVoc.Connection.ConnectionString = connStr;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringSpec()
|
||||
{
|
||||
string connStrUt = memLayer.ML.confReadString("UtenteCdcConnectionString");
|
||||
string connStrPerm = memLayer.ML.confReadString("PermessiConnectionString");
|
||||
// cambio le connString - db anagrafica principale
|
||||
taCdc.Connection.ConnectionString = connStrUt;
|
||||
taDiritti.Connection.ConnectionString = connStrUt;
|
||||
taFunzione.Connection.ConnectionString = connStrUt;
|
||||
taUtente.Connection.ConnectionString = connStrUt;
|
||||
taUserData.Connection.ConnectionString = connStrUt;
|
||||
taUserDataExt.Connection.ConnectionString = connStrUt;
|
||||
taLogAna.Connection.ConnectionString = connStrUt;
|
||||
taAnagDev.Connection.ConnectionString = connStrUt;
|
||||
// connections del db dell'applicazione
|
||||
taPermessi.Connection.ConnectionString = connStrPerm;
|
||||
taPermessi2Funzione.Connection.ConnectionString = connStrPerm;
|
||||
}
|
||||
/// <summary>
|
||||
/// setup delle tabelle vocabolario
|
||||
/// </summary>
|
||||
protected void setupVocabolario()
|
||||
{
|
||||
if (memLayer.ML.isInCacheObject("dictVocabolario"))
|
||||
{
|
||||
dictVocabolario = (Dictionary<string, string>)memLayer.ML.objCacheObj("dictVocabolario");
|
||||
}
|
||||
else
|
||||
{
|
||||
dictVocabolario = ricaricaDictVocabolario();
|
||||
memLayer.ML.setCacheVal("dictVocabolario", dictVocabolario, true);
|
||||
}
|
||||
// scrivo quanti lemmi ha caricato!
|
||||
logger.lg.scriviLog(string.Format("Caricati {0} lemmi!", dictVocabolario.Count));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// prende l'oggetto tabVocabolario in ram e lo trasforma in dictionary
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected Dictionary<string, string> ricaricaDictVocabolario()
|
||||
{
|
||||
// continuo
|
||||
Dictionary<string, string> answ = new Dictionary<string, string>();
|
||||
if (taVocabolario == null)
|
||||
{
|
||||
foreach (DataLayer_generic.VocabolarioRow riga in DW.taVocabolario.GetData())
|
||||
{
|
||||
answ.Add(riga.Lingua.ToUpper() + "#" + riga.Lemma.ToUpper(), riga.Traduzione);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (DataLayer_generic.VocabolarioRow riga in taVocabolario.GetData())
|
||||
{
|
||||
answ.Add(riga.Lingua.ToUpper() + "#" + riga.Lemma.ToUpper(), riga.Traduzione);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
/// <summary>
|
||||
/// tableAdapter diritti
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.DIRITTITableAdapter taDiritti;
|
||||
/// <summary>
|
||||
/// tableAdapter permessi
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.PermessiTableAdapter taPermessi;
|
||||
/// <summary>
|
||||
/// tableAdapter funzione
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.FUNZIONETableAdapter taFunzione;
|
||||
/// <summary>
|
||||
/// tableAdapter permessi2funzione
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.Permessi2FunzioneTableAdapter taPermessi2Funzione;
|
||||
/// <summary>
|
||||
/// tableAdapter CdC
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.CDCTableAdapter taCdc;
|
||||
/// <summary>
|
||||
/// tableAdapter utenti
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.UTENTETableAdapter taUtente;
|
||||
/// <summary>
|
||||
/// tableAdapter userData (user/pwd)
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.UserDataTableAdapter taUserData;
|
||||
/// <summary>
|
||||
/// tableAdapter userDataExt (user/pwd)
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.UserDataExtTableAdapter taUserDataExt;
|
||||
/// <summary>
|
||||
/// table adapter lingue
|
||||
/// </summary>
|
||||
public DataLayer_genericTableAdapters.LingueTableAdapter taLingue;
|
||||
/// <summary>
|
||||
/// table adapter vocabolario
|
||||
/// </summary>
|
||||
public DataLayer_genericTableAdapters.VocabolarioTableAdapter taVocabolario;
|
||||
/// <summary>
|
||||
/// table adapter versione vocabolario
|
||||
/// </summary>
|
||||
public DataLayer_genericTableAdapters.LogUpdateDbTableAdapter taLogVoc;
|
||||
/// <summary>
|
||||
/// table adapter versione anagrafica
|
||||
/// </summary>
|
||||
public DataLayer_AnagGenTableAdapters.LogUpdateDbTableAdapter taLogAna;
|
||||
/// <summary>
|
||||
/// table adapter Devices utente
|
||||
/// </summary>
|
||||
public DS_devicesTableAdapters.AnagDevicesTableAdapter taAnagDev;
|
||||
/// <summary>
|
||||
/// oggetto vocabolario organizzato come dizionario con chiave lang#lemma e valore la traduzione
|
||||
/// </summary>
|
||||
public Dictionary<string, string> dictVocabolario;
|
||||
/// <summary>
|
||||
/// resetta il vocabolario rileggendo i dati...
|
||||
/// </summary>
|
||||
public void resetVocabolario()
|
||||
{
|
||||
memLayer.ML.emptyCacheVal("dictVocabolario");
|
||||
setupVocabolario();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica se il vocabolario sia ok...
|
||||
/// </summary>
|
||||
public bool vocabolarioOk
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = (dictVocabolario != null);
|
||||
if(answ)
|
||||
{
|
||||
answ = dictVocabolario.Count > 0;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// crea nel db corrente il lemma richiesto e lo valorizza come "--{0}--"
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public void creaNuovoLemmaVoc(string lemma)
|
||||
{
|
||||
foreach (DataLayer_generic.LingueRow rigaLingua in taLingue.GetData())
|
||||
{
|
||||
taVocabolario.Insert(rigaLingua.Lingua, lemma, string.Format("--{0}--", lemma));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce conteggio numero record dell'oggetto vocabolario
|
||||
/// </summary>
|
||||
public int numRecVoc
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = dictVocabolario.Count;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco lingue ammesse da vocabolario...
|
||||
/// </summary>
|
||||
public DataLayer_generic.LingueDataTable lingue
|
||||
{
|
||||
get
|
||||
{
|
||||
return taLingue.GetData();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// classe singleton x la gestione dei tableadapters
|
||||
/// </summary>
|
||||
public static DataWrap DW = new DataWrap();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Ports;
|
||||
using System.Management;
|
||||
using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// helper x raccolta dati di diagnostica
|
||||
/// </summary>
|
||||
public class Diagnostica
|
||||
{
|
||||
/// <summary>
|
||||
/// uptime macchina (formattato)
|
||||
/// </summary>
|
||||
public static string uptime
|
||||
{
|
||||
get
|
||||
{
|
||||
TimeSpan upt = GetUptime();
|
||||
return string.Format("{0} gg, {1} h, {2} min, {3} sec", upt.Days, upt.Hours, upt.Minutes, upt.Seconds);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// calcolo uptime in formato timespan
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static TimeSpan GetUptime()
|
||||
{
|
||||
ManagementObject mo = new ManagementObject(@"\\.\root\cimv2:Win32_OperatingSystem=@");
|
||||
DateTime lastBootUp = ManagementDateTimeConverter.ToDateTime(mo["LastBootUpTime"].ToString());
|
||||
return DateTime.Now.ToUniversalTime() - lastBootUp.ToUniversalTime();
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce elenco dischi con utilizzo (formattato)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string diskUsage
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
DriveInfo[] allDrives = DriveInfo.GetDrives();
|
||||
// ciclo tutti i drives...
|
||||
foreach (DriveInfo d in allDrives)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format("Drive {0}", d.Name));
|
||||
answ += SteamwareStrings.addLine(string.Format(" File type: {0}", d.DriveType));
|
||||
if (d.IsReady == true)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format(" Volume label: {0}", d.VolumeLabel));
|
||||
answ += SteamwareStrings.addLine(string.Format(" File system: {0}", d.DriveFormat));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Available space to current user:{0:#,###} Mb", d.AvailableFreeSpace / 1024 / 1024));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Total available space: {0:#,###} Mb", d.TotalFreeSpace / 1024 / 1024));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Total size of drive: {0:#,###} Mb ", d.TotalSize / 1024 / 1024));
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// mostra elenco interfacce di rete e loro conf
|
||||
/// </summary>
|
||||
public static string networkInterfaces
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();
|
||||
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
|
||||
answ += SteamwareStrings.addLine(string.Format("Interface information for {0}.{1} ", computerProperties.HostName, computerProperties.DomainName));
|
||||
if (nics == null || nics.Length < 1)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format(" No network interfaces found."));
|
||||
}
|
||||
else
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format(" Number of interfaces .................... : {0}", nics.Length));
|
||||
foreach (NetworkInterface adapter in nics)
|
||||
{
|
||||
IPInterfaceProperties properties = adapter.GetIPProperties();
|
||||
answ += SteamwareStrings.addLine("");
|
||||
answ += SteamwareStrings.addLine(string.Format(adapter.Description));
|
||||
answ += SteamwareStrings.addLine(string.Format(String.Empty.PadLeft(adapter.Description.Length, '=')));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Interface type .......................... : {0}", adapter.NetworkInterfaceType));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Physical Address ........................ : {0}", adapter.GetPhysicalAddress().ToString()));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Operational status ...................... : {0}", adapter.OperationalStatus));
|
||||
string versions = "";
|
||||
|
||||
// Create a display string for the supported IP versions.
|
||||
if (adapter.Supports(NetworkInterfaceComponent.IPv4))
|
||||
{
|
||||
versions = "IPv4";
|
||||
// elenco IPv4
|
||||
IPInterfaceProperties adapterProperties = adapter.GetIPProperties();
|
||||
IPAddressCollection addresses = adapterProperties.DhcpServerAddresses;
|
||||
if (addresses.Count > 0)
|
||||
{
|
||||
Console.WriteLine(adapter.Description);
|
||||
foreach (IPAddress address in addresses)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format(" IPv4 address ............................ : {0}", address));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (adapter.Supports(NetworkInterfaceComponent.IPv6))
|
||||
{
|
||||
if (versions.Length > 0)
|
||||
{
|
||||
versions += " ";
|
||||
}
|
||||
versions += "IPv6";
|
||||
}
|
||||
// The following information is not useful for loopback adapters.
|
||||
if (adapter.NetworkInterfaceType == NetworkInterfaceType.Loopback)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
answ += SteamwareStrings.addLine(string.Format(" DNS suffix .............................. : {0}", properties.DnsSuffix));
|
||||
if (adapter.Supports(NetworkInterfaceComponent.IPv4))
|
||||
{
|
||||
IPv4InterfaceProperties ipv4 = properties.GetIPv4Properties();
|
||||
answ += SteamwareStrings.addLine(string.Format(" MTU...................................... : {0}", ipv4.Mtu));
|
||||
}
|
||||
answ += SteamwareStrings.addLine(string.Format(" DNS enabled ............................. : {0}", properties.IsDnsEnabled));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Dynamically configured DNS .............. : {0}", properties.IsDynamicDnsEnabled));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Receive Only ............................ : {0}", adapter.IsReceiveOnly));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Multicast ............................... : {0}", adapter.SupportsMulticast));
|
||||
answ += SteamwareStrings.addLine("");
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce elenco dispositivi USB collegati
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string usbDevices
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
var usbDevices = GetUSBDevices();
|
||||
foreach (var usbDevice in usbDevices)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format("Device ID: {0}, PNP Device ID: {1}, Description: {2}", usbDevice.DeviceID, usbDevice.PnpDeviceID, usbDevice.Description));
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco devices USB
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<USBDeviceInfo> GetUSBDevices()
|
||||
{
|
||||
List<USBDeviceInfo> devices = new List<USBDeviceInfo>();
|
||||
ManagementObjectCollection collection;
|
||||
using (var searcher = new ManagementObjectSearcher(@"Select * From Win32_USBHub")) collection = searcher.Get();
|
||||
foreach (var device in collection)
|
||||
{
|
||||
devices.Add(new USBDeviceInfo(
|
||||
(string)device.GetPropertyValue("DeviceID"),
|
||||
(string)device.GetPropertyValue("PNPDeviceID"),
|
||||
(string)device.GetPropertyValue("Description")
|
||||
));
|
||||
}
|
||||
collection.Dispose();
|
||||
return devices;
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco porte seriali
|
||||
/// </summary>
|
||||
public static string serialPorts
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
// Get a list of serial port names.
|
||||
string[] ports = SerialPort.GetPortNames();
|
||||
// Display each port name to the console.
|
||||
foreach (string port in ports)
|
||||
{
|
||||
answ += SteamwareStrings.addLine(string.Format("Serial port: {0}", port));
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// registra esito ping ad un dato IP/hostname
|
||||
/// </summary>
|
||||
/// <param name="target">IPaddress / host name.</param>
|
||||
public static string pingIp(string target)
|
||||
{
|
||||
string answ = "";
|
||||
answ += SteamwareStrings.addLine(string.Format("ping to target: {0}", target));
|
||||
Ping pingSender = new Ping();
|
||||
PingOptions options = new PingOptions();
|
||||
// Use the default Ttl value which is 128,
|
||||
// but change the fragmentation behavior.
|
||||
options.DontFragment = true;
|
||||
// Create a buffer of 32 bytes of data to be transmitted.
|
||||
string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
||||
byte[] buffer = Encoding.ASCII.GetBytes(data);
|
||||
int timeout = 120;
|
||||
PingReply reply = pingSender.Send(target, timeout, buffer, options);
|
||||
if (reply.Status == IPStatus.Success)
|
||||
{
|
||||
answ += SteamwareStrings.addLine("Success!");
|
||||
answ += SteamwareStrings.addLine(string.Format(" Address: {0}", reply.Address.ToString()));
|
||||
answ += SteamwareStrings.addLine(string.Format(" RoundTrip time: {0} ms", reply.RoundtripTime));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Time to live: {0}", reply.Options.Ttl));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Don't fragment: {0}", reply.Options.DontFragment));
|
||||
answ += SteamwareStrings.addLine(string.Format(" Buffer size: {0}", reply.Buffer.Length));
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce contenuto di una pagina web (per testing)
|
||||
/// </summary>
|
||||
/// <param name="targetUrl"></param>
|
||||
/// <returns></returns>
|
||||
public static string getPageContent(string targetUrl)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
//WebClient client = new WebClient();
|
||||
//answ = client.DownloadString(targetUrl);
|
||||
WebRequest request = WebRequest.Create(targetUrl);
|
||||
WebResponse response = request.GetResponse();
|
||||
Stream data = response.GetResponseStream();
|
||||
using (StreamReader sr = new StreamReader(data))
|
||||
{
|
||||
answ += sr.ReadToEnd();
|
||||
}
|
||||
}
|
||||
catch(Exception exc)
|
||||
{
|
||||
answ = string.Format("Exception in recupero pagina: {0}{1}", Environment.NewLine, exc);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// classe definizione info oggetti USB
|
||||
/// </summary>
|
||||
public class USBDeviceInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="USBDeviceInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="deviceID">The device identifier.</param>
|
||||
/// <param name="pnpDeviceID">The PNP device identifier.</param>
|
||||
/// <param name="description">The description.</param>
|
||||
public USBDeviceInfo(string deviceID, string pnpDeviceID, string description)
|
||||
{
|
||||
this.DeviceID = deviceID;
|
||||
this.PnpDeviceID = pnpDeviceID;
|
||||
this.Description = description;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The device identifier.
|
||||
/// </value>
|
||||
public string DeviceID { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the PNP device identifier.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The PNP device identifier.
|
||||
/// </value>
|
||||
public string PnpDeviceID { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the description.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The description.
|
||||
/// </value>
|
||||
public string Description { get; private set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+89
@@ -0,0 +1,89 @@
|
||||
pipeline {
|
||||
// Declarative Pipeline MODE con Scripted Pipeline Syntax entro le chiamate script { }
|
||||
agent none
|
||||
environment {
|
||||
EMAIL_RECIPIENTS = 'samuele@steamware.net'
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
agent any
|
||||
steps {
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=613']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '3.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '3.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'SteamWareLib'
|
||||
}
|
||||
}
|
||||
script {
|
||||
currentBuild.displayName = "${env.versionNumber}"
|
||||
// if (env.BRANCH_NAME == "develop" || env.BRANCH_NAME.contains("DEMO")) {
|
||||
// currentBuild.description = "TEST ${env.versionNumber}"
|
||||
// }
|
||||
// else {
|
||||
currentBuild.description = "BUILD ${env.versionNumber}"
|
||||
// }
|
||||
}
|
||||
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
bat "e:\\fart.exe SteamWare.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\SteamWare.sln"
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
agent any
|
||||
steps {
|
||||
script {
|
||||
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '180', artifactNumToKeepStr: '30', daysToKeepStr: '360', numToKeepStr: '30')), pipelineTriggers([])])
|
||||
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
bat "e:\\fart.exe SteamWare.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\SteamWare.sln"
|
||||
}
|
||||
script {
|
||||
bat "\"${tool 'MSBuild-14.0'}\" SteamWare.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
sendEmail("Successful")
|
||||
}
|
||||
failure {
|
||||
sendEmail("Failed")
|
||||
}
|
||||
unstable {
|
||||
sendEmail("Unstable")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@NonCPS
|
||||
// Funzione x recupero changeLog
|
||||
def getChangeString() {
|
||||
MAX_MSG_LEN = 100
|
||||
def changeString = ""
|
||||
|
||||
echo "Gathering SCM changes"
|
||||
def changeLogSets = currentBuild.changeSets
|
||||
for (int i = 0; i < changeLogSets.size(); i++) {
|
||||
def entries = changeLogSets[i].items
|
||||
for (int j = 0; j < entries.length; j++) {
|
||||
def entry = entries[j]
|
||||
truncated_msg = entry.msg.take(MAX_MSG_LEN)
|
||||
changeString += " - ${truncated_msg} [${entry.author}]\n"
|
||||
}
|
||||
}
|
||||
|
||||
if (!changeString) {
|
||||
changeString = " - Nessuna Modifica"
|
||||
}
|
||||
return changeString
|
||||
}
|
||||
// Funzione x invio email
|
||||
def sendEmail(status) {
|
||||
mail (
|
||||
to: "$EMAIL_RECIPIENTS",
|
||||
subject: "Build $BUILD_NUMBER - " + status + " ($JOB_NAME)",
|
||||
body: "Modifiche:\n " + getChangeString() + "\n\n Verifica console output: $BUILD_URL/console" + "\n")
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
/*
|
||||
* Password Hashing With PBKDF2 (http://crackstation.net/hashing-security.htm).
|
||||
* Copyright (c) 2013, Taylor Hornby
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Salted password hashing with PBKDF2-SHA1.
|
||||
/// Author: havoc AT defuse.ca
|
||||
/// www: http://crackstation.net/hashing-security.htm
|
||||
/// Compatibility: .NET 3.0 and later.
|
||||
/// </summary>
|
||||
public class PasswordHash
|
||||
{
|
||||
/// <summary>
|
||||
/// num byte salt
|
||||
/// </summary>
|
||||
public const int SALT_BYTES = 24;
|
||||
/// <summary>
|
||||
/// num byte hash
|
||||
/// </summary>
|
||||
public const int HASH_BYTES = 24;
|
||||
/// <summary>
|
||||
/// num iterazioni
|
||||
/// </summary>
|
||||
public const int PBKDF2_ITERATIONS = 1000;
|
||||
/// <summary>
|
||||
/// indice iterazioni
|
||||
/// </summary>
|
||||
public const int ITERATION_INDEX = 1;
|
||||
/// <summary>
|
||||
/// indice salt
|
||||
/// </summary>
|
||||
public const int SALT_INDEX = 2;
|
||||
/// <summary>
|
||||
/// indice pbk
|
||||
/// </summary>
|
||||
public const int PBKDF2_INDEX = 3;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a salted PBKDF2 hash of the password.
|
||||
/// </summary>
|
||||
/// <param name="password">The password to hash.</param>
|
||||
/// <returns>The hash of the password.</returns>
|
||||
public static string CreateHash(string password)
|
||||
{
|
||||
// Generate a random salt
|
||||
RNGCryptoServiceProvider csprng = new RNGCryptoServiceProvider();
|
||||
byte[] salt = new byte[SALT_BYTES];
|
||||
csprng.GetBytes(salt);
|
||||
|
||||
// Hash the password and encode the parameters
|
||||
byte[] hash = PBKDF2(password, salt, PBKDF2_ITERATIONS, HASH_BYTES);
|
||||
return "sha1:" + PBKDF2_ITERATIONS + ":" +
|
||||
Convert.ToBase64String(salt) + ":" +
|
||||
Convert.ToBase64String(hash);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validates a password given a hash of the correct one.
|
||||
/// </summary>
|
||||
/// <param name="password">The password to check.</param>
|
||||
/// <param name="goodHash">A hash of the correct password.</param>
|
||||
/// <returns>True if the password is correct. False otherwise.</returns>
|
||||
public static bool ValidatePassword(string password, string goodHash)
|
||||
{
|
||||
// Extract the parameters from the hash
|
||||
char[] delimiter = { ':' };
|
||||
string[] split = goodHash.Split(delimiter);
|
||||
int iterations = Int32.Parse(split[ITERATION_INDEX]);
|
||||
byte[] salt = Convert.FromBase64String(split[SALT_INDEX]);
|
||||
byte[] hash = Convert.FromBase64String(split[PBKDF2_INDEX]);
|
||||
|
||||
byte[] testHash = PBKDF2(password, salt, iterations, hash.Length);
|
||||
return SlowEquals(hash, testHash);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Compares two byte arrays in length-constant time. This comparison
|
||||
/// method is used so that password hashes cannot be extracted from
|
||||
/// on-line systems using a timing attack and then attacked off-line.
|
||||
/// </summary>
|
||||
/// <param name="a">The first byte array.</param>
|
||||
/// <param name="b">The second byte array.</param>
|
||||
/// <returns>True if both byte arrays are equal. False otherwise.</returns>
|
||||
private static bool SlowEquals(byte[] a, byte[] b)
|
||||
{
|
||||
uint diff = (uint)a.Length ^ (uint)b.Length;
|
||||
for (int i = 0; i < a.Length && i < b.Length; i++)
|
||||
diff |= (uint)(a[i] ^ b[i]);
|
||||
return diff == 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the PBKDF2-SHA1 hash of a password.
|
||||
/// </summary>
|
||||
/// <param name="password">The password to hash.</param>
|
||||
/// <param name="salt">The salt.</param>
|
||||
/// <param name="iterations">The PBKDF2 iteration count.</param>
|
||||
/// <param name="outputBytes">The length of the hash to generate, in bytes.</param>
|
||||
/// <returns>A hash of the password.</returns>
|
||||
private static byte[] PBKDF2(string password, byte[] salt, int iterations, int outputBytes)
|
||||
{
|
||||
Rfc2898DeriveBytes pbkdf2 = new Rfc2898DeriveBytes(password, salt);
|
||||
pbkdf2.IterationCount = iterations;
|
||||
return pbkdf2.GetBytes(outputBytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SteamWare")]
|
||||
[assembly: AssemblyDescription("Classi utility applicazioni Steamware")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
//[assembly: AssemblyCompany("SteamWare s.r.l.")]
|
||||
[assembly: AssemblyProduct("SteamWare")]
|
||||
//[assembly: AssemblyCopyright("Copyright © Steamware since 2007")]
|
||||
[assembly: AssemblyTrademark("SteamWare")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("ca897ad6-3ed6-4100-9720-5a22afd92ec0")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
//[assembly: AssemblyVersion("2.6.1707.1000")]
|
||||
//[assembly: AssemblyFileVersion("2.6.1707.1000")]
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Il codice è stato generato da uno strumento.
|
||||
// Versione runtime:4.0.30319.42000
|
||||
//
|
||||
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SteamWare.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=Flamma_SC;Persist Security Info=True;User " +
|
||||
"ID=sa;Password=keyhammer16;")]
|
||||
public string loggerConnectionString {
|
||||
get {
|
||||
return ((string)(this["loggerConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SteamWare_Vocabolario;Persist Security Inf" +
|
||||
"o=True;User ID=sa;Password=keyhammer16;")]
|
||||
public string SteamWare_VocabolarioConnectionString {
|
||||
get {
|
||||
return ((string)(this["SteamWare_VocabolarioConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info" +
|
||||
"=True;User ID=sa;Password=keyhammer16;")]
|
||||
public string DS_AuthConnectionString {
|
||||
get {
|
||||
return ((string)(this["DS_AuthConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=AnagraficaBrembo;Persist Security Info=Tru" +
|
||||
"e;User ID=sa;Password=keyhammer16;")]
|
||||
public string AnagraficaBremboConnectionString {
|
||||
get {
|
||||
return ((string)(this["AnagraficaBremboConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SteamWare_Brembo;Persist Security Info=Tru" +
|
||||
"e;User ID=sa;Password=keyhammer16;")]
|
||||
public string SteamWare_BremboConnectionString {
|
||||
get {
|
||||
return ((string)(this["SteamWare_BremboConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=Flamma_Anagrafica;Persist Security Info=Tr" +
|
||||
"ue;User ID=sa;Password=keyhammer16;")]
|
||||
public string Flamma_AnagraficaConnectionString {
|
||||
get {
|
||||
return ((string)(this["Flamma_AnagraficaConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info" +
|
||||
"=True;User ID=sa;Password=keyhammer16;")]
|
||||
public string ETS_AnagraficaConnectionString {
|
||||
get {
|
||||
return ((string)(this["ETS_AnagraficaConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info" +
|
||||
"=True;User ID=sa;Password=keyhammer16;")]
|
||||
public string ETS_AnagraficaConnectionString1 {
|
||||
get {
|
||||
return ((string)(this["ETS_AnagraficaConnectionString1"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=SEL_fatture_SteamWare;User ID=sa;Password=" +
|
||||
"keyhammer16;Encrypt=False;TrustServerCertificate=True")]
|
||||
public string SEL_fatture_SteamWareConnectionString {
|
||||
get {
|
||||
return ((string)(this["SEL_fatture_SteamWareConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=Equa_Anagrafica;Persist Security Info=True" +
|
||||
";User ID=sa;Password=keyhammer16;")]
|
||||
public string Equa_AnagraficaConnectionString {
|
||||
get {
|
||||
return ((string)(this["Equa_AnagraficaConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQLSTEAM;Initial Catalog=SEL_fatture_SteamWare;Persist Security Info=" +
|
||||
"True;User ID=sa;Password=keyhammer;")]
|
||||
public string DbConfConnectionString {
|
||||
get {
|
||||
return ((string)(this["DbConfConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;" +
|
||||
"Password=keyhammer16;")]
|
||||
public string GMWConnectionString {
|
||||
get {
|
||||
return ((string)(this["GMWConnectionString"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="SteamWare.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="loggerConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=Flamma_SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=Flamma_SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="SteamWare_VocabolarioConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="DS_AuthConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="AnagraficaBremboConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=AnagraficaBrembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=AnagraficaBrembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="SteamWare_BremboConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="Flamma_AnagraficaConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=Flamma_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=Flamma_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="ETS_AnagraficaConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="ETS_AnagraficaConnectionString1" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="SEL_fatture_SteamWareConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=SEL_fatture_SteamWare;User ID=sa;Password=keyhammer16;Encrypt=False;TrustServerCertificate=True</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=SEL_fatture_SteamWare;User ID=sa;Password=keyhammer16;Encrypt=False;TrustServerCertificate=True</Value>
|
||||
</Setting>
|
||||
<Setting Name="Equa_AnagraficaConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
<Setting Name="DbConfConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQLSTEAM;Initial Catalog=SEL_fatture_SteamWare;Persist Security Info=True;User ID=sa;Password=keyhammer;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQLSTEAM;Initial Catalog=SEL_fatture_SteamWare;Persist Security Info=True;User ID=sa;Password=keyhammer;</Value>
|
||||
</Setting>
|
||||
<Setting Name="GMWConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,3 @@
|
||||
# SteamWareLib
|
||||
|
||||
Libreria di utility condivise per progetti SteamWare C# .net
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace SteamWare.Properties {
|
||||
|
||||
|
||||
// This class allows you to handle specific events on the settings class:
|
||||
// The SettingChanging event is raised before a setting's value is changed.
|
||||
// The PropertyChanged event is raised after a setting's value is changed.
|
||||
// The SettingsLoaded event is raised after the setting values are loaded.
|
||||
// The SettingsSaving event is raised before the setting values are saved.
|
||||
internal sealed partial class Settings {
|
||||
|
||||
public Settings() {
|
||||
// // To add event handlers for saving and changing settings, uncomment the lines below:
|
||||
//
|
||||
// this.SettingChanging += this.SettingChangingEventHandler;
|
||||
//
|
||||
// this.SettingsSaving += this.SettingsSavingEventHandler;
|
||||
//
|
||||
}
|
||||
|
||||
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
|
||||
// Add code to handle the SettingChangingEvent event here.
|
||||
}
|
||||
|
||||
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
|
||||
// Add code to handle the SettingsSaving event here.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2006-2018")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
@@ -0,0 +1,318 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SteamWare</RootNamespace>
|
||||
<AssemblyName>SteamWare</AssemblyName>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>bin\Debug\SteamWare.XML</DocumentationFile>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AjaxControlToolkit, Version=18.1.0.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AjaxControlToolkit.18.1.0\lib\net40\AjaxControlToolkit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>ExtLibrary\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\CMS-SC\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="StackExchange.Redis, Version=1.2.6.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\StackExchange.Redis.1.2.6\lib\net46\StackExchange.Redis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ApplicationSimplePage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ApplicationUserControl.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="authProxy.cs" />
|
||||
<Compile Include="BillingProxy.cs" />
|
||||
<Compile Include="calc.cs" />
|
||||
<Compile Include="confrontoValori.cs" />
|
||||
<Compile Include="CSV_utils.cs" />
|
||||
<Compile Include="DataLayer_AnagGen.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DataLayer_AnagGen.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DataLayer_generic.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DataLayer_generic.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DataWrap.cs" />
|
||||
<Compile Include="dbUpdateManager.cs" />
|
||||
<Compile Include="devicesAuthProxy.cs" />
|
||||
<Compile Include="devInfoParam.cs" />
|
||||
<Compile Include="Diagnostica.cs" />
|
||||
<Compile Include="DS_Auth.cs">
|
||||
<DependentUpon>DS_Auth.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_Auth.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Auth.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_Billing.cs">
|
||||
<DependentUpon>DS_Billing.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_Billing.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Billing.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_devices.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_devices.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_logging.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_logging.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_Utility.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Utility.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="enumerazioni.cs" />
|
||||
<Compile Include="fileMover.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="inputComando.cs" />
|
||||
<Compile Include="licenseMan.cs" />
|
||||
<Compile Include="log2note.cs" />
|
||||
<Compile Include="logger.cs" />
|
||||
<Compile Include="memLayer.cs" />
|
||||
<Compile Include="SteamWare.cs">
|
||||
<DependentUpon>SteamWare.tt</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<Compile Include="PasswordHash.cs" />
|
||||
<Compile Include="UpdateMan.cs" />
|
||||
<Compile Include="UserPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="pieChart.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="selDataVoc.cs" />
|
||||
<Compile Include="selettori.cs" />
|
||||
<Compile Include="DataType\DatoBarPlot.cs" />
|
||||
<Compile Include="UserControl.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="user_std.cs" />
|
||||
<Compile Include="utils.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="SteamWare.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<LastGenOutput>SteamWare.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="app.config" />
|
||||
<None Include="DataLayer_generic.xsc">
|
||||
<DependentUpon>DataLayer_generic.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DataLayer_generic.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DataLayer_generic.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DataLayer_generic.xss">
|
||||
<DependentUpon>DataLayer_generic.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Auth.xsc">
|
||||
<DependentUpon>DS_Auth.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Auth.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_Auth.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_Auth.xss">
|
||||
<DependentUpon>DS_Auth.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Billing.xsc">
|
||||
<DependentUpon>DS_Billing.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Billing.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_Billing.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_Billing.xss">
|
||||
<DependentUpon>DS_Billing.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_devices.xsc">
|
||||
<DependentUpon>DS_devices.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_devices.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_devices.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_devices.xss">
|
||||
<DependentUpon>DS_devices.xsd</DependentUpon>
|
||||
</None>
|
||||
<Content Include="ExtLibrary\ICSharpCode.SharpZipLib.dll" />
|
||||
<None Include="DS_Utility.xsc">
|
||||
<DependentUpon>DS_Utility.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Utility.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_Utility.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_Utility.xss">
|
||||
<DependentUpon>DS_Utility.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="appunti.txt" />
|
||||
<None Include="DataLayer_AnagGen.xsc">
|
||||
<DependentUpon>DataLayer_AnagGen.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DataLayer_AnagGen.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DataLayer_AnagGen.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DataLayer_AnagGen.xss">
|
||||
<DependentUpon>DataLayer_AnagGen.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_logging.xsc">
|
||||
<DependentUpon>DS_logging.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_logging.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_logging.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_logging.xss">
|
||||
<DependentUpon>DS_logging.xsd</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="bin\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
<#@ template language="C#" #>
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2006-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
@@ -0,0 +1,163 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Gestione update applicazioni
|
||||
/// </summary>
|
||||
public class UpdateMan
|
||||
{
|
||||
/// <summary>
|
||||
/// Init classe
|
||||
/// </summary>
|
||||
protected UpdateMan()
|
||||
{ }
|
||||
/// <summary>
|
||||
/// Init classe
|
||||
/// </summary>
|
||||
public static UpdateMan obj = new UpdateMan();
|
||||
/// <summary>
|
||||
/// Recupera l'ultima versione disponibile
|
||||
/// </summary>
|
||||
/// <param name="remoteUrl"></param>
|
||||
/// <returns></returns>
|
||||
public UpdateInfoEventArgs getUpdateInfo(string remoteUrl)
|
||||
{
|
||||
UpdateInfoEventArgs args = new UpdateInfoEventArgs();
|
||||
Version CurrentVersion;
|
||||
bool Mandatory;
|
||||
XmlDocument recXml = new XmlDocument();
|
||||
try
|
||||
{
|
||||
// recupero dati
|
||||
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.CreateHttp(remoteUrl);
|
||||
HttpWebResponse remData = (HttpWebResponse)request.GetResponse();
|
||||
// converto in XML
|
||||
recXml.Load(remData.GetResponseStream());
|
||||
XmlNodeList recData = recXml.SelectNodes("item");
|
||||
if (recData != null)
|
||||
{
|
||||
foreach (XmlNode item in recData)
|
||||
{
|
||||
XmlNode appCastVersion = item.SelectSingleNode("version");
|
||||
Version.TryParse(appCastVersion?.InnerText, out CurrentVersion);
|
||||
args.CurrentVersion = CurrentVersion;
|
||||
XmlNode appCastChangeLog = item.SelectSingleNode("changelog");
|
||||
args.ChangelogURL = appCastChangeLog?.InnerText;
|
||||
XmlNode appCastUrl = item.SelectSingleNode("url");
|
||||
args.DownloadURL = appCastUrl?.InnerText;
|
||||
XmlNode mandatory = item.SelectSingleNode("mandatory");
|
||||
Boolean.TryParse(mandatory?.InnerText, out Mandatory);
|
||||
args.Mandatory = Mandatory;
|
||||
args.IsUpdateAvailable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// metto versione = 0 + errore...
|
||||
args.IsUpdateAvailable = false;
|
||||
args.CurrentVersion= new Version("0.0.0.0");
|
||||
}
|
||||
return args;
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua download ultima versione applicativo
|
||||
/// </summary>
|
||||
/// <param name="remoteUrl"></param>
|
||||
/// <param name="localRepo"></param>
|
||||
/// <param name="packName"></param>
|
||||
public int downloadLatest(string remoteUrl, string localRepo, string packName)
|
||||
{
|
||||
int done = 0;
|
||||
// verifico directory
|
||||
if (!Directory.Exists(localRepo))
|
||||
{
|
||||
Directory.CreateDirectory(localRepo);
|
||||
}
|
||||
string localFile = "";
|
||||
string localLast = "";
|
||||
try
|
||||
{
|
||||
// in primis scarico update info...
|
||||
UpdateInfoEventArgs updateData = getUpdateInfo(remoteUrl);
|
||||
if (updateData.IsUpdateAvailable)
|
||||
{
|
||||
string DownloadURL = updateData.DownloadURL;
|
||||
localFile = string.Format(@"{0}\{2}_Build_{1}.zip", localRepo, updateData.CurrentVersion, packName);
|
||||
localLast = string.Format(@"{0}\{1}.zip", localRepo, packName);
|
||||
// scarica file e salva in directory locale...
|
||||
var client = new WebClient();
|
||||
client.DownloadFile(updateData.DownloadURL, localFile);
|
||||
// ora lo copio come latest...
|
||||
File.Copy(localFile, localLast, true);
|
||||
// indico come fatto!
|
||||
done = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
localFile = string.Format(@"{0}\Error.log", localRepo);
|
||||
// scrivo file in area target...
|
||||
using (StreamWriter sw = File.AppendText(localFile))
|
||||
{
|
||||
sw.WriteLine(string.Format("{0:yyyy-MM-dd HH:mm:ss} ATTENZIONE! Installer NON disponibile | {1}", DateTime.Now, remoteUrl));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
localFile = string.Format(@"{0}\Error.log", localRepo);
|
||||
// scrivo file in area target...
|
||||
using (StreamWriter sw = File.AppendText(localFile))
|
||||
{
|
||||
sw.WriteLine(string.Format("{0:yyyy-MM-dd HH:mm:ss} Errore in fase di download installers per {1}", DateTime.Now, remoteUrl));
|
||||
sw.WriteLine(exc.ToString());
|
||||
}
|
||||
}
|
||||
return done;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Object of this class gives you all the details about the update useful in handling the update logic yourself.
|
||||
/// </summary>
|
||||
public class UpdateInfoEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// If new update is available then returns true otherwise false.
|
||||
/// </summary>
|
||||
public bool IsUpdateAvailable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Download URL of the update file.
|
||||
/// </summary>
|
||||
public string DownloadURL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// URL of the webpage specifying changes in the new update.
|
||||
/// </summary>
|
||||
public string ChangelogURL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns newest version of the application available to download.
|
||||
/// </summary>
|
||||
public Version CurrentVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns version of the application currently installed on the user's PC.
|
||||
/// </summary>
|
||||
public Version InstalledVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Shows if the update is required or optional.
|
||||
/// </summary>
|
||||
public bool Mandatory { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,360 @@
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for every user control in the application, containing some common
|
||||
/// behaviour and utility methods.
|
||||
/// It is not meant to be be used directly.
|
||||
/// </summary>
|
||||
public class UserControl : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// UID formattato con "_"
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// event handler generico
|
||||
/// </summary>
|
||||
public event EventHandler eh_ucev;
|
||||
/// <summary>
|
||||
/// sollevo evento selezione
|
||||
/// </summary>
|
||||
protected void raiseEvent(ucEvType evType)
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_ucev != null)
|
||||
{
|
||||
ucEvent evento = new ucEvent(evType);
|
||||
eh_ucev(this, evento);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
string answ = "";
|
||||
if (lemma != null)
|
||||
{
|
||||
if (lemma.ToString() != "")
|
||||
{
|
||||
answ = user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "--";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// modalità operativa controllo
|
||||
/// </summary>
|
||||
public ucMode modoContr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// escape dei parametri input dell'ODS
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
public static void escapeInputParam(ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
// escape GENERALE!!!
|
||||
for (int i = 0; i < e.InputParameters.Count; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
e.InputParameters[i] = e.InputParameters[i].ToString().Replace("'", "''");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.confReadBool("forceUppercase");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se l'utente sia abilitato a scrivere nella pagina corrente (quindi modificare e cancellare...)
|
||||
/// </summary>
|
||||
public bool isWriteEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = devicesAuthProxy.stObj.isPageWriteEnabled(titolo);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se l'utente sia abilitato alla pagina corrente (di base visualizzazione...)
|
||||
/// </summary>
|
||||
public bool isPageEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.isPageEnabled(titolo);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento standard agganciabile da grView x aggiunta doppio click e singolo click (x edit e select)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void grView_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
GridView grView = (GridView)sender;
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
// single click --> edit
|
||||
e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grView, "Edit$" + e.Row.RowIndex);
|
||||
e.Row.Attributes["style"] = "cursor:pointer";
|
||||
#if false
|
||||
// single click --> select
|
||||
e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(grView, "Select$" + e.Row.RowIndex);
|
||||
e.Row.Attributes["style"] = "cursor:pointer";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento andata in editing del controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected virtual void grView_RowEditing(object sender, GridViewEditEventArgs e)
|
||||
{
|
||||
GridView grView = (GridView)sender;
|
||||
if (grView.EditIndex >= 0)
|
||||
{
|
||||
grView.UpdateRow(grView.EditIndex, false);
|
||||
}
|
||||
#if false
|
||||
grView.EditIndex = e.NewEditIndex;
|
||||
this.DataBind();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// restituisce la stringa del path corretto per l'immagine richiesta nel formato "~/images/{0}{1}"
|
||||
/// </summary>
|
||||
/// <param name="_tipo">verrà usato x posizione {0}, tipo "view"</param>
|
||||
/// <param name="_dimensione">verrà usato x posizione {1}, tipo "_s.png"</param>
|
||||
/// <returns></returns>
|
||||
public string imgPath(tipoImg _tipo, dimImg _dimensione)
|
||||
{
|
||||
return imgPath(_tipo, _dimensione, tipoFileImg.png);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce la stringa del path corretto per l'immagine richiesta nel formato "~/images/{0}{1}"
|
||||
/// </summary>
|
||||
/// <param name="_tipo">verrà usato x posizione {0}, tipo "view"</param>
|
||||
/// <param name="_dimensione">verrà usato x posizione {1}, tipo "_s.png"</param>
|
||||
/// <param name="_tipoFile">tipo del file richiesto..."</param>
|
||||
/// <returns></returns>
|
||||
public string imgPath(tipoImg _tipo, dimImg _dimensione, tipoFileImg _tipoFile)
|
||||
{
|
||||
string _imgName = "unknown";
|
||||
string _imgDim = "_s";
|
||||
string _imgType = "png";
|
||||
switch (_tipo)
|
||||
{
|
||||
case tipoImg.annulla:
|
||||
_imgName = "cancel";
|
||||
break;
|
||||
case tipoImg.approva:
|
||||
_imgName = "approva";
|
||||
break;
|
||||
case tipoImg.barcode:
|
||||
_imgName = "barcode_white";
|
||||
break;
|
||||
case tipoImg.barcodeArancio:
|
||||
_imgName = "barcode_orange";
|
||||
break;
|
||||
case tipoImg.clona:
|
||||
_imgName = "clonaObj";
|
||||
break;
|
||||
case tipoImg.conferma:
|
||||
_imgName = "apply";
|
||||
break;
|
||||
case tipoImg.elimina:
|
||||
_imgName = "elimina";
|
||||
break;
|
||||
case tipoImg.modifica:
|
||||
_imgName = "edit";
|
||||
break;
|
||||
case tipoImg.notepad:
|
||||
_imgName = "notepad";
|
||||
break;
|
||||
case tipoImg.notepadPdf:
|
||||
_imgName = "notepadPdf";
|
||||
break;
|
||||
case tipoImg.nuovo:
|
||||
_imgName = "new";
|
||||
break;
|
||||
case tipoImg.seleziona:
|
||||
_imgName = "view";
|
||||
break;
|
||||
case tipoImg.semaforoGiallo:
|
||||
_imgName = "semaGiallo";
|
||||
break;
|
||||
case tipoImg.semaforoRosso:
|
||||
_imgName = "semaRosso";
|
||||
break;
|
||||
case tipoImg.semaforoVerde:
|
||||
_imgName = "semaVerde";
|
||||
break;
|
||||
case tipoImg.stampa:
|
||||
_imgName = "print";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (_dimensione)
|
||||
{
|
||||
case dimImg.small:
|
||||
_imgDim = "_s";
|
||||
break;
|
||||
case dimImg.medium:
|
||||
_imgDim = "_m";
|
||||
break;
|
||||
case dimImg.large:
|
||||
_imgDim = "_l";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
switch (_tipoFile)
|
||||
{
|
||||
case tipoFileImg.gif:
|
||||
_imgType = "gif";
|
||||
break;
|
||||
case tipoFileImg.jpg:
|
||||
_imgType = "jpg";
|
||||
break;
|
||||
case tipoFileImg.png:
|
||||
_imgType = "png";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return string.Format("~/images/{0}{1}.{2}", _imgName, _imgDim, _imgType);
|
||||
}
|
||||
/// <summary>
|
||||
/// Classe help email x SteamWare.UserControl
|
||||
/// </summary>
|
||||
public class email
|
||||
{
|
||||
/// <summary>
|
||||
/// Email dell'account admin applicativo
|
||||
/// </summary>
|
||||
public static string adminEmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRS("_adminEmail");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Email dell'account sender applicativo
|
||||
/// </summary>
|
||||
public static string senderEmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRS("_fromEmail");
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero Righe standard
|
||||
/// </summary>
|
||||
public int righeDataGrid
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("_righeDataGrid");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero Righe standard ANAGR
|
||||
/// </summary>
|
||||
public int righeDataGridAnagr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("_righeDataGridAnagr");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero Righe standard LONG
|
||||
/// </summary>
|
||||
public int righeDataGridLong
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("_righeDataGridLong");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero Righe standard MED
|
||||
/// </summary>
|
||||
public int righeDataGridMed
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("_righeDataGridMed");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero Righe standard SHORT
|
||||
/// </summary>
|
||||
public int righeDataGridShort
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("_righeDataGridShort");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for every user control in the application, containing some common
|
||||
/// behaviour and utility methods.
|
||||
/// It is not meant to be be used directly.
|
||||
/// </summary>
|
||||
public class UserPage : System.Web.UI.Page
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
string answ = "";
|
||||
if (lemma != null)
|
||||
{
|
||||
answ = user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "--";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.CRB("forceUppercase");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se l'utente sia abilitato a scrivere nelal pagina corrente (quindi modificare e cancellare...)
|
||||
/// </summary>
|
||||
public bool isWriteEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.isPageWriteEnabled(titolo);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...)
|
||||
/// </summary>
|
||||
public bool isPageEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.isPageEnabled(titolo);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
||||
<configSections>
|
||||
<sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
|
||||
<section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>
|
||||
</sectionGroup>
|
||||
<section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<webServices>
|
||||
<soapExtensionTypes>
|
||||
<add type="Microsoft.Web.Services2.WebServicesExtension, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="1" group="0"/>
|
||||
</soapExtensionTypes>
|
||||
</webServices>
|
||||
<add key="_logDir" value="./logs/"/>
|
||||
<add key="_smtpCli" value="10.10.11.22"/>
|
||||
</appSettings>
|
||||
<microsoft.web>
|
||||
<converters>
|
||||
<add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
|
||||
<add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
|
||||
<add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
|
||||
</converters>
|
||||
</microsoft.web>
|
||||
<!-- SteamWare -->
|
||||
<connectionStrings>
|
||||
<add name="SteamWare.Properties.Settings.loggerConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=Flamma_SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SteamWare_VocabolarioConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.AnagraficaBremboConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=AnagraficaBrembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SteamWare_BremboConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.Flamma_AnagraficaConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=Flamma_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.ETS_AnagraficaConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.ETS_AnagraficaConnectionString1"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SEL_fatture_SteamWareConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=SEL_fatture_SteamWare;User ID=sa;Password=keyhammer16;Encrypt=False;TrustServerCertificate=True"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.Equa_AnagraficaConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DbConfConnectionString"
|
||||
connectionString="Data Source=SQLSTEAM;Initial Catalog=SEL_fatture_SteamWare;Persist Security Info=True;User ID=sa;Password=keyhammer;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<pages>
|
||||
<controls>
|
||||
<add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
|
||||
<add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
|
||||
</controls>
|
||||
</pages>
|
||||
|
||||
<!-- ASMX is mapped to a new handler so that proxy javascripts can also be served. -->
|
||||
<httpHandlers>
|
||||
<remove verb="*" path="*.asmx"/>
|
||||
<add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/>
|
||||
</httpHandlers>
|
||||
<httpModules>
|
||||
<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- Stored x scambio valore parametro tree -->
|
||||
|
||||
CREATE PROCEDURE dbo.sp_scambiaObjTree
|
||||
(
|
||||
@oldIdxObj varchar(20),
|
||||
@newIdxObj varchar(20)
|
||||
)
|
||||
AS
|
||||
|
||||
/* sposto i tree indicati */
|
||||
UPDATE dbo.Obj
|
||||
SET idxObj = REPLACE( idxObj, @oldIdxObj, @newIdxObj )
|
||||
WHERE (idxObj LIKE @oldIdxObj + '%')
|
||||
|
||||
|
||||
RETURN
|
||||
GO
|
||||
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione auth
|
||||
/// </summary>
|
||||
public class authProxy
|
||||
{
|
||||
#region area table adapters
|
||||
|
||||
/// <summary>
|
||||
/// The ta anag dev
|
||||
/// </summary>
|
||||
public DS_devicesTableAdapters.AnagDevicesTableAdapter taAnagDev;
|
||||
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
taAnagDev = new DS_devicesTableAdapters.AnagDevicesTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
string connString = memLayer.ML.confReadString("DevicesConnectionString");
|
||||
taAnagDev.Connection.ConnectionString = connString;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="authProxy"/> class.
|
||||
/// </summary>
|
||||
protected authProxy()
|
||||
{
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
/// <summary>
|
||||
/// Singleton accesso a authProxy
|
||||
/// </summary>
|
||||
public static authProxy AP = new authProxy();
|
||||
|
||||
/// <summary>
|
||||
/// Tenta autologin con autoriconoscimento Dominio/username by cookie
|
||||
/// </summary>
|
||||
/// <param name="cookieName"></param>
|
||||
/// <returns></returns>
|
||||
public static bool tryAuthByCookie(string cookieName)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format(string.Format("Richiesta login da cookie {0}", cookieName)), tipoLog.INFO);
|
||||
string devSecret = memLayer.ML.getCookieVal(cookieName);
|
||||
bool answ = false;
|
||||
DS_devices.AnagDevicesRow device = null;
|
||||
if (devSecret != "" && devSecret != null)
|
||||
{
|
||||
// cerco il device...ogni dipendente può averne + di 1 registrato a suo nome...
|
||||
string Dominio = "";
|
||||
string UsrName = "";
|
||||
try
|
||||
{
|
||||
device = DataWrap.DW.taAnagDev.getByDeviceSecret(devSecret)[0];
|
||||
Dominio = device.Dominio;
|
||||
UsrName = device.User_Name;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Errore recupero dati da devSecret {0}:{1}{2}", devSecret, Environment.NewLine, exc), tipoLog.ERROR);
|
||||
}
|
||||
if (Dominio != "" && UsrName != "")
|
||||
{
|
||||
answ = true;
|
||||
try
|
||||
{
|
||||
// avvio l'utente (in sessione)
|
||||
user_std.UtSn.startUpUtente(Dominio, UsrName);
|
||||
logger.lg.scriviLog(String.Format("Effettuata login da cookie per l'utente {0}/{1}", Dominio, UsrName), tipoLog.INFO);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta il secret code
|
||||
/// </summary>
|
||||
/// <param name="Dominio"></param>
|
||||
/// <param name="UsrName"></param>
|
||||
/// <param name="matrOpr"></param>
|
||||
/// <param name="DeviceName"></param>
|
||||
/// <param name="adesso"></param>
|
||||
/// <returns></returns>
|
||||
public static string getSecret(string Dominio, string UsrName, int matrOpr, string DeviceName, DateTime adesso)
|
||||
{
|
||||
return string.Format("{0}|{1}|{2}|{3}|{4}", Dominio, UsrName, DeviceName, matrOpr, adesso);
|
||||
}
|
||||
/// <summary>
|
||||
/// crea un nuovo record device e salva un nuovo cookie su db x il dispositivo e l'utente richiesti
|
||||
/// </summary>
|
||||
/// <param name="Dominio"></param>
|
||||
/// <param name="UsrName"></param>
|
||||
/// <param name="matrOpr"></param>
|
||||
/// <param name="DeviceName"></param>
|
||||
/// <param name="Description"></param>
|
||||
/// <param name="IPv4"></param>
|
||||
/// <param name="cookieName"></param>
|
||||
/// <param name="expDate"></param>
|
||||
/// <returns></returns>
|
||||
public static bool createNewCookie(string Dominio, string UsrName, int matrOpr, string DeviceName, string Description, string IPv4, string cookieName, DateTime expDate)
|
||||
{
|
||||
bool answ = false;
|
||||
// calcolo il secret...
|
||||
DateTime adesso = DateTime.Now;
|
||||
string Secret = authProxy.getSecret(Dominio, UsrName, matrOpr, DeviceName, adesso);
|
||||
string devSecret = SteamCrypto.EncryptString(Secret, cookieName);
|
||||
try
|
||||
{
|
||||
// genero nuovo record!
|
||||
DataWrap.DW.taAnagDev.insertQuery(devSecret, Dominio, UsrName, matrOpr, DeviceName, Description, adesso, IPv4);
|
||||
// salvo il cookie nel browser
|
||||
memLayer.ML.setCookieVal(cookieName, devSecret, expDate);
|
||||
logger.lg.scriviLog(String.Format("Salvato login da cookie per l'utente {0}/{1} - matr {2}", Dominio, UsrName, matrOpr), tipoLog.INFO);
|
||||
// indico come fatto
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in salvataggio cookie su db/dispositivo:{0}dominio:{1} | userName:{2} | matr:{6} | deviceName:{3} | ip:{4}{0}{5}", Environment.NewLine, Dominio, UsrName, DeviceName, IPv4, exc, matrOpr));
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// rimuove device da DB e toglie il cookie
|
||||
/// </summary>
|
||||
/// <param name="DeviceSecret">secret associata al device</param>
|
||||
/// <returns></returns>
|
||||
public static bool removeDeviceByDevSec(string DeviceSecret)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
DataWrap.DW.taAnagDev.delByDeviceSecret(DeviceSecret);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// rimuove device da DB e toglie il cookie
|
||||
/// </summary>
|
||||
/// <param name="DeviceName">Nome Device</param>
|
||||
/// <returns></returns>
|
||||
public static bool removeDeviceByDevName(string DeviceName)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
DataWrap.DW.taAnagDev.delByDeviceName(DeviceName);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// imuove device da DB e toglie il cookie
|
||||
/// </summary>
|
||||
/// <param name="Dominio"></param>
|
||||
/// <param name="UsrName"></param>
|
||||
/// <returns></returns>
|
||||
public static bool removeDeviceByUserDominio(string Dominio, string UsrName)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
DataWrap.DW.taAnagDev.delByDominioUser(Dominio, UsrName);
|
||||
answ = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe con funzioni specifiche di calcolo
|
||||
/// </summary>
|
||||
public class calcoli
|
||||
{
|
||||
/// <summary>
|
||||
/// inizializzazione classe
|
||||
/// </summary>
|
||||
protected calcoli()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco dei caratteri base 36: 0..9A..Z
|
||||
/// </summary>
|
||||
protected String baseCharList = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
||||
/// <summary>
|
||||
/// converte un intero in un numero a base 36 (0..9A..Z)
|
||||
/// </summary>
|
||||
/// <param name="num">num intero da convertire</param>
|
||||
/// <param name="nBase">base, max 36 (0..9A..Z)</param>
|
||||
/// <returns></returns>
|
||||
public String ConvertToBase(int num, int nBase)
|
||||
{
|
||||
|
||||
// check if we can convert to another base
|
||||
if (nBase < 2 || nBase > baseCharList.Length)
|
||||
return "";
|
||||
|
||||
int r;
|
||||
String newNumber = "";
|
||||
|
||||
// in r we have the offset of the char that was converted to the new base
|
||||
while (num >= nBase)
|
||||
{
|
||||
r = num % nBase;
|
||||
newNumber = baseCharList[r] + newNumber;
|
||||
num = num / nBase;
|
||||
}
|
||||
// the last number to convert
|
||||
newNumber = baseCharList[num] + newNumber;
|
||||
|
||||
return newNumber;
|
||||
}
|
||||
/// <summary>
|
||||
/// converte da base di dimensione nBase a valore intero
|
||||
/// </summary>
|
||||
/// <param name="valore">valore in formato nBase</param>
|
||||
/// <param name="nBase">base, max 36 (0..9A..Z)</param>
|
||||
/// <returns></returns>
|
||||
public int ConvertFromBase(string valore, int nBase)
|
||||
{
|
||||
int answ = 0;
|
||||
int moduloPos = 0;
|
||||
int valorePos = 0;
|
||||
if (nBase < 2 || nBase > baseCharList.Length)
|
||||
return answ; // errore di base...
|
||||
|
||||
// percorro il mio vaore string e ri-compongo il numero INT...
|
||||
for (int i = 0; i < valore.Length; i++)
|
||||
{
|
||||
// converto il valore in formato nBase in valore intero da moltiplcare x la base...
|
||||
moduloPos = baseCharList.IndexOf(valore[valore.Length - i - 1]);
|
||||
valorePos = Convert.ToInt32(Math.Pow(Convert.ToDouble(nBase), Convert.ToDouble(i)));
|
||||
// leggo da sx con potenze crescenti della base
|
||||
answ = answ + valorePos * moduloPos;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// metodo di accesso singleton
|
||||
/// </summary>
|
||||
public static calcoli obj = new calcoli();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe per effettuare confronto tra valori disomogeneri per tipo e costruire diff testuali
|
||||
/// </summary>
|
||||
public class confrontoValori
|
||||
{
|
||||
#region area protected
|
||||
/// <summary>
|
||||
/// valore originale
|
||||
/// </summary>
|
||||
protected string _valOld;
|
||||
/// <summary>
|
||||
/// nuovo valore
|
||||
/// </summary>
|
||||
protected string _valNew;
|
||||
/// <summary>
|
||||
/// dictionary dei parametri vecchi
|
||||
/// </summary>
|
||||
protected Dictionary<string, string> _paramOld;
|
||||
/// <summary>
|
||||
/// dictionary dei parametri nuovi
|
||||
/// </summary>
|
||||
protected Dictionary<string, string> _paramNew;
|
||||
/// <summary>
|
||||
/// inizializzazione classe
|
||||
/// </summary>
|
||||
protected confrontoValori()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
/// <summary>
|
||||
/// stringa diff dei valori originali modificati
|
||||
/// </summary>
|
||||
public string valOld
|
||||
{
|
||||
get
|
||||
{
|
||||
return _valOld;
|
||||
}
|
||||
set
|
||||
{
|
||||
_valOld = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// stringa diff dei valori nuovi modificati
|
||||
/// </summary>
|
||||
public string valNew
|
||||
{
|
||||
get
|
||||
{
|
||||
return _valNew;
|
||||
}
|
||||
set
|
||||
{
|
||||
_valNew = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// valorizza i diff dei valori old e new
|
||||
/// </summary>
|
||||
public void doDiff()
|
||||
{
|
||||
// eseguo diff, andando a iterare nel dictionary dei valori old e cercando nel new, se diverso inserisco traducento...
|
||||
foreach (string colonna in paramOld.Keys)
|
||||
{
|
||||
if (paramNew.ContainsKey(colonna))
|
||||
{
|
||||
if (paramNew[colonna] != paramOld[colonna])
|
||||
{
|
||||
// salvo la modifica...
|
||||
valOld += string.Format("{0}: {1}<br>", colonna, paramOld[colonna]);
|
||||
valNew += string.Format("{0}: {1}<br>", colonna, paramNew[colonna]);
|
||||
}
|
||||
}
|
||||
}
|
||||
// se è + lunga di 4 contiene qualcosa, tolgo le ultime 4 che sono "<br>"
|
||||
if (valOld.Length > 4)
|
||||
{
|
||||
valOld = valOld.Substring(0, valOld.Length - 4);
|
||||
valNew = valNew.Substring(0, valNew.Length - 4);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola solo il vettore dei valori old (x delete)
|
||||
/// </summary>
|
||||
public void calcOldVal()
|
||||
{
|
||||
foreach (string colonna in paramOld.Keys)
|
||||
{
|
||||
// salvo la modifica...
|
||||
valOld += string.Format("{0}: {1}<br>", colonna, paramOld[colonna]);
|
||||
}
|
||||
// se è + lunga di 4 contiene qualcosa, tolgo le ultime 4 che sono "<br>"
|
||||
if (valOld.Length > 4)
|
||||
{
|
||||
valOld = valOld.Substring(0, valOld.Length - 4);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dictionary dei parametri old
|
||||
/// </summary>
|
||||
public Dictionary<string, string> paramOld
|
||||
{
|
||||
get
|
||||
{
|
||||
return _paramOld;
|
||||
}
|
||||
set
|
||||
{
|
||||
_valOld = "";
|
||||
_paramOld = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dictionary dei parametri new
|
||||
/// </summary>
|
||||
public Dictionary<string, string> paramNew
|
||||
{
|
||||
get
|
||||
{
|
||||
return _paramNew;
|
||||
}
|
||||
set
|
||||
{
|
||||
_valNew = "";
|
||||
_paramNew = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto statico per il confronto valori
|
||||
/// </summary>
|
||||
public static confrontoValori obj = new confrontoValori();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe di gestione dei db x creazione/update alla versione richiesta
|
||||
/// </summary>
|
||||
public class dbUpdateManager
|
||||
{
|
||||
/// <summary>
|
||||
/// oggetto connessione
|
||||
/// </summary>
|
||||
protected SqlConnection conn = null;
|
||||
/// <summary>
|
||||
/// stringa di connessione
|
||||
/// </summary>
|
||||
protected string _connString;
|
||||
/// <summary>
|
||||
/// dir che contiene gli script da eseguire...
|
||||
/// </summary>
|
||||
protected string _sqlScriptDir;
|
||||
/// <summary>
|
||||
/// formato del file SQL impiegato (nel senso di formato come iFormat del tipo "App_{0:0000}.sql" --> da App_0001.sql ad App_9999.sql)
|
||||
/// </summary>
|
||||
protected string _sqlFileFormat;
|
||||
/// <summary>
|
||||
/// avvio protected della classe
|
||||
/// </summary>
|
||||
public dbUpdateManager(string connectionString, string sqlDir, string sqlFileFormat)
|
||||
{
|
||||
// salvo valori di avvio
|
||||
_sqlFileFormat = sqlFileFormat;
|
||||
_connString = connectionString;
|
||||
try
|
||||
{
|
||||
_sqlScriptDir = SteamwareStrings.getFilePath(sqlDir);
|
||||
}
|
||||
catch
|
||||
{
|
||||
_sqlScriptDir = sqlDir;
|
||||
}
|
||||
//logger.lg.scriviLog(_sqlScriptDir, tipoLog.INFO);
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue gli script di sql di update dal file richiesto
|
||||
/// </summary>
|
||||
/// <param name="nomeFile"></param>
|
||||
/// <param name="timeout"></param>
|
||||
/// <returns></returns>
|
||||
public bool execSql(string nomeFile, int timeout)
|
||||
{
|
||||
bool answ = false;
|
||||
// avvio connessione
|
||||
conn = new SqlConnection(_connString);
|
||||
// apro il file in lettura
|
||||
fileMover.obj.setDirectory(_sqlScriptDir);
|
||||
string sqlCmd = fileMover.obj.scaricaFileString(nomeFile).Replace("???", "");
|
||||
try
|
||||
{
|
||||
// apro connessione
|
||||
conn.Open();
|
||||
// creo e popolo comando
|
||||
logger.lg.scriviLog(string.Format("Inizio esecuzione comandl SQL del file {0}", nomeFile), tipoLog.INFO);
|
||||
DateTime inizio = DateTime.Now;
|
||||
SqlCommand comando = conn.CreateCommand();
|
||||
// eseguo un comando alla volta (fino al GO...)
|
||||
string singleSqlCmd = "";
|
||||
int i_GO = sqlCmd.IndexOf("GO\r\n");
|
||||
while (i_GO != -1)
|
||||
{
|
||||
// prendo stringa... escluso GO...
|
||||
singleSqlCmd = sqlCmd.Substring(0, i_GO);
|
||||
// tolgo dalla string la parte eseguita... escluso GO...
|
||||
sqlCmd = sqlCmd.Substring(i_GO + 2, sqlCmd.Length - i_GO - 2);
|
||||
// eseguo singolo comando
|
||||
comando.CommandText = singleSqlCmd;
|
||||
comando.CommandTimeout = timeout;
|
||||
// eseguo
|
||||
comando.ExecuteNonQuery();
|
||||
// ricaolco posizione prox GO...
|
||||
i_GO = sqlCmd.IndexOf("GO\r\n");
|
||||
}
|
||||
logger.lg.scriviLog(string.Format("Completata esecuzione SQL {0} in {1} msec", nomeFile, DateTime.Now.Subtract(inizio).TotalMilliseconds), tipoLog.INFO);
|
||||
// segno come fatto
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore durante l'esecuzione SQL {0}, errore \n\r {1}", nomeFile, e), tipoLog.EXCEPTION);
|
||||
}
|
||||
finally
|
||||
{
|
||||
// chiude connessione
|
||||
if (conn != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
conn.Close();
|
||||
conn.Dispose();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore durante la chiusura della connessione, errore:\n\r {0}", e), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorna il db eseguendo gli script dalla versione di partenza a quella di arrivo
|
||||
///
|
||||
/// NB: per definizione rev 0 = resetta svuotando DB, rev 1 crea tabelle iniziali, rev 2 inserisce i valori di default
|
||||
/// </summary>
|
||||
/// <param name="nomeDB">nome DB di cui cercare script</param>
|
||||
/// <param name="revFrom">revisione di partenza</param>
|
||||
/// <param name="revTo">revisione di arrivo</param>
|
||||
/// <param name="timeout">timeout max per ogni operazione</param>
|
||||
/// <returns></returns>
|
||||
public bool updateDbToRev(string nomeDB, int revFrom, int revTo, int timeout)
|
||||
{
|
||||
bool answ = false;
|
||||
// ciclo tra le revisioni richieste e chiedo esecuzione...
|
||||
for (int i = revFrom; i < revTo + 1; i++)
|
||||
{
|
||||
execSql(string.Format(_sqlFileFormat, nomeDB, i), timeout);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il db indicato esiste o meno...
|
||||
/// </summary>
|
||||
/// <param name="dbname"></param>
|
||||
/// <param name="connectionString"></param>
|
||||
/// <returns></returns>
|
||||
public bool checkDbExisting(string dbname, string connectionString)
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// !!!FARE!!!
|
||||
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// crea il db indicato con i parametri di connessione specificati
|
||||
/// </summary>
|
||||
/// <param name="dbname"></param>
|
||||
/// <param name="connectionString"></param>
|
||||
/// <returns></returns>
|
||||
public bool createDb(string dbname, string connectionString)
|
||||
{
|
||||
bool answ = false;
|
||||
|
||||
// !!!FARE!!! per ora non c'è creazione ma SOLO fasi di update...
|
||||
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione parametri deviceper stampa
|
||||
/// </summary>
|
||||
public class devInfoParam
|
||||
{
|
||||
/// <summary>
|
||||
/// creazione oggetto parametri per stampa
|
||||
/// </summary>
|
||||
/// <param name="_OutputFormat"></param>
|
||||
/// <param name="_PageHeight"></param>
|
||||
/// <param name="_PageWidth"></param>
|
||||
/// <param name="_MarginLeft"></param>
|
||||
/// <param name="_MarginRight"></param>
|
||||
/// <param name="_MarginTop"></param>
|
||||
/// <param name="_MarginBottom"></param>
|
||||
public devInfoParam(string _OutputFormat, string _PageHeight, string _PageWidth, string _MarginLeft, string _MarginRight, string _MarginTop, string _MarginBottom)
|
||||
{
|
||||
OutputFormat = _OutputFormat;
|
||||
PageHeight = _PageHeight;
|
||||
PageWidth = _PageWidth;
|
||||
MarginLeft = _MarginLeft;
|
||||
MarginRight = _MarginRight;
|
||||
MarginTop = _MarginTop;
|
||||
MarginBottom = _MarginBottom;
|
||||
}
|
||||
/// <summary>
|
||||
/// formato output
|
||||
/// </summary>
|
||||
public string OutputFormat { get; set; }
|
||||
/// <summary>
|
||||
/// altezza
|
||||
/// </summary>
|
||||
public string PageHeight { get; set; }
|
||||
/// <summary>
|
||||
/// larghezza
|
||||
/// </summary>
|
||||
public string PageWidth { get; set; }
|
||||
/// <summary>
|
||||
/// margine Sx
|
||||
/// </summary>
|
||||
public string MarginLeft { get; set; }
|
||||
/// <summary>
|
||||
/// margine Dx
|
||||
/// </summary>
|
||||
public string MarginRight { get; set; }
|
||||
/// <summary>
|
||||
/// margine Top
|
||||
/// </summary>
|
||||
public string MarginTop { get; set; }
|
||||
/// <summary>
|
||||
/// margine Bottom
|
||||
/// </summary>
|
||||
public string MarginBottom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the XML parameter.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The XML parameter.
|
||||
/// </value>
|
||||
public string xmlParam
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("<DeviceInfo>" +
|
||||
" <OutputFormat>{0}</OutputFormat>" +
|
||||
" <PageWidth>{1}</PageWidth>" +
|
||||
" <PageHeight>{2}</PageHeight>" +
|
||||
" <MarginTop>{3}</MarginTop>" +
|
||||
" <MarginLeft>{4}</MarginLeft>" +
|
||||
" <MarginRight>{5}</MarginRight>" +
|
||||
" <MarginBottom>{6}</MarginBottom>" +
|
||||
"</DeviceInfo>", OutputFormat, PageWidth, PageHeight, MarginTop, MarginLeft, MarginRight, MarginBottom);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,986 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione auth dispositivi (new 2014)
|
||||
/// </summary>
|
||||
public class devicesAuthProxy
|
||||
{
|
||||
#region area table adapters
|
||||
/// <summary>
|
||||
/// TableAdapter devices
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.AnagDevicesTableAdapter taAnagDev;
|
||||
/// <summary>
|
||||
/// TableAdapter Utenti
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.UtentiTableAdapter taUtenti;
|
||||
/// <summary>
|
||||
/// TableAdapter Diritti
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.DIRITTITableAdapter taDiritti;
|
||||
/// <summary>
|
||||
/// TableAdapter permessi
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.PermessiTableAdapter taPermessi;
|
||||
/// <summary>
|
||||
/// TableAdapter funzione
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.FUNZIONETableAdapter taFunzione;
|
||||
/// <summary>
|
||||
/// TableAdapter permessi2fuzione
|
||||
/// </summary>
|
||||
public DS_AuthTableAdapters.Permessi2FunzioneTableAdapter taPermessi2Funzione;
|
||||
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
taAnagDev = new DS_AuthTableAdapters.AnagDevicesTableAdapter();
|
||||
taUtenti = new DS_AuthTableAdapters.UtentiTableAdapter();
|
||||
taDiritti = new DS_AuthTableAdapters.DIRITTITableAdapter();
|
||||
taPermessi = new DS_AuthTableAdapters.PermessiTableAdapter();
|
||||
taFunzione = new DS_AuthTableAdapters.FUNZIONETableAdapter();
|
||||
taPermessi2Funzione = new DS_AuthTableAdapters.Permessi2FunzioneTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
string connString = memLayer.ML.confReadString("DevicesAuthConnectionString");
|
||||
taAnagDev.Connection.ConnectionString = connString;
|
||||
taUtenti.Connection.ConnectionString = connString;
|
||||
taDiritti.Connection.ConnectionString = connString;
|
||||
taPermessi.Connection.ConnectionString = connString;
|
||||
taFunzione.Connection.ConnectionString = connString;
|
||||
taPermessi2Funzione.Connection.ConnectionString = connString;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/* Classe che si occupa di:
|
||||
* ----------------------------------------
|
||||
* 1) gestione username
|
||||
* 2) gestione ruoli da anagrafica
|
||||
* 3) gestione declinazione ruoli in permessi
|
||||
*
|
||||
* in Standard GENERICO
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="authProxy"/> class.
|
||||
/// </summary>
|
||||
protected devicesAuthProxy()
|
||||
{
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
/// <summary>
|
||||
/// Singleton accesso a devicesAuthProxy (static object)
|
||||
/// </summary>
|
||||
public static devicesAuthProxy stObj = new devicesAuthProxy();
|
||||
|
||||
#region metodi verifica authKey, email, ...
|
||||
|
||||
/// <summary>
|
||||
/// cifra in MD5 la stringa in chiaro
|
||||
/// </summary>
|
||||
/// <param name="chiaro"></param>
|
||||
/// <returns></returns>
|
||||
public static string encodeKey(string chiaro)
|
||||
{
|
||||
string answ = chiaro;
|
||||
try
|
||||
{
|
||||
answ = SteamCrypto.EncryptString(chiaro, memLayer.ML.confReadString("CodModulo"));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// decifra la stringa MD5 in chiaro
|
||||
/// </summary>
|
||||
/// <param name="cifrato"></param>
|
||||
/// <returns></returns>
|
||||
public static string decodeKey(string cifrato)
|
||||
{
|
||||
string answ = cifrato;
|
||||
try
|
||||
{
|
||||
answ = SteamCrypto.DecryptString(cifrato, memLayer.ML.confReadString("CodModulo"));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica una email per appartenenza ad un utente VALIDO dell'elenco
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <returns></returns>
|
||||
public bool checkUserEmail(string email)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = taUtenti.getByEmail(email).Rows.Count > 0;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore check user email: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica una email + AuthKey per appartenenza ad un utente VALIDO dell'elenco
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <param name="AuthKey"></param>
|
||||
/// <returns></returns>
|
||||
public bool checkUserEmailAK(string email, string AuthKey)
|
||||
{
|
||||
bool answ = false;
|
||||
int trovati = 0;
|
||||
if (email != "" && AuthKey != "")
|
||||
{
|
||||
string md5UserAuthKey = encodeKey(AuthKey);
|
||||
try
|
||||
{
|
||||
trovati += taUtenti.getByEmailAK(email, md5UserAuthKey).Rows.Count;
|
||||
// se abilitato anche plain controlla pure li...
|
||||
if (memLayer.ML.confReadBool("enablePlain"))
|
||||
{
|
||||
trovati += taUtenti.getByEmailAK(email, AuthKey).Rows.Count;
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
answ = trovati > 0;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// registra su DB la richiesta di reset della auth key dell'utente ed opzionalmente invia email ad admin
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <param name="adminEmail">opzionale, se != "" invia email all'indirizzo dell'admin x reset</param>
|
||||
public void reqResetAuthKey(string email, string adminEmail)
|
||||
{
|
||||
// registro richiesta di reset KEY...
|
||||
taUtenti.reqAuthKeyReset(email);
|
||||
|
||||
// se ho email admin...
|
||||
if (adminEmail != "")
|
||||
{
|
||||
// mando email ad admin x reset utente...
|
||||
string oggetto = string.Format("L'utente {0} ha richiesto il reset della sua AuthKey.<br/><br/>Seguire il <a href=\"{1}/{2}\">link seguente</a> per approvare o rifiutare la richiesta", email, memLayer.ML.confReadString("baseUrl"), memLayer.ML.confReadString("urlGestUtenti"));
|
||||
gestEmail.geAuth.mandaEmail(email, adminEmail, "Richiesta reset AuthKey utente", oggetto);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// invia email ad utente con url x reset hash password
|
||||
/// </summary>
|
||||
/// <param name="email">destinatario</param>
|
||||
/// <param name="hashPasswd">hashPasswd ATTUALE (in chiaro)</param>
|
||||
/// <param name="webAppName"></param>
|
||||
public void sendEmailResetHashPassword(string email, string hashPasswd, string webAppName)
|
||||
{
|
||||
// se ho email admin...
|
||||
if (email != "")
|
||||
{
|
||||
// calcolo chiave MD5...
|
||||
string md5hashPasswd = encodeKey(hashPasswd);
|
||||
// mando email ad admin x reset utente...
|
||||
string oggetto = string.Format("Hi,<br/><br/>This is an automatic message generated by {3} platform on behalf of platform admin.<br/><br/><a href=\"{0}/resetPassword?hash={1}&email={2}\">Please click on following link (or cut/paste to your preferred browser)</a> to reset your password to {3} login.<br/><br/>Regards.", memLayer.ML.confReadString("baseUrl"), HttpUtility.UrlEncode(md5hashPasswd), email, webAppName);
|
||||
gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_fromEmail"), email, webAppName, oggetto);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// invia email ad utente con url x enroll
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <param name="AuthKey">chiave (in chiaro)</param>
|
||||
/// <param name="subject">chiave (in chiaro)</param>
|
||||
public void sendEmailAuthKey(string email, string AuthKey, string subject)
|
||||
{
|
||||
// se ho email admin...
|
||||
if (email != "")
|
||||
{
|
||||
// calcolo chiave MD5...
|
||||
string md5UserAuthKey = encodeKey(AuthKey);
|
||||
// mando email ad admin x reset utente...
|
||||
string oggetto = string.Format("Hi,<br/><br/>This is an automatic message generated by {3} platform on behalf of platform admin.<br/><br/><a href=\"{0}/jumper?UserAuthkey={1}&USER_NAME={2}\">Please click on following link (or cut/paste to your preferred browser)</a> to enable current device to {3} login.<br/><br/>Regards.", memLayer.ML.confReadString("baseUrl"), HttpUtility.UrlEncode(md5UserAuthKey), email, subject);
|
||||
gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_fromEmail"), email, subject, oggetto);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// numero massimo auth concesse (se non trovo su conf prendo 1000)
|
||||
/// </summary>
|
||||
protected int maxAuth
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = memLayer.ML.CRI("maxAuth");
|
||||
if (answ < 0) answ = 1000;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua enroll del device x l'utente con l'email indicata
|
||||
/// </summary>
|
||||
/// <param name="UserAuthKey"></param>
|
||||
/// <param name="IPv4"></param>
|
||||
/// <param name="DeviceName"></param>
|
||||
/// <param name="Description"></param>
|
||||
/// <param name="email"></param>
|
||||
/// <returns></returns>
|
||||
public bool enrollDevice(string UserAuthKey, string IPv4, string DeviceName, string Description, string email)
|
||||
{
|
||||
bool fatto = false;
|
||||
if (numAuth(UserAuthKey, email) > 0)
|
||||
{
|
||||
// calcolo il secret...
|
||||
DateTime adesso = DateTime.Now;
|
||||
string Secret = string.Format("{0}|{1}|{2}", email, DeviceName, adesso);
|
||||
string devSecret = SteamCrypto.EncryptString(Secret, passphrase(memLayer.ML.confReadString("CodModulo"), UserAuthKey));
|
||||
try
|
||||
{
|
||||
// registro chiave x il device
|
||||
taAnagDev.Insert(devSecret, email, DeviceName, Description, adesso, adesso, IPv4);
|
||||
// se condizione NORMALE (ovvero numAuth < maxAuth, altrimenti NON consuma...)
|
||||
if (numAuth(UserAuthKey, email) <= maxAuth)
|
||||
{
|
||||
// registro "consumo" della authKey (-1 numAuth)
|
||||
taUtenti.recordAuthKeyUse(email);
|
||||
}
|
||||
// salvo il cookie nel browser x 2 anni
|
||||
memLayer.ML.setCookieVal(AuthCookieName, devSecret, DateTime.Now.AddYears(2));
|
||||
// indico come fatto
|
||||
fatto = true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("{0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
//esce...
|
||||
return fatto;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce nome cookie di auth (o default...)
|
||||
/// </summary>
|
||||
public static string AuthCookieName
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "AuthDevice";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.confReadString("AuthCookieName");
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// genera la passphrase utente a partire dai parametri richiesti
|
||||
/// </summary>
|
||||
/// <param name="CodMod"></param>
|
||||
/// <param name="userKey"></param>
|
||||
/// <returns></returns>
|
||||
public string passphrase(string CodMod, string userKey)
|
||||
{
|
||||
return string.Format("{0}#{1}", CodMod, userKey);
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce il numero di attivazioni rimaste x utente dato email e key
|
||||
/// </summary>
|
||||
/// <param name="UserAuthKey"></param>
|
||||
/// <param name="email"></param>
|
||||
/// <returns></returns>
|
||||
public int numAuth(string UserAuthKey, string email)
|
||||
{
|
||||
DS_Auth.UtentiRow rowUtenti;
|
||||
int numAuth = 0;
|
||||
try
|
||||
{
|
||||
// decodifica al volo la cifra...
|
||||
rowUtenti = taUtenti.getByEmailAK(email, UserAuthKey)[0];
|
||||
numAuth = rowUtenti.numAuth;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
// ritorno
|
||||
return numAuth;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce il numero di attivazioni rimaste x utente dato email
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <returns></returns>
|
||||
public int numAuth(string email)
|
||||
{
|
||||
DS_Auth.UtentiRow rowUtenti;
|
||||
int numAuth = 0;
|
||||
try
|
||||
{
|
||||
// decodifica al volo la cifra...
|
||||
rowUtenti = taUtenti.getByEmail(email)[0];
|
||||
numAuth = rowUtenti.numAuth;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
// ritorno
|
||||
return numAuth;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area utente
|
||||
|
||||
/// <summary>
|
||||
/// cancella da session l'utente
|
||||
/// </summary>
|
||||
public void clearAllUserData()
|
||||
{
|
||||
memLayer.ML.emptySessionVal("USER_NAME");
|
||||
memLayer.ML.emptySessionVal("email");
|
||||
memLayer.ML.emptySessionVal("dirittiUtente");
|
||||
memLayer.ML.emptySessionVal("permessiUtente");
|
||||
memLayer.ML.emptySessionVal("permessiUtenteWrite");
|
||||
memLayer.ML.emptySessionVal("rigaUtente");
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce la tabella diritti da session
|
||||
/// </summary>
|
||||
public DS_Auth.DIRITTIDataTable diritti
|
||||
{
|
||||
get
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
return DataSetAdapter<DS_Auth.DIRITTIDataTable>.convert(memLayer.ML.dsSessionObj("dirittiUtente"));
|
||||
}
|
||||
else
|
||||
{
|
||||
return (DS_Auth.DIRITTIDataTable)memLayer.ML.objSessionObj("dirittiUtente");
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
memLayer.ML.setSessionDataTable("dirittiUtente", value);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("dirittiUtente", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella dei permessi utente
|
||||
/// </summary>
|
||||
public DS_Auth.PermessiDataTable permessi
|
||||
{
|
||||
get
|
||||
{
|
||||
DS_Auth.PermessiDataTable tabPermessi = null;
|
||||
try
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
tabPermessi = DataSetAdapter<DS_Auth.PermessiDataTable>.convert(memLayer.ML.dsSessionObj("permessiUtente"));
|
||||
}
|
||||
else
|
||||
{
|
||||
tabPermessi = (DS_Auth.PermessiDataTable)memLayer.ML.objSessionObj("permessiUtente");
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Errore recupero permessi!{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return tabPermessi;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
memLayer.ML.setSessionDataTable("permessiUtente", value);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("permessiUtente", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella dei permessi utente di tipo "WRITE" enabled
|
||||
/// </summary>
|
||||
public DS_Auth.PermessiDataTable permessiWrite
|
||||
{
|
||||
get
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
return DataSetAdapter<DS_Auth.PermessiDataTable>.convert(memLayer.ML.dsSessionObj("permessiUtenteWrite"));
|
||||
}
|
||||
else
|
||||
{
|
||||
return (DS_Auth.PermessiDataTable)memLayer.ML.objSessionObj("permessiUtenteWrite");
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
memLayer.ML.setSessionDataTable("permessiUtenteWrite", value);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("permessiUtenteWrite", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto utente con metodi get/set
|
||||
/// </summary>
|
||||
public string utente
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("USER_NAME");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("USER_NAME", value, true);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto email con metodi get/set
|
||||
/// </summary>
|
||||
public string email
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("email");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("email", value, true);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto DeviceSecret IN SESSIONE con metodi get/set
|
||||
/// </summary>
|
||||
public string DeviceSecret
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.getCookieVal(AuthCookieName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto modulo IN SESSIONE con metodi get/set
|
||||
/// </summary>
|
||||
public string modulo
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRS("CodModulo");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce i valori della riga utente da db
|
||||
/// </summary>
|
||||
public DS_Auth.UtentiRow rigaUtente
|
||||
{
|
||||
get
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
DS_Auth.UtentiDataTable table = DataSetAdapter<DS_Auth.UtentiDataTable>.convert(memLayer.ML.dsSessionObj("rigaUtente"));
|
||||
return table[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return (DS_Auth.UtentiRow)memLayer.ML.objSessionObj("rigaUtente");
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
memLayer.ML.setSessionDataTable("rigaUtente", value.Table);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("rigaUtente", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce una stringa formattata con cognome e nome
|
||||
/// </summary>
|
||||
public string CognomeNome
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (isAuth)
|
||||
{
|
||||
answ = string.Format("{0} {1}", rigaUtente.cognome, rigaUtente.nome);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// è un boolean che indica se in session ci siano user/email e DeviceSecret (cookie) e quindi utente autenticato in precedenza...
|
||||
/// </summary>
|
||||
public bool isAuth
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((utente != "" || email != "") && DeviceSecret != "");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1
|
||||
/// </summary>
|
||||
/// <param name="pagina"></param>
|
||||
/// <returns></returns>
|
||||
public bool isPageEnabled(string pagina)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
if (permessi != null)
|
||||
{
|
||||
// verifico ANCHE se ci sia una versione ".aspx" in +...
|
||||
System.Data.DataRow[] righe = permessi.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", pagina));
|
||||
answ = (righe.Length >= 1);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1
|
||||
/// </summary>
|
||||
/// <param name="pagina"></param>
|
||||
/// <returns></returns>
|
||||
public bool isPageSafe(string pagina)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
string _safePages = memLayer.ML.CRS("_safePages");
|
||||
answ = (_safePages.IndexOf(pagina) >= 0);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica se il permesso utente per la pagina attuale sia write per almeno 1 diritto assegnato (restituisce true se ne trova almeno 1 con permessi2funzione.readwrite='S')
|
||||
/// </summary>
|
||||
/// <param name="pagina"></param>
|
||||
/// <returns></returns>
|
||||
public bool isPageWriteEnabled(string pagina)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
if (permessiWrite != null)
|
||||
{
|
||||
System.Data.DataRow[] righe = permessiWrite.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", pagina));
|
||||
answ = (righe.Length >= 1);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Procedura da chiamare DOPO aver messo in session i dati utente/email x caricare gli altri dati
|
||||
/// </summary>
|
||||
/// <param name="_username"></param>
|
||||
/// <returns></returns>
|
||||
public bool startUpUtente(string _username)
|
||||
{
|
||||
bool risultato = false;
|
||||
try
|
||||
{
|
||||
clearAllUserData();
|
||||
if (_username != "")
|
||||
{
|
||||
utente = _username;
|
||||
email = _username; // !!!HARD CODED, user = email...
|
||||
setupRiga();
|
||||
setupDirittiPermessi();
|
||||
setupMappaSito();
|
||||
setupLingua();
|
||||
risultato = true;
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in fase di startUpUtente:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return risultato;
|
||||
}
|
||||
/// <summary>
|
||||
/// costruisce la mappa del sito per l'utente
|
||||
/// </summary>
|
||||
protected virtual void setupMappaSito()
|
||||
{
|
||||
string _mappa = "";
|
||||
_mappa += "<mainMenu>";
|
||||
try
|
||||
{
|
||||
// partiamo dai permessi utente di numero "0" (sono intestazioni menù...)
|
||||
DS_Auth.PermessiRow[] vociMenu = (DS_Auth.PermessiRow[])permessi.Select("NUMERO ='0'", "GRUPPO");
|
||||
foreach (DS_Auth.PermessiRow voce in vociMenu)
|
||||
{
|
||||
_mappa += formattaNodo(voce.NOME, voce.DESCRIZIONE, voce.URL, siteNodeType.startContainer);
|
||||
// per ogni livello riempiamo con i permessi figli
|
||||
DS_Auth.PermessiRow[] pagine = (DS_Auth.PermessiRow[])permessi.Select(string.Format("GRUPPO ='{0}' AND NUMERO > 0", voce.GRUPPO), "NUMERO");
|
||||
foreach (DS_Auth.PermessiRow pagina in pagine)
|
||||
{
|
||||
_mappa += formattaNodo(pagina.NOME, pagina.DESCRIZIONE, pagina.URL, siteNodeType.leaf);
|
||||
}
|
||||
_mappa += formattaNodo(voce.NOME, voce.DESCRIZIONE, voce.URL, siteNodeType.endContainer);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
// salva in session...
|
||||
_mappa += "</mainMenu>";
|
||||
mappaSito = _mappa;
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta un nodo in modo corretto dai dati indicati
|
||||
/// </summary>
|
||||
/// <param name="titolo"></param>
|
||||
/// <param name="descrizione"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="tipoNodo"></param>
|
||||
protected string formattaNodo(string titolo, string descrizione, string url, siteNodeType tipoNodo)
|
||||
{
|
||||
string _out = "";
|
||||
switch (tipoNodo)
|
||||
{
|
||||
case siteNodeType.startContainer:
|
||||
_out = string.Format("<menu title=\"{0}\" description=\"{1}\" url=\"~/{2}\">", traduci(titolo), traduci(descrizione), url);
|
||||
break;
|
||||
case siteNodeType.endContainer:
|
||||
_out = "</menu>";
|
||||
break;
|
||||
case siteNodeType.leaf:
|
||||
_out = string.Format("<voce title=\"{0}\" description=\"{1}\" url=\"~/{2}\" />", traduci(titolo), traduci(descrizione), url);
|
||||
break;
|
||||
}
|
||||
return _out;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ricarica e ri-traduce la mappa sito per l'utente...
|
||||
/// </summary>
|
||||
public void ricaricaMappaSito()
|
||||
{
|
||||
memLayer.ML.emptySessionVal("dirittiUtente");
|
||||
memLayer.ML.emptySessionVal("permessiUtente");
|
||||
setupDirittiPermessi();
|
||||
setupMappaSito();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
string answ = "";
|
||||
if (lemma != null)
|
||||
{
|
||||
if (lemma.ToString() != "")
|
||||
{
|
||||
answ = user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "--";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// carica la riga dati utente
|
||||
/// </summary>
|
||||
protected virtual void setupRiga()
|
||||
{
|
||||
try
|
||||
{
|
||||
rigaUtente = ((DS_Auth.UtentiRow)taUtenti.getByEmail(email).Rows[0]);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Carica la tabella diritti dell'utente da db e salva in session
|
||||
/// </summary>
|
||||
protected virtual void setupDirittiPermessi()
|
||||
{
|
||||
try
|
||||
{
|
||||
diritti = taDiritti.getByUserModulo(utente, modulo); // salvo in session i diritti..
|
||||
setPermessiDaDiritti();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in fase di setupDirittiPermessi:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua setup dei permessi una volta salvati i diritti
|
||||
/// </summary>
|
||||
protected virtual void setPermessiDaDiritti()
|
||||
{
|
||||
// proseguo coi permessi
|
||||
DS_Auth.PermessiDataTable allPermessi = taPermessi.GetData();
|
||||
DS_Auth.Permessi2FunzioneDataTable allPerm2Funz = taPermessi2Funzione.GetData();
|
||||
DS_Auth.PermessiDataTable _permessiUtente = new DS_Auth.PermessiDataTable();
|
||||
DS_Auth.PermessiDataTable _permessiUtenteWrite = new DS_Auth.PermessiDataTable();
|
||||
string filtroFunz, filtroPerm, filtroPermWrite;
|
||||
filtroPerm = " COD_PERMESSO IN (";
|
||||
filtroPermWrite = " COD_PERMESSO IN (";
|
||||
// filtro i diritti utente x non avere duplicati...
|
||||
Dictionary<string, string> funzioniUtente = new Dictionary<string, string>();
|
||||
foreach (DS_Auth.DIRITTIRow riga in diritti)
|
||||
{
|
||||
try
|
||||
{
|
||||
funzioniUtente.Add(riga.COD_FUNZIONE, riga.COD_FUNZIONE);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
foreach (KeyValuePair<string, string> kvp in funzioniUtente)
|
||||
{
|
||||
filtroFunz = string.Format("COD_FUNZIONE='{0}'", kvp.Value);
|
||||
// recupero le righe dei righe2perm
|
||||
DS_Auth.Permessi2FunzioneRow[] righe_p2f = (DS_Auth.Permessi2FunzioneRow[])allPerm2Funz.Select(filtroFunz);
|
||||
foreach (DS_Auth.Permessi2FunzioneRow riga_p2f in righe_p2f)
|
||||
{
|
||||
filtroPerm += string.Format("'{0}', ", riga_p2f.COD_PERMESSO);
|
||||
// se è write metto in tab relativa...
|
||||
try
|
||||
{
|
||||
if (riga_p2f.READWRITE == "S")
|
||||
{
|
||||
filtroPermWrite += string.Format("'{0}', ", riga_p2f.COD_PERMESSO);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (filtroPerm == " COD_PERMESSO IN (")
|
||||
{
|
||||
filtroPerm += "'PermessiNonTrovati' ";
|
||||
}
|
||||
filtroPerm = filtroPerm.Remove(filtroPerm.Length - 2);
|
||||
filtroPerm += ") ";
|
||||
DS_Auth.PermessiRow[] righePerm = (DS_Auth.PermessiRow[])allPermessi.Select(filtroPerm, "GRUPPO, NUMERO");
|
||||
foreach (DS_Auth.PermessiRow rigaPerm in righePerm)
|
||||
{
|
||||
_permessiUtente.ImportRow(rigaPerm);
|
||||
}
|
||||
permessi = _permessiUtente;
|
||||
// salvo, se ci sono, permessi write...
|
||||
if (filtroPermWrite != " COD_PERMESSO IN (")
|
||||
{
|
||||
filtroPermWrite = filtroPermWrite.Remove(filtroPermWrite.Length - 2);
|
||||
filtroPermWrite += ") ";
|
||||
DS_Auth.PermessiRow[] righePermW = (DS_Auth.PermessiRow[])allPermessi.Select(filtroPermWrite, "GRUPPO, NUMERO");
|
||||
foreach (DS_Auth.PermessiRow rigaPerm in righePermW)
|
||||
{
|
||||
_permessiUtenteWrite.ImportRow(rigaPerm);
|
||||
}
|
||||
}
|
||||
permessiWrite = _permessiUtenteWrite;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica nella tab diritti se l'utente abbia il right richiesto e fornisce bool in risposta
|
||||
/// </summary>
|
||||
/// <param name="diritto"></param>
|
||||
/// <returns></returns>
|
||||
public bool userHasRight(string diritto)
|
||||
{
|
||||
bool _answ = false;
|
||||
try
|
||||
{
|
||||
if (diritti != null)
|
||||
{
|
||||
if (diritti.Select(String.Format("COD_FUNZIONE ='{0}'", diritto)).Length > 0)
|
||||
{
|
||||
_answ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog("userHasRight " + exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return _answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta la lingua utente dal valore della riga DB
|
||||
/// </summary>
|
||||
protected virtual void setupLingua()
|
||||
{
|
||||
string _lingua = "";
|
||||
try
|
||||
{
|
||||
_lingua = rigaUtente.CodGruppo;
|
||||
// se contiene "#" prendo primo dei 2 come codice...
|
||||
if (_lingua.IndexOf("#") >= 0)
|
||||
{
|
||||
string[] dati = _lingua.Split('#');
|
||||
_lingua = dati[0];
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (_lingua == "") _lingua = "EN";
|
||||
lingua = _lingua;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto lingua utente con metodi get/set
|
||||
/// </summary>
|
||||
public string lingua
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("Lingua").ToUpper();
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("Lingua", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fornisce un file XML della mappa del sito abilitato per l'utente...
|
||||
/// </summary>
|
||||
public string mappaSito
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("mappaSito");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("mappaSito", value);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region gestione pagina
|
||||
|
||||
/// <summary>
|
||||
/// pagina correntemente visualizzata (URL in sessione)
|
||||
/// </summary>
|
||||
public static string pagCorrente
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("pagCorrente");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("pagCorrente", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// pagina precedentemente visualizzata (URL in sessione)
|
||||
/// </summary>
|
||||
public static string pagPrecedente
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("pagPrecedente");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("pagPrecedente", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce il nome della pagina corrente
|
||||
/// </summary>
|
||||
public static string getPage(Uri MyUrl)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = MyUrl.LocalPath.Split('/').Last();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(exc.ToString(), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// enumeratore modalità login
|
||||
/// </summary>
|
||||
public enum loginMode
|
||||
{
|
||||
/// <summary>
|
||||
/// login AD normale
|
||||
/// </summary>
|
||||
normale,
|
||||
/// <summary>
|
||||
/// forza utente fornendo password
|
||||
/// </summary>
|
||||
forceUser,
|
||||
/// <summary>
|
||||
/// forza ad un utente standard scelto dall'elenco
|
||||
/// </summary>
|
||||
standardUser
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// enumeratore modalità scrittura tag siteMap
|
||||
/// </summary>
|
||||
public enum siteNodeType
|
||||
{
|
||||
/// <summary>
|
||||
/// nodo di tipo iniziale - apertura
|
||||
/// </summary>
|
||||
startContainer,
|
||||
/// <summary>
|
||||
/// nodo di tipo foglia
|
||||
/// </summary>
|
||||
leaf,
|
||||
/// <summary>
|
||||
/// nodo di tipo finale - chiusura
|
||||
/// </summary>
|
||||
endContainer
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// enumeratore tipi di anagrafica
|
||||
/// </summary>
|
||||
public enum tipoAnagrafica
|
||||
{
|
||||
/// <summary>
|
||||
/// tipo di anagrafica Brembo
|
||||
/// </summary>
|
||||
Brembo,
|
||||
/// <summary>
|
||||
/// tipo di anagrafica generica
|
||||
/// </summary>
|
||||
Standard
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// tipo di vista del modulo
|
||||
/// </summary>
|
||||
public enum tipoVistaMod
|
||||
{
|
||||
/// <summary>
|
||||
/// modalità selezione
|
||||
/// </summary>
|
||||
selezione,
|
||||
/// <summary>
|
||||
/// modalità editing
|
||||
/// </summary>
|
||||
editing,
|
||||
/// <summary>
|
||||
/// modalità inserting nuovo valore
|
||||
/// </summary>
|
||||
inserting
|
||||
}
|
||||
/// <summary>
|
||||
/// tipologia di file immagine
|
||||
/// </summary>
|
||||
public enum tipoFileImg
|
||||
{
|
||||
/// <summary>
|
||||
/// formato gif (no alpha channel)
|
||||
/// </summary>
|
||||
gif,
|
||||
/// <summary>
|
||||
/// formato jpeg
|
||||
/// </summary>
|
||||
jpg,
|
||||
/// <summary>
|
||||
/// formato png
|
||||
/// </summary>
|
||||
png
|
||||
}
|
||||
/// <summary>
|
||||
/// tipo di immagini usate per le icone di comando in web applications
|
||||
/// </summary>
|
||||
public enum tipoImg
|
||||
{
|
||||
/// <summary>
|
||||
/// icona annulla (croce rossa)
|
||||
/// </summary>
|
||||
annulla,
|
||||
/// <summary>
|
||||
/// icona approva (simbolo coccarda)
|
||||
/// </summary>
|
||||
approva,
|
||||
/// <summary>
|
||||
/// icona barcode in campo bianco
|
||||
/// </summary>
|
||||
barcode,
|
||||
/// <summary>
|
||||
/// icona barcode in campo arancio
|
||||
/// </summary>
|
||||
barcodeArancio,
|
||||
/// <summary>
|
||||
/// icona clona (magic wand)
|
||||
/// </summary>
|
||||
clona,
|
||||
/// <summary>
|
||||
/// icona converma (spunta verde)
|
||||
/// </summary>
|
||||
conferma,
|
||||
/// <summary>
|
||||
/// icona elimina (cestino)
|
||||
/// </summary>
|
||||
elimina,
|
||||
/// <summary>
|
||||
/// icona modifica (matita)
|
||||
/// </summary>
|
||||
modifica,
|
||||
/// <summary>
|
||||
/// icona notepad (blocco note)
|
||||
/// </summary>
|
||||
notepad,
|
||||
/// <summary>
|
||||
/// icona notepad + pdf (blocco note)
|
||||
/// </summary>
|
||||
notepadPdf,
|
||||
/// <summary>
|
||||
/// icona nuovo (segno +)
|
||||
/// </summary>
|
||||
nuovo,
|
||||
/// <summary>
|
||||
/// icona seleziona (lente)
|
||||
/// </summary>
|
||||
seleziona,
|
||||
/// <summary>
|
||||
/// icona semaforo giallo
|
||||
/// </summary>
|
||||
semaforoGiallo,
|
||||
/// <summary>
|
||||
/// icona semaforo rosso
|
||||
/// </summary>
|
||||
semaforoRosso,
|
||||
/// <summary>
|
||||
/// icona semaforo verde
|
||||
/// </summary>
|
||||
semaforoVerde,
|
||||
/// <summary>
|
||||
/// icona stampa (printer)
|
||||
/// </summary>
|
||||
stampa
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione immagini usate per le icone di comando in web applications
|
||||
/// </summary>
|
||||
public enum dimImg
|
||||
{
|
||||
/// <summary>
|
||||
/// formato piccolo
|
||||
/// </summary>
|
||||
small,
|
||||
/// <summary>
|
||||
/// formato medio
|
||||
/// </summary>
|
||||
medium,
|
||||
/// <summary>
|
||||
/// formato grande
|
||||
/// </summary>
|
||||
large
|
||||
}
|
||||
/// <summary>
|
||||
/// modalità di esecuzione applicativi
|
||||
/// </summary>
|
||||
public enum runModes
|
||||
{
|
||||
/// <summary>
|
||||
/// modalità normale
|
||||
/// </summary>
|
||||
normal,
|
||||
/// <summary>
|
||||
/// modalità debug
|
||||
/// </summary>
|
||||
debug,
|
||||
/// <summary>
|
||||
/// salvataggio di tutti i lemmi tradotti
|
||||
/// </summary>
|
||||
echoLemmi
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// modalità di chiamata userControl
|
||||
/// </summary>
|
||||
public enum ucMode
|
||||
{
|
||||
/// <summary>
|
||||
/// modalità solo lettura
|
||||
/// </summary>
|
||||
readOnly,
|
||||
/// <summary>
|
||||
/// modalità edit abilitata
|
||||
/// </summary>
|
||||
editEnabled
|
||||
}
|
||||
/// <summary>
|
||||
/// tipo evento userControl
|
||||
/// </summary>
|
||||
public enum ucEvType
|
||||
{
|
||||
/// <summary>
|
||||
/// evento: NEW
|
||||
/// </summary>
|
||||
Delete,
|
||||
/// <summary>
|
||||
/// evento: NEW
|
||||
/// </summary>
|
||||
Edit,
|
||||
/// <summary>
|
||||
/// evento: NEW
|
||||
/// </summary>
|
||||
New,
|
||||
/// <summary>
|
||||
/// evento: reset selezione
|
||||
/// </summary>
|
||||
Reset,
|
||||
/// <summary>
|
||||
/// evento: richiesta update parent
|
||||
/// </summary>
|
||||
ReqUpdateParent,
|
||||
/// <summary>
|
||||
/// evento: selected
|
||||
/// </summary>
|
||||
Selected
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"projects": [
|
||||
"wrap"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// struttura di comando da input utente (es: via barcode)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class inputComando
|
||||
{
|
||||
/// <summary>
|
||||
/// definisce se il comando sia valido o no
|
||||
/// </summary>
|
||||
public bool isValid;
|
||||
/// <summary>
|
||||
/// testo da mostrare dato il comando
|
||||
/// </summary>
|
||||
public string text2show;
|
||||
/// <summary>
|
||||
/// comando registrato
|
||||
/// </summary>
|
||||
public string currCmdIn;
|
||||
/// <summary>
|
||||
/// comando precedentemente inserito
|
||||
/// </summary>
|
||||
public string prevCmdIn;
|
||||
/// <summary>
|
||||
/// descrizione del comando
|
||||
/// </summary>
|
||||
public string descrComando;
|
||||
/// <summary>
|
||||
/// descrizione del comando precedente
|
||||
/// </summary>
|
||||
public string descrComandoPrev;
|
||||
/// <summary>
|
||||
/// valore del comando
|
||||
/// </summary>
|
||||
public string valore;
|
||||
/// <summary>
|
||||
/// valore tradotto del comando
|
||||
/// </summary>
|
||||
public string valoreTrad;
|
||||
/// <summary>
|
||||
/// costruttore del metodo...
|
||||
/// </summary>
|
||||
public inputComando()
|
||||
{
|
||||
isValid = false;
|
||||
text2show = "";
|
||||
currCmdIn = "";
|
||||
prevCmdIn = "";
|
||||
descrComando = "";
|
||||
valore = "";
|
||||
valoreTrad = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// gestione licenze applicativi
|
||||
/// </summary>
|
||||
public class licenseMan
|
||||
{
|
||||
/// <summary>
|
||||
/// numero di licenze attive per cliente/applicativo
|
||||
/// </summary>
|
||||
/// <param name="cliente"></param>
|
||||
/// <param name="applicativo"></param>
|
||||
/// <returns></returns>
|
||||
public static int getLicenseNum(string cliente, string applicativo)
|
||||
{
|
||||
// !!!FARE!!! chiamata a webservice 1/mese
|
||||
int answ = 1;
|
||||
// molto hard-coded e discutibile... licenze "perenni"
|
||||
switch (cliente)
|
||||
{
|
||||
case "SteamWare":
|
||||
answ = 4;
|
||||
break;
|
||||
case "ETS":
|
||||
if (applicativo == "GPW")
|
||||
{
|
||||
answ = 35;
|
||||
}
|
||||
break;
|
||||
case "SPS":
|
||||
if (applicativo == "GPW")
|
||||
{
|
||||
answ = 11;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
answ = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce chiave MD5 x un cliente/applicativo/expiryDate
|
||||
/// </summary>
|
||||
/// <param name="cliente"></param>
|
||||
/// <param name="applicativo"></param>
|
||||
/// <param name="licenze"></param>
|
||||
/// <param name="expiryDate"></param>
|
||||
/// <returns></returns>
|
||||
public static string getAuthKey(string cliente, string applicativo, int licenze, DateTime expiryDate)
|
||||
{
|
||||
string answ = "";
|
||||
// algoritmo MD5 formato cliente#applicativo#expDate, via SQLdiventa
|
||||
// SELECT CONVERT(VARCHAR(32), HashBytes('MD5', 'ETS#GPW#2013/12/31'), 2)
|
||||
string plainAuthKey = string.Format("{0}#{1}-{2}%{3}%", cliente, applicativo.PadLeft(20, '-'), expiryDate.ToString("yyyy/MM/dd"), licenze);
|
||||
string passPhrase = string.Format("{0}|{1}", cliente.PadLeft(50, ':'), applicativo);
|
||||
answ = SteamCrypto.EncryptString(plainAuthKey, passPhrase); // uso combinazione cliente+applicativo come passphrase!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce data decodificata da authKey + applicazione + cliente...
|
||||
/// </summary>
|
||||
/// <param name="cliente">The cliente.</param>
|
||||
/// <param name="applicativo">The applicativo.</param>
|
||||
/// <param name="licenze">The licenze.</param>
|
||||
/// <param name="authKey">The authentication key.</param>
|
||||
/// <returns></returns>
|
||||
public static DateTime expiryDateByAuthKey(string cliente, string applicativo, int licenze, string authKey)
|
||||
{
|
||||
DateTime answ = DateTime.Today.AddYears(-10);
|
||||
|
||||
string plainAuthKey = "";
|
||||
try
|
||||
{
|
||||
string passPhrase = string.Format("{0}|{1}", cliente.PadLeft(50, ':'), applicativo);
|
||||
plainAuthKey = SteamCrypto.DecryptString(authKey, passPhrase); // uso combinazione cliente+applicativo come passphrase!
|
||||
answ = Convert.ToDateTime(plainAuthKey.Replace(string.Format("{0}#{1}-", cliente, applicativo.PadLeft(20, '-')), "").Replace(string.Format("%{0}%", licenze), ""));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore decodifica auth key:{0}AuthKey: {1}{0}cliente:{2}{0}applicativo:{3}{0}errore:{4}", Environment.NewLine, authKey, cliente, applicativo, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,315 @@
|
||||
using System;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione logging esteso di eventi e note utente (correlabili)
|
||||
/// </summary>
|
||||
public class log2note
|
||||
{
|
||||
#region area protected
|
||||
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla tabella anagrafica filtraggi
|
||||
/// </summary>
|
||||
protected DS_loggingTableAdapters.T_anagFiltroTableAdapter taAnagFilt;
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla tabella anagrafica record
|
||||
/// </summary>
|
||||
protected DS_loggingTableAdapters.T_anagRecordTableAdapter taAnagRec;
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla tabella logging record di eventi
|
||||
/// </summary>
|
||||
protected DS_loggingTableAdapters.T_logRecordsTableAdapter taLogRec;
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla tabella logging utente
|
||||
/// </summary>
|
||||
protected DS_loggingTableAdapters.T_logUtenteTableAdapter taLogUt;
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla vista logging eventi
|
||||
/// </summary>
|
||||
public DS_loggingTableAdapters.v_logRecordsTableAdapter ta_vLogRec;
|
||||
/// <summary>
|
||||
/// TableAdapter di accesso alla vista logging utente
|
||||
/// </summary>
|
||||
public DS_loggingTableAdapters.v_logUtenteTableAdapter ta_vLogUt;
|
||||
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected void setupConnectionString()
|
||||
{
|
||||
// cambio le connString
|
||||
taAnagFilt.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
taAnagRec.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
taLogRec.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
taLogUt.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
ta_vLogUt.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
ta_vLogRec.Connection.ConnectionString = memLayer.ML.confReadString("LoggingConnectionString");
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio i tari tableAdapters
|
||||
/// </summary>
|
||||
private void setupTA()
|
||||
{
|
||||
taAnagFilt = new SteamWare.DS_loggingTableAdapters.T_anagFiltroTableAdapter();
|
||||
taAnagRec = new SteamWare.DS_loggingTableAdapters.T_anagRecordTableAdapter();
|
||||
taLogRec = new SteamWare.DS_loggingTableAdapters.T_logRecordsTableAdapter();
|
||||
taLogUt = new SteamWare.DS_loggingTableAdapters.T_logUtenteTableAdapter();
|
||||
ta_vLogRec = new SteamWare.DS_loggingTableAdapters.v_logRecordsTableAdapter();
|
||||
ta_vLogUt = new SteamWare.DS_loggingTableAdapters.v_logUtenteTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio della classe istanziando db e
|
||||
/// </summary>
|
||||
log2note()
|
||||
{
|
||||
setupTA();
|
||||
setupConnectionString();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
/// <summary>
|
||||
/// oggetto statico di accesso ai metodi della classe...
|
||||
/// </summary>
|
||||
public static log2note l2n = new log2note();
|
||||
|
||||
#region area oggetti restituiti
|
||||
|
||||
/// <summary>
|
||||
/// tabella eventi
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logRecordsDataTable tabLogEventi()
|
||||
{
|
||||
return ta_vLogRec.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella note
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logUtenteDataTable tabLogNote()
|
||||
{
|
||||
return ta_vLogUt.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella eventi secondo filtro
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento</param>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logRecordsDataTable tabLogEventi(string filtro)
|
||||
{
|
||||
return ta_vLogRec.getByFiltro(filtro);
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella note secondo filtro
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento</param>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logUtenteDataTable tabLogNote(string filtro)
|
||||
{
|
||||
return ta_vLogUt.getByFiltro(filtro);
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella eventi secondo filtro e condizione ulteriore WHERE esplicitata
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento</param>
|
||||
/// <param name="_where">ulteriore condizione WHERE per filtrare i dati (testo {0} della condizione "WHERE {0}" </param>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logRecordsDataTable tabLogEventi(string filtro, string _where)
|
||||
{
|
||||
DS_logging.v_logRecordsDataTable _tab = new DS_logging.v_logRecordsDataTable();
|
||||
foreach (DS_logging.v_logRecordsRow riga in ta_vLogRec.getByFiltro(filtro).Select(_where))
|
||||
{
|
||||
_tab.Addv_logRecordsRow(riga);
|
||||
}
|
||||
return _tab;
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella note secondo filtro e condizione ulteriore WHERE esplicitata
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento</param>
|
||||
/// <param name="_where">ulteriore condizione WHERE per filtrare i dati (testo {0} della condizione "WHERE {0}" </param>
|
||||
/// <returns></returns>
|
||||
public DS_logging.v_logUtenteDataTable tabLogNote(string filtro, string _where)
|
||||
{
|
||||
DS_logging.v_logUtenteDataTable _tab = new DS_logging.v_logUtenteDataTable();
|
||||
foreach (DS_logging.v_logUtenteRow riga in ta_vLogUt.getByFiltro(filtro).Select(_where))
|
||||
{
|
||||
_tab.Addv_logUtenteRow(riga);
|
||||
}
|
||||
return _tab;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// tabella note secondo filtro
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro gestito come condizione "LIKE '%{0}%'" rispetto al filtro salvato con l'evento</param>
|
||||
/// <returns></returns>
|
||||
public DS_logging.T_logUtenteDataTable tabLogUt(string filtro)
|
||||
{
|
||||
return taLogUt.getByFiltro(filtro);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region area insert valori
|
||||
|
||||
/// <summary>
|
||||
/// inserisce l'evento indicato dai parametri
|
||||
/// </summary>
|
||||
/// <param name="_userEv">user che ha generato l'evento</param>
|
||||
/// <param name="_pagina">pagina/form applicaizone in cui l'evento si è generato</param>
|
||||
/// <param name="_valOrig">valore originale(se c'è)</param>
|
||||
/// <param name="_valNew">valore nuovo/modificato</param>
|
||||
/// <param name="_evento">descrizione evento (poi gestita con anagrafica interna)</param>
|
||||
/// <param name="_filtro">filtro logico evento (poi gestita con anagrafica interna)</param>
|
||||
public void insEvento(string _userEv, string _pagina, string _valOrig, string _valNew, string _evento, string _filtro)
|
||||
{
|
||||
taLogRec.sp_insRecFull(_userEv, _pagina, _valOrig, _valNew, _evento, _filtro);
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisce la nota utente indicata dai parametri, restituisce idx della nota creata...
|
||||
/// </summary>
|
||||
/// <param name="_userNota">user che ha inserito la nota</param>
|
||||
/// <param name="_nota">testo della nota</param>
|
||||
/// <param name="_val">valore ulteriore da associare alla nota (es: label, codice, versione, ...)</param>
|
||||
/// <param name="_filtro">filtro logico evento (poi gestita con anagrafica interna)</param>
|
||||
/// <returns>intero dell'idx della nota creata</returns>
|
||||
public int insNota(string _userNota, string _nota, string _val, string _filtro)
|
||||
{
|
||||
int? answ = 0;
|
||||
taLogUt.sp_insLogUtFull(_userNota, _nota, _val, _filtro, ref answ);
|
||||
return (int)answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area gestione eventi (cestina, delete, associazione a note,...)
|
||||
|
||||
/// <summary>
|
||||
/// associa l'evento e la nota indicati
|
||||
/// </summary>
|
||||
/// <param name="idxRecord">idx del record da associare</param>
|
||||
/// <param name="_idxNota">idx chiave della nota da associare</param>
|
||||
public void associaEvento2Nota(int idxRecord, int _idxNota)
|
||||
{
|
||||
taLogRec.sp_setRec2nota(idxRecord, _idxNota);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// associa l'ultimo evento del filtro indicato alla nota
|
||||
/// </summary>
|
||||
/// <param name="filtro">filtro associato all'ultimo evento...</param>
|
||||
/// <param name="_idxNota">idx chiave della nota da associare</param>
|
||||
public void associaLastEvento2Nota(string filtro, int _idxNota)
|
||||
{
|
||||
taLogRec.sp_setLastRec2nota(filtro, _idxNota);
|
||||
}
|
||||
/// <summary>
|
||||
/// segna come cestinati tutti gli eventi dell'utente indicato non ancora associati o cestinati
|
||||
/// </summary>
|
||||
/// <param name="_userEv">utente generatore dell'evento</param>
|
||||
public void cestinaEventiUser(string _userEv)
|
||||
{
|
||||
taLogRec.sp_cestinaLogRecUt(_userEv);
|
||||
}
|
||||
/// <summary>
|
||||
/// segna come cestinati tutti gli eventi dell'utente indicato non ancora associati o cestinati
|
||||
/// </summary>
|
||||
/// <param name="_filtro">utente generatore dell'evento</param>
|
||||
public void cestinaEventiFiltro(string _filtro)
|
||||
{
|
||||
taLogRec.sp_cestinaLogRecFiltro(_filtro);
|
||||
}
|
||||
/// <summary>
|
||||
/// Elimina gli eventi cestinati generati dall'utente indicato
|
||||
/// </summary>
|
||||
/// <param name="_userEv">utente generatore dell'evento</param>
|
||||
public void eliminaEventiDaUser(string _userEv)
|
||||
{
|
||||
taLogRec.sp_deleteLogUser(_userEv);
|
||||
}
|
||||
/// <summary>
|
||||
/// Elimina gli eventi cestinati anteriori alla data selezionata
|
||||
/// </summary>
|
||||
/// <param name="_dataOra">dataOra dell'evento</param>
|
||||
public void associaEvento2Nota(DateTime _dataOra)
|
||||
{
|
||||
taLogRec.sp_deleteLogMaxData(_dataOra);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua la registrazione dell'evento in session
|
||||
/// </summary>
|
||||
public void registraEventi(string _userEv, string _pagina)
|
||||
{
|
||||
// controllo: loggin SOLO se la scheda ha logging abilitato nella riga del db...
|
||||
bool logEn = memLayer.ML.BoolSessionObj("logEn");
|
||||
memLayer.ML.emptySessionVal("logEn");
|
||||
if (logEn)
|
||||
{
|
||||
// leggo e svuoto info x logging
|
||||
string ev2log = memLayer.ML.StringSessionObj("ev2log");
|
||||
memLayer.ML.emptySessionVal("ev2log");
|
||||
string valOrig = memLayer.ML.StringSessionObj("valOrig");
|
||||
memLayer.ML.emptySessionVal("valOrig");
|
||||
string valNew = memLayer.ML.StringSessionObj("valNew");
|
||||
memLayer.ML.emptySessionVal("valNew");
|
||||
string filtEv = memLayer.ML.StringSessionObj("filtEv");
|
||||
memLayer.ML.emptySessionVal("filtEv");
|
||||
// effettuo logging evento
|
||||
l2n.insEvento(_userEv,_pagina, valOrig, valNew, ev2log, filtEv);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
/// metodo di comportamento del controllo di logging
|
||||
/// </summary>
|
||||
public enum logControlMode
|
||||
{
|
||||
/// <summary>
|
||||
/// nasconde pannello log
|
||||
/// </summary>
|
||||
hideLog,
|
||||
/// <summary>
|
||||
/// memorizza log inserito
|
||||
/// </summary>
|
||||
recordLog,
|
||||
/// <summary>
|
||||
/// mostra pannello log
|
||||
/// </summary>
|
||||
showLog
|
||||
}
|
||||
/// <summary>
|
||||
/// metodo di comportamento del controllo di logging
|
||||
/// </summary>
|
||||
public enum tipoApprovazione
|
||||
{
|
||||
/// <summary>
|
||||
/// indica il primo step del doppio livello di approvazione (completamento)
|
||||
/// </summary>
|
||||
completamento,
|
||||
/// <summary>
|
||||
/// SOLO con incremento indice di revisione dell'oggetto approvato
|
||||
/// </summary>
|
||||
revisione,
|
||||
/// <summary>
|
||||
/// SOLO mantenendo indice di revisione corrente
|
||||
/// </summary>
|
||||
semplice,
|
||||
/// <summary>
|
||||
/// permette SIA con revisione che senza (e anche rev -1)
|
||||
/// </summary>
|
||||
tutto
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,388 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gesione log files applicazioni
|
||||
/// </summary>
|
||||
public class logger
|
||||
{
|
||||
#region dichiarazione variabili
|
||||
|
||||
#region altri dati
|
||||
|
||||
/// <summary>
|
||||
/// directory base x logs
|
||||
/// </summary>
|
||||
protected string _logBaseDir;
|
||||
/// <summary>
|
||||
/// nome del file corrente
|
||||
/// </summary>
|
||||
protected string _logfileName;
|
||||
/// <summary>
|
||||
/// max mb di log da accumulare
|
||||
/// </summary>
|
||||
protected int _logMaxMb;
|
||||
/// <summary>
|
||||
/// controlla se si debba mantenere sotto controllo la dimensioen della cartella logs
|
||||
/// </summary>
|
||||
protected bool _doShrinkFolder;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region metodi esposti
|
||||
|
||||
/// <summary>
|
||||
/// singleton del logger
|
||||
/// </summary>
|
||||
public static logger lg = new logger();
|
||||
|
||||
/// <summary>
|
||||
/// avvio del logger nella dir desiderata
|
||||
/// </summary>
|
||||
public logger()
|
||||
{
|
||||
try
|
||||
{
|
||||
_logBaseDir = SteamwareStrings.getFilePath(memLayer.ML.confReadString("_logDir"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
_logBaseDir = memLayer.ML.confReadString("logLocalDir");
|
||||
}
|
||||
_logMaxMb = 100; // di default 100 mb...
|
||||
try
|
||||
{
|
||||
_doShrinkFolder = memLayer.ML.confReadBool("doShrinkFolder");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_doShrinkFolder = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// livello di log applicazione (da web.config, chiave '_logLevel')
|
||||
/// </summary>
|
||||
public int logLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.confReadInt("_logLevel");
|
||||
}
|
||||
catch
|
||||
{
|
||||
scriviLog("non ho trovato chiave di registro x logLevel...", tipoLog.ERROR);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio del logger nella dir desiderata
|
||||
/// </summary>
|
||||
public logger(string _baseDir)
|
||||
{
|
||||
_logBaseDir = _baseDir;
|
||||
_logMaxMb = 40; // di default 40 mb...
|
||||
}
|
||||
/// <summary>
|
||||
/// avvio del logger nella dir desiderata con il max di dati indicato
|
||||
/// </summary>
|
||||
public logger(string _baseDir, int _logMaxMB)
|
||||
{
|
||||
_logBaseDir = _baseDir;
|
||||
_logMaxMb = _logMaxMB;
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta il logfile odierno
|
||||
/// </summary>
|
||||
public void resetLogFile()
|
||||
{
|
||||
newLogfileName();
|
||||
FileInfo fi = new FileInfo(_logfileName);
|
||||
fi.Delete();
|
||||
scriviLog("ResetFile", tipoLog.STARTUP);
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive sul file log di default il valore della variabile string passata su una riga... (tab delim?!?)
|
||||
/// </summary>
|
||||
/// <param name="_testoPre">testo iniziale del log</param>
|
||||
/// <returns></returns>
|
||||
public bool scriviLog(string _testoPre)
|
||||
{
|
||||
// attenzione: rimpiazzo eventuali "</br>" con newline...
|
||||
string _testo = string.Format("{0:H:mm:ss ffff} \t{1}", DateTime.Now, _testoPre.Replace("<br>", Environment.NewLine).Replace("<br/>", Environment.NewLine).Replace("<br />", Environment.NewLine));
|
||||
|
||||
if (_doShrinkFolder)
|
||||
{
|
||||
// verifica dim directory ed eventualmente cancella... - opzionale
|
||||
shrinkDir();
|
||||
}
|
||||
// (ri)genera il nome del file di log...
|
||||
newLogfileName();
|
||||
// aggiunge in append...
|
||||
StreamWriter sw = new StreamWriter(_logfileName, true);
|
||||
bool fatto;
|
||||
try
|
||||
{
|
||||
sw.WriteLine(_testo);
|
||||
sw.Flush();
|
||||
sw.Close();
|
||||
fatto = true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
fatto = false;
|
||||
}
|
||||
return fatto;
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive un messaggio di log con etichetta pre
|
||||
/// </summary>
|
||||
/// <param name="testoLog">testo messaggio</param>
|
||||
/// <param name="tipo">tipo di log da registrare (etichetta [...])</param>
|
||||
/// <returns></returns>
|
||||
public bool scriviLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
answ = scriviLog(string.Format("[{0}] - {1}", tipo, testoLog));
|
||||
// se è un tipo EXCEPTION allora scrivo anche log diagnostico
|
||||
if (tipo == tipoLog.EXCEPTION)
|
||||
{
|
||||
try
|
||||
{
|
||||
// se abilitato output diagnostica...
|
||||
if (memLayer.ML.confReadBool("enableDumpDiag"))
|
||||
{
|
||||
string[] pingTagets = SteamWare.StringSplitter.CSplitter.Split(memLayer.ML.confReadString("pingTargets"), "#", true, -1, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
string[] wwwTagets = SteamWare.StringSplitter.CSplitter.Split(memLayer.ML.confReadString("wwwTargets"), "#", true, -1, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
// chiamo scrittura diagnostica
|
||||
scriviDiagnostica("DUMP diagnostico causa Eccezione", pingTagets, wwwTagets);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive su log un dump di diagnostica
|
||||
/// </summary>
|
||||
/// <param name="testoLog">Causale diagnostica</param>
|
||||
/// <param name="pingTargets">target per test PING</param>
|
||||
/// <param name="wwwTargets">target x download www page</param>
|
||||
public void scriviDiagnostica(string testoLog, string[] pingTargets, string[] wwwTargets)
|
||||
{
|
||||
string txtDiag = "";
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, SteamwareStrings.charLine('+', 80)));
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, SteamwareStrings.charLine('+', 80)));
|
||||
scriviLog(string.Format("[{0}] - {1}{2}", tipoLog.DUMP_DIAGN, testoLog, Environment.NewLine));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("UPTIME", Diagnostica.uptime)));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("STORAGE", Diagnostica.diskUsage)));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("USB", Diagnostica.usbDevices)));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("SERIAL", Diagnostica.serialPorts)));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("NETWORKING (interfaces)", Diagnostica.networkInterfaces)));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
// se richiesto faccio PING test
|
||||
if (pingTargets.Length > 0)
|
||||
{
|
||||
txtDiag = "";
|
||||
foreach (string target in pingTargets)
|
||||
{
|
||||
txtDiag += SteamwareStrings.addLine(Diagnostica.pingIp(target));
|
||||
}
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("NETWORKING (ping)", txtDiag)));
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
try
|
||||
{
|
||||
// se richiesto faccio PING test
|
||||
if (wwwTargets.Length > 0)
|
||||
{
|
||||
txtDiag = "";
|
||||
foreach (string target in wwwTargets)
|
||||
{
|
||||
txtDiag += SteamwareStrings.addLine(string.Format("WebPage Test ({2}): {0}{1}", Environment.NewLine, Diagnostica.getPageContent(target), target));
|
||||
}
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, formDiagBlock("NETWORKING (www)", txtDiag)));
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
// chiudo
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, SteamwareStrings.charLine('-', 80)));
|
||||
scriviLog(string.Format("[{0}]{1}{2}", tipoLog.DUMP_DIAGN, Environment.NewLine, SteamwareStrings.charLine('-', 80)));
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta un blococ di diagnostica (titolo, contenuto / eccezione)
|
||||
/// </summary>
|
||||
/// <param name="titolo"></param>
|
||||
/// <param name="contenuto"></param>
|
||||
/// <returns></returns>
|
||||
protected string formDiagBlock(string titolo, string contenuto)
|
||||
{
|
||||
string answ = SteamwareStrings.charTitle(titolo, '-', 60);
|
||||
try
|
||||
{
|
||||
answ += SteamwareStrings.addLine(contenuto);
|
||||
}
|
||||
catch
|
||||
{
|
||||
answ += string.Format("Errore diagnostica {0}", titolo);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region metodi privati
|
||||
|
||||
/// <summary>
|
||||
/// fornisce il nome del file in cui loggare (ed eventualmente crea...)
|
||||
/// </summary>
|
||||
protected void newLogfileName()
|
||||
{
|
||||
DateTime CurrentDateTime = DateTime.Now;
|
||||
_logfileName = _logBaseDir + String.Format("{0}.txt", CurrentDateTime.ToString("yyyyMMdd"));
|
||||
}
|
||||
/// <summary>
|
||||
/// provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb
|
||||
/// </summary>
|
||||
protected void shrinkDir()
|
||||
{
|
||||
// ottengo elenco files *.txt
|
||||
fileMover.obj.setDirectory(_logBaseDir);
|
||||
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.txt");
|
||||
foreach (FileInfo _file in _fis)
|
||||
{
|
||||
if (_file.CreationTime < DateTime.Now.AddDays(-2)) // zippo files + vecchi di 2 gg...
|
||||
{
|
||||
fileMover.obj.zippaSingoloFile(_file);
|
||||
//fileMover.obj.zippaSingoloFile(_file.Name);
|
||||
// cancello l'originale...
|
||||
fileMover.obj.eliminaFile(_file);
|
||||
//fileMover.obj.eliminaFile(_file.Name);
|
||||
}
|
||||
}
|
||||
// verifico directory e dimensione...
|
||||
while (fileMover.obj.totalMb() > _logMaxMb)
|
||||
{
|
||||
// cancello i + vecchi fino a rientrare alla dimensione max...
|
||||
fileMover.obj.deleteOldest();
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce il file + vecchio
|
||||
/// </summary>
|
||||
/// <param name="_di"></param>
|
||||
/// <returns></returns>
|
||||
protected void deleteOldest(DirectoryInfo _di)
|
||||
{
|
||||
FileInfo[] _fis = _di.GetFiles();
|
||||
DateTime _oldest = DateTime.Now;
|
||||
string _nome = "";
|
||||
foreach (FileInfo _file in _fis)
|
||||
{
|
||||
if (_file.CreationTime < _oldest)
|
||||
{
|
||||
_nome = _file.Name;
|
||||
}
|
||||
}
|
||||
FileInfo fi = new FileInfo(_nome);
|
||||
fi.Delete();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
/// tipo di log ammesso
|
||||
/// </summary>
|
||||
public enum tipoLog
|
||||
{
|
||||
/// <summary>
|
||||
/// informazioni di debug
|
||||
/// </summary>
|
||||
DEBUG,
|
||||
/// <summary>
|
||||
/// dump diagnostica
|
||||
/// </summary>
|
||||
DUMP_DIAGN,
|
||||
/// <summary>
|
||||
/// errori
|
||||
/// </summary>
|
||||
ERROR,
|
||||
/// <summary>
|
||||
/// eccezioni nell'esecuzione try/catch
|
||||
/// </summary>
|
||||
EXCEPTION,
|
||||
/// <summary>
|
||||
/// errori fatali
|
||||
/// </summary>
|
||||
FATAL,
|
||||
/// <summary>
|
||||
/// informazioni opzionali
|
||||
/// </summary>
|
||||
INFO,
|
||||
/// <summary>
|
||||
/// log dei lemmi invocati per traduzione da vocabolario
|
||||
/// </summary>
|
||||
LEMMA,
|
||||
/// <summary>
|
||||
/// fase di avvio componente
|
||||
/// </summary>
|
||||
STARTUP,
|
||||
/// <summary>
|
||||
/// avvisi
|
||||
/// </summary>
|
||||
WARNING
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AjaxControlToolkit" version="18.1.0" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="11.0.1" targetFramework="net462" />
|
||||
<package id="SharpZipLib" version="0.86.0" targetFramework="net35" />
|
||||
<package id="StackExchange.Redis" version="1.2.6" targetFramework="net462" />
|
||||
</packages>
|
||||
@@ -0,0 +1,429 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// tipo di chart (2D/3D)
|
||||
/// </summary>
|
||||
public enum ChartType
|
||||
{
|
||||
/// <summary>
|
||||
/// 2D
|
||||
/// </summary>
|
||||
due_D = 0,
|
||||
/// <summary>
|
||||
/// 3D
|
||||
/// </summary>
|
||||
tre_D = 1
|
||||
}
|
||||
/// <summary>
|
||||
/// web control che disegna un grafico a torta
|
||||
/// </summary>
|
||||
[DefaultProperty("Tipo")]
|
||||
[ToolboxData("<{0}:pieChart runat=server></{0}:pieChart>")]
|
||||
public class pieChart : WebControl
|
||||
{
|
||||
// Chart layout fields
|
||||
private ChartType tipoPie = ChartType.due_D;
|
||||
|
||||
/// <summary>
|
||||
/// tipo di grafico (2D/3D)
|
||||
/// </summary>
|
||||
[DefaultValue(ChartType.due_D)]
|
||||
[Category("Pie Common")]
|
||||
[Description("Tipo di grafico a torta da creare (2d/3d)")]
|
||||
public ChartType Tipo
|
||||
{
|
||||
get
|
||||
{
|
||||
return tipoPie;
|
||||
}
|
||||
set
|
||||
{
|
||||
tipoPie = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// altezza di default
|
||||
/// </summary>
|
||||
protected int _height = 250;
|
||||
/// <summary>
|
||||
/// larghezza di default
|
||||
/// </summary>
|
||||
protected int _width = 250;
|
||||
/// <summary>
|
||||
/// padding di default
|
||||
/// </summary>
|
||||
protected int _padding = 3;
|
||||
/// <summary>
|
||||
/// legenda visibile di default
|
||||
/// </summary>
|
||||
protected bool _showLegend = true;
|
||||
/// <summary>
|
||||
/// soglia minima 5% per mostrare il dato
|
||||
/// </summary>
|
||||
protected float _minPercent = (float)0.05;
|
||||
|
||||
/// <summary>
|
||||
/// ampiezza del grafico
|
||||
/// </summary>
|
||||
public int width
|
||||
{
|
||||
get
|
||||
{
|
||||
return _width;
|
||||
}
|
||||
set
|
||||
{
|
||||
_width = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// altezza del grafico
|
||||
/// </summary>
|
||||
public int height
|
||||
{
|
||||
get
|
||||
{
|
||||
return _height;
|
||||
}
|
||||
set
|
||||
{
|
||||
_height = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// padding grafico/container
|
||||
/// </summary>
|
||||
public int padding
|
||||
{
|
||||
get
|
||||
{
|
||||
return _padding;
|
||||
}
|
||||
set
|
||||
{
|
||||
_padding = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// boolean se si debba mostrale la legenda
|
||||
/// </summary>
|
||||
public bool showLegend
|
||||
{
|
||||
get
|
||||
{
|
||||
return _showLegend;
|
||||
}
|
||||
set
|
||||
{
|
||||
_showLegend = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// percentuale minima da mostrare
|
||||
/// </summary>
|
||||
public float minPercent
|
||||
{
|
||||
get
|
||||
{
|
||||
return _minPercent;
|
||||
}
|
||||
set
|
||||
{
|
||||
_minPercent = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// serie di dati (tipizzata) ma mostrare
|
||||
/// </summary>
|
||||
public DataLayer_generic.serieDatiDataTable serie
|
||||
{
|
||||
get
|
||||
{
|
||||
return (DataLayer_generic.serieDatiDataTable)HttpContext.Current.Session["serie"];
|
||||
}
|
||||
set
|
||||
{
|
||||
HttpContext.Current.Session["serie"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// testo associato al controllo
|
||||
/// </summary>
|
||||
[Bindable(true)]
|
||||
[Category("Appearance")]
|
||||
[DefaultValue("")]
|
||||
[Localizable(true)]
|
||||
public string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
String s = (String)ViewState["Text"];
|
||||
return ((s == null) ? String.Empty : s);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ViewState["Text"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// renderizza il contenuto
|
||||
/// </summary>
|
||||
/// <param name="output"></param>
|
||||
protected override void RenderContents(HtmlTextWriter output)
|
||||
{
|
||||
Bitmap objBitmap = new Bitmap(width, height);
|
||||
Graphics objGraphics = Graphics.FromImage(objBitmap);
|
||||
// Crea un background..
|
||||
objGraphics.FillRectangle(new SolidBrush(Color.White), 0, 0, width, height);
|
||||
// disegna pieChart
|
||||
if (tipoPie == ChartType.tre_D)
|
||||
{
|
||||
Draw3DPieChart(ref objGraphics);
|
||||
}
|
||||
else
|
||||
{
|
||||
Draw2DPieChart(ref objGraphics);
|
||||
}
|
||||
// disegna legenda...
|
||||
// Salva image su file
|
||||
Random rand = new Random();
|
||||
string _nomeFile = string.Format("./WebCharts/{0}_{1}.png", DateTime.Now.Ticks, rand.Next(99));
|
||||
//objBitmap.Save(Page.Response.OutputStream, ImageFormat.Jpeg);
|
||||
objBitmap.Save(HttpContext.Current.Server.MapPath(_nomeFile), ImageFormat.Png);
|
||||
// clean up...
|
||||
objGraphics.Dispose();
|
||||
objBitmap.Dispose();
|
||||
// preparo div...
|
||||
output.Write("<table><tr><td>");
|
||||
// scrivo file da inglobare...
|
||||
output.Write(string.Format("<img src=\"{0}\" />", _nomeFile));
|
||||
// scrivo una tabella di legenda se richiesto...
|
||||
if (_showLegend)
|
||||
{
|
||||
output.Write("</td><td align=\"left\">");
|
||||
output.Write(drawLegend());
|
||||
}
|
||||
output.Write("</td></tr></table>");
|
||||
// pulisco cache files di ieri...
|
||||
fileMover fm = new fileMover("./WebCharts/", "./logs/");
|
||||
foreach (DataLayer_generic.filesRow riga in fm.elencoFiles("png"))
|
||||
{
|
||||
if (riga.dataCreaz <= DateTime.Now.AddHours(-1))
|
||||
{
|
||||
fm.eliminaFile(riga.Nome);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// disegna la leggenda html laterale...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected string drawLegend()
|
||||
{
|
||||
string _answ = "";
|
||||
int i = 1;
|
||||
double totale = 1;
|
||||
if (serie != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
totale = Convert.ToDouble(serie.Compute(" SUM(valore)", ""));
|
||||
double parziale = 0;
|
||||
foreach (DataLayer_generic.serieDatiRow riga in serie)
|
||||
{
|
||||
if ((riga.valore / totale) > _minPercent)
|
||||
{
|
||||
_answ += string.Format("{2}) {0:#%} {1}<br />", riga.valore / totale, riga.label, i);
|
||||
i++;
|
||||
parziale = parziale + riga.valore;
|
||||
}
|
||||
}
|
||||
if (parziale < totale)
|
||||
{
|
||||
_answ += string.Format("{2}) {0:#%} {1}<br />", (totale - parziale) / totale, "altro", i);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return _answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// disegna piechart 2-dim
|
||||
/// </summary>
|
||||
/// <param name="objGraphics"></param>
|
||||
protected void Draw2DPieChart(ref Graphics objGraphics)
|
||||
{
|
||||
// calcolo il totale...
|
||||
double totale = 1;
|
||||
if (serie != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
totale = Convert.ToDouble(serie.Compute(" SUM(valore)", ""));
|
||||
double parziale = 0;
|
||||
double angolo;
|
||||
float xt, yt, xl, yl, xc, yc;
|
||||
float radius;
|
||||
int i = 1;
|
||||
// oggetto plotting...
|
||||
SolidBrush objBrush = new SolidBrush(Color.Black);
|
||||
objGraphics.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
SolidBrush _brush = new SolidBrush(Color.Black);
|
||||
Font _font = new Font("Verdana,Arial", 10);
|
||||
xc = (float)(width / 2) - _padding;
|
||||
yc = (float)(height / 2) - _padding;
|
||||
radius = (float)((width / 2) - _padding);
|
||||
Pen _penna = new Pen(Color.Black);
|
||||
foreach (DataLayer_generic.serieDatiRow riga in serie)
|
||||
{
|
||||
if ((riga.valore / totale) > _minPercent)
|
||||
{
|
||||
angolo = (riga.valore / totale) * 360;
|
||||
objBrush.Color = colorFromString(riga.colore);
|
||||
objGraphics.FillPie(objBrush, 0, 0, width - 2 * _padding, height - 2 * _padding, (float)parziale, (float)angolo);
|
||||
xl = (float)(xc + (Math.Cos((parziale) / 180 * (Math.PI)) * radius));
|
||||
yl = (float)(yc + (Math.Sin((parziale) / 180 * (Math.PI)) * radius));
|
||||
objGraphics.DrawLine(_penna, xc, yc, xl, yl);
|
||||
xt = (float)((float)(width / 2) - 2 * _padding + (Math.Cos((parziale + angolo / 2) / 180 * (Math.PI)) * (width / 3)));
|
||||
yt = (float)((float)(height / 2) - 2 * _padding + (Math.Sin((parziale + angolo / 2) / 180 * (Math.PI)) * (height / 3)));
|
||||
objGraphics.DrawString(i.ToString(), _font, _brush, xt, yt);
|
||||
i++;
|
||||
parziale = parziale + angolo;
|
||||
}
|
||||
if (parziale < 360) // indico "altro"
|
||||
{
|
||||
angolo = 360 - parziale;
|
||||
objBrush.Color = Color.White;
|
||||
objGraphics.FillPie(objBrush, 0, 0, width - 2 * _padding, height - 2 * _padding, (float)parziale, (float)angolo);
|
||||
xl = (float)(xc + (Math.Cos((parziale) / 180 * (Math.PI)) * radius));
|
||||
yl = (float)(yc + (Math.Sin((parziale) / 180 * (Math.PI)) * radius));
|
||||
objGraphics.DrawLine(_penna, xc, yc, xl, yl);
|
||||
xt = (float)((float)(width / 2) - 2 * _padding + (Math.Cos((parziale + angolo / 2) / 180 * (Math.PI)) * (width / 3)));
|
||||
yt = (float)((float)(height / 2) - 2 * _padding + (Math.Sin((parziale + angolo / 2) / 180 * (Math.PI)) * (height / 3)));
|
||||
objGraphics.DrawString(i.ToString(), _font, _brush, xt, yt);
|
||||
}
|
||||
objGraphics.DrawLine(_penna, xc, yc, xc + radius, yc);
|
||||
objGraphics.DrawEllipse(_penna, 0, 0, width - 2 * _padding, height - 2 * _padding);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// disegna piechart 3d ellittica
|
||||
/// </summary>
|
||||
/// <param name="objGraphics"></param>
|
||||
protected void Draw3DPieChart(ref Graphics objGraphics)
|
||||
{
|
||||
int iLoop, iLoop2;
|
||||
|
||||
// Create location and size of ellipse.
|
||||
|
||||
int x = 50;
|
||||
int y = 20;
|
||||
//int width = 200;
|
||||
//int height = 100;
|
||||
|
||||
// Create start and sweep angles.
|
||||
|
||||
int startAngle = 0;
|
||||
int sweepAngle = 45;
|
||||
SolidBrush objBrush = new SolidBrush(Color.Aqua);
|
||||
|
||||
Random rand = new Random();
|
||||
objGraphics.SmoothingMode = SmoothingMode.HighQuality;
|
||||
|
||||
//Loop through 180 back around to 135 degress so it gets drawn
|
||||
// correctly.
|
||||
|
||||
for (iLoop = 0; iLoop <= 315; iLoop += 45)
|
||||
{
|
||||
startAngle = (iLoop + 180) % 360;
|
||||
objBrush.Color = Color.FromArgb(rand.Next(255), rand.Next(255),
|
||||
rand.Next(255));
|
||||
|
||||
// On degrees from 0 to 180 draw 10 Hatched brush slices to show
|
||||
// depth
|
||||
|
||||
if ((startAngle < 135) || (startAngle == 180))
|
||||
{
|
||||
for (iLoop2 = 0; iLoop2 < 10; iLoop2++)
|
||||
objGraphics.FillPie(new HatchBrush(HatchStyle.Percent50,
|
||||
objBrush.Color), x,
|
||||
y + iLoop2, width, height, startAngle, sweepAngle);
|
||||
}
|
||||
|
||||
// Displace this pie slice from pie.
|
||||
|
||||
if (startAngle == 135)
|
||||
{
|
||||
// Show Depth
|
||||
|
||||
for (iLoop2 = 0; iLoop2 < 10; iLoop2++)
|
||||
objGraphics.FillPie(new HatchBrush(HatchStyle.Percent50,
|
||||
objBrush.Color), x - 30,
|
||||
y + iLoop2 + 15, width, height, startAngle,
|
||||
sweepAngle);
|
||||
|
||||
objGraphics.FillPie(objBrush, x - 30, y + 15,
|
||||
width, height, startAngle, sweepAngle);
|
||||
}
|
||||
else // Draw normally
|
||||
|
||||
objGraphics.FillPie(objBrush, x, y, width,
|
||||
height, startAngle, sweepAngle);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce la stringa colore in oggetto colore
|
||||
/// </summary>
|
||||
/// <param name="colore"></param>
|
||||
/// <returns></returns>
|
||||
protected Color colorFromString(string colore)
|
||||
{
|
||||
int r, g, b;
|
||||
r = 0;
|
||||
g = 0;
|
||||
b = 0;
|
||||
if ((colore.StartsWith("#")) && (colore.Length == 7))
|
||||
{
|
||||
r = HexToInt(colore.Substring(1, 2));
|
||||
g = HexToInt(colore.Substring(3, 2));
|
||||
b = HexToInt(colore.Substring(5, 2));
|
||||
}
|
||||
return Color.FromArgb(r, g, b);
|
||||
}
|
||||
/// <summary>
|
||||
/// converte intero a stringa esadecimale
|
||||
/// </summary>
|
||||
/// <param name="number"></param>
|
||||
/// <returns></returns>
|
||||
protected string IntToHex(int number)
|
||||
{
|
||||
return String.Format("{0:x}", number);
|
||||
}
|
||||
/// <summary>
|
||||
/// converte stringa esadecimale a intero
|
||||
/// </summary>
|
||||
/// <param name="hexString"></param>
|
||||
/// <returns></returns>
|
||||
protected int HexToInt(string hexString)
|
||||
{
|
||||
return int.Parse(hexString,
|
||||
System.Globalization.NumberStyles.HexNumber, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Classe gestione metodi di accesso ai dati embeddati
|
||||
/// </summary>
|
||||
public class selDataVoc
|
||||
{
|
||||
/// <summary>
|
||||
/// classe accesso tabelle selettori
|
||||
/// </summary>
|
||||
public selDataVoc()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// singleton
|
||||
/// </summary>
|
||||
public static selDataVoc mgr = new selDataVoc();
|
||||
|
||||
/// <summary>
|
||||
/// tabella vocabolario
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataLayer_generic.VocabolarioDataTable getVocabolario()
|
||||
{
|
||||
return DataWrap.DW.taVocabolario.GetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella vocabolario per la lingua indicata
|
||||
/// </summary>
|
||||
/// <param name="lingua"></param>
|
||||
/// <returns></returns>
|
||||
public DataLayer_generic.VocabolarioDataTable getVocabolario(string lingua)
|
||||
{
|
||||
return DataWrap.DW.taVocabolario.getByLingua(lingua);
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella vocabolario per la lingua indicata filtrato per lemma in modalità LIKE termine%
|
||||
/// </summary>
|
||||
/// <param name="lingua">lingua desiderata</param>
|
||||
/// <param name="lemmaLike">termine iniziale lemma da cercare</param>
|
||||
/// <returns></returns>
|
||||
public DataLayer_generic.VocabolarioDataTable getVocabolarioByLemma(string lingua, string lemmaLike)
|
||||
{
|
||||
return DataWrap.DW.taVocabolario.getByLinguaLemmaLike(lingua, lemmaLike);
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella lingue
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataLayer_generic.LingueDataTable getLingue()
|
||||
{
|
||||
return DataWrap.DW.taLingue.GetData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifico termine indicato... se manca aggiungo, se diverso aggiorno
|
||||
/// </summary>
|
||||
/// <param name="Lingua"></param>
|
||||
/// <param name="Lemma"></param>
|
||||
/// <param name="Traduzione"></param>
|
||||
/// <returns>true</returns>
|
||||
public void upsertLemma(string Lingua, string Lemma, string Traduzione)
|
||||
{
|
||||
DataWrap.DW.taVocabolario.upsertLemma(Lingua, Lemma, Traduzione);
|
||||
}
|
||||
/// <summary>
|
||||
/// faccio update del lemma indicato...
|
||||
/// </summary>
|
||||
/// <param name="Traduzione"></param>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void updateLemmaVoc(string Traduzione, string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
DataWrap.DW.taVocabolario.UpdateQuery(Traduzione, Original_Lingua, Original_Lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// cancella il lemma indicato
|
||||
/// </summary>
|
||||
/// <param name="Original_Lingua"></param>
|
||||
/// <param name="Original_Lemma"></param>
|
||||
public void deleteLemmaVoc(string Original_Lingua, string Original_Lemma)
|
||||
{
|
||||
DataWrap.DW.taVocabolario.DeleteQuery(Original_Lingua, Original_Lemma);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
namespace SteamWare
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for selettori
|
||||
/// </summary>
|
||||
public class selettori
|
||||
{
|
||||
#region avvio
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public selettori()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
protected DataLayer_AnagGen.CDCDataTable _tblCdC;
|
||||
/// <summary>
|
||||
/// carica i dati CdC se in cache o da TableAdapter
|
||||
/// </summary>
|
||||
protected virtual void caricaCdC()
|
||||
{
|
||||
DataLayer_AnagGenTableAdapters.CDCTableAdapter taCdC = new DataLayer_AnagGenTableAdapters.CDCTableAdapter();
|
||||
taCdC.Connection.ConnectionString = memLayer.ML.CRS("UtenteCdcConnectionString");
|
||||
if (memLayer.ML.isInCacheObject("_tblCdC"))
|
||||
{
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
_tblCdC = DataSetAdapter<DataLayer_AnagGen.CDCDataTable>.convert(memLayer.ML.dsSessionObj("_tblCdC"));
|
||||
}
|
||||
else
|
||||
{
|
||||
_tblCdC = (DataLayer_AnagGen.CDCDataTable)memLayer.ML.objCacheObj("_tblCdC");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_tblCdC = taCdC.GetData();
|
||||
if (memLayer.ML.serializeSession)
|
||||
{
|
||||
memLayer.ML.setSessionDataTable("_tblCdC", _tblCdC);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setCacheVal("_tblCdC", _tblCdC);
|
||||
}
|
||||
memLayer.ML.addTabInCache("_tblCdC");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// restituisce l'elenco di tutti i cdc
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual DataLayer_generic.selettoreDataTable getSelAllCdC()
|
||||
{
|
||||
caricaCdC();
|
||||
// costruisco il dataset, lo popolo e lo restituisco...
|
||||
DataLayer_generic.selettoreDataTable dtSelCdC = new DataLayer_generic.selettoreDataTable();
|
||||
string _label;
|
||||
foreach (DataLayer_AnagGen.CDCRow riga in _tblCdC)
|
||||
{
|
||||
try
|
||||
{
|
||||
_label = string.Format("{0} ({1})", riga.DESCRIZIONE, riga.COD_CDC);
|
||||
dtSelCdC.AddselettoreRow(_label, riga.COD_CDC);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return dtSelCdC;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce l'elenco di tutti i cdc della gerarchia dell'utente
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual DataLayer_generic.selettoreDataTable getSelCdCGer()
|
||||
{
|
||||
caricaCdC();
|
||||
// la var di sessione _AuthCdC contiene COD_CDC IN ('...', )
|
||||
DataLayer_AnagGen.CDCRow[] _tblCdcGer = (DataLayer_AnagGen.CDCRow[])_tblCdC.Select(memLayer.ML.StringSessionObj("_AuthCdC"));
|
||||
// costruisco il dataset, lo popolo e lo restituisco...
|
||||
DataLayer_generic.selettoreDataTable dtSelCdC = new DataLayer_generic.selettoreDataTable();
|
||||
string _label;
|
||||
foreach (DataLayer_AnagGen.CDCRow riga in _tblCdcGer)
|
||||
{
|
||||
try
|
||||
{
|
||||
_label = string.Format("{0} ({1})", riga.DESCRIZIONE, riga.COD_CDC);
|
||||
dtSelCdC.AddselettoreRow(_label, riga.COD_CDC);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return dtSelCdC;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user