diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll
index e79052e9..70929d7a 100644
Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ
diff --git a/GMW-RT/bin/GMW_data.dll b/GMW-RT/bin/GMW_data.dll
index e13dff7b..eab6ea98 100644
Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ
diff --git a/GMW-RT/bin/SteamWare.dll b/GMW-RT/bin/SteamWare.dll
index 456b4f01..8f4439ce 100644
Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ
diff --git a/GMW-UT/GMW-UT.csproj b/GMW-UT/GMW-UT.csproj
index 1ad9dc1b..4ec2def4 100644
--- a/GMW-UT/GMW-UT.csproj
+++ b/GMW-UT/GMW-UT.csproj
@@ -59,6 +59,7 @@
+
@@ -77,6 +78,13 @@
BCodeCall.aspx
+
+ sendReboot.aspx
+ ASPXCodeBehind
+
+
+ sendReboot.aspx
+
diff --git a/GMW-UT/GMW-UT.csproj.user b/GMW-UT/GMW-UT.csproj.user
index 54ff5035..cf3350a1 100644
--- a/GMW-UT/GMW-UT.csproj.user
+++ b/GMW-UT/GMW-UT.csproj.user
@@ -1,7 +1,7 @@
- SP_prod
+ SP_test
diff --git a/GMW-UT/bin/GMW-UT.dll b/GMW-UT/bin/GMW-UT.dll
index 0fe96ec5..a29961a2 100644
Binary files a/GMW-UT/bin/GMW-UT.dll and b/GMW-UT/bin/GMW-UT.dll differ
diff --git a/GMW-UT/bin/GMW_data.dll b/GMW-UT/bin/GMW_data.dll
index e13dff7b..eab6ea98 100644
Binary files a/GMW-UT/bin/GMW_data.dll and b/GMW-UT/bin/GMW_data.dll differ
diff --git a/GMW-UT/bin/SteamWare.dll b/GMW-UT/bin/SteamWare.dll
index 456b4f01..8f4439ce 100644
Binary files a/GMW-UT/bin/SteamWare.dll and b/GMW-UT/bin/SteamWare.dll differ
diff --git a/GMW-UT/sendReboot.aspx b/GMW-UT/sendReboot.aspx
new file mode 100644
index 00000000..3b34e211
--- /dev/null
+++ b/GMW-UT/sendReboot.aspx
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sendReboot.aspx.cs" Inherits="GMW_UT.sendReboot" %>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GMW-UT/sendReboot.aspx.cs b/GMW-UT/sendReboot.aspx.cs
new file mode 100644
index 00000000..72b2a000
--- /dev/null
+++ b/GMW-UT/sendReboot.aspx.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+using GMW_data;
+
+namespace GMW_UT
+{
+ public partial class sendReboot : System.Web.UI.Page
+ {
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ // legge i get x registrare che una amcchian è stata riavviata
+ string CodMacchina = "";
+ string IPv4 = "";
+ string agent = "";
+ try
+ {
+ CodMacchina = Request.QueryString["CodMacchina"];
+ }
+ catch
+ { }
+ try
+ {
+ // recupero IP del client remoto
+ IPv4 = Request.UserHostName;
+ agent = Request.UserAgent;
+ }
+ catch
+ { }
+ try
+ {
+ // ora salvo che la macchina è stata (ri)avviata...
+ utils.obj.registraStartup(CodMacchina, IPv4, agent);
+ }
+ catch (Exception exc)
+ {
+ if (memLayer.ML.confReadInt("_logLevel") > 5)
+ {
+ string errore = string.Format("Errore: {0}{1}", Environment.NewLine, exc);
+ logger.lg.scriviLog(errore, tipoLog.EXCEPTION);
+ lblOut.Text = errore;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/GMW-UT/sendReboot.aspx.designer.cs b/GMW-UT/sendReboot.aspx.designer.cs
new file mode 100644
index 00000000..eb0cdd73
--- /dev/null
+++ b/GMW-UT/sendReboot.aspx.designer.cs
@@ -0,0 +1,33 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GMW_UT {
+
+
+ public partial class sendReboot {
+
+ ///
+ /// form1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// lblOut control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblOut;
+ }
+}
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index afd6e0d1..f4acdf69 100644
Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ
diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll
index e13dff7b..eab6ea98 100644
Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ
diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll
index 456b4f01..8f4439ce 100644
Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ
diff --git a/GMW_data/DS_Utility.Designer.cs b/GMW_data/DS_Utility.Designer.cs
index c7fd32f5..30ec387f 100644
--- a/GMW_data/DS_Utility.Designer.cs
+++ b/GMW_data/DS_Utility.Designer.cs
@@ -74,6 +74,8 @@ namespace GMW_data {
private v_selImballiDataTable tablev_selImballi;
+ private RemoteRebootLogDataTable tableRemoteRebootLog;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -177,6 +179,9 @@ namespace GMW_data {
if ((ds.Tables["v_selImballi"] != null)) {
base.Tables.Add(new v_selImballiDataTable(ds.Tables["v_selImballi"]));
}
+ if ((ds.Tables["RemoteRebootLog"] != null)) {
+ base.Tables.Add(new RemoteRebootLogDataTable(ds.Tables["RemoteRebootLog"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -445,6 +450,16 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public RemoteRebootLogDataTable RemoteRebootLog {
+ get {
+ return this.tableRemoteRebootLog;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -587,6 +602,9 @@ namespace GMW_data {
if ((ds.Tables["v_selImballi"] != null)) {
base.Tables.Add(new v_selImballiDataTable(ds.Tables["v_selImballi"]));
}
+ if ((ds.Tables["RemoteRebootLog"] != null)) {
+ base.Tables.Add(new RemoteRebootLogDataTable(ds.Tables["RemoteRebootLog"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -770,6 +788,12 @@ namespace GMW_data {
this.tablev_selImballi.InitVars();
}
}
+ this.tableRemoteRebootLog = ((RemoteRebootLogDataTable)(base.Tables["RemoteRebootLog"]));
+ if ((initTable == true)) {
+ if ((this.tableRemoteRebootLog != null)) {
+ this.tableRemoteRebootLog.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -830,6 +854,8 @@ namespace GMW_data {
base.Tables.Add(this.tableRT_PageVal);
this.tablev_selImballi = new v_selImballiDataTable();
base.Tables.Add(this.tablev_selImballi);
+ this.tableRemoteRebootLog = new RemoteRebootLogDataTable();
+ base.Tables.Add(this.tableRemoteRebootLog);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -982,6 +1008,12 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeRemoteRebootLog() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -1112,6 +1144,9 @@ namespace GMW_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selImballiRowChangeEventHandler(object sender, v_selImballiRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void RemoteRebootLogRowChangeEventHandler(object sender, RemoteRebootLogRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -8310,6 +8345,328 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class RemoteRebootLogDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidxReboot;
+
+ private global::System.Data.DataColumn columnCodMacchina;
+
+ private global::System.Data.DataColumn columnIPv4;
+
+ private global::System.Data.DataColumn columnAgent;
+
+ private global::System.Data.DataColumn columnDataOraBoot;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogDataTable() {
+ this.TableName = "RemoteRebootLog";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal RemoteRebootLogDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected RemoteRebootLogDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxRebootColumn {
+ get {
+ return this.columnidxReboot;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodMacchinaColumn {
+ get {
+ return this.columnCodMacchina;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn IPv4Column {
+ get {
+ return this.columnIPv4;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn AgentColumn {
+ get {
+ return this.columnAgent;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn DataOraBootColumn {
+ get {
+ return this.columnDataOraBoot;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRow this[int index] {
+ get {
+ return ((RemoteRebootLogRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddRemoteRebootLogRow(RemoteRebootLogRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRow AddRemoteRebootLogRow(string CodMacchina, string IPv4, string Agent, System.DateTime DataOraBoot) {
+ RemoteRebootLogRow rowRemoteRebootLogRow = ((RemoteRebootLogRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ CodMacchina,
+ IPv4,
+ Agent,
+ DataOraBoot};
+ rowRemoteRebootLogRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowRemoteRebootLogRow);
+ return rowRemoteRebootLogRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRow FindByidxReboot(int idxReboot) {
+ return ((RemoteRebootLogRow)(this.Rows.Find(new object[] {
+ idxReboot})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ RemoteRebootLogDataTable cln = ((RemoteRebootLogDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new RemoteRebootLogDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidxReboot = base.Columns["idxReboot"];
+ this.columnCodMacchina = base.Columns["CodMacchina"];
+ this.columnIPv4 = base.Columns["IPv4"];
+ this.columnAgent = base.Columns["Agent"];
+ this.columnDataOraBoot = base.Columns["DataOraBoot"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnidxReboot = new global::System.Data.DataColumn("idxReboot", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxReboot);
+ this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodMacchina);
+ this.columnIPv4 = new global::System.Data.DataColumn("IPv4", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIPv4);
+ this.columnAgent = new global::System.Data.DataColumn("Agent", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnAgent);
+ this.columnDataOraBoot = new global::System.Data.DataColumn("DataOraBoot", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDataOraBoot);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidxReboot}, true));
+ this.columnidxReboot.AutoIncrement = true;
+ this.columnidxReboot.AutoIncrementSeed = -1;
+ this.columnidxReboot.AutoIncrementStep = -1;
+ this.columnidxReboot.AllowDBNull = false;
+ this.columnidxReboot.ReadOnly = true;
+ this.columnidxReboot.Unique = true;
+ this.columnCodMacchina.AllowDBNull = false;
+ this.columnCodMacchina.MaxLength = 50;
+ this.columnIPv4.MaxLength = 50;
+ this.columnAgent.MaxLength = 250;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRow NewRemoteRebootLogRow() {
+ return ((RemoteRebootLogRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new RemoteRebootLogRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(RemoteRebootLogRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.RemoteRebootLogRowChanged != null)) {
+ this.RemoteRebootLogRowChanged(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.RemoteRebootLogRowChanging != null)) {
+ this.RemoteRebootLogRowChanging(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.RemoteRebootLogRowDeleted != null)) {
+ this.RemoteRebootLogRowDeleted(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.RemoteRebootLogRowDeleting != null)) {
+ this.RemoteRebootLogRowDeleting(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveRemoteRebootLogRow(RemoteRebootLogRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Utility ds = new DS_Utility();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "RemoteRebootLogDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -10235,6 +10592,127 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class RemoteRebootLogRow : global::System.Data.DataRow {
+
+ private RemoteRebootLogDataTable tableRemoteRebootLog;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal RemoteRebootLogRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableRemoteRebootLog = ((RemoteRebootLogDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxReboot {
+ get {
+ return ((int)(this[this.tableRemoteRebootLog.idxRebootColumn]));
+ }
+ set {
+ this[this.tableRemoteRebootLog.idxRebootColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodMacchina {
+ get {
+ return ((string)(this[this.tableRemoteRebootLog.CodMacchinaColumn]));
+ }
+ set {
+ this[this.tableRemoteRebootLog.CodMacchinaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string IPv4 {
+ get {
+ try {
+ return ((string)(this[this.tableRemoteRebootLog.IPv4Column]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'IPv4\' in table \'RemoteRebootLog\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableRemoteRebootLog.IPv4Column] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Agent {
+ get {
+ try {
+ return ((string)(this[this.tableRemoteRebootLog.AgentColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Agent\' in table \'RemoteRebootLog\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableRemoteRebootLog.AgentColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime DataOraBoot {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableRemoteRebootLog.DataOraBootColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DataOraBoot\' in table \'RemoteRebootLog\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableRemoteRebootLog.DataOraBootColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsIPv4Null() {
+ return this.IsNull(this.tableRemoteRebootLog.IPv4Column);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetIPv4Null() {
+ this[this.tableRemoteRebootLog.IPv4Column] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsAgentNull() {
+ return this.IsNull(this.tableRemoteRebootLog.AgentColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetAgentNull() {
+ this[this.tableRemoteRebootLog.AgentColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsDataOraBootNull() {
+ return this.IsNull(this.tableRemoteRebootLog.DataOraBootColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetDataOraBootNull() {
+ this[this.tableRemoteRebootLog.DataOraBootColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -11084,6 +11562,40 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class RemoteRebootLogRowChangeEvent : global::System.EventArgs {
+
+ private RemoteRebootLogRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRowChangeEvent(RemoteRebootLogRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_UtilityTableAdapters {
@@ -17122,6 +17634,429 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class RemoteRebootLogTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public RemoteRebootLogTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "RemoteRebootLog";
+ tableMapping.ColumnMappings.Add("idxReboot", "idxReboot");
+ tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina");
+ tableMapping.ColumnMappings.Add("IPv4", "IPv4");
+ tableMapping.ColumnMappings.Add("Agent", "Agent");
+ tableMapping.ColumnMappings.Add("DataOraBoot", "DataOraBoot");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[RemoteRebootLog] WHERE (([idxReboot] = @Original_idxReboot) AND ([CodMacchina] = @Original_CodMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxReboot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IPv4", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Agent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraBoot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[RemoteRebootLog] ([CodMacchina], [IPv4], [Agent], [DataOraBoot" +
+ "]) VALUES (@CodMacchina, @IPv4, @Agent, @DataOraBoot);\r\nSELECT idxReboot, CodMac" +
+ "china, IPv4, Agent, DataOraBoot FROM RemoteRebootLog WHERE (idxReboot = SCOPE_ID" +
+ "ENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[RemoteRebootLog] SET [CodMacchina] = @CodMacchina, [IPv4] = @IPv4, [Agent] = @Agent, [DataOraBoot] = @DataOraBoot WHERE (([idxReboot] = @Original_idxReboot) AND ([CodMacchina] = @Original_CodMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)));
+SELECT idxReboot, CodMacchina, IPv4, Agent, DataOraBoot FROM RemoteRebootLog WHERE (idxReboot = @idxReboot)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxReboot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IPv4", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Agent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraBoot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxReboot", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idxReboot, CodMacchina, IPv4, Agent, DataOraBoot FROM dbo.RemoteRebootLog";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Utility.RemoteRebootLogDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Utility.RemoteRebootLogDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Utility.RemoteRebootLogDataTable dataTable = new DS_Utility.RemoteRebootLogDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Utility.RemoteRebootLogDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Utility dataSet) {
+ return this.Adapter.Update(dataSet, "RemoteRebootLog");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idxReboot, string Original_CodMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxReboot));
+ if ((Original_CodMacchina == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMacchina");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodMacchina));
+ }
+ if ((Original_IPv4 == null)) {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_IPv4));
+ }
+ if ((Original_Agent == null)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Agent));
+ }
+ if ((Original_DataOraBoot.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_DataOraBoot.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot) {
+ if ((CodMacchina == null)) {
+ throw new global::System.ArgumentNullException("CodMacchina");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodMacchina));
+ }
+ if ((IPv4 == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IPv4));
+ }
+ if ((Agent == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Agent));
+ }
+ if ((DataOraBoot.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataOraBoot.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, int Original_idxReboot, string Original_CodMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot, int idxReboot) {
+ if ((CodMacchina == null)) {
+ throw new global::System.ArgumentNullException("CodMacchina");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodMacchina));
+ }
+ if ((IPv4 == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IPv4));
+ }
+ if ((Agent == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Agent));
+ }
+ if ((DataOraBoot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataOraBoot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idxReboot));
+ if ((Original_CodMacchina == null)) {
+ throw new global::System.ArgumentNullException("Original_CodMacchina");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodMacchina));
+ }
+ if ((Original_IPv4 == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IPv4));
+ }
+ if ((Original_Agent == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Agent));
+ }
+ if ((Original_DataOraBoot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_DataOraBoot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(idxReboot));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, int Original_idxReboot, string Original_CodMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot) {
+ return this.Update(CodMacchina, IPv4, Agent, DataOraBoot, Original_idxReboot, Original_CodMacchina, Original_IPv4, Original_Agent, Original_DataOraBoot, Original_idxReboot);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -17138,6 +18073,8 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
private RT_PageValTableAdapter _rT_PageValTableAdapter;
+ private RemoteRebootLogTableAdapter _remoteRebootLogTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -17181,6 +18118,20 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public RemoteRebootLogTableAdapter RemoteRebootLogTableAdapter {
+ get {
+ return this._remoteRebootLogTableAdapter;
+ }
+ set {
+ this._remoteRebootLogTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -17208,6 +18159,10 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
&& (this._rT_PageValTableAdapter.Connection != null))) {
return this._rT_PageValTableAdapter.Connection;
}
+ if (((this._remoteRebootLogTableAdapter != null)
+ && (this._remoteRebootLogTableAdapter.Connection != null))) {
+ return this._remoteRebootLogTableAdapter.Connection;
+ }
return null;
}
set {
@@ -17227,6 +18182,9 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
if ((this._rT_PageValTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -17238,6 +18196,15 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateUpdatedRows(DS_Utility dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
+ if ((this._rT_PageValTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._rT_PageValTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._configTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Config.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -17247,12 +18214,12 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._rT_PageValTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.RemoteRebootLog.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._rT_PageValTableAdapter.Update(updatedRows));
+ result = (result + this._remoteRebootLogTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -17266,6 +18233,14 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateInsertedRows(DS_Utility dataSet, global::System.Collections.Generic.List allAddedRows) {
int result = 0;
+ if ((this._rT_PageValTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._rT_PageValTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._configTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Config.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -17274,11 +18249,11 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
allAddedRows.AddRange(addedRows);
}
}
- if ((this._rT_PageValTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.RemoteRebootLog.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._rT_PageValTableAdapter.Update(addedRows));
+ result = (result + this._remoteRebootLogTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -17292,11 +18267,11 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_Utility dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._rT_PageValTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RemoteRebootLog.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._rT_PageValTableAdapter.Update(deletedRows));
+ result = (result + this._remoteRebootLogTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -17308,6 +18283,14 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._rT_PageValTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RT_PageVal.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._rT_PageValTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
return result;
}
@@ -17357,6 +18340,11 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._remoteRebootLogTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._remoteRebootLogTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -17407,6 +18395,15 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
adaptersWithAcceptChangesDuringUpdate.Add(this._rT_PageValTableAdapter.Adapter);
}
}
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ revertConnections.Add(this._remoteRebootLogTableAdapter, this._remoteRebootLogTableAdapter.Connection);
+ this._remoteRebootLogTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._remoteRebootLogTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._remoteRebootLogTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._remoteRebootLogTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._remoteRebootLogTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -17473,6 +18470,10 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
this._rT_PageValTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rT_PageValTableAdapter]));
this._rT_PageValTableAdapter.Transaction = null;
}
+ if ((this._remoteRebootLogTableAdapter != null)) {
+ this._remoteRebootLogTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._remoteRebootLogTableAdapter]));
+ this._remoteRebootLogTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW_data/DS_Utility.xsd b/GMW_data/DS_Utility.xsd
index 8808eec3..a74d982e 100644
--- a/GMW_data/DS_Utility.xsd
+++ b/GMW_data/DS_Utility.xsd
@@ -1026,6 +1026,74 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
+
+
+
+
+
+ DELETE FROM [dbo].[RemoteRebootLog] WHERE (([idxReboot] = @Original_idxReboot) AND ([CodMacchina] = @Original_CodMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[RemoteRebootLog] ([CodMacchina], [IPv4], [Agent], [DataOraBoot]) VALUES (@CodMacchina, @IPv4, @Agent, @DataOraBoot);
+SELECT idxReboot, CodMacchina, IPv4, Agent, DataOraBoot FROM RemoteRebootLog WHERE (idxReboot = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+ SELECT idxReboot, CodMacchina, IPv4, Agent, DataOraBoot FROM dbo.RemoteRebootLog
+
+
+
+
+
+ UPDATE [dbo].[RemoteRebootLog] SET [CodMacchina] = @CodMacchina, [IPv4] = @IPv4, [Agent] = @Agent, [DataOraBoot] = @DataOraBoot WHERE (([idxReboot] = @Original_idxReboot) AND ([CodMacchina] = @Original_CodMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)));
+SELECT idxReboot, CodMacchina, IPv4, Agent, DataOraBoot FROM RemoteRebootLog WHERE (idxReboot = @idxReboot)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1397,7 +1465,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1418,7 +1486,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1439,7 +1507,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1459,7 +1527,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1480,7 +1548,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1501,7 +1569,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1528,7 +1596,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1548,7 +1616,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1582,7 +1650,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1609,7 +1677,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1636,7 +1704,7 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
-
+
@@ -1656,6 +1724,35 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1742,5 +1839,9 @@ SELECT PageUrl, chiave, valore FROM RT_PageVal WHERE (PageUrl = @PageUrl) AND (c
+
+
+
+
\ No newline at end of file
diff --git a/GMW_data/DS_Utility.xss b/GMW_data/DS_Utility.xss
index f45860ac..5f02c5bd 100644
--- a/GMW_data/DS_Utility.xss
+++ b/GMW_data/DS_Utility.xss
@@ -4,33 +4,34 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW_data/bin/SP_prod/GMW_data.dll b/GMW_data/bin/SP_prod/GMW_data.dll
index e13dff7b..938f701c 100644
Binary files a/GMW_data/bin/SP_prod/GMW_data.dll and b/GMW_data/bin/SP_prod/GMW_data.dll differ
diff --git a/GMW_data/bin/SP_prod/SteamWare.dll b/GMW_data/bin/SP_prod/SteamWare.dll
index 456b4f01..8f4439ce 100644
Binary files a/GMW_data/bin/SP_prod/SteamWare.dll and b/GMW_data/bin/SP_prod/SteamWare.dll differ
diff --git a/GMW_data/utils.cs b/GMW_data/utils.cs
index adb83fdf..2d39f7d7 100644
--- a/GMW_data/utils.cs
+++ b/GMW_data/utils.cs
@@ -24,6 +24,7 @@ namespace GMW_data
public DS_UtilityTableAdapters.v_selParticolariTableAdapter taSelParticolari;
public DS_UtilityTableAdapters.v_selImballiTableAdapter taSelImballi;
public DS_UtilityTableAdapters.ConfigTableAdapter taConfig;
+ public DS_UtilityTableAdapters.RemoteRebootLogTableAdapter taRRL;
public DS_UtilityTableAdapters.RT_PageValTableAdapter taRTPV;
public DS_batchTableAdapters.AS400_ComandiTableAdapter taAs400;
@@ -43,6 +44,7 @@ namespace GMW_data
taSelParticolari = new DS_UtilityTableAdapters.v_selParticolariTableAdapter();
taSelImballi = new DS_UtilityTableAdapters.v_selImballiTableAdapter();
taConfig = new DS_UtilityTableAdapters.ConfigTableAdapter();
+ taRRL = new DS_UtilityTableAdapters.RemoteRebootLogTableAdapter();
taRTPV = new DS_UtilityTableAdapters.RT_PageValTableAdapter();
taAs400 = new GMW_data.DS_batchTableAdapters.AS400_ComandiTableAdapter();
@@ -64,6 +66,7 @@ namespace GMW_data
taSelParticolari.Connection.ConnectionString = connString;
taSelImballi.Connection.ConnectionString = connString;
taConfig.Connection.ConnectionString = connString;
+ taRRL.Connection.ConnectionString = connString;
taRTPV.Connection.ConnectionString = connString;
taAs400.Connection.ConnectionString = connString;
@@ -171,6 +174,126 @@ namespace GMW_data
}
+ #endregion
+
+ #region area gestione rPI
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public inputComando registraStartup(string CodMacchina, string IPv4, string agent)
+ {
+ if (memLayer.ML.confReadInt("_logLevel") > 6)
+ {
+ logger.lg.scriviLog(string.Format("{0}---------------------------{0}Richiesta registrazione (ri)avvio Macchina {1}", Environment.NewLine, CodMacchina), tipoLog.INFO);
+ }
+ // formatto output
+ inputComando answ = new inputComando();
+ // scrivo remote reboot alive!
+ scriviRemoteReboot(CodMacchina, IPv4, agent);
+ // scrivo PRIMO keep alive
+ scriviPrimoKeepAlive(CodMacchina, DateTime.Now);
+
+
+ return answ;
+ }
+
+ ///
+ /// scrive un evento di keepalive sulla tabella
+ ///
+ ///
+ ///
+ ///
+ public void scriviKeepAlive(string IdxMacchina, DateTime oraMacchina)
+ {
+#if false
+ // salvo in variabile boolean se registrare keep alive su db o meno
+ bool doWrite = false;
+ string nomeVar = string.Format("KA{0}", IdxMacchina);
+ // in primis controllo se in cache c'è oggetto keep alive x macchina... formato KA{ID-MACCHINA}
+ if (memLayer.ML.isInCacheObject(nomeVar))
+ {
+ // leggo data ora, se è + vecchia di corrente - kaMinUpdSec segno da aggiornare
+ DateTime adesso = DateTime.Now;
+ DateTime lastKA = DateTime.Now;
+ try
+ {
+ lastKA = (DateTime)memLayer.ML.objCacheObj(nomeVar);
+ }
+ catch
+ { }
+ if (adesso.AddSeconds(-memLayer.ML.CRI("kaMinUpdSec")) > lastKA)
+ {
+ doWrite = true;
+ }
+ }
+ else
+ {
+ // non c'è in sessione, lo salvo
+ memLayer.ML.setCacheVal(nomeVar, oraMacchina);
+ // indico di fare refresh
+ doWrite = true;
+ }
+ if (doWrite)
+ {
+ try
+ {
+ if (memLayer.ML.confReadBool("forceResetKeepAlive"))
+ {
+ taKeepAlive.Connection.Close();
+ taKeepAlive.Connection.Open();
+ }
+ else
+ {
+ if (taKeepAlive.Connection.State == ConnectionState.Closed)
+ {
+ taKeepAlive.Connection.Open();
+ }
+ }
+ taKeepAlive.UpdateQueryNoStartTime(DateTime.Now, oraMacchina, IdxMacchina);
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Errore in scrittura keep alive!{0}oraMacchina:{1} - IdxMacchina:{2}{0}{3}", Environment.NewLine, oraMacchina, IdxMacchina, exc), tipoLog.EXCEPTION);
+ }
+ }
+#endif
+ }
+ ///
+ /// scrive un evento di start di keepalive sulla tabella
+ ///
+ ///
+ ///
+ ///
+ public void scriviPrimoKeepAlive(string IdxMacchina, DateTime oraMacchina)
+ {
+#if false
+ // se non c'è riga macchina insert...
+ if (taKeepAlive.GetData().FindByIdxMacchina(IdxMacchina) == null)
+ {
+ taKeepAlive.Insert(IdxMacchina, DateTime.Now, oraMacchina, DateTime.Now);
+ }
+ else // altrimenti update!
+ {
+ taKeepAlive.UpdateQuery(DateTime.Now, oraMacchina, DateTime.Now, IdxMacchina);
+ }
+#endif
+ }
+ ///
+ /// Registra un evento di RemoteReboot sulla tabella
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void scriviRemoteReboot(string IdxMacchina, string IPv4, string agent)
+ {
+ taRRL.Insert(IdxMacchina, IPv4, agent, DateTime.Now);
+ }
+
#endregion
}
}
diff --git a/ReleaseClienti/SP_prod/GMW-UT.zip b/ReleaseClienti/SP_prod/GMW-UT.zip
index e3fbc183..cbb46763 100644
Binary files a/ReleaseClienti/SP_prod/GMW-UT.zip and b/ReleaseClienti/SP_prod/GMW-UT.zip differ
diff --git a/ReleaseClienti/SP_test/GMW-UT.zip b/ReleaseClienti/SP_test/GMW-UT.zip
index 1d99322f..b3e5102e 100644
Binary files a/ReleaseClienti/SP_test/GMW-UT.zip and b/ReleaseClienti/SP_test/GMW-UT.zip differ