Completata APP
This commit is contained in:
Generated
+115
-78
@@ -68,6 +68,12 @@
|
||||
this.dS_App = new DemoApp.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();
|
||||
@@ -79,8 +85,10 @@
|
||||
this.lastEndDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.currStatusDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.anagAllarmiBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dgvAlarmLog = 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();
|
||||
@@ -88,11 +96,6 @@
|
||||
this.tabOperazioniTableAdapter = new DemoApp.DS_AppTableAdapters.TabOperazioniTableAdapter();
|
||||
this.anagAllarmiTableAdapter = new DemoApp.DS_AppTableAdapters.AnagAllarmiTableAdapter();
|
||||
this.StoricoAllarmiExpTableAdapter = new DemoApp.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
|
||||
this.storicoAllarmiExpBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
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.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
@@ -114,11 +117,11 @@
|
||||
this.splitContainer3.Panel1.SuspendLayout();
|
||||
this.splitContainer3.Panel2.SuspendLayout();
|
||||
this.splitContainer3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAlarmLog)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAnagAlarm)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.anagAllarmiBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAlarmLog)).BeginInit();
|
||||
this.tabPage3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtBCode
|
||||
@@ -539,19 +542,66 @@
|
||||
//
|
||||
// splitContainer3.Panel1
|
||||
//
|
||||
this.splitContainer3.Panel1.Controls.Add(this.dgvAlarmLog);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.btnSendAlarms);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.lbAllarmi);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.label8);
|
||||
this.splitContainer3.Panel1.Controls.Add(this.dgvAnagAlarm);
|
||||
//
|
||||
// splitContainer3.Panel2
|
||||
//
|
||||
this.splitContainer3.Panel2.Controls.Add(this.dgvAlarmLog);
|
||||
this.splitContainer3.Panel2.Controls.Add(this.dgvAnagAlarm);
|
||||
this.splitContainer3.Size = new System.Drawing.Size(849, 346);
|
||||
this.splitContainer3.SplitterDistance = 361;
|
||||
this.splitContainer3.SplitterDistance = 355;
|
||||
this.splitContainer3.SplitterWidth = 5;
|
||||
this.splitContainer3.TabIndex = 4;
|
||||
//
|
||||
// dgvAlarmLog
|
||||
//
|
||||
this.dgvAlarmLog.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dgvAlarmLog.AutoGenerateColumns = false;
|
||||
this.dgvAlarmLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvAlarmLog.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dtEventoDataGridViewTextBoxColumn1,
|
||||
this.codAllarmeDataGridViewTextBoxColumn1,
|
||||
this.attivoDataGridViewCheckBoxColumn,
|
||||
this.descrizioneDataGridViewTextBoxColumn1});
|
||||
this.dgvAlarmLog.DataSource = this.storicoAllarmiExpBindingSource;
|
||||
this.dgvAlarmLog.Location = new System.Drawing.Point(8, 102);
|
||||
this.dgvAlarmLog.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dgvAlarmLog.Name = "dgvAlarmLog";
|
||||
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);
|
||||
@@ -592,9 +642,6 @@
|
||||
//
|
||||
// dgvAnagAlarm
|
||||
//
|
||||
this.dgvAnagAlarm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dgvAnagAlarm.AutoGenerateColumns = false;
|
||||
this.dgvAnagAlarm.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvAnagAlarm.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
@@ -605,11 +652,12 @@
|
||||
this.lastEndDataGridViewTextBoxColumn,
|
||||
this.currStatusDataGridViewCheckBoxColumn});
|
||||
this.dgvAnagAlarm.DataSource = this.anagAllarmiBindingSource;
|
||||
this.dgvAnagAlarm.Location = new System.Drawing.Point(3, 102);
|
||||
this.dgvAnagAlarm.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvAnagAlarm.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvAnagAlarm.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dgvAnagAlarm.Name = "dgvAnagAlarm";
|
||||
this.dgvAnagAlarm.Size = new System.Drawing.Size(356, 240);
|
||||
this.dgvAnagAlarm.TabIndex = 0;
|
||||
this.dgvAnagAlarm.Size = new System.Drawing.Size(489, 346);
|
||||
this.dgvAnagAlarm.TabIndex = 5;
|
||||
//
|
||||
// codAllarmeDataGridViewTextBoxColumn
|
||||
//
|
||||
@@ -652,25 +700,11 @@
|
||||
this.anagAllarmiBindingSource.DataMember = "AnagAllarmi";
|
||||
this.anagAllarmiBindingSource.DataSource = this.dS_App;
|
||||
//
|
||||
// dgvAlarmLog
|
||||
//
|
||||
this.dgvAlarmLog.AutoGenerateColumns = false;
|
||||
this.dgvAlarmLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvAlarmLog.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dtEventoDataGridViewTextBoxColumn1,
|
||||
this.codAllarmeDataGridViewTextBoxColumn1,
|
||||
this.attivoDataGridViewCheckBoxColumn,
|
||||
this.descrizioneDataGridViewTextBoxColumn1});
|
||||
this.dgvAlarmLog.DataSource = this.storicoAllarmiExpBindingSource;
|
||||
this.dgvAlarmLog.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvAlarmLog.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvAlarmLog.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dgvAlarmLog.Name = "dgvAlarmLog";
|
||||
this.dgvAlarmLog.Size = new System.Drawing.Size(483, 346);
|
||||
this.dgvAlarmLog.TabIndex = 0;
|
||||
//
|
||||
// tabPage3
|
||||
//
|
||||
this.tabPage3.Controls.Add(this.label10);
|
||||
this.tabPage3.Controls.Add(this.txtAuthKey);
|
||||
this.tabPage3.Controls.Add(this.label9);
|
||||
this.tabPage3.Controls.Add(this.label7);
|
||||
this.tabPage3.Controls.Add(this.btnPurgeOld);
|
||||
this.tabPage3.Controls.Add(this.txtDay2keep);
|
||||
@@ -683,10 +717,39 @@
|
||||
this.tabPage3.Text = "Utils";
|
||||
this.tabPage3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(11, 18);
|
||||
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(65, 17);
|
||||
this.label10.TabIndex = 6;
|
||||
this.label10.Text = "Auth Key";
|
||||
//
|
||||
// txtAuthKey
|
||||
//
|
||||
this.txtAuthKey.Location = new System.Drawing.Point(14, 39);
|
||||
this.txtAuthKey.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtAuthKey.Name = "txtAuthKey";
|
||||
this.txtAuthKey.Size = new System.Drawing.Size(132, 22);
|
||||
this.txtAuthKey.TabIndex = 5;
|
||||
this.txtAuthKey.Text = "digheDelBu";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(11, 145);
|
||||
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(249, 17);
|
||||
this.label9.TabIndex = 4;
|
||||
this.label9.Text = "Reset DB (Storico allarmi, operazioni)";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(489, 18);
|
||||
this.label7.Location = new System.Drawing.Point(720, 18);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(128, 17);
|
||||
@@ -695,7 +758,7 @@
|
||||
//
|
||||
// btnPurgeOld
|
||||
//
|
||||
this.btnPurgeOld.Location = new System.Drawing.Point(627, 18);
|
||||
this.btnPurgeOld.Location = new System.Drawing.Point(619, 66);
|
||||
this.btnPurgeOld.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPurgeOld.Name = "btnPurgeOld";
|
||||
this.btnPurgeOld.Size = new System.Drawing.Size(229, 64);
|
||||
@@ -706,7 +769,7 @@
|
||||
//
|
||||
// txtDay2keep
|
||||
//
|
||||
this.txtDay2keep.Location = new System.Drawing.Point(485, 39);
|
||||
this.txtDay2keep.Location = new System.Drawing.Point(716, 39);
|
||||
this.txtDay2keep.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtDay2keep.Name = "txtDay2keep";
|
||||
this.txtDay2keep.Size = new System.Drawing.Size(132, 22);
|
||||
@@ -715,12 +778,12 @@
|
||||
//
|
||||
// btnEmptyTabOpr
|
||||
//
|
||||
this.btnEmptyTabOpr.Location = new System.Drawing.Point(13, 18);
|
||||
this.btnEmptyTabOpr.Location = new System.Drawing.Point(13, 66);
|
||||
this.btnEmptyTabOpr.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnEmptyTabOpr.Name = "btnEmptyTabOpr";
|
||||
this.btnEmptyTabOpr.Size = new System.Drawing.Size(229, 64);
|
||||
this.btnEmptyTabOpr.TabIndex = 0;
|
||||
this.btnEmptyTabOpr.Text = "ELIMINA TabOperazioni";
|
||||
this.btnEmptyTabOpr.Text = "ELIMINA Tabelle";
|
||||
this.btnEmptyTabOpr.UseVisualStyleBackColor = true;
|
||||
this.btnEmptyTabOpr.Click += new System.EventHandler(this.btnEmptyTabOpr_Click);
|
||||
//
|
||||
@@ -736,35 +799,6 @@
|
||||
//
|
||||
this.StoricoAllarmiExpTableAdapter.ClearBeforeFill = true;
|
||||
//
|
||||
// storicoAllarmiExpBindingSource
|
||||
//
|
||||
this.storicoAllarmiExpBindingSource.DataMember = "StoricoAllarmiExp";
|
||||
this.storicoAllarmiExpBindingSource.DataSource = this.dS_App;
|
||||
//
|
||||
// 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";
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AccessibleName = "";
|
||||
@@ -805,12 +839,12 @@
|
||||
this.splitContainer3.Panel2.ResumeLayout(false);
|
||||
((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();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvAlarmLog)).EndInit();
|
||||
this.tabPage3.ResumeLayout(false);
|
||||
this.tabPage3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.storicoAllarmiExpBindingSource)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -862,25 +896,28 @@
|
||||
private System.Windows.Forms.Button btnPurgeOld;
|
||||
private System.Windows.Forms.TextBox txtDay2keep;
|
||||
private System.Windows.Forms.SplitContainer splitContainer3;
|
||||
private System.Windows.Forms.DataGridView dgvAnagAlarm;
|
||||
private System.Windows.Forms.DataGridView dgvAlarmLog;
|
||||
private System.Windows.Forms.Button btnSendAlarms;
|
||||
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 System.Windows.Forms.BindingSource storicoAllarmiExpBindingSource;
|
||||
private System.Windows.Forms.DataGridView dgvAlarmLog;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn codAllarmeDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn attivoDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn descrizioneDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridView dgvAnagAlarm;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn codAllarmeDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn descrizioneDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn reportAttivoDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn lastStartDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn lastEndDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn currStatusDataGridViewCheckBoxColumn;
|
||||
private DS_AppTableAdapters.StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn codAllarmeDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn attivoDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn descrizioneDataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.BindingSource storicoAllarmiExpBindingSource;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox txtAuthKey;
|
||||
private System.Windows.Forms.Label label9;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+36
-14
@@ -82,10 +82,14 @@ namespace DemoApp
|
||||
{
|
||||
// rilettura dati...
|
||||
this.tabOperazioniTableAdapter.Fill(this.dS_App.TabOperazioni);
|
||||
//this.anagAllarmiTableAdapter.Fill(this.dS_App.AnagAllarmi);
|
||||
//this.StoricoAllarmiExpTableAdapter.Fill(this.dS_App.StoricoAllarmiExp);
|
||||
this.anagAllarmiTableAdapter.Fill(this.dS_App.AnagAllarmi);
|
||||
this.StoricoAllarmiExpTableAdapter.FillLastRec(this.dS_App.StoricoAllarmiExp, 100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void MainForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
resetDefault();
|
||||
@@ -222,22 +226,37 @@ namespace DemoApp
|
||||
private void btnEmptyTabOpr_Click(object sender, EventArgs e)
|
||||
{
|
||||
// init var x msgBox
|
||||
string message = "Sicuro di voler ELIMINARE COMPLETAMENTE i dati delle tabelle Operazioni e Pezzi?";
|
||||
string message = "";
|
||||
string caption = "Richiesta FULL RESET DB";
|
||||
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
|
||||
DialogResult result;
|
||||
|
||||
// verifico auth key
|
||||
string authKey = txtAuthKey.Text.Trim();
|
||||
bool isAuth = authKey == "digheDelBu";
|
||||
if (isAuth)
|
||||
{
|
||||
message = "Sicuro di voler ELIMINARE COMPLETAMENTE i dati delle tabelle Operazioni e Pezzi?";
|
||||
}
|
||||
else
|
||||
{
|
||||
message = "Errore: auth key non valida";
|
||||
buttons = MessageBoxButtons.OK;
|
||||
}
|
||||
// Displays the MessageBox.
|
||||
result = MessageBox.Show(message, caption, buttons);
|
||||
|
||||
if (result == System.Windows.Forms.DialogResult.Yes)
|
||||
// solo se authKey corretta
|
||||
if (isAuth)
|
||||
{
|
||||
// eseguo delete
|
||||
DataLayer.man.taTO.deleteAll("digheDelBu");
|
||||
// update
|
||||
updCtrl();
|
||||
lblOprOutMess.Text = "Effettuato SVUOTAMENTO COMPLETO TabOpr e TabPezzi";
|
||||
Paginatore.SelectedIndex = 0;
|
||||
if (result == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
// eseguo delete
|
||||
DataLayer.man.taTO.deleteAll(txtAuthKey.Text.Trim());
|
||||
// update
|
||||
updCtrl();
|
||||
lblOprOutMess.Text = "Effettuato SVUOTAMENTO COMPLETO TabOpr e TabPezzi";
|
||||
Paginatore.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,8 +280,11 @@ namespace DemoApp
|
||||
allarmi += item + ",";
|
||||
}
|
||||
// se ho qualcosa tolgo "," finale...
|
||||
if (allarmi.Length > 1) allarmi = allarmi.Substring(0, allarmi.Length - 1);
|
||||
// chimo sstored...
|
||||
if (allarmi.Length > 1)
|
||||
{
|
||||
allarmi = allarmi.Substring(0, allarmi.Length - 1);
|
||||
}
|
||||
// chimo stored...
|
||||
DataLayer.man.taSAL.checkStatus(",", allarmi);
|
||||
updCtrl();
|
||||
}
|
||||
|
||||
@@ -120,15 +120,27 @@
|
||||
<metadata name="tabOperazioniBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>393, 17</value>
|
||||
</metadata>
|
||||
<metadata name="tabOperazioniBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>393, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dS_App.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>285, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dS_App.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>285, 17</value>
|
||||
</metadata>
|
||||
<metadata name="storicoAllarmiExpBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1355, 17</value>
|
||||
</metadata>
|
||||
<metadata name="anagAllarmiBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>890, 17</value>
|
||||
</metadata>
|
||||
<metadata name="storicoAllarmiExpBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1355, 17</value>
|
||||
</metadata>
|
||||
<metadata name="anagAllarmiBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>890, 17</value>
|
||||
</metadata>
|
||||
<metadata name="tabOperazioniTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>645, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user