diff --git a/CMS-OMR.sln b/CMS-OMR.sln
index 78489db..31ce5fa 100644
--- a/CMS-OMR.sln
+++ b/CMS-OMR.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.28010.2048
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CMS-OMR", "..\..\Visual Studio 2017\Projects\CMS-OMR\CMS-OMR\CMS-OMR.csproj", "{1CD15179-915C-472B-9FC4-A27EE07FEA7C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DB_proxy", "DB_proxy\DB_proxy.csproj", "{C97904CB-7DDC-4684-B2EE-89C264E808E6}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
{1CD15179-915C-472B-9FC4-A27EE07FEA7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1CD15179-915C-472B-9FC4-A27EE07FEA7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1CD15179-915C-472B-9FC4-A27EE07FEA7C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C97904CB-7DDC-4684-B2EE-89C264E808E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C97904CB-7DDC-4684-B2EE-89C264E808E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C97904CB-7DDC-4684-B2EE-89C264E808E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C97904CB-7DDC-4684-B2EE-89C264E808E6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/CMS-OMR/App.config b/CMS-OMR/App.config
index ec5d2f0..5045418 100644
--- a/CMS-OMR/App.config
+++ b/CMS-OMR/App.config
@@ -1,16 +1,16 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CMS-OMR/CMS-OMR.csproj b/CMS-OMR/CMS-OMR.csproj
index 770c58d..137eb0c 100644
--- a/CMS-OMR/CMS-OMR.csproj
+++ b/CMS-OMR/CMS-OMR.csproj
@@ -46,12 +46,6 @@
-
-
- True
- True
- DS_App.xsd
-
Form
@@ -72,17 +66,6 @@
True
Resources.resx
-
- DS_App.xsd
-
-
- Designer
- MSDataSetGenerator
- DS_App.Designer.cs
-
-
- DS_App.xsd
-
SettingsSingleFileGenerator
Settings.Designer.cs
@@ -94,7 +77,15 @@
-
+
+ Designer
+
+
+
+
+ {c97904cb-7ddc-4684-b2ee-89c264e808e6}
+ DB_proxy
+
\ No newline at end of file
diff --git a/CMS-OMR/DataLayer.cs b/CMS-OMR/DataLayer.cs
deleted file mode 100644
index 9fbcea7..0000000
--- a/CMS-OMR/DataLayer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-namespace DemoApp
-{
- public class DataLayer
- {
- public DS_AppTableAdapters.AnagArticoliTableAdapter taAnagArt;
- public DS_AppTableAdapters.AnagOperatoriTableAdapter taAnagOpr;
- public DS_AppTableAdapters.StoricoAllarmiExpTableAdapter taSAL;
- public DS_AppTableAdapters.TabOperazioniTableAdapter taTO;
-
-
- ///
- /// Init TAdapter
- ///
- protected void initTA()
- {
- taAnagArt = new DS_AppTableAdapters.AnagArticoliTableAdapter();
- taAnagOpr = new DS_AppTableAdapters.AnagOperatoriTableAdapter();
- taSAL = new DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
- taTO = new DS_AppTableAdapters.TabOperazioniTableAdapter();
- }
- ///
- /// Avvio DataLayer
- ///
- protected DataLayer()
- {
- initTA();
- }
- public static DataLayer man = new DataLayer();
- }
-}
diff --git a/CMS-OMR/MainForm.Designer.cs b/CMS-OMR/MainForm.Designer.cs
index 1132abf..b4baae4 100644
--- a/CMS-OMR/MainForm.Designer.cs
+++ b/CMS-OMR/MainForm.Designer.cs
@@ -64,21 +64,6 @@
this.Paginatore = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.dgvOpr = new System.Windows.Forms.DataGridView();
- this.tabPage2 = new System.Windows.Forms.TabPage();
- this.splitContainer3 = new System.Windows.Forms.SplitContainer();
- this.dgvAlarmLog = new System.Windows.Forms.DataGridView();
- this.btnSendAlarms = new System.Windows.Forms.Button();
- this.lbAllarmi = new System.Windows.Forms.ListBox();
- this.label8 = new System.Windows.Forms.Label();
- this.dgvAnagAlarm = new System.Windows.Forms.DataGridView();
- this.tabPage3 = new System.Windows.Forms.TabPage();
- this.label10 = new System.Windows.Forms.Label();
- this.txtAuthKey = new System.Windows.Forms.TextBox();
- this.label9 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.btnPurgeOld = new System.Windows.Forms.Button();
- this.txtDay2keep = new System.Windows.Forms.TextBox();
- this.btnEmptyTabOpr = new System.Windows.Forms.Button();
this.idxRecDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dtEventoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.codStazioneDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -87,12 +72,19 @@
this.codStatoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.datamatrixDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabOperazioniBindingSource = new System.Windows.Forms.BindingSource(this.components);
- this.dS_App = new DemoApp.DS_App();
+ this.dS_App = new DB_proxy.DS_App();
+ this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.splitContainer3 = new System.Windows.Forms.SplitContainer();
+ this.dgvAlarmLog = new System.Windows.Forms.DataGridView();
this.dtEventoDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.codAllarmeDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.attivoDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.descrizioneDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.storicoAllarmiExpBindingSource = new System.Windows.Forms.BindingSource(this.components);
+ this.btnSendAlarms = new System.Windows.Forms.Button();
+ this.lbAllarmi = new System.Windows.Forms.ListBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.dgvAnagAlarm = new System.Windows.Forms.DataGridView();
this.codAllarmeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.descrizioneDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.reportAttivoDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
@@ -100,9 +92,17 @@
this.lastEndDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.currStatusDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.anagAllarmiBindingSource = new System.Windows.Forms.BindingSource(this.components);
- this.tabOperazioniTableAdapter = new DemoApp.DS_AppTableAdapters.TabOperazioniTableAdapter();
- this.anagAllarmiTableAdapter = new DemoApp.DS_AppTableAdapters.AnagAllarmiTableAdapter();
- this.StoricoAllarmiExpTableAdapter = new DemoApp.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
+ this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.label10 = new System.Windows.Forms.Label();
+ this.txtAuthKey = new System.Windows.Forms.TextBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.btnPurgeOld = new System.Windows.Forms.Button();
+ this.txtDay2keep = new System.Windows.Forms.TextBox();
+ this.btnEmptyTabOpr = new System.Windows.Forms.Button();
+ this.tabOperazioniTableAdapter = new DB_proxy.DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter();
+ this.anagAllarmiTableAdapter = new DB_proxy.DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter();
+ this.StoricoAllarmiExpTableAdapter = new DB_proxy.DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
@@ -117,18 +117,18 @@
this.Paginatore.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvOpr)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tabOperazioniBindingSource)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dS_App)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
this.splitContainer3.Panel1.SuspendLayout();
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvAlarmLog)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dgvAnagAlarm)).BeginInit();
- this.tabPage3.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.tabOperazioniBindingSource)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dS_App)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvAnagAlarm)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.anagAllarmiBindingSource)).BeginInit();
+ this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// txtBCode
@@ -498,6 +498,59 @@
this.dgvOpr.Size = new System.Drawing.Size(1077, 242);
this.dgvOpr.TabIndex = 6;
//
+ // idxRecDataGridViewTextBoxColumn
+ //
+ this.idxRecDataGridViewTextBoxColumn.DataPropertyName = "IdxRec";
+ this.idxRecDataGridViewTextBoxColumn.HeaderText = "IdxRec";
+ this.idxRecDataGridViewTextBoxColumn.Name = "idxRecDataGridViewTextBoxColumn";
+ this.idxRecDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // dtEventoDataGridViewTextBoxColumn
+ //
+ this.dtEventoDataGridViewTextBoxColumn.DataPropertyName = "DtEvento";
+ this.dtEventoDataGridViewTextBoxColumn.HeaderText = "DtEvento";
+ this.dtEventoDataGridViewTextBoxColumn.Name = "dtEventoDataGridViewTextBoxColumn";
+ //
+ // codStazioneDataGridViewTextBoxColumn
+ //
+ this.codStazioneDataGridViewTextBoxColumn.DataPropertyName = "CodStazione";
+ this.codStazioneDataGridViewTextBoxColumn.HeaderText = "CodStazione";
+ this.codStazioneDataGridViewTextBoxColumn.Name = "codStazioneDataGridViewTextBoxColumn";
+ //
+ // codSottostazDataGridViewTextBoxColumn
+ //
+ this.codSottostazDataGridViewTextBoxColumn.DataPropertyName = "CodSottostaz";
+ this.codSottostazDataGridViewTextBoxColumn.HeaderText = "CodSottostaz";
+ this.codSottostazDataGridViewTextBoxColumn.Name = "codSottostazDataGridViewTextBoxColumn";
+ //
+ // codOperazDataGridViewTextBoxColumn
+ //
+ this.codOperazDataGridViewTextBoxColumn.DataPropertyName = "CodOperaz";
+ this.codOperazDataGridViewTextBoxColumn.HeaderText = "CodOperaz";
+ this.codOperazDataGridViewTextBoxColumn.Name = "codOperazDataGridViewTextBoxColumn";
+ //
+ // codStatoDataGridViewTextBoxColumn
+ //
+ this.codStatoDataGridViewTextBoxColumn.DataPropertyName = "CodStato";
+ this.codStatoDataGridViewTextBoxColumn.HeaderText = "CodStato";
+ this.codStatoDataGridViewTextBoxColumn.Name = "codStatoDataGridViewTextBoxColumn";
+ //
+ // datamatrixDataGridViewTextBoxColumn
+ //
+ this.datamatrixDataGridViewTextBoxColumn.DataPropertyName = "Datamatrix";
+ this.datamatrixDataGridViewTextBoxColumn.HeaderText = "Datamatrix";
+ this.datamatrixDataGridViewTextBoxColumn.Name = "datamatrixDataGridViewTextBoxColumn";
+ //
+ // tabOperazioniBindingSource
+ //
+ this.tabOperazioniBindingSource.DataMember = "TabOperazioni";
+ this.tabOperazioniBindingSource.DataSource = this.dS_App;
+ //
+ // dS_App
+ //
+ this.dS_App.DataSetName = "DS_App";
+ this.dS_App.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ //
// tabPage2
//
this.tabPage2.Controls.Add(this.splitContainer3);
@@ -505,7 +558,7 @@
this.tabPage2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.tabPage2.Size = new System.Drawing.Size(863, 361);
+ this.tabPage2.Size = new System.Drawing.Size(1092, 361);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Allarmi";
this.tabPage2.UseVisualStyleBackColor = true;
@@ -568,6 +621,35 @@
this.dgvAlarmLog.Size = new System.Drawing.Size(343, 240);
this.dgvAlarmLog.TabIndex = 7;
//
+ // dtEventoDataGridViewTextBoxColumn1
+ //
+ this.dtEventoDataGridViewTextBoxColumn1.DataPropertyName = "DtEvento";
+ this.dtEventoDataGridViewTextBoxColumn1.HeaderText = "DtEvento";
+ this.dtEventoDataGridViewTextBoxColumn1.Name = "dtEventoDataGridViewTextBoxColumn1";
+ //
+ // codAllarmeDataGridViewTextBoxColumn1
+ //
+ this.codAllarmeDataGridViewTextBoxColumn1.DataPropertyName = "CodAllarme";
+ this.codAllarmeDataGridViewTextBoxColumn1.HeaderText = "CodAllarme";
+ this.codAllarmeDataGridViewTextBoxColumn1.Name = "codAllarmeDataGridViewTextBoxColumn1";
+ //
+ // attivoDataGridViewCheckBoxColumn
+ //
+ this.attivoDataGridViewCheckBoxColumn.DataPropertyName = "Attivo";
+ this.attivoDataGridViewCheckBoxColumn.HeaderText = "Attivo";
+ this.attivoDataGridViewCheckBoxColumn.Name = "attivoDataGridViewCheckBoxColumn";
+ //
+ // descrizioneDataGridViewTextBoxColumn1
+ //
+ this.descrizioneDataGridViewTextBoxColumn1.DataPropertyName = "Descrizione";
+ this.descrizioneDataGridViewTextBoxColumn1.HeaderText = "Descrizione";
+ this.descrizioneDataGridViewTextBoxColumn1.Name = "descrizioneDataGridViewTextBoxColumn1";
+ //
+ // storicoAllarmiExpBindingSource
+ //
+ this.storicoAllarmiExpBindingSource.DataMember = "StoricoAllarmiExp";
+ this.storicoAllarmiExpBindingSource.DataSource = this.dS_App;
+ //
// btnSendAlarms
//
this.btnSendAlarms.Location = new System.Drawing.Point(9, 34);
@@ -641,6 +723,47 @@
this.dgvAnagAlarm.Size = new System.Drawing.Size(489, 346);
this.dgvAnagAlarm.TabIndex = 5;
//
+ // codAllarmeDataGridViewTextBoxColumn
+ //
+ this.codAllarmeDataGridViewTextBoxColumn.DataPropertyName = "CodAllarme";
+ this.codAllarmeDataGridViewTextBoxColumn.HeaderText = "CodAllarme";
+ this.codAllarmeDataGridViewTextBoxColumn.Name = "codAllarmeDataGridViewTextBoxColumn";
+ //
+ // descrizioneDataGridViewTextBoxColumn
+ //
+ this.descrizioneDataGridViewTextBoxColumn.DataPropertyName = "Descrizione";
+ this.descrizioneDataGridViewTextBoxColumn.HeaderText = "Descrizione";
+ this.descrizioneDataGridViewTextBoxColumn.Name = "descrizioneDataGridViewTextBoxColumn";
+ //
+ // reportAttivoDataGridViewCheckBoxColumn
+ //
+ this.reportAttivoDataGridViewCheckBoxColumn.DataPropertyName = "ReportAttivo";
+ this.reportAttivoDataGridViewCheckBoxColumn.HeaderText = "ReportAttivo";
+ this.reportAttivoDataGridViewCheckBoxColumn.Name = "reportAttivoDataGridViewCheckBoxColumn";
+ //
+ // lastStartDataGridViewTextBoxColumn
+ //
+ this.lastStartDataGridViewTextBoxColumn.DataPropertyName = "LastStart";
+ this.lastStartDataGridViewTextBoxColumn.HeaderText = "LastStart";
+ this.lastStartDataGridViewTextBoxColumn.Name = "lastStartDataGridViewTextBoxColumn";
+ //
+ // lastEndDataGridViewTextBoxColumn
+ //
+ this.lastEndDataGridViewTextBoxColumn.DataPropertyName = "LastEnd";
+ this.lastEndDataGridViewTextBoxColumn.HeaderText = "LastEnd";
+ this.lastEndDataGridViewTextBoxColumn.Name = "lastEndDataGridViewTextBoxColumn";
+ //
+ // currStatusDataGridViewCheckBoxColumn
+ //
+ this.currStatusDataGridViewCheckBoxColumn.DataPropertyName = "CurrStatus";
+ this.currStatusDataGridViewCheckBoxColumn.HeaderText = "CurrStatus";
+ this.currStatusDataGridViewCheckBoxColumn.Name = "currStatusDataGridViewCheckBoxColumn";
+ //
+ // anagAllarmiBindingSource
+ //
+ this.anagAllarmiBindingSource.DataMember = "AnagAllarmi";
+ this.anagAllarmiBindingSource.DataSource = this.dS_App;
+ //
// tabPage3
//
this.tabPage3.Controls.Add(this.label10);
@@ -653,7 +776,7 @@
this.tabPage3.Location = new System.Drawing.Point(4, 25);
this.tabPage3.Margin = new System.Windows.Forms.Padding(4);
this.tabPage3.Name = "tabPage3";
- this.tabPage3.Size = new System.Drawing.Size(863, 361);
+ this.tabPage3.Size = new System.Drawing.Size(1092, 361);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Utils";
this.tabPage3.UseVisualStyleBackColor = true;
@@ -728,128 +851,6 @@
this.btnEmptyTabOpr.UseVisualStyleBackColor = true;
this.btnEmptyTabOpr.Click += new System.EventHandler(this.btnEmptyTabOpr_Click);
//
- // idxRecDataGridViewTextBoxColumn
- //
- this.idxRecDataGridViewTextBoxColumn.DataPropertyName = "IdxRec";
- this.idxRecDataGridViewTextBoxColumn.HeaderText = "IdxRec";
- this.idxRecDataGridViewTextBoxColumn.Name = "idxRecDataGridViewTextBoxColumn";
- //
- // dtEventoDataGridViewTextBoxColumn
- //
- this.dtEventoDataGridViewTextBoxColumn.DataPropertyName = "DtEvento";
- this.dtEventoDataGridViewTextBoxColumn.HeaderText = "DtEvento";
- this.dtEventoDataGridViewTextBoxColumn.Name = "dtEventoDataGridViewTextBoxColumn";
- //
- // codStazioneDataGridViewTextBoxColumn
- //
- this.codStazioneDataGridViewTextBoxColumn.DataPropertyName = "CodStazione";
- this.codStazioneDataGridViewTextBoxColumn.HeaderText = "CodStazione";
- this.codStazioneDataGridViewTextBoxColumn.Name = "codStazioneDataGridViewTextBoxColumn";
- //
- // codSottostazDataGridViewTextBoxColumn
- //
- this.codSottostazDataGridViewTextBoxColumn.DataPropertyName = "CodSottostaz";
- this.codSottostazDataGridViewTextBoxColumn.HeaderText = "CodSottostaz";
- this.codSottostazDataGridViewTextBoxColumn.Name = "codSottostazDataGridViewTextBoxColumn";
- //
- // codOperazDataGridViewTextBoxColumn
- //
- this.codOperazDataGridViewTextBoxColumn.DataPropertyName = "CodOperaz";
- this.codOperazDataGridViewTextBoxColumn.HeaderText = "CodOperaz";
- this.codOperazDataGridViewTextBoxColumn.Name = "codOperazDataGridViewTextBoxColumn";
- //
- // codStatoDataGridViewTextBoxColumn
- //
- this.codStatoDataGridViewTextBoxColumn.DataPropertyName = "CodStato";
- this.codStatoDataGridViewTextBoxColumn.HeaderText = "CodStato";
- this.codStatoDataGridViewTextBoxColumn.Name = "codStatoDataGridViewTextBoxColumn";
- //
- // datamatrixDataGridViewTextBoxColumn
- //
- this.datamatrixDataGridViewTextBoxColumn.DataPropertyName = "Datamatrix";
- this.datamatrixDataGridViewTextBoxColumn.HeaderText = "Datamatrix";
- this.datamatrixDataGridViewTextBoxColumn.Name = "datamatrixDataGridViewTextBoxColumn";
- //
- // tabOperazioniBindingSource
- //
- this.tabOperazioniBindingSource.DataMember = "TabOperazioni";
- this.tabOperazioniBindingSource.DataSource = this.dS_App;
- //
- // dS_App
- //
- this.dS_App.DataSetName = "DS_App";
- this.dS_App.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
- // dtEventoDataGridViewTextBoxColumn1
- //
- this.dtEventoDataGridViewTextBoxColumn1.DataPropertyName = "DtEvento";
- this.dtEventoDataGridViewTextBoxColumn1.HeaderText = "DtEvento";
- this.dtEventoDataGridViewTextBoxColumn1.Name = "dtEventoDataGridViewTextBoxColumn1";
- //
- // codAllarmeDataGridViewTextBoxColumn1
- //
- this.codAllarmeDataGridViewTextBoxColumn1.DataPropertyName = "CodAllarme";
- this.codAllarmeDataGridViewTextBoxColumn1.HeaderText = "CodAllarme";
- this.codAllarmeDataGridViewTextBoxColumn1.Name = "codAllarmeDataGridViewTextBoxColumn1";
- //
- // attivoDataGridViewCheckBoxColumn
- //
- this.attivoDataGridViewCheckBoxColumn.DataPropertyName = "Attivo";
- this.attivoDataGridViewCheckBoxColumn.HeaderText = "Attivo";
- this.attivoDataGridViewCheckBoxColumn.Name = "attivoDataGridViewCheckBoxColumn";
- //
- // descrizioneDataGridViewTextBoxColumn1
- //
- this.descrizioneDataGridViewTextBoxColumn1.DataPropertyName = "Descrizione";
- this.descrizioneDataGridViewTextBoxColumn1.HeaderText = "Descrizione";
- this.descrizioneDataGridViewTextBoxColumn1.Name = "descrizioneDataGridViewTextBoxColumn1";
- //
- // storicoAllarmiExpBindingSource
- //
- this.storicoAllarmiExpBindingSource.DataMember = "StoricoAllarmiExp";
- this.storicoAllarmiExpBindingSource.DataSource = this.dS_App;
- //
- // codAllarmeDataGridViewTextBoxColumn
- //
- this.codAllarmeDataGridViewTextBoxColumn.DataPropertyName = "CodAllarme";
- this.codAllarmeDataGridViewTextBoxColumn.HeaderText = "CodAllarme";
- this.codAllarmeDataGridViewTextBoxColumn.Name = "codAllarmeDataGridViewTextBoxColumn";
- //
- // descrizioneDataGridViewTextBoxColumn
- //
- this.descrizioneDataGridViewTextBoxColumn.DataPropertyName = "Descrizione";
- this.descrizioneDataGridViewTextBoxColumn.HeaderText = "Descrizione";
- this.descrizioneDataGridViewTextBoxColumn.Name = "descrizioneDataGridViewTextBoxColumn";
- //
- // reportAttivoDataGridViewCheckBoxColumn
- //
- this.reportAttivoDataGridViewCheckBoxColumn.DataPropertyName = "ReportAttivo";
- this.reportAttivoDataGridViewCheckBoxColumn.HeaderText = "ReportAttivo";
- this.reportAttivoDataGridViewCheckBoxColumn.Name = "reportAttivoDataGridViewCheckBoxColumn";
- //
- // lastStartDataGridViewTextBoxColumn
- //
- this.lastStartDataGridViewTextBoxColumn.DataPropertyName = "LastStart";
- this.lastStartDataGridViewTextBoxColumn.HeaderText = "LastStart";
- this.lastStartDataGridViewTextBoxColumn.Name = "lastStartDataGridViewTextBoxColumn";
- //
- // lastEndDataGridViewTextBoxColumn
- //
- this.lastEndDataGridViewTextBoxColumn.DataPropertyName = "LastEnd";
- this.lastEndDataGridViewTextBoxColumn.HeaderText = "LastEnd";
- this.lastEndDataGridViewTextBoxColumn.Name = "lastEndDataGridViewTextBoxColumn";
- //
- // currStatusDataGridViewCheckBoxColumn
- //
- this.currStatusDataGridViewCheckBoxColumn.DataPropertyName = "CurrStatus";
- this.currStatusDataGridViewCheckBoxColumn.HeaderText = "CurrStatus";
- this.currStatusDataGridViewCheckBoxColumn.Name = "currStatusDataGridViewCheckBoxColumn";
- //
- // anagAllarmiBindingSource
- //
- this.anagAllarmiBindingSource.DataMember = "AnagAllarmi";
- this.anagAllarmiBindingSource.DataSource = this.dS_App;
- //
// tabOperazioniTableAdapter
//
this.tabOperazioniTableAdapter.ClearBeforeFill = true;
@@ -894,6 +895,8 @@
this.Paginatore.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvOpr)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tabOperazioniBindingSource)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dS_App)).EndInit();
this.tabPage2.ResumeLayout(false);
this.splitContainer3.Panel1.ResumeLayout(false);
this.splitContainer3.Panel1.PerformLayout();
@@ -901,13 +904,11 @@
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvAlarmLog)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvAnagAlarm)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.anagAllarmiBindingSource)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.tabOperazioniBindingSource)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dS_App)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.anagAllarmiBindingSource)).EndInit();
this.ResumeLayout(false);
}
@@ -942,9 +943,9 @@
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.DataGridView dgvOpr;
- private DS_App dS_App;
+ private DB_proxy.DS_App dS_App;
private System.Windows.Forms.BindingSource tabOperazioniBindingSource;
- private DS_AppTableAdapters.TabOperazioniTableAdapter tabOperazioniTableAdapter;
+ private DB_proxy.DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter tabOperazioniTableAdapter;
private System.Windows.Forms.DataGridViewTextBoxColumn idxRecDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn codStazioneDataGridViewTextBoxColumn;
@@ -963,8 +964,8 @@
private System.Windows.Forms.ListBox lbAllarmi;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.BindingSource anagAllarmiBindingSource;
- private DS_AppTableAdapters.AnagAllarmiTableAdapter anagAllarmiTableAdapter;
- private DS_AppTableAdapters.StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter;
+ private DB_proxy.DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter anagAllarmiTableAdapter;
+ private DB_proxy.DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter;
private System.Windows.Forms.BindingSource storicoAllarmiExpBindingSource;
private System.Windows.Forms.DataGridView dgvAlarmLog;
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn1;
diff --git a/CMS-OMR/MainForm.cs b/CMS-OMR/MainForm.cs
index 9622118..e48f2da 100644
--- a/CMS-OMR/MainForm.cs
+++ b/CMS-OMR/MainForm.cs
@@ -1,4 +1,5 @@
-using System;
+using DB_proxy;
+using System;
using System.Collections.Generic;
using System.Windows.Forms;
diff --git a/CMS-OMR/Program.cs b/CMS-OMR/Program.cs
index b040e94..9b3e7bc 100644
--- a/CMS-OMR/Program.cs
+++ b/CMS-OMR/Program.cs
@@ -14,6 +14,7 @@ namespace DemoApp
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
+
}
}
}
diff --git a/CMS-OMR/Properties/Settings.Designer.cs b/CMS-OMR/Properties/Settings.Designer.cs
index 324729e..4146c5c 100644
--- a/CMS-OMR/Properties/Settings.Designer.cs
+++ b/CMS-OMR/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace DemoApp.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -26,8 +26,8 @@ namespace DemoApp.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
- [global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID" +
- "=sa;Password=keyhammer16")]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.69.33.57\\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=" +
+ "True;User ID=conn_CMS;Password=pwd_CMS;")]
public string CMS_OMRConnectionString {
get {
return ((string)(this["CMS_OMRConnectionString"]));
diff --git a/CMS-OMR/Properties/Settings.settings b/CMS-OMR/Properties/Settings.settings
index b1506a9..7da30e2 100644
--- a/CMS-OMR/Properties/Settings.settings
+++ b/CMS-OMR/Properties/Settings.settings
@@ -5,10 +5,10 @@
<?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=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
+ <ConnectionString>Data Source=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;</ConnectionString>
<ProviderName>System.Data.SqlClient</ProviderName>
</SerializableConnectionString>
- Data Source=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=sa;Password=keyhammer16
+ Data Source=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;
\ No newline at end of file
diff --git a/DB_proxy/DB_proxy.csproj b/DB_proxy/DB_proxy.csproj
new file mode 100644
index 0000000..22fded4
--- /dev/null
+++ b/DB_proxy/DB_proxy.csproj
@@ -0,0 +1,77 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {C97904CB-7DDC-4684-B2EE-89C264E808E6}
+ Library
+ Properties
+ DB_proxy
+ DB_proxy
+ v4.0
+ 512
+ true
+ Client
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ True
+ DS_App.xsd
+
+
+
+ Settings.settings
+ True
+ True
+
+
+
+
+
+ DS_App.xsd
+
+
+ Designer
+ MSDataSetGenerator
+ DS_App.Designer.cs
+
+
+ DS_App.xsd
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
\ No newline at end of file
diff --git a/CMS-OMR/DS_App.Designer.cs b/DB_proxy/DS_App.Designer.cs
similarity index 94%
rename from CMS-OMR/DS_App.Designer.cs
rename to DB_proxy/DS_App.Designer.cs
index b38e5d7..2baa343 100644
--- a/CMS-OMR/DS_App.Designer.cs
+++ b/DB_proxy/DS_App.Designer.cs
@@ -10,7 +10,7 @@
#pragma warning disable 1591
-namespace DemoApp {
+namespace DB_proxy {
///
@@ -24,24 +24,24 @@ namespace DemoApp {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DS_App : global::System.Data.DataSet {
- private StoricoAllarmiExpDataTable tableStoricoAllarmiExp;
-
- private AnagOperatoriDataTable tableAnagOperatori;
-
- private AnagAllarmiDataTable tableAnagAllarmi;
-
private TabOperazioniDataTable tableTabOperazioni;
private TabPezziDataTable tableTabPezzi;
private AnagArticoliDataTable tableAnagArticoli;
- private global::System.Data.DataRelation relationFK_StoricoAllarmi_AnagAllarmi;
+ private AnagAllarmiDataTable tableAnagAllarmi;
+
+ private StoricoAllarmiExpDataTable tableStoricoAllarmiExp;
+
+ private AnagOperatoriDataTable tableAnagOperatori;
private global::System.Data.DataRelation relationFK_TabOperazioni_TabPezzi1;
private global::System.Data.DataRelation relationFK_TabPezzi_AnagArticoli;
+ private global::System.Data.DataRelation relationFK_StoricoAllarmi_AnagAllarmi;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -70,15 +70,6 @@ namespace DemoApp {
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- if ((ds.Tables["StoricoAllarmiExp"] != null)) {
- base.Tables.Add(new StoricoAllarmiExpDataTable(ds.Tables["StoricoAllarmiExp"]));
- }
- if ((ds.Tables["AnagOperatori"] != null)) {
- base.Tables.Add(new AnagOperatoriDataTable(ds.Tables["AnagOperatori"]));
- }
- if ((ds.Tables["AnagAllarmi"] != null)) {
- base.Tables.Add(new AnagAllarmiDataTable(ds.Tables["AnagAllarmi"]));
- }
if ((ds.Tables["TabOperazioni"] != null)) {
base.Tables.Add(new TabOperazioniDataTable(ds.Tables["TabOperazioni"]));
}
@@ -88,6 +79,15 @@ namespace DemoApp {
if ((ds.Tables["AnagArticoli"] != null)) {
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
}
+ if ((ds.Tables["AnagAllarmi"] != null)) {
+ base.Tables.Add(new AnagAllarmiDataTable(ds.Tables["AnagAllarmi"]));
+ }
+ if ((ds.Tables["StoricoAllarmiExp"] != null)) {
+ base.Tables.Add(new StoricoAllarmiExpDataTable(ds.Tables["StoricoAllarmiExp"]));
+ }
+ if ((ds.Tables["AnagOperatori"] != null)) {
+ base.Tables.Add(new AnagOperatoriDataTable(ds.Tables["AnagOperatori"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -106,36 +106,6 @@ namespace DemoApp {
this.Relations.CollectionChanged += schemaChangedHandler;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public StoricoAllarmiExpDataTable StoricoAllarmiExp {
- get {
- return this.tableStoricoAllarmiExp;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagOperatoriDataTable AnagOperatori {
- get {
- return this.tableAnagOperatori;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagAllarmiDataTable AnagAllarmi {
- get {
- return this.tableAnagAllarmi;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -166,6 +136,36 @@ namespace DemoApp {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagAllarmiDataTable AnagAllarmi {
+ get {
+ return this.tableAnagAllarmi;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public StoricoAllarmiExpDataTable StoricoAllarmiExp {
+ get {
+ return this.tableStoricoAllarmiExp;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagOperatoriDataTable AnagOperatori {
+ get {
+ return this.tableAnagOperatori;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -233,15 +233,6 @@ namespace DemoApp {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
- if ((ds.Tables["StoricoAllarmiExp"] != null)) {
- base.Tables.Add(new StoricoAllarmiExpDataTable(ds.Tables["StoricoAllarmiExp"]));
- }
- if ((ds.Tables["AnagOperatori"] != null)) {
- base.Tables.Add(new AnagOperatoriDataTable(ds.Tables["AnagOperatori"]));
- }
- if ((ds.Tables["AnagAllarmi"] != null)) {
- base.Tables.Add(new AnagAllarmiDataTable(ds.Tables["AnagAllarmi"]));
- }
if ((ds.Tables["TabOperazioni"] != null)) {
base.Tables.Add(new TabOperazioniDataTable(ds.Tables["TabOperazioni"]));
}
@@ -251,6 +242,15 @@ namespace DemoApp {
if ((ds.Tables["AnagArticoli"] != null)) {
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
}
+ if ((ds.Tables["AnagAllarmi"] != null)) {
+ base.Tables.Add(new AnagAllarmiDataTable(ds.Tables["AnagAllarmi"]));
+ }
+ if ((ds.Tables["StoricoAllarmiExp"] != null)) {
+ base.Tables.Add(new StoricoAllarmiExpDataTable(ds.Tables["StoricoAllarmiExp"]));
+ }
+ if ((ds.Tables["AnagOperatori"] != null)) {
+ base.Tables.Add(new AnagOperatoriDataTable(ds.Tables["AnagOperatori"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -284,24 +284,6 @@ namespace DemoApp {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
internal void InitVars(bool initTable) {
- this.tableStoricoAllarmiExp = ((StoricoAllarmiExpDataTable)(base.Tables["StoricoAllarmiExp"]));
- if ((initTable == true)) {
- if ((this.tableStoricoAllarmiExp != null)) {
- this.tableStoricoAllarmiExp.InitVars();
- }
- }
- this.tableAnagOperatori = ((AnagOperatoriDataTable)(base.Tables["AnagOperatori"]));
- if ((initTable == true)) {
- if ((this.tableAnagOperatori != null)) {
- this.tableAnagOperatori.InitVars();
- }
- }
- this.tableAnagAllarmi = ((AnagAllarmiDataTable)(base.Tables["AnagAllarmi"]));
- if ((initTable == true)) {
- if ((this.tableAnagAllarmi != null)) {
- this.tableAnagAllarmi.InitVars();
- }
- }
this.tableTabOperazioni = ((TabOperazioniDataTable)(base.Tables["TabOperazioni"]));
if ((initTable == true)) {
if ((this.tableTabOperazioni != null)) {
@@ -320,9 +302,27 @@ namespace DemoApp {
this.tableAnagArticoli.InitVars();
}
}
- this.relationFK_StoricoAllarmi_AnagAllarmi = this.Relations["FK_StoricoAllarmi_AnagAllarmi"];
+ this.tableAnagAllarmi = ((AnagAllarmiDataTable)(base.Tables["AnagAllarmi"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagAllarmi != null)) {
+ this.tableAnagAllarmi.InitVars();
+ }
+ }
+ this.tableStoricoAllarmiExp = ((StoricoAllarmiExpDataTable)(base.Tables["StoricoAllarmiExp"]));
+ if ((initTable == true)) {
+ if ((this.tableStoricoAllarmiExp != null)) {
+ this.tableStoricoAllarmiExp.InitVars();
+ }
+ }
+ this.tableAnagOperatori = ((AnagOperatoriDataTable)(base.Tables["AnagOperatori"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagOperatori != null)) {
+ this.tableAnagOperatori.InitVars();
+ }
+ }
this.relationFK_TabOperazioni_TabPezzi1 = this.Relations["FK_TabOperazioni_TabPezzi1"];
this.relationFK_TabPezzi_AnagArticoli = this.Relations["FK_TabPezzi_AnagArticoli"];
+ this.relationFK_StoricoAllarmi_AnagAllarmi = this.Relations["FK_StoricoAllarmi_AnagAllarmi"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -333,22 +333,18 @@ namespace DemoApp {
this.Namespace = "http://tempuri.org/DS_App.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableStoricoAllarmiExp = new StoricoAllarmiExpDataTable();
- base.Tables.Add(this.tableStoricoAllarmiExp);
- this.tableAnagOperatori = new AnagOperatoriDataTable();
- base.Tables.Add(this.tableAnagOperatori);
- this.tableAnagAllarmi = new AnagAllarmiDataTable();
- base.Tables.Add(this.tableAnagAllarmi);
this.tableTabOperazioni = new TabOperazioniDataTable();
base.Tables.Add(this.tableTabOperazioni);
this.tableTabPezzi = new TabPezziDataTable();
base.Tables.Add(this.tableTabPezzi);
this.tableAnagArticoli = new AnagArticoliDataTable();
base.Tables.Add(this.tableAnagArticoli);
- this.relationFK_StoricoAllarmi_AnagAllarmi = new global::System.Data.DataRelation("FK_StoricoAllarmi_AnagAllarmi", new global::System.Data.DataColumn[] {
- this.tableAnagAllarmi.CodAllarmeColumn}, new global::System.Data.DataColumn[] {
- this.tableStoricoAllarmiExp.CodAllarmeColumn}, false);
- this.Relations.Add(this.relationFK_StoricoAllarmi_AnagAllarmi);
+ this.tableAnagAllarmi = new AnagAllarmiDataTable();
+ base.Tables.Add(this.tableAnagAllarmi);
+ this.tableStoricoAllarmiExp = new StoricoAllarmiExpDataTable();
+ base.Tables.Add(this.tableStoricoAllarmiExp);
+ this.tableAnagOperatori = new AnagOperatoriDataTable();
+ base.Tables.Add(this.tableAnagOperatori);
this.relationFK_TabOperazioni_TabPezzi1 = new global::System.Data.DataRelation("FK_TabOperazioni_TabPezzi1", new global::System.Data.DataColumn[] {
this.tableTabPezzi.DatamatrixColumn}, new global::System.Data.DataColumn[] {
this.tableTabOperazioni.DatamatrixColumn}, false);
@@ -357,24 +353,10 @@ namespace DemoApp {
this.tableAnagArticoli.CodArtColumn}, new global::System.Data.DataColumn[] {
this.tableTabPezzi.CodArtColumn}, false);
this.Relations.Add(this.relationFK_TabPezzi_AnagArticoli);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private bool ShouldSerializeStoricoAllarmiExp() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private bool ShouldSerializeAnagOperatori() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private bool ShouldSerializeAnagAllarmi() {
- return false;
+ this.relationFK_StoricoAllarmi_AnagAllarmi = new global::System.Data.DataRelation("FK_StoricoAllarmi_AnagAllarmi", new global::System.Data.DataColumn[] {
+ this.tableAnagAllarmi.CodAllarmeColumn}, new global::System.Data.DataColumn[] {
+ this.tableStoricoAllarmiExp.CodAllarmeColumn}, false);
+ this.Relations.Add(this.relationFK_StoricoAllarmi_AnagAllarmi);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -395,6 +377,24 @@ namespace DemoApp {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeAnagAllarmi() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeStoricoAllarmiExp() {
+ return false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeAnagOperatori() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -450,15 +450,6 @@ namespace DemoApp {
return type;
}
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public delegate void StoricoAllarmiExpRowChangeEventHandler(object sender, StoricoAllarmiExpRowChangeEvent e);
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public delegate void AnagOperatoriRowChangeEventHandler(object sender, AnagOperatoriRowChangeEvent e);
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public delegate void AnagAllarmiRowChangeEventHandler(object sender, AnagAllarmiRowChangeEvent e);
-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void TabOperazioniRowChangeEventHandler(object sender, TabOperazioniRowChangeEvent e);
@@ -468,940 +459,14 @@ namespace DemoApp {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class StoricoAllarmiExpDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnDtEvento;
-
- private global::System.Data.DataColumn columnCodAllarme;
-
- private global::System.Data.DataColumn columnAttivo;
-
- private global::System.Data.DataColumn columnDescrizione;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpDataTable() {
- this.TableName = "StoricoAllarmiExp";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal StoricoAllarmiExpDataTable(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", "15.0.0.0")]
- protected StoricoAllarmiExpDataTable(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", "15.0.0.0")]
- public global::System.Data.DataColumn DtEventoColumn {
- get {
- return this.columnDtEvento;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn CodAllarmeColumn {
- get {
- return this.columnCodAllarme;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn AttivoColumn {
- get {
- return this.columnAttivo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn DescrizioneColumn {
- get {
- return this.columnDescrizione;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- public StoricoAllarmiExpRow this[int index] {
- get {
- return ((StoricoAllarmiExpRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void AddStoricoAllarmiExpRow(StoricoAllarmiExpRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRow AddStoricoAllarmiExpRow(System.DateTime DtEvento, AnagAllarmiRow parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi, bool Attivo, string Descrizione) {
- StoricoAllarmiExpRow rowStoricoAllarmiExpRow = ((StoricoAllarmiExpRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- DtEvento,
- null,
- Attivo,
- Descrizione};
- if ((parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi != null)) {
- columnValuesArray[1] = parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi[0];
- }
- rowStoricoAllarmiExpRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowStoricoAllarmiExpRow);
- return rowStoricoAllarmiExpRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRow FindByDtEventoCodAllarme(System.DateTime DtEvento, string CodAllarme) {
- return ((StoricoAllarmiExpRow)(this.Rows.Find(new object[] {
- DtEvento,
- CodAllarme})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- StoricoAllarmiExpDataTable cln = ((StoricoAllarmiExpDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new StoricoAllarmiExpDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal void InitVars() {
- this.columnDtEvento = base.Columns["DtEvento"];
- this.columnCodAllarme = base.Columns["CodAllarme"];
- this.columnAttivo = base.Columns["Attivo"];
- this.columnDescrizione = base.Columns["Descrizione"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitClass() {
- this.columnDtEvento = new global::System.Data.DataColumn("DtEvento", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDtEvento);
- this.columnCodAllarme = new global::System.Data.DataColumn("CodAllarme", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodAllarme);
- this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnAttivo);
- this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrizione);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnDtEvento,
- this.columnCodAllarme}, true));
- this.columnDtEvento.AllowDBNull = false;
- this.columnCodAllarme.AllowDBNull = false;
- this.columnCodAllarme.MaxLength = 50;
- this.columnAttivo.AllowDBNull = false;
- this.columnDescrizione.AllowDBNull = false;
- this.columnDescrizione.MaxLength = 250;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRow NewStoricoAllarmiExpRow() {
- return ((StoricoAllarmiExpRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new StoricoAllarmiExpRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(StoricoAllarmiExpRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.StoricoAllarmiExpRowChanged != null)) {
- this.StoricoAllarmiExpRowChanged(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.StoricoAllarmiExpRowChanging != null)) {
- this.StoricoAllarmiExpRowChanging(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.StoricoAllarmiExpRowDeleted != null)) {
- this.StoricoAllarmiExpRowDeleted(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.StoricoAllarmiExpRowDeleting != null)) {
- this.StoricoAllarmiExpRowDeleting(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void RemoveStoricoAllarmiExpRow(StoricoAllarmiExpRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
- 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 = "StoricoAllarmiExpDataTable";
- 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;
- }
- }
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void AnagAllarmiRowChangeEventHandler(object sender, AnagAllarmiRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagOperatoriDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnBarcode;
-
- private global::System.Data.DataColumn columnCognome;
-
- private global::System.Data.DataColumn columnNome;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriDataTable() {
- this.TableName = "AnagOperatori";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal AnagOperatoriDataTable(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", "15.0.0.0")]
- protected AnagOperatoriDataTable(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", "15.0.0.0")]
- public global::System.Data.DataColumn BarcodeColumn {
- get {
- return this.columnBarcode;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn CognomeColumn {
- get {
- return this.columnCognome;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn NomeColumn {
- get {
- return this.columnNome;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- public AnagOperatoriRow this[int index] {
- get {
- return ((AnagOperatoriRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void AddAnagOperatoriRow(AnagOperatoriRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriRow AddAnagOperatoriRow(string Barcode, string Cognome, string Nome) {
- AnagOperatoriRow rowAnagOperatoriRow = ((AnagOperatoriRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- Barcode,
- Cognome,
- Nome};
- rowAnagOperatoriRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagOperatoriRow);
- return rowAnagOperatoriRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriRow FindByBarcode(string Barcode) {
- return ((AnagOperatoriRow)(this.Rows.Find(new object[] {
- Barcode})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- AnagOperatoriDataTable cln = ((AnagOperatoriDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagOperatoriDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal void InitVars() {
- this.columnBarcode = base.Columns["Barcode"];
- this.columnCognome = base.Columns["Cognome"];
- this.columnNome = base.Columns["Nome"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitClass() {
- this.columnBarcode = new global::System.Data.DataColumn("Barcode", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnBarcode);
- this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCognome);
- this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnNome);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnBarcode}, true));
- this.columnBarcode.AllowDBNull = false;
- this.columnBarcode.Unique = true;
- this.columnBarcode.MaxLength = 50;
- this.columnCognome.AllowDBNull = false;
- this.columnCognome.MaxLength = 50;
- this.columnNome.AllowDBNull = false;
- this.columnNome.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriRow NewAnagOperatoriRow() {
- return ((AnagOperatoriRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagOperatoriRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(AnagOperatoriRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagOperatoriRowChanged != null)) {
- this.AnagOperatoriRowChanged(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagOperatoriRowChanging != null)) {
- this.AnagOperatoriRowChanging(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagOperatoriRowDeleted != null)) {
- this.AnagOperatoriRowDeleted(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagOperatoriRowDeleting != null)) {
- this.AnagOperatoriRowDeleting(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void RemoveAnagOperatoriRow(AnagOperatoriRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
- 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 = "AnagOperatoriDataTable";
- 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;
- }
- }
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void StoricoAllarmiExpRowChangeEventHandler(object sender, StoricoAllarmiExpRowChangeEvent e);
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagAllarmiDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodAllarme;
-
- private global::System.Data.DataColumn columnDescrizione;
-
- private global::System.Data.DataColumn columnReportAttivo;
-
- private global::System.Data.DataColumn columnLastStart;
-
- private global::System.Data.DataColumn columnLastEnd;
-
- private global::System.Data.DataColumn columnCurrStatus;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiDataTable() {
- this.TableName = "AnagAllarmi";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal AnagAllarmiDataTable(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", "15.0.0.0")]
- protected AnagAllarmiDataTable(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", "15.0.0.0")]
- public global::System.Data.DataColumn CodAllarmeColumn {
- get {
- return this.columnCodAllarme;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn DescrizioneColumn {
- get {
- return this.columnDescrizione;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn ReportAttivoColumn {
- get {
- return this.columnReportAttivo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn LastStartColumn {
- get {
- return this.columnLastStart;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn LastEndColumn {
- get {
- return this.columnLastEnd;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataColumn CurrStatusColumn {
- get {
- return this.columnCurrStatus;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- public AnagAllarmiRow this[int index] {
- get {
- return ((AnagAllarmiRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void AddAnagAllarmiRow(AnagAllarmiRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRow AddAnagAllarmiRow(string CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus) {
- AnagAllarmiRow rowAnagAllarmiRow = ((AnagAllarmiRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodAllarme,
- Descrizione,
- ReportAttivo,
- LastStart,
- LastEnd,
- CurrStatus};
- rowAnagAllarmiRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagAllarmiRow);
- return rowAnagAllarmiRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRow FindByCodAllarme(string CodAllarme) {
- return ((AnagAllarmiRow)(this.Rows.Find(new object[] {
- CodAllarme})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- AnagAllarmiDataTable cln = ((AnagAllarmiDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagAllarmiDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal void InitVars() {
- this.columnCodAllarme = base.Columns["CodAllarme"];
- this.columnDescrizione = base.Columns["Descrizione"];
- this.columnReportAttivo = base.Columns["ReportAttivo"];
- this.columnLastStart = base.Columns["LastStart"];
- this.columnLastEnd = base.Columns["LastEnd"];
- this.columnCurrStatus = base.Columns["CurrStatus"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitClass() {
- this.columnCodAllarme = new global::System.Data.DataColumn("CodAllarme", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodAllarme);
- this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescrizione);
- this.columnReportAttivo = new global::System.Data.DataColumn("ReportAttivo", typeof(bool), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnReportAttivo);
- this.columnLastStart = new global::System.Data.DataColumn("LastStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnLastStart);
- this.columnLastEnd = new global::System.Data.DataColumn("LastEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnLastEnd);
- this.columnCurrStatus = new global::System.Data.DataColumn("CurrStatus", typeof(bool), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCurrStatus);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodAllarme}, true));
- this.columnCodAllarme.AllowDBNull = false;
- this.columnCodAllarme.Unique = true;
- this.columnCodAllarme.MaxLength = 50;
- this.columnDescrizione.AllowDBNull = false;
- this.columnDescrizione.MaxLength = 250;
- this.columnReportAttivo.AllowDBNull = false;
- this.columnLastStart.AllowDBNull = false;
- this.columnLastEnd.AllowDBNull = false;
- this.columnCurrStatus.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRow NewAnagAllarmiRow() {
- return ((AnagAllarmiRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagAllarmiRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(AnagAllarmiRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagAllarmiRowChanged != null)) {
- this.AnagAllarmiRowChanged(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagAllarmiRowChanging != null)) {
- this.AnagAllarmiRowChanging(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagAllarmiRowDeleted != null)) {
- this.AnagAllarmiRowDeleted(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagAllarmiRowDeleting != null)) {
- this.AnagAllarmiRowDeleting(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public void RemoveAnagAllarmiRow(AnagAllarmiRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
- 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 = "AnagAllarmiDataTable";
- 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;
- }
- }
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void AnagOperatoriRowChangeEventHandler(object sender, AnagOperatoriRowChangeEvent e);
///
///Represents the strongly named DataTable class.
@@ -1550,10 +615,10 @@ namespace DemoApp {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public TabOperazioniRow AddTabOperazioniRow(int IdxRec, System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, TabPezziRow parentTabPezziRowByFK_TabOperazioni_TabPezzi1) {
+ public TabOperazioniRow AddTabOperazioniRow(System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, TabPezziRow parentTabPezziRowByFK_TabOperazioni_TabPezzi1) {
TabOperazioniRow rowTabOperazioniRow = ((TabOperazioniRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
- IdxRec,
+ null,
DtEvento,
CodStazione,
CodSottostaz,
@@ -1620,7 +685,11 @@ namespace DemoApp {
base.Columns.Add(this.columnDatamatrix);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxRec}, true));
+ this.columnIdxRec.AutoIncrement = true;
+ this.columnIdxRec.AutoIncrementSeed = -1;
+ this.columnIdxRec.AutoIncrementStep = -1;
this.columnIdxRec.AllowDBNull = false;
+ this.columnIdxRec.ReadOnly = true;
this.columnIdxRec.Unique = true;
this.columnDtEvento.AllowDBNull = false;
this.columnCodStazione.AllowDBNull = false;
@@ -2393,213 +1462,938 @@ namespace DemoApp {
}
///
- ///Represents strongly named DataRow class.
+ ///Represents the strongly named DataTable class.
///
- public partial class StoricoAllarmiExpRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagAllarmiDataTable : global::System.Data.TypedTableBase {
- private StoricoAllarmiExpDataTable tableStoricoAllarmiExp;
+ private global::System.Data.DataColumn columnCodAllarme;
+
+ private global::System.Data.DataColumn columnDescrizione;
+
+ private global::System.Data.DataColumn columnReportAttivo;
+
+ private global::System.Data.DataColumn columnLastStart;
+
+ private global::System.Data.DataColumn columnLastEnd;
+
+ private global::System.Data.DataColumn columnCurrStatus;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal StoricoAllarmiExpRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableStoricoAllarmiExp = ((StoricoAllarmiExpDataTable)(this.Table));
+ public AnagAllarmiDataTable() {
+ this.TableName = "AnagAllarmi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public System.DateTime DtEvento {
- get {
- return ((global::System.DateTime)(this[this.tableStoricoAllarmiExp.DtEventoColumn]));
+ internal AnagAllarmiDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableStoricoAllarmiExp.DtEventoColumn] = value;
+ 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", "15.0.0.0")]
+ protected AnagAllarmiDataTable(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", "15.0.0.0")]
+ public global::System.Data.DataColumn CodAllarmeColumn {
+ get {
+ return this.columnCodAllarme;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string CodAllarme {
+ public global::System.Data.DataColumn DescrizioneColumn {
get {
- return ((string)(this[this.tableStoricoAllarmiExp.CodAllarmeColumn]));
- }
- set {
- this[this.tableStoricoAllarmiExp.CodAllarmeColumn] = value;
+ return this.columnDescrizione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public bool Attivo {
+ public global::System.Data.DataColumn ReportAttivoColumn {
get {
- return ((bool)(this[this.tableStoricoAllarmiExp.AttivoColumn]));
- }
- set {
- this[this.tableStoricoAllarmiExp.AttivoColumn] = value;
+ return this.columnReportAttivo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string Descrizione {
+ public global::System.Data.DataColumn LastStartColumn {
get {
- return ((string)(this[this.tableStoricoAllarmiExp.DescrizioneColumn]));
- }
- set {
- this[this.tableStoricoAllarmiExp.DescrizioneColumn] = value;
+ return this.columnLastStart;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRow AnagAllarmiRow {
+ public global::System.Data.DataColumn LastEndColumn {
get {
- return ((AnagAllarmiRow)(this.GetParentRow(this.Table.ParentRelations["FK_StoricoAllarmi_AnagAllarmi"])));
+ return this.columnLastEnd;
}
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_StoricoAllarmi_AnagAllarmi"]);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn CurrStatusColumn {
+ get {
+ return this.columnCurrStatus;
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ public AnagAllarmiRow this[int index] {
+ get {
+ return ((AnagAllarmiRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagAllarmiRowChangeEventHandler AnagAllarmiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddAnagAllarmiRow(AnagAllarmiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagAllarmiRow AddAnagAllarmiRow(string CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus) {
+ AnagAllarmiRow rowAnagAllarmiRow = ((AnagAllarmiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodAllarme,
+ Descrizione,
+ ReportAttivo,
+ LastStart,
+ LastEnd,
+ CurrStatus};
+ rowAnagAllarmiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagAllarmiRow);
+ return rowAnagAllarmiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagAllarmiRow FindByCodAllarme(string CodAllarme) {
+ return ((AnagAllarmiRow)(this.Rows.Find(new object[] {
+ CodAllarme})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagAllarmiDataTable cln = ((AnagAllarmiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagAllarmiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnCodAllarme = base.Columns["CodAllarme"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ this.columnReportAttivo = base.Columns["ReportAttivo"];
+ this.columnLastStart = base.Columns["LastStart"];
+ this.columnLastEnd = base.Columns["LastEnd"];
+ this.columnCurrStatus = base.Columns["CurrStatus"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnCodAllarme = new global::System.Data.DataColumn("CodAllarme", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodAllarme);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.columnReportAttivo = new global::System.Data.DataColumn("ReportAttivo", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnReportAttivo);
+ this.columnLastStart = new global::System.Data.DataColumn("LastStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnLastStart);
+ this.columnLastEnd = new global::System.Data.DataColumn("LastEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnLastEnd);
+ this.columnCurrStatus = new global::System.Data.DataColumn("CurrStatus", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCurrStatus);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodAllarme}, true));
+ this.columnCodAllarme.AllowDBNull = false;
+ this.columnCodAllarme.Unique = true;
+ this.columnCodAllarme.MaxLength = 50;
+ this.columnDescrizione.AllowDBNull = false;
+ this.columnDescrizione.MaxLength = 250;
+ this.columnReportAttivo.AllowDBNull = false;
+ this.columnLastStart.AllowDBNull = false;
+ this.columnLastEnd.AllowDBNull = false;
+ this.columnCurrStatus.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagAllarmiRow NewAnagAllarmiRow() {
+ return ((AnagAllarmiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagAllarmiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagAllarmiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagAllarmiRowChanged != null)) {
+ this.AnagAllarmiRowChanged(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagAllarmiRowChanging != null)) {
+ this.AnagAllarmiRowChanging(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagAllarmiRowDeleted != null)) {
+ this.AnagAllarmiRowDeleted(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagAllarmiRowDeleting != null)) {
+ this.AnagAllarmiRowDeleting(this, new AnagAllarmiRowChangeEvent(((AnagAllarmiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveAnagAllarmiRow(AnagAllarmiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
+ 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 = "AnagAllarmiDataTable";
+ 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.
+ ///Represents the strongly named DataTable class.
///
- public partial class AnagOperatoriRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class StoricoAllarmiExpDataTable : global::System.Data.TypedTableBase {
- private AnagOperatoriDataTable tableAnagOperatori;
+ private global::System.Data.DataColumn columnDtEvento;
+
+ private global::System.Data.DataColumn columnCodAllarme;
+
+ private global::System.Data.DataColumn columnAttivo;
+
+ private global::System.Data.DataColumn columnDescrizione;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal AnagOperatoriRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagOperatori = ((AnagOperatoriDataTable)(this.Table));
+ public StoricoAllarmiExpDataTable() {
+ this.TableName = "StoricoAllarmiExp";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string Barcode {
- get {
- return ((string)(this[this.tableAnagOperatori.BarcodeColumn]));
+ internal StoricoAllarmiExpDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
}
- set {
- this[this.tableAnagOperatori.BarcodeColumn] = value;
+ 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", "15.0.0.0")]
+ protected StoricoAllarmiExpDataTable(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", "15.0.0.0")]
+ public global::System.Data.DataColumn DtEventoColumn {
+ get {
+ return this.columnDtEvento;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string Cognome {
+ public global::System.Data.DataColumn CodAllarmeColumn {
get {
- return ((string)(this[this.tableAnagOperatori.CognomeColumn]));
- }
- set {
- this[this.tableAnagOperatori.CognomeColumn] = value;
+ return this.columnCodAllarme;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string Nome {
+ public global::System.Data.DataColumn AttivoColumn {
get {
- return ((string)(this[this.tableAnagOperatori.NomeColumn]));
+ return this.columnAttivo;
}
- set {
- this[this.tableAnagOperatori.NomeColumn] = value;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn DescrizioneColumn {
+ get {
+ return this.columnDescrizione;
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ public StoricoAllarmiExpRow this[int index] {
+ get {
+ return ((StoricoAllarmiExpRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event StoricoAllarmiExpRowChangeEventHandler StoricoAllarmiExpRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddStoricoAllarmiExpRow(StoricoAllarmiExpRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public StoricoAllarmiExpRow AddStoricoAllarmiExpRow(System.DateTime DtEvento, AnagAllarmiRow parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi, bool Attivo, string Descrizione) {
+ StoricoAllarmiExpRow rowStoricoAllarmiExpRow = ((StoricoAllarmiExpRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ DtEvento,
+ null,
+ Attivo,
+ Descrizione};
+ if ((parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi != null)) {
+ columnValuesArray[1] = parentAnagAllarmiRowByFK_StoricoAllarmi_AnagAllarmi[0];
+ }
+ rowStoricoAllarmiExpRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowStoricoAllarmiExpRow);
+ return rowStoricoAllarmiExpRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public StoricoAllarmiExpRow FindByDtEventoCodAllarme(System.DateTime DtEvento, string CodAllarme) {
+ return ((StoricoAllarmiExpRow)(this.Rows.Find(new object[] {
+ DtEvento,
+ CodAllarme})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ StoricoAllarmiExpDataTable cln = ((StoricoAllarmiExpDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new StoricoAllarmiExpDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnDtEvento = base.Columns["DtEvento"];
+ this.columnCodAllarme = base.Columns["CodAllarme"];
+ this.columnAttivo = base.Columns["Attivo"];
+ this.columnDescrizione = base.Columns["Descrizione"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnDtEvento = new global::System.Data.DataColumn("DtEvento", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDtEvento);
+ this.columnCodAllarme = new global::System.Data.DataColumn("CodAllarme", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodAllarme);
+ this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnAttivo);
+ this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescrizione);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnDtEvento,
+ this.columnCodAllarme}, true));
+ this.columnDtEvento.AllowDBNull = false;
+ this.columnCodAllarme.AllowDBNull = false;
+ this.columnCodAllarme.MaxLength = 50;
+ this.columnAttivo.AllowDBNull = false;
+ this.columnDescrizione.AllowDBNull = false;
+ this.columnDescrizione.MaxLength = 250;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public StoricoAllarmiExpRow NewStoricoAllarmiExpRow() {
+ return ((StoricoAllarmiExpRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new StoricoAllarmiExpRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(StoricoAllarmiExpRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.StoricoAllarmiExpRowChanged != null)) {
+ this.StoricoAllarmiExpRowChanged(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.StoricoAllarmiExpRowChanging != null)) {
+ this.StoricoAllarmiExpRowChanging(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.StoricoAllarmiExpRowDeleted != null)) {
+ this.StoricoAllarmiExpRowDeleted(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.StoricoAllarmiExpRowDeleting != null)) {
+ this.StoricoAllarmiExpRowDeleting(this, new StoricoAllarmiExpRowChangeEvent(((StoricoAllarmiExpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveStoricoAllarmiExpRow(StoricoAllarmiExpRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
+ 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 = "StoricoAllarmiExpDataTable";
+ 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.
+ ///Represents the strongly named DataTable class.
///
- public partial class AnagAllarmiRow : global::System.Data.DataRow {
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagOperatoriDataTable : global::System.Data.TypedTableBase {
- private AnagAllarmiDataTable tableAnagAllarmi;
+ private global::System.Data.DataColumn columnBarcode;
+
+ private global::System.Data.DataColumn columnCognome;
+
+ private global::System.Data.DataColumn columnNome;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- internal AnagAllarmiRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagAllarmi = ((AnagAllarmiDataTable)(this.Table));
+ public AnagOperatoriDataTable() {
+ this.TableName = "AnagOperatori";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string CodAllarme {
+ internal AnagOperatoriDataTable(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", "15.0.0.0")]
+ protected AnagOperatoriDataTable(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", "15.0.0.0")]
+ public global::System.Data.DataColumn BarcodeColumn {
get {
- return ((string)(this[this.tableAnagAllarmi.CodAllarmeColumn]));
- }
- set {
- this[this.tableAnagAllarmi.CodAllarmeColumn] = value;
+ return this.columnBarcode;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public string Descrizione {
+ public global::System.Data.DataColumn CognomeColumn {
get {
- return ((string)(this[this.tableAnagAllarmi.DescrizioneColumn]));
- }
- set {
- this[this.tableAnagAllarmi.DescrizioneColumn] = value;
+ return this.columnCognome;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public bool ReportAttivo {
+ public global::System.Data.DataColumn NomeColumn {
get {
- return ((bool)(this[this.tableAnagAllarmi.ReportAttivoColumn]));
- }
- set {
- this[this.tableAnagAllarmi.ReportAttivoColumn] = value;
+ return this.columnNome;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public System.DateTime LastStart {
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
get {
- return ((global::System.DateTime)(this[this.tableAnagAllarmi.LastStartColumn]));
- }
- set {
- this[this.tableAnagAllarmi.LastStartColumn] = value;
+ return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public System.DateTime LastEnd {
+ public AnagOperatoriRow this[int index] {
get {
- return ((global::System.DateTime)(this[this.tableAnagAllarmi.LastEndColumn]));
+ return ((AnagOperatoriRow)(this.Rows[index]));
}
- set {
- this[this.tableAnagAllarmi.LastEndColumn] = value;
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event AnagOperatoriRowChangeEventHandler AnagOperatoriRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddAnagOperatoriRow(AnagOperatoriRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagOperatoriRow AddAnagOperatoriRow(string Barcode, string Cognome, string Nome) {
+ AnagOperatoriRow rowAnagOperatoriRow = ((AnagOperatoriRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Barcode,
+ Cognome,
+ Nome};
+ rowAnagOperatoriRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagOperatoriRow);
+ return rowAnagOperatoriRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagOperatoriRow FindByBarcode(string Barcode) {
+ return ((AnagOperatoriRow)(this.Rows.Find(new object[] {
+ Barcode})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ AnagOperatoriDataTable cln = ((AnagOperatoriDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagOperatoriDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnBarcode = base.Columns["Barcode"];
+ this.columnCognome = base.Columns["Cognome"];
+ this.columnNome = base.Columns["Nome"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnBarcode = new global::System.Data.DataColumn("Barcode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnBarcode);
+ this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCognome);
+ this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnNome);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnBarcode}, true));
+ this.columnBarcode.AllowDBNull = false;
+ this.columnBarcode.Unique = true;
+ this.columnBarcode.MaxLength = 50;
+ this.columnCognome.AllowDBNull = false;
+ this.columnCognome.MaxLength = 50;
+ this.columnNome.AllowDBNull = false;
+ this.columnNome.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagOperatoriRow NewAnagOperatoriRow() {
+ return ((AnagOperatoriRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagOperatoriRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagOperatoriRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagOperatoriRowChanged != null)) {
+ this.AnagOperatoriRowChanged(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public bool CurrStatus {
- get {
- return ((bool)(this[this.tableAnagAllarmi.CurrStatusColumn]));
- }
- set {
- this[this.tableAnagAllarmi.CurrStatusColumn] = value;
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagOperatoriRowChanging != null)) {
+ this.AnagOperatoriRowChanging(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRow[] GetStoricoAllarmiRows() {
- if ((this.Table.ChildRelations["FK_StoricoAllarmi_AnagAllarmi"] == null)) {
- return new StoricoAllarmiExpRow[0];
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagOperatoriRowDeleted != null)) {
+ this.AnagOperatoriRowDeleted(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
}
- else {
- return ((StoricoAllarmiExpRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StoricoAllarmi_AnagAllarmi"])));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagOperatoriRowDeleting != null)) {
+ this.AnagOperatoriRowDeleting(this, new AnagOperatoriRowChangeEvent(((AnagOperatoriRow)(e.Row)), e.Action));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveAnagOperatoriRow(AnagOperatoriRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App ds = new DS_App();
+ 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 = "AnagOperatoriDataTable";
+ 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;
+ }
}
///
@@ -2868,103 +2662,211 @@ namespace DemoApp {
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public class StoricoAllarmiExpRowChangeEvent : global::System.EventArgs {
+ public partial class AnagAllarmiRow : global::System.Data.DataRow {
- private StoricoAllarmiExpRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private AnagAllarmiDataTable tableAnagAllarmi;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRowChangeEvent(StoricoAllarmiExpRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal AnagAllarmiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagAllarmi = ((AnagAllarmiDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public StoricoAllarmiExpRow Row {
+ public string CodAllarme {
get {
- return this.eventRow;
+ return ((string)(this[this.tableAnagAllarmi.CodAllarmeColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.CodAllarmeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataRowAction Action {
+ public string Descrizione {
get {
- return this.eventAction;
+ return ((string)(this[this.tableAnagAllarmi.DescrizioneColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool ReportAttivo {
+ get {
+ return ((bool)(this[this.tableAnagAllarmi.ReportAttivoColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.ReportAttivoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public System.DateTime LastStart {
+ get {
+ return ((global::System.DateTime)(this[this.tableAnagAllarmi.LastStartColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.LastStartColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public System.DateTime LastEnd {
+ get {
+ return ((global::System.DateTime)(this[this.tableAnagAllarmi.LastEndColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.LastEndColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool CurrStatus {
+ get {
+ return ((bool)(this[this.tableAnagAllarmi.CurrStatusColumn]));
+ }
+ set {
+ this[this.tableAnagAllarmi.CurrStatusColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public StoricoAllarmiExpRow[] GetStoricoAllarmiExpRows() {
+ if ((this.Table.ChildRelations["FK_StoricoAllarmi_AnagAllarmi"] == null)) {
+ return new StoricoAllarmiExpRow[0];
+ }
+ else {
+ return ((StoricoAllarmiExpRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StoricoAllarmi_AnagAllarmi"])));
}
}
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public class AnagOperatoriRowChangeEvent : global::System.EventArgs {
+ public partial class StoricoAllarmiExpRow : global::System.Data.DataRow {
- private AnagOperatoriRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private StoricoAllarmiExpDataTable tableStoricoAllarmiExp;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriRowChangeEvent(AnagOperatoriRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal StoricoAllarmiExpRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableStoricoAllarmiExp = ((StoricoAllarmiExpDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagOperatoriRow Row {
+ public System.DateTime DtEvento {
get {
- return this.eventRow;
+ return ((global::System.DateTime)(this[this.tableStoricoAllarmiExp.DtEventoColumn]));
+ }
+ set {
+ this[this.tableStoricoAllarmiExp.DtEventoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataRowAction Action {
+ public string CodAllarme {
get {
- return this.eventAction;
+ return ((string)(this[this.tableStoricoAllarmiExp.CodAllarmeColumn]));
+ }
+ set {
+ this[this.tableStoricoAllarmiExp.CodAllarmeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool Attivo {
+ get {
+ return ((bool)(this[this.tableStoricoAllarmiExp.AttivoColumn]));
+ }
+ set {
+ this[this.tableStoricoAllarmiExp.AttivoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string Descrizione {
+ get {
+ return ((string)(this[this.tableStoricoAllarmiExp.DescrizioneColumn]));
+ }
+ set {
+ this[this.tableStoricoAllarmiExp.DescrizioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagAllarmiRow AnagAllarmiRow {
+ get {
+ return ((AnagAllarmiRow)(this.GetParentRow(this.Table.ParentRelations["FK_StoricoAllarmi_AnagAllarmi"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_StoricoAllarmi_AnagAllarmi"]);
}
}
}
///
- ///Row event argument class
+ ///Represents strongly named DataRow class.
///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public class AnagAllarmiRowChangeEvent : global::System.EventArgs {
+ public partial class AnagOperatoriRow : global::System.Data.DataRow {
- private AnagAllarmiRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
+ private AnagOperatoriDataTable tableAnagOperatori;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRowChangeEvent(AnagAllarmiRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
+ internal AnagOperatoriRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagOperatori = ((AnagOperatoriDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public AnagAllarmiRow Row {
+ public string Barcode {
get {
- return this.eventRow;
+ return ((string)(this[this.tableAnagOperatori.BarcodeColumn]));
+ }
+ set {
+ this[this.tableAnagOperatori.BarcodeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- public global::System.Data.DataRowAction Action {
+ public string Cognome {
get {
- return this.eventAction;
+ return ((string)(this[this.tableAnagOperatori.CognomeColumn]));
+ }
+ set {
+ this[this.tableAnagOperatori.CognomeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string Nome {
+ get {
+ return ((string)(this[this.tableAnagOperatori.NomeColumn]));
+ }
+ set {
+ this[this.tableAnagOperatori.NomeColumn] = value;
}
}
}
@@ -3070,1347 +2972,113 @@ namespace DemoApp {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class AnagAllarmiRowChangeEvent : global::System.EventArgs {
+
+ private AnagAllarmiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagAllarmiRowChangeEvent(AnagAllarmiRow 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", "15.0.0.0")]
+ public AnagAllarmiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class StoricoAllarmiExpRowChangeEvent : global::System.EventArgs {
+
+ private StoricoAllarmiExpRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public StoricoAllarmiExpRowChangeEvent(StoricoAllarmiExpRow 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", "15.0.0.0")]
+ public StoricoAllarmiExpRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class AnagOperatoriRowChangeEvent : global::System.EventArgs {
+
+ private AnagOperatoriRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public AnagOperatoriRowChangeEvent(AnagOperatoriRow 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", "15.0.0.0")]
+ public AnagOperatoriRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
-namespace DemoApp.DS_AppTableAdapters {
+namespace DB_proxy.DB_proxy.DS_AppTableAdapters {
- ///
- ///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 StoricoAllarmiExpTableAdapter : 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", "15.0.0.0")]
- public StoricoAllarmiExpTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- internal 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", "15.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", "15.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", "15.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", "15.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 = "StoricoAllarmiExp";
- tableMapping.ColumnMappings.Add("DtEvento", "DtEvento");
- tableMapping.ColumnMappings.Add("CodAllarme", "CodAllarme");
- tableMapping.ColumnMappings.Add("Attivo", "Attivo");
- tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
- 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].[StoricoAllarmi] WHERE (([DtEvento] = @Original_DtEvento) AND (" +
- "[CodAllarme] = @Original_CodAllarme) AND ([Attivo] = @Original_Attivo))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", 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].[StoricoAllarmi] ([DtEvento], [CodAllarme], [Attivo]) VALUES (@" +
- "DtEvento, @CodAllarme, @Attivo);\r\nSELECT DtEvento, CodAllarme, Attivo FROM Stori" +
- "coAllarmi WHERE (CodAllarme = @CodAllarme) AND (DtEvento = @DtEvento)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", 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].[StoricoAllarmi] SET [DtEvento] = @DtEvento, [CodAllarme] = @CodAllarme, [Attivo] = @Attivo WHERE (([DtEvento] = @Original_DtEvento) AND ([CodAllarme] = @Original_CodAllarme) AND ([Attivo] = @Original_Attivo));
-SELECT DtEvento, CodAllarme, Attivo FROM StoricoAllarmi WHERE (CodAllarme = @CodAllarme) AND (DtEvento = @DtEvento)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT DtEvento, CodAllarme, Attivo, Descrizione\r\nFROM vStorico" +
- "AllarmiExp";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_Allarmi_checkStatus";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@charSep", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmList", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_Allarmi_getLast";
- this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.StoricoAllarmiExpDataTable 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", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_App.StoricoAllarmiExpDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_App.StoricoAllarmiExpDataTable dataTable = new DS_App.StoricoAllarmiExpDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
- public virtual int FillLastRec(DS_App.StoricoAllarmiExpDataTable dataTable, global::System.Nullable maxNum) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((maxNum.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maxNum.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- 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", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_App.StoricoAllarmiExpDataTable GetLastRec(global::System.Nullable maxNum) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((maxNum.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maxNum.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- DS_App.StoricoAllarmiExpDataTable dataTable = new DS_App.StoricoAllarmiExpDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App.StoricoAllarmiExpDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App dataSet) {
- return this.Adapter.Update(dataSet, "StoricoAllarmiExp");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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(System.DateTime Original_DtEvento, string Original_CodAllarme, bool Original_Attivo) {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_DtEvento));
- if ((Original_CodAllarme == null)) {
- throw new global::System.ArgumentNullException("Original_CodAllarme");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodAllarme));
- }
- this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_Attivo));
- 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", "15.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(System.DateTime DtEvento, string CodAllarme, bool Attivo) {
- this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtEvento));
- if ((CodAllarme == null)) {
- throw new global::System.ArgumentNullException("CodAllarme");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodAllarme));
- }
- this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(Attivo));
- 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", "15.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(System.DateTime DtEvento, string CodAllarme, bool Attivo, System.DateTime Original_DtEvento, string Original_CodAllarme, bool Original_Attivo) {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtEvento));
- if ((CodAllarme == null)) {
- throw new global::System.ArgumentNullException("CodAllarme");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodAllarme));
- }
- this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(Attivo));
- this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Original_DtEvento));
- if ((Original_CodAllarme == null)) {
- throw new global::System.ArgumentNullException("Original_CodAllarme");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodAllarme));
- }
- this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(Original_Attivo));
- 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", "15.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(bool Attivo, System.DateTime Original_DtEvento, string Original_CodAllarme, bool Original_Attivo) {
- return this.Update(Original_DtEvento, Original_CodAllarme, Attivo, Original_DtEvento, Original_CodAllarme, Original_Attivo);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int checkStatus(string charSep, string alarmList) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
- if ((charSep == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(charSep));
- }
- if ((alarmList == null)) {
- command.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[2].Value = ((string)(alarmList));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
- }
-
- ///
- ///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 AnagOperatoriTableAdapter : 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", "15.0.0.0")]
- public AnagOperatoriTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- internal 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", "15.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", "15.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", "15.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", "15.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 = "AnagOperatori";
- tableMapping.ColumnMappings.Add("Barcode", "Barcode");
- tableMapping.ColumnMappings.Add("Cognome", "Cognome");
- tableMapping.ColumnMappings.Add("Nome", "Nome");
- 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].[AnagOperatori] WHERE (([Barcode] = @Original_Barcode) AND ([Co" +
- "gnome] = @Original_Cognome) AND ([Nome] = @Original_Nome))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", 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].[AnagOperatori] ([Barcode], [Cognome], [Nome]) VALUES (@Barcode" +
- ", @Cognome, @Nome);\r\nSELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Bar" +
- "code = @Barcode)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", 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].[AnagOperatori] SET [Barcode] = @Barcode, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome));
-SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT Barcode, Cognome, Nome FROM dbo.AnagOperatori";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_AnagOpr_deleteQuery";
- this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_AnagOpr_search";
- this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_AnagOpr_insertQuery";
- this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "dbo.stp_AnagOpr_updateQuery";
- this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.AnagOperatoriDataTable 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", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_App.AnagOperatoriDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_App.AnagOperatoriDataTable dataTable = new DS_App.AnagOperatoriDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
- public virtual int FillByBCode(DS_App.AnagOperatoriDataTable dataTable, string Barcode) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((Barcode == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Barcode));
- }
- 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", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_App.AnagOperatoriDataTable GetByBCode(string Barcode) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
- if ((Barcode == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Barcode));
- }
- DS_App.AnagOperatoriDataTable dataTable = new DS_App.AnagOperatoriDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App.AnagOperatoriDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App dataSet) {
- return this.Adapter.Update(dataSet, "AnagOperatori");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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(string Original_Barcode, string Original_Cognome, string Original_Nome) {
- if ((Original_Barcode == null)) {
- throw new global::System.ArgumentNullException("Original_Barcode");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Barcode));
- }
- if ((Original_Cognome == null)) {
- throw new global::System.ArgumentNullException("Original_Cognome");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Cognome));
- }
- if ((Original_Nome == null)) {
- throw new global::System.ArgumentNullException("Original_Nome");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome));
- }
- 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", "15.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 Barcode, string Cognome, string Nome) {
- if ((Barcode == null)) {
- throw new global::System.ArgumentNullException("Barcode");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Barcode));
- }
- if ((Cognome == null)) {
- throw new global::System.ArgumentNullException("Cognome");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome));
- }
- if ((Nome == null)) {
- throw new global::System.ArgumentNullException("Nome");
- }
- else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome));
- }
- 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", "15.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 Barcode, string Cognome, string Nome, string Original_Barcode, string Original_Cognome, string Original_Nome) {
- if ((Barcode == null)) {
- throw new global::System.ArgumentNullException("Barcode");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Barcode));
- }
- if ((Cognome == null)) {
- throw new global::System.ArgumentNullException("Cognome");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome));
- }
- if ((Nome == null)) {
- throw new global::System.ArgumentNullException("Nome");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome));
- }
- if ((Original_Barcode == null)) {
- throw new global::System.ArgumentNullException("Original_Barcode");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Barcode));
- }
- if ((Original_Cognome == null)) {
- throw new global::System.ArgumentNullException("Original_Cognome");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Cognome));
- }
- if ((Original_Nome == null)) {
- throw new global::System.ArgumentNullException("Original_Nome");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Nome));
- }
- 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", "15.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 Cognome, string Nome, string Original_Barcode, string Original_Cognome, string Original_Nome) {
- return this.Update(Original_Barcode, Cognome, Nome, Original_Barcode, Original_Cognome, Original_Nome);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int deleteQuery(string Barcode) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
- if ((Barcode == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(Barcode));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int insertQuery(string Barcode, string Cognome, string Nome) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
- if ((Barcode == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(Barcode));
- }
- if ((Cognome == null)) {
- command.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[2].Value = ((string)(Cognome));
- }
- if ((Nome == null)) {
- command.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[3].Value = ((string)(Nome));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int updateQuery(string Original_Barcode, string Barcode, string Cognome, string Nome) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
- if ((Original_Barcode == null)) {
- command.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[1].Value = ((string)(Original_Barcode));
- }
- if ((Barcode == null)) {
- command.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[2].Value = ((string)(Barcode));
- }
- if ((Cognome == null)) {
- command.Parameters[3].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[3].Value = ((string)(Cognome));
- }
- if ((Nome == null)) {
- command.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- command.Parameters[4].Value = ((string)(Nome));
- }
- global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
- if (((command.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- command.Connection.Open();
- }
- int returnValue;
- try {
- returnValue = command.ExecuteNonQuery();
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- command.Connection.Close();
- }
- }
- return returnValue;
- }
- }
-
- ///
- ///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 AnagAllarmiTableAdapter : 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", "15.0.0.0")]
- public AnagAllarmiTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
- internal 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", "15.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", "15.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", "15.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", "15.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 = "AnagAllarmi";
- tableMapping.ColumnMappings.Add("CodAllarme", "CodAllarme");
- tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
- tableMapping.ColumnMappings.Add("ReportAttivo", "ReportAttivo");
- tableMapping.ColumnMappings.Add("LastStart", "LastStart");
- tableMapping.ColumnMappings.Add("LastEnd", "LastEnd");
- tableMapping.ColumnMappings.Add("CurrStatus", "CurrStatus");
- 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].[AnagAllarmi] WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", 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].[AnagAllarmi] ([CodAllarme], [Descrizione], [ReportAttivo], [LastStart], [LastEnd], [CurrStatus]) VALUES (@CodAllarme, @Descrizione, @ReportAttivo, @LastStart, @LastEnd, @CurrStatus);
-SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", 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].[AnagAllarmi] SET [CodAllarme] = @CodAllarme, [Descrizione] = @Descrizione, [ReportAttivo] = @ReportAttivo, [LastStart] = @LastStart, [LastEnd] = @LastEnd, [CurrStatus] = @CurrStatus WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus));
-SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 *\r\nFROM dbo.AnagAllarmi";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.AnagAllarmiDataTable 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", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_App.AnagAllarmiDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_App.AnagAllarmiDataTable dataTable = new DS_App.AnagAllarmiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App.AnagAllarmiDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_App dataSet) {
- return this.Adapter.Update(dataSet, "AnagAllarmi");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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(string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
- if ((Original_CodAllarme == null)) {
- throw new global::System.ArgumentNullException("Original_CodAllarme");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodAllarme));
- }
- if ((Original_Descrizione == null)) {
- throw new global::System.ArgumentNullException("Original_Descrizione");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Descrizione));
- }
- this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_ReportAttivo));
- this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_LastStart));
- this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_LastEnd));
- this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_CurrStatus));
- 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", "15.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 CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus) {
- if ((CodAllarme == null)) {
- throw new global::System.ArgumentNullException("CodAllarme");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodAllarme));
- }
- if ((Descrizione == null)) {
- throw new global::System.ArgumentNullException("Descrizione");
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Descrizione));
- }
- this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(ReportAttivo));
- this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(LastStart));
- this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(LastEnd));
- this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(CurrStatus));
- 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", "15.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 CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus, string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
- if ((CodAllarme == null)) {
- throw new global::System.ArgumentNullException("CodAllarme");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodAllarme));
- }
- if ((Descrizione == null)) {
- throw new global::System.ArgumentNullException("Descrizione");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Descrizione));
- }
- this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(ReportAttivo));
- this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(LastStart));
- this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(LastEnd));
- this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(CurrStatus));
- if ((Original_CodAllarme == null)) {
- throw new global::System.ArgumentNullException("Original_CodAllarme");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodAllarme));
- }
- if ((Original_Descrizione == null)) {
- throw new global::System.ArgumentNullException("Original_Descrizione");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Descrizione));
- }
- this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Original_ReportAttivo));
- this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_LastStart));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_LastEnd));
- this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_CurrStatus));
- 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", "15.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 Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus, string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
- return this.Update(Original_CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus, Original_CodAllarme, Original_Descrizione, Original_ReportAttivo, Original_LastStart, Original_LastEnd, Original_CurrStatus);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -4553,10 +3221,9 @@ SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FRO
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Datamatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Datamatrix", 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].[TabOperazioni] ([IdxRec], [DtEvento], [CodStazione], [CodSottostaz], [CodOperaz], [CodStato], [Datamatrix]) VALUES (@IdxRec, @DtEvento, @CodStazione, @CodSottostaz, @CodOperaz, @CodStato, @Datamatrix);
-SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = @IdxRec)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TabOperazioni] ([DtEvento], [CodStazione], [CodSottostaz], [CodOperaz], [CodStato], [Datamatrix]) VALUES (@DtEvento, @CodStazione, @CodSottostaz, @CodOperaz, @CodStato, @Datamatrix);
+SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSottostaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSottostaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4565,10 +3232,9 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Datamatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Datamatrix", 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].[TabOperazioni] SET [IdxRec] = @IdxRec, [DtEvento] = @DtEvento, [CodStazione] = @CodStazione, [CodSottostaz] = @CodSottostaz, [CodOperaz] = @CodOperaz, [CodStato] = @CodStato, [Datamatrix] = @Datamatrix WHERE (([IdxRec] = @Original_IdxRec) AND ([DtEvento] = @Original_DtEvento) AND ([CodStazione] = @Original_CodStazione) AND ([CodSottostaz] = @Original_CodSottostaz) AND ([CodOperaz] = @Original_CodOperaz) AND ([CodStato] = @Original_CodStato) AND ([Datamatrix] = @Original_Datamatrix));
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TabOperazioni] SET [DtEvento] = @DtEvento, [CodStazione] = @CodStazione, [CodSottostaz] = @CodSottostaz, [CodOperaz] = @CodOperaz, [CodStato] = @CodStato, [Datamatrix] = @Datamatrix WHERE (([IdxRec] = @Original_IdxRec) AND ([DtEvento] = @Original_DtEvento) AND ([CodStazione] = @Original_CodStazione) AND ([CodSottostaz] = @Original_CodSottostaz) AND ([CodOperaz] = @Original_CodOperaz) AND ([CodStato] = @Original_CodStato) AND ([Datamatrix] = @Original_Datamatrix));
SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = @IdxRec)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvento", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSottostaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSottostaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4582,13 +3248,14 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodOperaz", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOperaz", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodStato", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Datamatrix", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Datamatrix", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4777,38 +3444,37 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(int IdxRec, System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, string Datamatrix) {
- this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxRec));
- this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DtEvento));
+ public virtual int Insert(System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, string Datamatrix) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtEvento));
if ((CodStazione == null)) {
throw new global::System.ArgumentNullException("CodStazione");
}
else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodStazione));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodStazione));
}
if ((CodSottostaz == null)) {
throw new global::System.ArgumentNullException("CodSottostaz");
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodSottostaz));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodSottostaz));
}
if ((CodOperaz == null)) {
throw new global::System.ArgumentNullException("CodOperaz");
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodOperaz));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodOperaz));
}
if ((CodStato == null)) {
throw new global::System.ArgumentNullException("CodStato");
}
else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodStato));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodStato));
}
if ((Datamatrix == null)) {
throw new global::System.ArgumentNullException("Datamatrix");
}
else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Datamatrix));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Datamatrix));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -4830,71 +3496,71 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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(int IdxRec, System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, string Datamatrix, int Original_IdxRec, System.DateTime Original_DtEvento, string Original_CodStazione, string Original_CodSottostaz, string Original_CodOperaz, string Original_CodStato, string Original_Datamatrix) {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxRec));
- this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DtEvento));
+ public virtual int Update(System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, string Datamatrix, int Original_IdxRec, System.DateTime Original_DtEvento, string Original_CodStazione, string Original_CodSottostaz, string Original_CodOperaz, string Original_CodStato, string Original_Datamatrix, int IdxRec) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtEvento));
if ((CodStazione == null)) {
throw new global::System.ArgumentNullException("CodStazione");
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodStazione));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodStazione));
}
if ((CodSottostaz == null)) {
throw new global::System.ArgumentNullException("CodSottostaz");
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodSottostaz));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodSottostaz));
}
if ((CodOperaz == null)) {
throw new global::System.ArgumentNullException("CodOperaz");
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodOperaz));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodOperaz));
}
if ((CodStato == null)) {
throw new global::System.ArgumentNullException("CodStato");
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodStato));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodStato));
}
if ((Datamatrix == null)) {
throw new global::System.ArgumentNullException("Datamatrix");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Datamatrix));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Datamatrix));
}
- this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxRec));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtEvento));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxRec));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_DtEvento));
if ((Original_CodStazione == null)) {
throw new global::System.ArgumentNullException("Original_CodStazione");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodStazione));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodStazione));
}
if ((Original_CodSottostaz == null)) {
throw new global::System.ArgumentNullException("Original_CodSottostaz");
}
else {
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodSottostaz));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodSottostaz));
}
if ((Original_CodOperaz == null)) {
throw new global::System.ArgumentNullException("Original_CodOperaz");
}
else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodOperaz));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodOperaz));
}
if ((Original_CodStato == null)) {
throw new global::System.ArgumentNullException("Original_CodStato");
}
else {
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_CodStato));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodStato));
}
if ((Original_Datamatrix == null)) {
throw new global::System.ArgumentNullException("Original_Datamatrix");
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Datamatrix));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Datamatrix));
}
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IdxRec));
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)) {
@@ -4916,7 +3582,7 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(System.DateTime DtEvento, string CodStazione, string CodSottostaz, string CodOperaz, string CodStato, string Datamatrix, int Original_IdxRec, System.DateTime Original_DtEvento, string Original_CodStazione, string Original_CodSottostaz, string Original_CodOperaz, string Original_CodStato, string Original_Datamatrix) {
- return this.Update(Original_IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix, Original_IdxRec, Original_DtEvento, Original_CodStazione, Original_CodSottostaz, Original_CodOperaz, Original_CodStato, Original_Datamatrix);
+ return this.Update(DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix, Original_IdxRec, Original_DtEvento, Original_CodStazione, Original_CodSottostaz, Original_CodOperaz, Original_CodStato, Original_Datamatrix, Original_IdxRec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5206,7 +3872,7 @@ SELECT Datamatrix, CodArt, CodStazione, CodStato, CodOperazDone, CodOperazCurr F
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5648,7 +4314,7 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::DemoApp.Properties.Settings.Default.CMS_OMRConnectionString;
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5673,12 +4339,12 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_AnagArt_insertQuery";
+ this._commandCollection[3].CommandText = "dbo.stp_AnagOpr_insertQuery";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartProgMain", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartProgAux", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_AnagArt_updateQuery";
@@ -5953,25 +4619,25 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int insertQuery(string CodArt, string PartProgMain, string PartProgAux) {
+ public virtual int insertQuery(string Barcode, string Cognome, string Nome) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
- if ((CodArt == null)) {
+ if ((Barcode == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[1].Value = ((string)(CodArt));
+ command.Parameters[1].Value = ((string)(Barcode));
}
- if ((PartProgMain == null)) {
+ if ((Cognome == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[2].Value = ((string)(PartProgMain));
+ command.Parameters[2].Value = ((string)(Cognome));
}
- if ((PartProgAux == null)) {
+ if ((Nome == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- command.Parameters[3].Value = ((string)(PartProgAux));
+ command.Parameters[3].Value = ((string)(Nome));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -6037,6 +4703,1182 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
}
}
+ ///
+ ///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 AnagAllarmiTableAdapter : 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", "15.0.0.0")]
+ public AnagAllarmiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ internal 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", "15.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", "15.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", "15.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", "15.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 = "AnagAllarmi";
+ tableMapping.ColumnMappings.Add("CodAllarme", "CodAllarme");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ tableMapping.ColumnMappings.Add("ReportAttivo", "ReportAttivo");
+ tableMapping.ColumnMappings.Add("LastStart", "LastStart");
+ tableMapping.ColumnMappings.Add("LastEnd", "LastEnd");
+ tableMapping.ColumnMappings.Add("CurrStatus", "CurrStatus");
+ 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].[AnagAllarmi] WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", 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].[AnagAllarmi] ([CodAllarme], [Descrizione], [ReportAttivo], [LastStart], [LastEnd], [CurrStatus]) VALUES (@CodAllarme, @Descrizione, @ReportAttivo, @LastStart, @LastEnd, @CurrStatus);
+SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", 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].[AnagAllarmi] SET [CodAllarme] = @CodAllarme, [Descrizione] = @Descrizione, [ReportAttivo] = @ReportAttivo, [LastStart] = @LastStart, [LastEnd] = @LastEnd, [CurrStatus] = @CurrStatus WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus));
+SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodAllarme", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodAllarme", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ReportAttivo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReportAttivo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrStatus", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrStatus", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM" +
+ " dbo.AnagAllarmi";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.AnagAllarmiDataTable 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", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_App.AnagAllarmiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_App.AnagAllarmiDataTable dataTable = new DS_App.AnagAllarmiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_App.AnagAllarmiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_App dataSet) {
+ return this.Adapter.Update(dataSet, "AnagAllarmi");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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(string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
+ if ((Original_CodAllarme == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAllarme");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodAllarme));
+ }
+ if ((Original_Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Original_Descrizione");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Descrizione));
+ }
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_ReportAttivo));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_LastStart));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_LastEnd));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_CurrStatus));
+ 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", "15.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 CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus) {
+ if ((CodAllarme == null)) {
+ throw new global::System.ArgumentNullException("CodAllarme");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodAllarme));
+ }
+ if ((Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Descrizione");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(ReportAttivo));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(LastStart));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(LastEnd));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(CurrStatus));
+ 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", "15.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 CodAllarme, string Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus, string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
+ if ((CodAllarme == null)) {
+ throw new global::System.ArgumentNullException("CodAllarme");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodAllarme));
+ }
+ if ((Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Descrizione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Descrizione));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(ReportAttivo));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(LastStart));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(LastEnd));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(CurrStatus));
+ if ((Original_CodAllarme == null)) {
+ throw new global::System.ArgumentNullException("Original_CodAllarme");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodAllarme));
+ }
+ if ((Original_Descrizione == null)) {
+ throw new global::System.ArgumentNullException("Original_Descrizione");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Descrizione));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Original_ReportAttivo));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_LastStart));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_LastEnd));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_CurrStatus));
+ 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", "15.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 Descrizione, bool ReportAttivo, System.DateTime LastStart, System.DateTime LastEnd, bool CurrStatus, string Original_CodAllarme, string Original_Descrizione, bool Original_ReportAttivo, System.DateTime Original_LastStart, System.DateTime Original_LastEnd, bool Original_CurrStatus) {
+ return this.Update(Original_CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus, Original_CodAllarme, Original_Descrizione, Original_ReportAttivo, Original_LastStart, Original_LastEnd, Original_CurrStatus);
+ }
+ }
+
+ ///
+ ///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 StoricoAllarmiExpTableAdapter : 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", "15.0.0.0")]
+ public StoricoAllarmiExpTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ internal 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", "15.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", "15.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", "15.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", "15.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 = "StoricoAllarmiExp";
+ tableMapping.ColumnMappings.Add("DtEvento", "DtEvento");
+ tableMapping.ColumnMappings.Add("CodAllarme", "CodAllarme");
+ tableMapping.ColumnMappings.Add("Attivo", "Attivo");
+ tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM vStoricoAllarmiExp";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_Allarmi_checkStatus";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@charSep", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@alarmList", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_Allarmi_getLast";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.StoricoAllarmiExpDataTable 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", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_App.StoricoAllarmiExpDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_App.StoricoAllarmiExpDataTable dataTable = new DS_App.StoricoAllarmiExpDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
+ public virtual int FillLastRec(DS_App.StoricoAllarmiExpDataTable dataTable, global::System.Nullable maxNum) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((maxNum.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maxNum.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ 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", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_App.StoricoAllarmiExpDataTable GetLastRec(global::System.Nullable maxNum) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((maxNum.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maxNum.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_App.StoricoAllarmiExpDataTable dataTable = new DS_App.StoricoAllarmiExpDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int checkStatus(string charSep, string alarmList) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((charSep == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(charSep));
+ }
+ if ((alarmList == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(alarmList));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
+ ///
+ ///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 AnagOperatoriTableAdapter : 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", "15.0.0.0")]
+ public AnagOperatoriTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")]
+ internal 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", "15.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", "15.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", "15.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", "15.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 = "AnagOperatori";
+ tableMapping.ColumnMappings.Add("Barcode", "Barcode");
+ tableMapping.ColumnMappings.Add("Cognome", "Cognome");
+ tableMapping.ColumnMappings.Add("Nome", "Nome");
+ 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].[AnagOperatori] WHERE (([Barcode] = @Original_Barcode) AND ([Co" +
+ "gnome] = @Original_Cognome) AND ([Nome] = @Original_Nome))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", 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].[AnagOperatori] ([Barcode], [Cognome], [Nome]) VALUES (@Barcode" +
+ ", @Cognome, @Nome);\r\nSELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Bar" +
+ "code = @Barcode)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", 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].[AnagOperatori] SET [Barcode] = @Barcode, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome));
+SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Barcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::DB_proxy.Properties.Settings.Default.CMS_OMRConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT Barcode, Cognome, Nome FROM dbo.AnagOperatori";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_AnagOpr_deleteQuery";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_AnagOpr_search";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_AnagOpr_insertQuery";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_AnagOpr_updateQuery";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Barcode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_App.AnagOperatoriDataTable 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", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_App.AnagOperatoriDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_App.AnagOperatoriDataTable dataTable = new DS_App.AnagOperatoriDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
+ public virtual int FillByBCode(DS_App.AnagOperatoriDataTable dataTable, string Barcode) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((Barcode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Barcode));
+ }
+ 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", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_App.AnagOperatoriDataTable GetByBCode(string Barcode) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((Barcode == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Barcode));
+ }
+ DS_App.AnagOperatoriDataTable dataTable = new DS_App.AnagOperatoriDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_App.AnagOperatoriDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_App dataSet) {
+ return this.Adapter.Update(dataSet, "AnagOperatori");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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(string Original_Barcode, string Original_Cognome, string Original_Nome) {
+ if ((Original_Barcode == null)) {
+ throw new global::System.ArgumentNullException("Original_Barcode");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Barcode));
+ }
+ if ((Original_Cognome == null)) {
+ throw new global::System.ArgumentNullException("Original_Cognome");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Cognome));
+ }
+ if ((Original_Nome == null)) {
+ throw new global::System.ArgumentNullException("Original_Nome");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome));
+ }
+ 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", "15.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 Barcode, string Cognome, string Nome) {
+ if ((Barcode == null)) {
+ throw new global::System.ArgumentNullException("Barcode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Barcode));
+ }
+ if ((Cognome == null)) {
+ throw new global::System.ArgumentNullException("Cognome");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome));
+ }
+ if ((Nome == null)) {
+ throw new global::System.ArgumentNullException("Nome");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome));
+ }
+ 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", "15.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 Barcode, string Cognome, string Nome, string Original_Barcode, string Original_Cognome, string Original_Nome) {
+ if ((Barcode == null)) {
+ throw new global::System.ArgumentNullException("Barcode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Barcode));
+ }
+ if ((Cognome == null)) {
+ throw new global::System.ArgumentNullException("Cognome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome));
+ }
+ if ((Nome == null)) {
+ throw new global::System.ArgumentNullException("Nome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome));
+ }
+ if ((Original_Barcode == null)) {
+ throw new global::System.ArgumentNullException("Original_Barcode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Barcode));
+ }
+ if ((Original_Cognome == null)) {
+ throw new global::System.ArgumentNullException("Original_Cognome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Cognome));
+ }
+ if ((Original_Nome == null)) {
+ throw new global::System.ArgumentNullException("Original_Nome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Nome));
+ }
+ 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", "15.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 Cognome, string Nome, string Original_Barcode, string Original_Cognome, string Original_Nome) {
+ return this.Update(Original_Barcode, Cognome, Nome, Original_Barcode, Original_Cognome, Original_Nome);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int deleteQuery(string Barcode) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Barcode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Barcode));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string Barcode, string Cognome, string Nome) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((Barcode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Barcode));
+ }
+ if ((Cognome == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Cognome));
+ }
+ if ((Nome == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Nome));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string Original_Barcode, string Barcode, string Cognome, string Nome) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ if ((Original_Barcode == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_Barcode));
+ }
+ if ((Barcode == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Barcode));
+ }
+ if ((Cognome == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(Cognome));
+ }
+ if ((Nome == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(Nome));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -6049,18 +5891,16 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
private UpdateOrderOption _updateOrder;
- private StoricoAllarmiExpTableAdapter _storicoAllarmiExpTableAdapter;
-
- private AnagOperatoriTableAdapter _anagOperatoriTableAdapter;
-
- private AnagAllarmiTableAdapter _anagAllarmiTableAdapter;
-
private TabOperazioniTableAdapter _tabOperazioniTableAdapter;
private TabPezziTableAdapter _tabPezziTableAdapter;
private AnagArticoliTableAdapter _anagArticoliTableAdapter;
+ private AnagAllarmiTableAdapter _anagAllarmiTableAdapter;
+
+ private AnagOperatoriTableAdapter _anagOperatoriTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -6076,48 +5916,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter {
- get {
- return this._storicoAllarmiExpTableAdapter;
- }
- set {
- this._storicoAllarmiExpTableAdapter = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 AnagOperatoriTableAdapter AnagOperatoriTableAdapter {
- get {
- return this._anagOperatoriTableAdapter;
- }
- set {
- this._anagOperatoriTableAdapter = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 AnagAllarmiTableAdapter AnagAllarmiTableAdapter {
- get {
- return this._anagAllarmiTableAdapter;
- }
- set {
- this._anagAllarmiTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
@@ -6160,6 +5958,34 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 AnagAllarmiTableAdapter AnagAllarmiTableAdapter {
+ get {
+ return this._anagAllarmiTableAdapter;
+ }
+ set {
+ this._anagAllarmiTableAdapter = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 AnagOperatoriTableAdapter AnagOperatoriTableAdapter {
+ get {
+ return this._anagOperatoriTableAdapter;
+ }
+ set {
+ this._anagOperatoriTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -6179,18 +6005,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
if ((this._connection != null)) {
return this._connection;
}
- if (((this._storicoAllarmiExpTableAdapter != null)
- && (this._storicoAllarmiExpTableAdapter.Connection != null))) {
- return this._storicoAllarmiExpTableAdapter.Connection;
- }
- if (((this._anagOperatoriTableAdapter != null)
- && (this._anagOperatoriTableAdapter.Connection != null))) {
- return this._anagOperatoriTableAdapter.Connection;
- }
- if (((this._anagAllarmiTableAdapter != null)
- && (this._anagAllarmiTableAdapter.Connection != null))) {
- return this._anagAllarmiTableAdapter.Connection;
- }
if (((this._tabOperazioniTableAdapter != null)
&& (this._tabOperazioniTableAdapter.Connection != null))) {
return this._tabOperazioniTableAdapter.Connection;
@@ -6203,6 +6017,14 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
&& (this._anagArticoliTableAdapter.Connection != null))) {
return this._anagArticoliTableAdapter.Connection;
}
+ if (((this._anagAllarmiTableAdapter != null)
+ && (this._anagAllarmiTableAdapter.Connection != null))) {
+ return this._anagAllarmiTableAdapter.Connection;
+ }
+ if (((this._anagOperatoriTableAdapter != null)
+ && (this._anagOperatoriTableAdapter.Connection != null))) {
+ return this._anagOperatoriTableAdapter.Connection;
+ }
return null;
}
set {
@@ -6216,15 +6038,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
public int TableAdapterInstanceCount {
get {
int count = 0;
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._anagOperatoriTableAdapter != null)) {
- count = (count + 1);
- }
- if ((this._anagAllarmiTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._tabOperazioniTableAdapter != null)) {
count = (count + 1);
}
@@ -6234,6 +6047,12 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
if ((this._anagArticoliTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagAllarmiTableAdapter != null)) {
+ count = (count + 1);
+ }
+ if ((this._anagOperatoriTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -6254,15 +6073,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagAllarmiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagAllarmi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagAllarmiTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
if ((this._tabPezziTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.TabPezzi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -6272,21 +6082,12 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.StoricoAllarmiExp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagAllarmiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagAllarmi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._storicoAllarmiExpTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._anagOperatoriTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._anagOperatoriTableAdapter.Update(updatedRows));
+ result = (result + this._anagAllarmiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -6299,6 +6100,15 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagOperatoriTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagOperatoriTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -6317,14 +6127,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagAllarmiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagAllarmi.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagAllarmiTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
if ((this._tabPezziTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.TabPezzi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -6333,19 +6135,11 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allAddedRows.AddRange(addedRows);
}
}
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.StoricoAllarmiExp.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagAllarmiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagAllarmi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._storicoAllarmiExpTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._anagOperatoriTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._anagOperatoriTableAdapter.Update(addedRows));
+ result = (result + this._anagAllarmiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -6357,6 +6151,14 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagOperatoriTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagOperatoriTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -6367,14 +6169,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private int UpdateDeletedRows(DS_App dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._tabOperazioniTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.TabOperazioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._tabOperazioniTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._anagOperatoriTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagOperatori.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -6383,19 +6177,11 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.StoricoAllarmiExp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._tabOperazioniTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.TabOperazioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._storicoAllarmiExpTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._tabPezziTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.TabPezzi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._tabPezziTableAdapter.Update(deletedRows));
+ result = (result + this._tabOperazioniTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -6407,6 +6193,14 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._tabPezziTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.TabPezzi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tabPezziTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -6454,21 +6248,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
if ((dataSet.HasChanges() == false)) {
return 0;
}
- if (((this._storicoAllarmiExpTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._storicoAllarmiExpTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
- "a stessa stringa di connessione.");
- }
- if (((this._anagOperatoriTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagOperatoriTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
- "a stessa stringa di connessione.");
- }
- if (((this._anagAllarmiTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagAllarmiTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
- "a stessa stringa di connessione.");
- }
if (((this._tabOperazioniTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._tabOperazioniTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
@@ -6484,6 +6263,16 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
+ if (((this._anagAllarmiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagAllarmiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
+ if (((this._anagOperatoriTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagOperatoriTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
@@ -6517,33 +6306,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
try {
// ---- Prepare for update -----------
//
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- revertConnections.Add(this._storicoAllarmiExpTableAdapter, this._storicoAllarmiExpTableAdapter.Connection);
- this._storicoAllarmiExpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._storicoAllarmiExpTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._storicoAllarmiExpTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._storicoAllarmiExpTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._storicoAllarmiExpTableAdapter.Adapter);
- }
- }
- if ((this._anagOperatoriTableAdapter != null)) {
- revertConnections.Add(this._anagOperatoriTableAdapter, this._anagOperatoriTableAdapter.Connection);
- this._anagOperatoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagOperatoriTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagOperatoriTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagOperatoriTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagOperatoriTableAdapter.Adapter);
- }
- }
- if ((this._anagAllarmiTableAdapter != null)) {
- revertConnections.Add(this._anagAllarmiTableAdapter, this._anagAllarmiTableAdapter.Connection);
- this._anagAllarmiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagAllarmiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagAllarmiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagAllarmiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagAllarmiTableAdapter.Adapter);
- }
- }
if ((this._tabOperazioniTableAdapter != null)) {
revertConnections.Add(this._tabOperazioniTableAdapter, this._tabOperazioniTableAdapter.Connection);
this._tabOperazioniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -6571,6 +6333,24 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter);
}
}
+ if ((this._anagAllarmiTableAdapter != null)) {
+ revertConnections.Add(this._anagAllarmiTableAdapter, this._anagAllarmiTableAdapter.Connection);
+ this._anagAllarmiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagAllarmiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagAllarmiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagAllarmiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagAllarmiTableAdapter.Adapter);
+ }
+ }
+ if ((this._anagOperatoriTableAdapter != null)) {
+ revertConnections.Add(this._anagOperatoriTableAdapter, this._anagOperatoriTableAdapter.Connection);
+ this._anagOperatoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagOperatoriTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagOperatoriTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagOperatoriTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagOperatoriTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -6629,18 +6409,6 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
if (workConnOpened) {
workConnection.Close();
}
- if ((this._storicoAllarmiExpTableAdapter != null)) {
- this._storicoAllarmiExpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._storicoAllarmiExpTableAdapter]));
- this._storicoAllarmiExpTableAdapter.Transaction = null;
- }
- if ((this._anagOperatoriTableAdapter != null)) {
- this._anagOperatoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOperatoriTableAdapter]));
- this._anagOperatoriTableAdapter.Transaction = null;
- }
- if ((this._anagAllarmiTableAdapter != null)) {
- this._anagAllarmiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagAllarmiTableAdapter]));
- this._anagAllarmiTableAdapter.Transaction = null;
- }
if ((this._tabOperazioniTableAdapter != null)) {
this._tabOperazioniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tabOperazioniTableAdapter]));
this._tabOperazioniTableAdapter.Transaction = null;
@@ -6653,6 +6421,14 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
this._anagArticoliTableAdapter.Transaction = null;
}
+ if ((this._anagAllarmiTableAdapter != null)) {
+ this._anagAllarmiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagAllarmiTableAdapter]));
+ this._anagAllarmiTableAdapter.Transaction = null;
+ }
+ if ((this._anagOperatoriTableAdapter != null)) {
+ this._anagOperatoriTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOperatoriTableAdapter]));
+ this._anagOperatoriTableAdapter.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/CMS-OMR/DS_App.xsc b/DB_proxy/DS_App.xsc
similarity index 100%
rename from CMS-OMR/DS_App.xsc
rename to DB_proxy/DS_App.xsc
diff --git a/CMS-OMR/DS_App.xsd b/DB_proxy/DS_App.xsd
similarity index 88%
rename from CMS-OMR/DS_App.xsd
rename to DB_proxy/DS_App.xsd
index 1002612..c17fd09 100644
--- a/CMS-OMR/DS_App.xsd
+++ b/DB_proxy/DS_App.xsd
@@ -4,260 +4,9 @@
-
+
-
-
-
-
-
- DELETE FROM [dbo].[StoricoAllarmi] WHERE (([DtEvento] = @Original_DtEvento) AND ([CodAllarme] = @Original_CodAllarme) AND ([Attivo] = @Original_Attivo))
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[StoricoAllarmi] ([DtEvento], [CodAllarme], [Attivo]) VALUES (@DtEvento, @CodAllarme, @Attivo);
-SELECT DtEvento, CodAllarme, Attivo FROM StoricoAllarmi WHERE (CodAllarme = @CodAllarme) AND (DtEvento = @DtEvento)
-
-
-
-
-
-
-
-
-
- SELECT DtEvento, CodAllarme, Attivo, Descrizione
-FROM vStoricoAllarmiExp
-
-
-
-
-
- UPDATE [dbo].[StoricoAllarmi] SET [DtEvento] = @DtEvento, [CodAllarme] = @CodAllarme, [Attivo] = @Attivo WHERE (([DtEvento] = @Original_DtEvento) AND ([CodAllarme] = @Original_CodAllarme) AND ([Attivo] = @Original_Attivo));
-SELECT DtEvento, CodAllarme, Attivo FROM StoricoAllarmi WHERE (CodAllarme = @CodAllarme) AND (DtEvento = @DtEvento)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_Allarmi_checkStatus
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_Allarmi_getLast
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagOperatori] WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome))
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagOperatori] ([Barcode], [Cognome], [Nome]) VALUES (@Barcode, @Cognome, @Nome);
-SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)
-
-
-
-
-
-
-
-
-
- SELECT Barcode, Cognome, Nome FROM dbo.AnagOperatori
-
-
-
-
-
- UPDATE [dbo].[AnagOperatori] SET [Barcode] = @Barcode, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome));
-SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_AnagOpr_deleteQuery
-
-
-
-
-
-
-
-
-
-
- dbo.stp_AnagOpr_search
-
-
-
-
-
-
-
-
-
-
- dbo.stp_AnagOpr_insertQuery
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_AnagOpr_updateQuery
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE FROM [dbo].[AnagAllarmi] WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus))
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagAllarmi] ([CodAllarme], [Descrizione], [ReportAttivo], [LastStart], [LastEnd], [CurrStatus]) VALUES (@CodAllarme, @Descrizione, @ReportAttivo, @LastStart, @LastEnd, @CurrStatus);
-SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)
-
-
-
-
-
-
-
-
-
-
-
-
- SELECT *
-FROM dbo.AnagAllarmi
-
-
-
-
-
- UPDATE [dbo].[AnagAllarmi] SET [CodAllarme] = @CodAllarme, [Descrizione] = @Descrizione, [ReportAttivo] = @ReportAttivo, [LastStart] = @LastStart, [LastEnd] = @LastEnd, [CurrStatus] = @CurrStatus WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus));
-SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -277,10 +26,9 @@ SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FRO
- INSERT INTO [dbo].[TabOperazioni] ([IdxRec], [DtEvento], [CodStazione], [CodSottostaz], [CodOperaz], [CodStato], [Datamatrix]) VALUES (@IdxRec, @DtEvento, @CodStazione, @CodSottostaz, @CodOperaz, @CodStato, @Datamatrix);
-SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = @IdxRec)
+ INSERT INTO [dbo].[TabOperazioni] ([DtEvento], [CodStazione], [CodSottostaz], [CodOperaz], [CodStato], [Datamatrix]) VALUES (@DtEvento, @CodStazione, @CodSottostaz, @CodOperaz, @CodStato, @Datamatrix);
+SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = SCOPE_IDENTITY())
-
@@ -298,10 +46,9 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
- UPDATE [dbo].[TabOperazioni] SET [IdxRec] = @IdxRec, [DtEvento] = @DtEvento, [CodStazione] = @CodStazione, [CodSottostaz] = @CodSottostaz, [CodOperaz] = @CodOperaz, [CodStato] = @CodStato, [Datamatrix] = @Datamatrix WHERE (([IdxRec] = @Original_IdxRec) AND ([DtEvento] = @Original_DtEvento) AND ([CodStazione] = @Original_CodStazione) AND ([CodSottostaz] = @Original_CodSottostaz) AND ([CodOperaz] = @Original_CodOperaz) AND ([CodStato] = @Original_CodStato) AND ([Datamatrix] = @Original_Datamatrix));
+ UPDATE [dbo].[TabOperazioni] SET [DtEvento] = @DtEvento, [CodStazione] = @CodStazione, [CodSottostaz] = @CodSottostaz, [CodOperaz] = @CodOperaz, [CodStato] = @CodStato, [Datamatrix] = @Datamatrix WHERE (([IdxRec] = @Original_IdxRec) AND ([DtEvento] = @Original_DtEvento) AND ([CodStazione] = @Original_CodStazione) AND ([CodSottostaz] = @Original_CodSottostaz) AND ([CodOperaz] = @Original_CodOperaz) AND ([CodStato] = @Original_CodStato) AND ([Datamatrix] = @Original_Datamatrix));
SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamatrix FROM TabOperazioni WHERE (IdxRec = @IdxRec)
-
@@ -315,6 +62,7 @@ SELECT IdxRec, DtEvento, CodStazione, CodSottostaz, CodOperaz, CodStato, Datamat
+
@@ -523,15 +271,15 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
-
+
- dbo.stp_AnagArt_insertQuery
+ dbo.stp_AnagOpr_insertQuery
-
-
-
+
+
+
@@ -552,6 +300,221 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
+
+
+
+
+
+ DELETE FROM [dbo].[AnagAllarmi] WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus))
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagAllarmi] ([CodAllarme], [Descrizione], [ReportAttivo], [LastStart], [LastEnd], [CurrStatus]) VALUES (@CodAllarme, @Descrizione, @ReportAttivo, @LastStart, @LastEnd, @CurrStatus);
+SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM dbo.AnagAllarmi
+
+
+
+
+
+ UPDATE [dbo].[AnagAllarmi] SET [CodAllarme] = @CodAllarme, [Descrizione] = @Descrizione, [ReportAttivo] = @ReportAttivo, [LastStart] = @LastStart, [LastEnd] = @LastEnd, [CurrStatus] = @CurrStatus WHERE (([CodAllarme] = @Original_CodAllarme) AND ([Descrizione] = @Original_Descrizione) AND ([ReportAttivo] = @Original_ReportAttivo) AND ([LastStart] = @Original_LastStart) AND ([LastEnd] = @Original_LastEnd) AND ([CurrStatus] = @Original_CurrStatus));
+SELECT CodAllarme, Descrizione, ReportAttivo, LastStart, LastEnd, CurrStatus FROM AnagAllarmi WHERE (CodAllarme = @CodAllarme)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT *
+FROM vStoricoAllarmiExp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Allarmi_checkStatus
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_Allarmi_getLast
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [dbo].[AnagOperatori] WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome))
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[AnagOperatori] ([Barcode], [Cognome], [Nome]) VALUES (@Barcode, @Cognome, @Nome);
+SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)
+
+
+
+
+
+
+
+
+
+ SELECT Barcode, Cognome, Nome FROM dbo.AnagOperatori
+
+
+
+
+
+ UPDATE [dbo].[AnagOperatori] SET [Barcode] = @Barcode, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([Barcode] = @Original_Barcode) AND ([Cognome] = @Original_Cognome) AND ([Nome] = @Original_Nome));
+SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_AnagOpr_deleteQuery
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_AnagOpr_search
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_AnagOpr_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_AnagOpr_updateQuery
+
+
+
+
+
+
+
+
+
+
+
+
@@ -560,83 +523,10 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -676,7 +566,7 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
-
+
@@ -724,7 +614,7 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
-
+
@@ -751,22 +641,82 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -778,12 +728,25 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/CMS-OMR/DS_App.xss b/DB_proxy/DS_App.xss
similarity index 54%
rename from CMS-OMR/DS_App.xss
rename to DB_proxy/DS_App.xss
index 17401e5..40d6eb8 100644
--- a/CMS-OMR/DS_App.xss
+++ b/DB_proxy/DS_App.xss
@@ -4,49 +4,49 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
- 371
- 680
+ 479
+ 155
- 495
- 680
+ 391
+ 155
-
+
- 459
- 161
+ 830
+ 173
- 384
- 161
+ 708
+ 173
-
+
- 796
- 201
+ 375
+ 736
- 688
- 201
+ 469
+ 736
diff --git a/DB_proxy/DataLayer.cs b/DB_proxy/DataLayer.cs
new file mode 100644
index 0000000..042f20a
--- /dev/null
+++ b/DB_proxy/DataLayer.cs
@@ -0,0 +1,30 @@
+namespace DB_proxy
+{
+ public class DataLayer
+ {
+ public DB_proxy.DS_AppTableAdapters.AnagArticoliTableAdapter taAnagArt;
+ public DB_proxy.DS_AppTableAdapters.AnagOperatoriTableAdapter taAnagOpr;
+ public DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter taSAL;
+ public DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter taTO;
+
+
+ ///
+ /// Init TAdapter
+ ///
+ protected void initTA()
+ {
+ taAnagArt = new DB_proxy.DS_AppTableAdapters.AnagArticoliTableAdapter();
+ taAnagOpr = new DB_proxy.DS_AppTableAdapters.AnagOperatoriTableAdapter();
+ taSAL = new DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
+ taTO = new DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter();
+ }
+ ///
+ /// Avvio DataLayer
+ ///
+ protected DataLayer()
+ {
+ initTA();
+ }
+ public static DataLayer man = new DataLayer();
+ }
+}
diff --git a/DB_proxy/Properties/AssemblyInfo.cs b/DB_proxy/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..08a75d2
--- /dev/null
+++ b/DB_proxy/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Le informazioni generali relative a un assembly sono controllate dal seguente
+// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
+// associate a un assembly.
+[assembly: AssemblyTitle("DB_proxy")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DB_proxy")]
+[assembly: AssemblyCopyright("Copyright © 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili
+// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da
+// COM, impostare su true l'attributo ComVisible per tale tipo.
+[assembly: ComVisible(false)]
+
+// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi
+[assembly: Guid("c97904cb-7ddc-4684-b2ee-89c264e808e6")]
+
+// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori:
+//
+// Versione principale
+// Versione secondaria
+// Numero di build
+// Revisione
+//
+// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
+// usando l'asterisco '*' come illustrato di seguito:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/DB_proxy/Properties/Settings.Designer.cs b/DB_proxy/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..bd4e872
--- /dev/null
+++ b/DB_proxy/Properties/Settings.Designer.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace DB_proxy.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.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=10.69.33.57\\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=" +
+ "True;User ID=conn_CMS;Password=pwd_CMS;")]
+ public string CMS_OMRConnectionString {
+ get {
+ return ((string)(this["CMS_OMRConnectionString"]));
+ }
+ }
+
+ }
+}
diff --git a/DB_proxy/Properties/Settings.settings b/DB_proxy/Properties/Settings.settings
new file mode 100644
index 0000000..0aaaa69
--- /dev/null
+++ b/DB_proxy/Properties/Settings.settings
@@ -0,0 +1,22 @@
+
+
+
+
+
+ <?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=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;</ConnectionString>
+ <ProviderName>System.Data.SqlClient</ProviderName>
+</SerializableConnectionString>
+ Data Source=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;
+
+
+ <?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=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS</ConnectionString>
+ <ProviderName>System.Data.SqlClient</ProviderName>
+</SerializableConnectionString>
+ Data Source=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS
+
+
+
\ No newline at end of file
diff --git a/DB_proxy/app.config b/DB_proxy/app.config
new file mode 100644
index 0000000..a88232b
--- /dev/null
+++ b/DB_proxy/app.config
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+