aggiunta nuovi metodi recupero tabelle e stored modificate x tab attrezzature

This commit is contained in:
Samuele E. Locatelli
2018-12-11 18:07:36 +01:00
parent e28298e7e6
commit ebbabd5626
18 changed files with 2343 additions and 262 deletions
+5
View File
@@ -112,6 +112,11 @@
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\DataSources\DB_proxy.DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter.datasource" />
<None Include="My Project\DataSources\DB_proxy.DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter.datasource" />
<None Include="My Project\DataSources\DB_proxy.DS_App+AnagAllarmiDataTable.datasource" />
<None Include="My Project\DataSources\DB_proxy.DS_App+StoricoAllarmiExpDataTable.datasource" />
<None Include="My Project\DataSources\DB_proxy.DS_App.datasource" />
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
+595
View File
@@ -22,6 +22,13 @@ Partial Class Main
'Non modificarla mediante l'editor del codice.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
Me.groupBox1 = New System.Windows.Forms.GroupBox()
Me.label1 = New System.Windows.Forms.Label()
Me.lblOpr = New System.Windows.Forms.Label()
@@ -35,6 +42,48 @@ Partial Class Main
Me.splitContainer2 = New System.Windows.Forms.SplitContainer()
Me.lblArt = New System.Windows.Forms.Label()
Me.lblOutArt = New System.Windows.Forms.Label()
Me.Paginatore = New System.Windows.Forms.TabControl()
Me.tabPage1 = New System.Windows.Forms.TabPage()
Me.dgvOpr = New System.Windows.Forms.DataGridView()
Me.groupBox3 = New System.Windows.Forms.GroupBox()
Me.btnReloadOpr = New System.Windows.Forms.Button()
Me.lblOprOutMess = New System.Windows.Forms.Label()
Me.cbStato = New System.Windows.Forms.ComboBox()
Me.label6 = New System.Windows.Forms.Label()
Me.cbSottostazione = New System.Windows.Forms.ComboBox()
Me.label5 = New System.Windows.Forms.Label()
Me.cbStazione = New System.Windows.Forms.ComboBox()
Me.label4 = New System.Windows.Forms.Label()
Me.cbOperazione = New System.Windows.Forms.ComboBox()
Me.label2 = New System.Windows.Forms.Label()
Me.btnAddOpr = New System.Windows.Forms.Button()
Me.tabPage2 = New System.Windows.Forms.TabPage()
Me.splitContainer3 = New System.Windows.Forms.SplitContainer()
Me.dgvAlarmLog = New System.Windows.Forms.DataGridView()
Me.DtEventoDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.CodAllarmeDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.AttivoDataGridViewCheckBoxColumn = New System.Windows.Forms.DataGridViewCheckBoxColumn()
Me.DescrizioneDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.StoricoAllarmiExpDataTableBindingSource = New System.Windows.Forms.BindingSource()
Me.btnSendAlarms = New System.Windows.Forms.Button()
Me.lbAllarmi = New System.Windows.Forms.ListBox()
Me.label8 = New System.Windows.Forms.Label()
Me.dgvAnagAlarm = New System.Windows.Forms.DataGridView()
Me.CodAllarmeDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.DescrizioneDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.ReportAttivoDataGridViewCheckBoxColumn = New System.Windows.Forms.DataGridViewCheckBoxColumn()
Me.LastStartDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.LastEndDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.CurrStatusDataGridViewCheckBoxColumn = New System.Windows.Forms.DataGridViewCheckBoxColumn()
Me.AnagAllarmiDataTableBindingSource = New System.Windows.Forms.BindingSource()
Me.tabPage3 = New System.Windows.Forms.TabPage()
Me.label10 = New System.Windows.Forms.Label()
Me.txtAuthKey = New System.Windows.Forms.TextBox()
Me.label9 = New System.Windows.Forms.Label()
Me.label7 = New System.Windows.Forms.Label()
Me.btnPurgeOld = New System.Windows.Forms.Button()
Me.txtDay2keep = New System.Windows.Forms.TextBox()
Me.btnEmptyTabOpr = New System.Windows.Forms.Button()
Me.groupBox1.SuspendLayout()
Me.groupBox2.SuspendLayout()
CType(Me.splitContainer1, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -45,6 +94,20 @@ Partial Class Main
Me.splitContainer2.Panel1.SuspendLayout()
Me.splitContainer2.Panel2.SuspendLayout()
Me.splitContainer2.SuspendLayout()
Me.Paginatore.SuspendLayout()
Me.tabPage1.SuspendLayout()
CType(Me.dgvOpr, System.ComponentModel.ISupportInitialize).BeginInit()
Me.groupBox3.SuspendLayout()
Me.tabPage2.SuspendLayout()
CType(Me.splitContainer3, System.ComponentModel.ISupportInitialize).BeginInit()
Me.splitContainer3.Panel1.SuspendLayout()
Me.splitContainer3.Panel2.SuspendLayout()
Me.splitContainer3.SuspendLayout()
CType(Me.dgvAlarmLog, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.StoricoAllarmiExpDataTableBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.dgvAnagAlarm, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AnagAllarmiDataTableBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
Me.tabPage3.SuspendLayout()
Me.SuspendLayout()
'
'groupBox1
@@ -208,11 +271,484 @@ Partial Class Main
Me.lblOutArt.TabIndex = 5
Me.lblOutArt.Text = "-"
'
'Paginatore
'
Me.Paginatore.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.Paginatore.Controls.Add(Me.tabPage1)
Me.Paginatore.Controls.Add(Me.tabPage2)
Me.Paginatore.Controls.Add(Me.tabPage3)
Me.Paginatore.Location = New System.Drawing.Point(10, 202)
Me.Paginatore.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.Paginatore.Name = "Paginatore"
Me.Paginatore.SelectedIndex = 0
Me.Paginatore.Size = New System.Drawing.Size(1100, 390)
Me.Paginatore.TabIndex = 7
'
'tabPage1
'
Me.tabPage1.Controls.Add(Me.dgvOpr)
Me.tabPage1.Controls.Add(Me.groupBox3)
Me.tabPage1.Location = New System.Drawing.Point(4, 25)
Me.tabPage1.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.tabPage1.Name = "tabPage1"
Me.tabPage1.Padding = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.tabPage1.Size = New System.Drawing.Size(1092, 361)
Me.tabPage1.TabIndex = 0
Me.tabPage1.Text = "Registro Operazioni"
Me.tabPage1.UseVisualStyleBackColor = True
'
'dgvOpr
'
Me.dgvOpr.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
DataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control
DataGridViewCellStyle1.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText
DataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
Me.dgvOpr.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1
Me.dgvOpr.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window
DataGridViewCellStyle2.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText
DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
Me.dgvOpr.DefaultCellStyle = DataGridViewCellStyle2
Me.dgvOpr.Location = New System.Drawing.Point(8, 112)
Me.dgvOpr.Margin = New System.Windows.Forms.Padding(4)
Me.dgvOpr.Name = "dgvOpr"
DataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control
DataGridViewCellStyle3.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText
DataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
Me.dgvOpr.RowHeadersDefaultCellStyle = DataGridViewCellStyle3
Me.dgvOpr.Size = New System.Drawing.Size(1077, 242)
Me.dgvOpr.TabIndex = 6
'
'groupBox3
'
Me.groupBox3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.groupBox3.Controls.Add(Me.btnReloadOpr)
Me.groupBox3.Controls.Add(Me.lblOprOutMess)
Me.groupBox3.Controls.Add(Me.cbStato)
Me.groupBox3.Controls.Add(Me.label6)
Me.groupBox3.Controls.Add(Me.cbSottostazione)
Me.groupBox3.Controls.Add(Me.label5)
Me.groupBox3.Controls.Add(Me.cbStazione)
Me.groupBox3.Controls.Add(Me.label4)
Me.groupBox3.Controls.Add(Me.cbOperazione)
Me.groupBox3.Controls.Add(Me.label2)
Me.groupBox3.Controls.Add(Me.btnAddOpr)
Me.groupBox3.Location = New System.Drawing.Point(3, 6)
Me.groupBox3.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.groupBox3.Name = "groupBox3"
Me.groupBox3.Padding = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.groupBox3.Size = New System.Drawing.Size(1086, 98)
Me.groupBox3.TabIndex = 5
Me.groupBox3.TabStop = False
Me.groupBox3.Text = "Registro Operazioni"
'
'btnReloadOpr
'
Me.btnReloadOpr.Location = New System.Drawing.Point(655, 64)
Me.btnReloadOpr.Margin = New System.Windows.Forms.Padding(4)
Me.btnReloadOpr.Name = "btnReloadOpr"
Me.btnReloadOpr.Size = New System.Drawing.Size(196, 28)
Me.btnReloadOpr.TabIndex = 12
Me.btnReloadOpr.Text = "Reload"
Me.btnReloadOpr.UseVisualStyleBackColor = True
'
'lblOprOutMess
'
Me.lblOprOutMess.AutoSize = True
Me.lblOprOutMess.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblOprOutMess.ForeColor = System.Drawing.Color.Red
Me.lblOprOutMess.Location = New System.Drawing.Point(21, 78)
Me.lblOprOutMess.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.lblOprOutMess.Name = "lblOprOutMess"
Me.lblOprOutMess.Size = New System.Drawing.Size(11, 15)
Me.lblOprOutMess.TabIndex = 11
Me.lblOprOutMess.Text = "-"
'
'cbStato
'
Me.cbStato.FormattingEnabled = True
Me.cbStato.Location = New System.Drawing.Point(392, 50)
Me.cbStato.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.cbStato.Name = "cbStato"
Me.cbStato.Size = New System.Drawing.Size(257, 24)
Me.cbStato.TabIndex = 10
'
'label6
'
Me.label6.AutoSize = True
Me.label6.Location = New System.Drawing.Point(304, 50)
Me.label6.Name = "label6"
Me.label6.Size = New System.Drawing.Size(41, 17)
Me.label6.TabIndex = 9
Me.label6.Text = "Stato"
'
'cbSottostazione
'
Me.cbSottostazione.FormattingEnabled = True
Me.cbSottostazione.Location = New System.Drawing.Point(85, 50)
Me.cbSottostazione.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.cbSottostazione.Name = "cbSottostazione"
Me.cbSottostazione.Size = New System.Drawing.Size(201, 24)
Me.cbSottostazione.TabIndex = 8
'
'label5
'
Me.label5.AutoSize = True
Me.label5.Location = New System.Drawing.Point(15, 50)
Me.label5.Name = "label5"
Me.label5.Size = New System.Drawing.Size(67, 17)
Me.label5.TabIndex = 7
Me.label5.Text = "Sottostaz"
'
'cbStazione
'
Me.cbStazione.FormattingEnabled = True
Me.cbStazione.Location = New System.Drawing.Point(85, 21)
Me.cbStazione.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.cbStazione.Name = "cbStazione"
Me.cbStazione.Size = New System.Drawing.Size(201, 24)
Me.cbStazione.TabIndex = 6
'
'label4
'
Me.label4.AutoSize = True
Me.label4.Location = New System.Drawing.Point(15, 21)
Me.label4.Name = "label4"
Me.label4.Size = New System.Drawing.Size(36, 17)
Me.label4.TabIndex = 5
Me.label4.Text = "Staz"
'
'cbOperazione
'
Me.cbOperazione.FormattingEnabled = True
Me.cbOperazione.Location = New System.Drawing.Point(392, 21)
Me.cbOperazione.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.cbOperazione.Name = "cbOperazione"
Me.cbOperazione.Size = New System.Drawing.Size(257, 24)
Me.cbOperazione.TabIndex = 4
'
'label2
'
Me.label2.AutoSize = True
Me.label2.Location = New System.Drawing.Point(304, 21)
Me.label2.Name = "label2"
Me.label2.Size = New System.Drawing.Size(82, 17)
Me.label2.TabIndex = 1
Me.label2.Text = "Operazione"
'
'btnAddOpr
'
Me.btnAddOpr.Location = New System.Drawing.Point(655, 18)
Me.btnAddOpr.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.btnAddOpr.Name = "btnAddOpr"
Me.btnAddOpr.Size = New System.Drawing.Size(196, 48)
Me.btnAddOpr.TabIndex = 2
Me.btnAddOpr.Text = "Aggiungi Record"
Me.btnAddOpr.UseVisualStyleBackColor = True
'
'tabPage2
'
Me.tabPage2.Controls.Add(Me.splitContainer3)
Me.tabPage2.Location = New System.Drawing.Point(4, 25)
Me.tabPage2.Margin = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.tabPage2.Name = "tabPage2"
Me.tabPage2.Padding = New System.Windows.Forms.Padding(3, 2, 3, 2)
Me.tabPage2.Size = New System.Drawing.Size(1092, 361)
Me.tabPage2.TabIndex = 1
Me.tabPage2.Text = "Allarmi"
Me.tabPage2.UseVisualStyleBackColor = True
'
'splitContainer3
'
Me.splitContainer3.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.splitContainer3.Location = New System.Drawing.Point(4, 6)
Me.splitContainer3.Margin = New System.Windows.Forms.Padding(4)
Me.splitContainer3.Name = "splitContainer3"
'
'splitContainer3.Panel1
'
Me.splitContainer3.Panel1.Controls.Add(Me.dgvAlarmLog)
Me.splitContainer3.Panel1.Controls.Add(Me.btnSendAlarms)
Me.splitContainer3.Panel1.Controls.Add(Me.lbAllarmi)
Me.splitContainer3.Panel1.Controls.Add(Me.label8)
'
'splitContainer3.Panel2
'
Me.splitContainer3.Panel2.Controls.Add(Me.dgvAnagAlarm)
Me.splitContainer3.Size = New System.Drawing.Size(849, 346)
Me.splitContainer3.SplitterDistance = 355
Me.splitContainer3.SplitterWidth = 5
Me.splitContainer3.TabIndex = 4
'
'dgvAlarmLog
'
Me.dgvAlarmLog.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgvAlarmLog.AutoGenerateColumns = False
DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control
DataGridViewCellStyle4.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
Me.dgvAlarmLog.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
Me.dgvAlarmLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.dgvAlarmLog.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.DtEventoDataGridViewTextBoxColumn, Me.CodAllarmeDataGridViewTextBoxColumn1, Me.AttivoDataGridViewCheckBoxColumn, Me.DescrizioneDataGridViewTextBoxColumn1})
Me.dgvAlarmLog.DataSource = Me.StoricoAllarmiExpDataTableBindingSource
DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window
DataGridViewCellStyle5.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText
DataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
Me.dgvAlarmLog.DefaultCellStyle = DataGridViewCellStyle5
Me.dgvAlarmLog.Location = New System.Drawing.Point(9, 102)
Me.dgvAlarmLog.Margin = New System.Windows.Forms.Padding(4)
Me.dgvAlarmLog.Name = "dgvAlarmLog"
Me.dgvAlarmLog.Size = New System.Drawing.Size(343, 240)
Me.dgvAlarmLog.TabIndex = 7
'
'DtEventoDataGridViewTextBoxColumn
'
Me.DtEventoDataGridViewTextBoxColumn.DataPropertyName = "DtEvento"
Me.DtEventoDataGridViewTextBoxColumn.HeaderText = "DtEvento"
Me.DtEventoDataGridViewTextBoxColumn.Name = "DtEventoDataGridViewTextBoxColumn"
'
'CodAllarmeDataGridViewTextBoxColumn1
'
Me.CodAllarmeDataGridViewTextBoxColumn1.DataPropertyName = "CodAllarme"
Me.CodAllarmeDataGridViewTextBoxColumn1.HeaderText = "CodAllarme"
Me.CodAllarmeDataGridViewTextBoxColumn1.Name = "CodAllarmeDataGridViewTextBoxColumn1"
'
'AttivoDataGridViewCheckBoxColumn
'
Me.AttivoDataGridViewCheckBoxColumn.DataPropertyName = "Attivo"
Me.AttivoDataGridViewCheckBoxColumn.HeaderText = "Attivo"
Me.AttivoDataGridViewCheckBoxColumn.Name = "AttivoDataGridViewCheckBoxColumn"
'
'DescrizioneDataGridViewTextBoxColumn1
'
Me.DescrizioneDataGridViewTextBoxColumn1.DataPropertyName = "Descrizione"
Me.DescrizioneDataGridViewTextBoxColumn1.HeaderText = "Descrizione"
Me.DescrizioneDataGridViewTextBoxColumn1.Name = "DescrizioneDataGridViewTextBoxColumn1"
'
'StoricoAllarmiExpDataTableBindingSource
'
Me.StoricoAllarmiExpDataTableBindingSource.DataSource = GetType(DB_proxy.DS_App.StoricoAllarmiExpDataTable)
'
'btnSendAlarms
'
Me.btnSendAlarms.Location = New System.Drawing.Point(10, 34)
Me.btnSendAlarms.Margin = New System.Windows.Forms.Padding(4)
Me.btnSendAlarms.Name = "btnSendAlarms"
Me.btnSendAlarms.Size = New System.Drawing.Size(100, 60)
Me.btnSendAlarms.TabIndex = 6
Me.btnSendAlarms.Text = "Invio Allarmi"
Me.btnSendAlarms.UseVisualStyleBackColor = True
'
'lbAllarmi
'
Me.lbAllarmi.FormattingEnabled = True
Me.lbAllarmi.ItemHeight = 16
Me.lbAllarmi.Items.AddRange(New Object() {"00001", "00002", "00003", "00004", "00005"})
Me.lbAllarmi.Location = New System.Drawing.Point(142, 10)
Me.lbAllarmi.Margin = New System.Windows.Forms.Padding(4)
Me.lbAllarmi.Name = "lbAllarmi"
Me.lbAllarmi.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
Me.lbAllarmi.Size = New System.Drawing.Size(143, 84)
Me.lbAllarmi.TabIndex = 5
'
'label8
'
Me.label8.AutoSize = True
Me.label8.Location = New System.Drawing.Point(6, 13)
Me.label8.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.label8.Name = "label8"
Me.label8.Size = New System.Drawing.Size(130, 17)
Me.label8.TabIndex = 4
Me.label8.Text = "Simulazione Allarmi"
'
'dgvAnagAlarm
'
Me.dgvAnagAlarm.AutoGenerateColumns = False
DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control
DataGridViewCellStyle6.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
Me.dgvAnagAlarm.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle6
Me.dgvAnagAlarm.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.dgvAnagAlarm.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.CodAllarmeDataGridViewTextBoxColumn, Me.DescrizioneDataGridViewTextBoxColumn, Me.ReportAttivoDataGridViewCheckBoxColumn, Me.LastStartDataGridViewTextBoxColumn, Me.LastEndDataGridViewTextBoxColumn, Me.CurrStatusDataGridViewCheckBoxColumn})
Me.dgvAnagAlarm.DataSource = Me.AnagAllarmiDataTableBindingSource
DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
DataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window
DataGridViewCellStyle7.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
DataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText
DataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight
DataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText
DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
Me.dgvAnagAlarm.DefaultCellStyle = DataGridViewCellStyle7
Me.dgvAnagAlarm.Dock = System.Windows.Forms.DockStyle.Fill
Me.dgvAnagAlarm.Location = New System.Drawing.Point(0, 0)
Me.dgvAnagAlarm.Margin = New System.Windows.Forms.Padding(4)
Me.dgvAnagAlarm.Name = "dgvAnagAlarm"
Me.dgvAnagAlarm.Size = New System.Drawing.Size(489, 346)
Me.dgvAnagAlarm.TabIndex = 5
'
'CodAllarmeDataGridViewTextBoxColumn
'
Me.CodAllarmeDataGridViewTextBoxColumn.DataPropertyName = "CodAllarme"
Me.CodAllarmeDataGridViewTextBoxColumn.HeaderText = "CodAllarme"
Me.CodAllarmeDataGridViewTextBoxColumn.Name = "CodAllarmeDataGridViewTextBoxColumn"
'
'DescrizioneDataGridViewTextBoxColumn
'
Me.DescrizioneDataGridViewTextBoxColumn.DataPropertyName = "Descrizione"
Me.DescrizioneDataGridViewTextBoxColumn.HeaderText = "Descrizione"
Me.DescrizioneDataGridViewTextBoxColumn.Name = "DescrizioneDataGridViewTextBoxColumn"
'
'ReportAttivoDataGridViewCheckBoxColumn
'
Me.ReportAttivoDataGridViewCheckBoxColumn.DataPropertyName = "ReportAttivo"
Me.ReportAttivoDataGridViewCheckBoxColumn.HeaderText = "ReportAttivo"
Me.ReportAttivoDataGridViewCheckBoxColumn.Name = "ReportAttivoDataGridViewCheckBoxColumn"
'
'LastStartDataGridViewTextBoxColumn
'
Me.LastStartDataGridViewTextBoxColumn.DataPropertyName = "LastStart"
Me.LastStartDataGridViewTextBoxColumn.HeaderText = "LastStart"
Me.LastStartDataGridViewTextBoxColumn.Name = "LastStartDataGridViewTextBoxColumn"
'
'LastEndDataGridViewTextBoxColumn
'
Me.LastEndDataGridViewTextBoxColumn.DataPropertyName = "LastEnd"
Me.LastEndDataGridViewTextBoxColumn.HeaderText = "LastEnd"
Me.LastEndDataGridViewTextBoxColumn.Name = "LastEndDataGridViewTextBoxColumn"
'
'CurrStatusDataGridViewCheckBoxColumn
'
Me.CurrStatusDataGridViewCheckBoxColumn.DataPropertyName = "CurrStatus"
Me.CurrStatusDataGridViewCheckBoxColumn.HeaderText = "CurrStatus"
Me.CurrStatusDataGridViewCheckBoxColumn.Name = "CurrStatusDataGridViewCheckBoxColumn"
'
'AnagAllarmiDataTableBindingSource
'
Me.AnagAllarmiDataTableBindingSource.DataSource = GetType(DB_proxy.DS_App.AnagAllarmiDataTable)
'
'tabPage3
'
Me.tabPage3.Controls.Add(Me.label10)
Me.tabPage3.Controls.Add(Me.txtAuthKey)
Me.tabPage3.Controls.Add(Me.label9)
Me.tabPage3.Controls.Add(Me.label7)
Me.tabPage3.Controls.Add(Me.btnPurgeOld)
Me.tabPage3.Controls.Add(Me.txtDay2keep)
Me.tabPage3.Controls.Add(Me.btnEmptyTabOpr)
Me.tabPage3.Location = New System.Drawing.Point(4, 25)
Me.tabPage3.Margin = New System.Windows.Forms.Padding(4)
Me.tabPage3.Name = "tabPage3"
Me.tabPage3.Size = New System.Drawing.Size(1092, 361)
Me.tabPage3.TabIndex = 2
Me.tabPage3.Text = "Utils"
Me.tabPage3.UseVisualStyleBackColor = True
'
'label10
'
Me.label10.AutoSize = True
Me.label10.Location = New System.Drawing.Point(11, 18)
Me.label10.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.label10.Name = "label10"
Me.label10.Size = New System.Drawing.Size(65, 17)
Me.label10.TabIndex = 6
Me.label10.Text = "Auth Key"
'
'txtAuthKey
'
Me.txtAuthKey.Location = New System.Drawing.Point(14, 39)
Me.txtAuthKey.Margin = New System.Windows.Forms.Padding(4)
Me.txtAuthKey.Name = "txtAuthKey"
Me.txtAuthKey.Size = New System.Drawing.Size(132, 22)
Me.txtAuthKey.TabIndex = 5
Me.txtAuthKey.Text = "digheDelBu"
'
'label9
'
Me.label9.AutoSize = True
Me.label9.Location = New System.Drawing.Point(11, 145)
Me.label9.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.label9.Name = "label9"
Me.label9.Size = New System.Drawing.Size(249, 17)
Me.label9.TabIndex = 4
Me.label9.Text = "Reset DB (Storico allarmi, operazioni)"
'
'label7
'
Me.label7.AutoSize = True
Me.label7.Location = New System.Drawing.Point(720, 18)
Me.label7.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
Me.label7.Name = "label7"
Me.label7.Size = New System.Drawing.Size(128, 17)
Me.label7.TabIndex = 3
Me.label7.Text = "# gg da mantenere"
'
'btnPurgeOld
'
Me.btnPurgeOld.Location = New System.Drawing.Point(619, 66)
Me.btnPurgeOld.Margin = New System.Windows.Forms.Padding(4)
Me.btnPurgeOld.Name = "btnPurgeOld"
Me.btnPurgeOld.Size = New System.Drawing.Size(229, 64)
Me.btnPurgeOld.TabIndex = 2
Me.btnPurgeOld.Text = "SVECCHIAMENTO DataBase"
Me.btnPurgeOld.UseVisualStyleBackColor = True
'
'txtDay2keep
'
Me.txtDay2keep.Location = New System.Drawing.Point(716, 39)
Me.txtDay2keep.Margin = New System.Windows.Forms.Padding(4)
Me.txtDay2keep.Name = "txtDay2keep"
Me.txtDay2keep.Size = New System.Drawing.Size(132, 22)
Me.txtDay2keep.TabIndex = 1
Me.txtDay2keep.Text = "365"
'
'btnEmptyTabOpr
'
Me.btnEmptyTabOpr.Location = New System.Drawing.Point(13, 66)
Me.btnEmptyTabOpr.Margin = New System.Windows.Forms.Padding(4)
Me.btnEmptyTabOpr.Name = "btnEmptyTabOpr"
Me.btnEmptyTabOpr.Size = New System.Drawing.Size(229, 64)
Me.btnEmptyTabOpr.TabIndex = 0
Me.btnEmptyTabOpr.Text = "ELIMINA Tabelle"
Me.btnEmptyTabOpr.UseVisualStyleBackColor = True
'
'Main
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(1118, 602)
Me.Controls.Add(Me.Paginatore)
Me.Controls.Add(Me.groupBox2)
Me.Controls.Add(Me.groupBox1)
Me.Name = "Main"
@@ -231,6 +767,23 @@ Partial Class Main
Me.splitContainer2.Panel2.PerformLayout()
CType(Me.splitContainer2, System.ComponentModel.ISupportInitialize).EndInit()
Me.splitContainer2.ResumeLayout(False)
Me.Paginatore.ResumeLayout(False)
Me.tabPage1.ResumeLayout(False)
CType(Me.dgvOpr, System.ComponentModel.ISupportInitialize).EndInit()
Me.groupBox3.ResumeLayout(False)
Me.groupBox3.PerformLayout()
Me.tabPage2.ResumeLayout(False)
Me.splitContainer3.Panel1.ResumeLayout(False)
Me.splitContainer3.Panel1.PerformLayout()
Me.splitContainer3.Panel2.ResumeLayout(False)
CType(Me.splitContainer3, System.ComponentModel.ISupportInitialize).EndInit()
Me.splitContainer3.ResumeLayout(False)
CType(Me.dgvAlarmLog, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.StoricoAllarmiExpDataTableBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.dgvAnagAlarm, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.AnagAllarmiDataTableBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
Me.tabPage3.ResumeLayout(False)
Me.tabPage3.PerformLayout()
Me.ResumeLayout(False)
End Sub
@@ -248,4 +801,46 @@ Partial Class Main
Private WithEvents splitContainer2 As SplitContainer
Private WithEvents lblArt As Label
Private WithEvents lblOutArt As Label
Private WithEvents Paginatore As TabControl
Private WithEvents tabPage1 As TabPage
Private WithEvents dgvOpr As DataGridView
Private WithEvents groupBox3 As GroupBox
Private WithEvents btnReloadOpr As Button
Private WithEvents lblOprOutMess As Label
Private WithEvents cbStato As ComboBox
Private WithEvents label6 As Label
Private WithEvents cbSottostazione As ComboBox
Private WithEvents label5 As Label
Private WithEvents cbStazione As ComboBox
Private WithEvents label4 As Label
Private WithEvents cbOperazione As ComboBox
Private WithEvents label2 As Label
Private WithEvents btnAddOpr As Button
Private WithEvents tabPage2 As TabPage
Private WithEvents splitContainer3 As SplitContainer
Private WithEvents dgvAlarmLog As DataGridView
Private WithEvents btnSendAlarms As Button
Private WithEvents lbAllarmi As ListBox
Private WithEvents label8 As Label
Private WithEvents dgvAnagAlarm As DataGridView
Private WithEvents tabPage3 As TabPage
Private WithEvents label10 As Label
Private WithEvents txtAuthKey As TextBox
Private WithEvents label9 As Label
Private WithEvents label7 As Label
Private WithEvents btnPurgeOld As Button
Private WithEvents txtDay2keep As TextBox
Private WithEvents btnEmptyTabOpr As Button
Friend WithEvents AnagAllarmiDataTableBindingSource As BindingSource
Friend WithEvents DtEventoDataGridViewTextBoxColumn As DataGridViewTextBoxColumn
Friend WithEvents CodAllarmeDataGridViewTextBoxColumn1 As DataGridViewTextBoxColumn
Friend WithEvents AttivoDataGridViewCheckBoxColumn As DataGridViewCheckBoxColumn
Friend WithEvents DescrizioneDataGridViewTextBoxColumn1 As DataGridViewTextBoxColumn
Friend WithEvents StoricoAllarmiExpDataTableBindingSource As BindingSource
Friend WithEvents CodAllarmeDataGridViewTextBoxColumn As DataGridViewTextBoxColumn
Friend WithEvents DescrizioneDataGridViewTextBoxColumn As DataGridViewTextBoxColumn
Friend WithEvents ReportAttivoDataGridViewCheckBoxColumn As DataGridViewCheckBoxColumn
Friend WithEvents LastStartDataGridViewTextBoxColumn As DataGridViewTextBoxColumn
Friend WithEvents LastEndDataGridViewTextBoxColumn As DataGridViewTextBoxColumn
Friend WithEvents CurrStatusDataGridViewCheckBoxColumn As DataGridViewCheckBoxColumn
End Class
+6
View File
@@ -117,4 +117,10 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="StoricoAllarmiExpDataTableBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>324, 17</value>
</metadata>
<metadata name="AnagAllarmiDataTableBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
+58 -1
View File
@@ -14,6 +14,7 @@ Public Class Main
'Me.tabOperazioniTableAdapter.Fill(Me.dS_App.TabOperazioni)
'Me.anagAllarmiTableAdapter.Fill(Me.dS_App.AnagAllarmi)
'Me.StoricoAllarmiExpTableAdapter.FillLastRec(Me.dS_App.StoricoAllarmiExp, 100)
End Sub
@@ -46,7 +47,7 @@ Public Class Main
If tabArt.Rows.Count > 0 Then
lblOutArt.Text = String.Format("Dtmtx: {0} - CodArt {1}", CurrDatamatrix, CurrCodArt)
lblArt.Text = String.Format("CodArt {0}", CurrCodArt)
lblOutArt.Text += String.Format(" | PrgMain: {0} | PrgAux: {1}", tabArt(0).PartProgMain, tabArt(0).PartProgAux)
lblOutArt.Text += String.Format(" | Descr: {0} ", tabArt(0).Descrizione)
ArtOk = True
Else
lblOutArt.Text = String.Format("Dtmtx: {0}", CurrDatamatrix)
@@ -57,4 +58,60 @@ Public Class Main
updCtrl()
End Sub
Private Sub btnEmptyTabOpr_Click(sender As Object, e As EventArgs) Handles btnEmptyTabOpr.Click
Dim message As String = ""
Dim caption As String = "Richiesta FULL RESET DB"
Dim buttons As MessageBoxButtons = MessageBoxButtons.YesNo
Dim result As DialogResult
Dim authKey As String = txtAuthKey.Text.Trim()
Dim isAuth As Boolean = authKey = "digheDelBu"
If isAuth Then
message = "Sicuro di voler ELIMINARE COMPLETAMENTE i dati delle tabelle Operazioni e Pezzi?"
Else
message = "Errore: auth key non valida"
buttons = MessageBoxButtons.OK
End If
result = MessageBox.Show(message, caption, buttons)
If isAuth Then
If result = System.Windows.Forms.DialogResult.Yes Then
DataLayer.man.taTO.deleteAll(txtAuthKey.Text.Trim())
updCtrl()
lblOprOutMess.Text = "Effettuato SVUOTAMENTO COMPLETO TabOpr e TabPezzi"
Paginatore.SelectedIndex = 0
End If
End If
End Sub
Private Sub btnPurgeOld_Click(sender As Object, e As EventArgs) Handles btnPurgeOld.Click
Dim numGG As Integer = 365
Integer.TryParse(txtDay2keep.Text.Trim(), numGG)
DataLayer.man.taTO.purgeOld(numGG)
updCtrl()
lblOprOutMess.Text = "Effettuato svecchiamento TabOpr"
Paginatore.SelectedIndex = 0
End Sub
Private Sub btnReloadOpr_Click(sender As Object, e As EventArgs) Handles btnReloadOpr.Click
updCtrl()
End Sub
Private Sub btnSendAlarms_Click(sender As Object, e As EventArgs) Handles btnSendAlarms.Click
Dim allarmi As String = ""
For Each item In lbAllarmi.SelectedItems
allarmi += item & ","
Next
If allarmi.Length > 1 Then
allarmi = allarmi.Substring(0, allarmi.Length - 1)
End If
DataLayer.man.taSAL.checkStatus(",", allarmi)
updCtrl()
End Sub
End Class
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="AnagAllarmiTableAdapter" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>DB_proxy.DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter, DB_proxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="StoricoAllarmiExpTableAdapter" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>DB_proxy.DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter, DB_proxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="DS_App+AnagAllarmiDataTable" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>DB_proxy.DS_App+AnagAllarmiDataTable, DB_proxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="DS_App+StoricoAllarmiExpDataTable" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>DB_proxy.DS_App+StoricoAllarmiExpDataTable, DB_proxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="DS_App" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>DB_proxy.DS_App, DB_proxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
+1 -3
View File
@@ -4,9 +4,7 @@
</configSections>
<connectionStrings>
<!--Conn string prod CMS-->
<!--<add name="DB_proxy.Properties.Settings.CMS_OMRConnectionString"
connectionString="Data Source=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;"
providerName="System.Data.SqlClient" />-->
<!--<add name="DB_proxy.Properties.Settings.CMS_OMRConnectionString" connectionString="Data Source=10.69.33.57\SQLEXPRESS;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS;" providerName="System.Data.SqlClient" />-->
<!--Conn string DEV Steamware-->
<add name="DB_proxy.Properties.Settings.CMS_OMRConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=CMS-OMR;Persist Security Info=True;User ID=conn_CMS;Password=pwd_CMS" providerName="System.Data.SqlClient"/>
</connectionStrings>
+69 -69
View File
@@ -29,13 +29,13 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
this.txtBCode = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btnLogin = new System.Windows.Forms.Button();
@@ -100,9 +100,9 @@
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.tabOperazioniTableAdapter = new DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter();
this.anagAllarmiTableAdapter = new DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter();
this.StoricoAllarmiExpTableAdapter = new DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
@@ -458,14 +458,14 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dgvOpr.AutoGenerateColumns = false;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvOpr.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvOpr.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvOpr.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvOpr.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idxRecDataGridViewTextBoxColumn,
@@ -476,25 +476,25 @@
this.codStatoDataGridViewTextBoxColumn,
this.datamatrixDataGridViewTextBoxColumn});
this.dgvOpr.DataSource = this.tabOperazioniBindingSource;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvOpr.DefaultCellStyle = dataGridViewCellStyle9;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvOpr.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvOpr.Location = new System.Drawing.Point(8, 112);
this.dgvOpr.Margin = new System.Windows.Forms.Padding(4);
this.dgvOpr.Name = "dgvOpr";
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvOpr.RowHeadersDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvOpr.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dgvOpr.Size = new System.Drawing.Size(1077, 242);
this.dgvOpr.TabIndex = 6;
//
@@ -592,14 +592,14 @@
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;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvAlarmLog.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvAlarmLog.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dgvAlarmLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvAlarmLog.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dtEventoDataGridViewTextBoxColumn1,
@@ -607,14 +607,14 @@
this.attivoDataGridViewCheckBoxColumn,
this.descrizioneDataGridViewTextBoxColumn1});
this.dgvAlarmLog.DataSource = this.storicoAllarmiExpBindingSource;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvAlarmLog.DefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvAlarmLog.DefaultCellStyle = dataGridViewCellStyle5;
this.dgvAlarmLog.Location = new System.Drawing.Point(8, 102);
this.dgvAlarmLog.Margin = new System.Windows.Forms.Padding(4);
this.dgvAlarmLog.Name = "dgvAlarmLog";
@@ -691,14 +691,14 @@
// dgvAnagAlarm
//
this.dgvAnagAlarm.AutoGenerateColumns = false;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvAnagAlarm.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvAnagAlarm.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dgvAnagAlarm.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvAnagAlarm.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.codAllarmeDataGridViewTextBoxColumn,
@@ -708,14 +708,14 @@
this.lastEndDataGridViewTextBoxColumn,
this.currStatusDataGridViewCheckBoxColumn});
this.dgvAnagAlarm.DataSource = this.anagAllarmiBindingSource;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvAnagAlarm.DefaultCellStyle = dataGridViewCellStyle14;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvAnagAlarm.DefaultCellStyle = dataGridViewCellStyle7;
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);
@@ -945,7 +945,7 @@
private System.Windows.Forms.DataGridView dgvOpr;
private DB_proxy.DS_App dS_App;
private System.Windows.Forms.BindingSource tabOperazioniBindingSource;
private DB_proxy.DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter tabOperazioniTableAdapter;
private DB_proxy.DS_AppTableAdapters.TabOperazioniTableAdapter tabOperazioniTableAdapter;
private System.Windows.Forms.DataGridViewTextBoxColumn idxRecDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn codStazioneDataGridViewTextBoxColumn;
@@ -964,8 +964,8 @@
private System.Windows.Forms.ListBox lbAllarmi;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.BindingSource anagAllarmiBindingSource;
private DB_proxy.DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter anagAllarmiTableAdapter;
private DB_proxy.DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter;
private DB_proxy.DS_AppTableAdapters.AnagAllarmiTableAdapter anagAllarmiTableAdapter;
private DB_proxy.DS_AppTableAdapters.StoricoAllarmiExpTableAdapter StoricoAllarmiExpTableAdapter;
private System.Windows.Forms.BindingSource storicoAllarmiExpBindingSource;
private System.Windows.Forms.DataGridView dgvAlarmLog;
private System.Windows.Forms.DataGridViewTextBoxColumn dtEventoDataGridViewTextBoxColumn1;
+1 -1
View File
@@ -150,7 +150,7 @@ namespace DemoApp
{
lblOutArt.Text = string.Format("Dtmtx: {0} - CodArt {1}", CurrDatamatrix, CurrCodArt);
lblArt.Text = string.Format("CodArt {0}", CurrCodArt);
lblOutArt.Text += string.Format(" | PrgMain: {0} | PrgAux: {1}", tabArt[0].PartProgMain, tabArt[0].PartProgAux);
lblOutArt.Text += string.Format(" | Descrizione: {0}", tabArt[0].Descrizione);
ArtOk = true;
}
+6 -9
View File
@@ -118,28 +118,25 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="tabOperazioniBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>393, 17</value>
<value>867, 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>
<value>759, 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>
<value>1119, 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>
<value>17, 17</value>
</metadata>
<metadata name="anagAllarmiTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1126, 17</value>
<value>262, 17</value>
</metadata>
<metadata name="StoricoAllarmiExpTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
<value>491, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>95</value>
+1
View File
@@ -33,6 +33,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
+1264 -127
View File
File diff suppressed because it is too large Load Diff
+187 -33
View File
@@ -2,7 +2,7 @@
<xs:schema id="DS_App" targetNamespace="http://tempuri.org/DS_App.xsd" xmlns:mstns="http://tempuri.org/DS_App.xsd" xmlns="http://tempuri.org/DS_App.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CMS_OMRConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CMS_OMRConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.DB_proxy.Properties.Settings.GlobalReference.Default.CMS_OMRConnectionString" Provider="System.Data.SqlClient" />
</Connections>
@@ -202,42 +202,38 @@ SELECT Datamatrix, CodArt, CodStazione, CodStato, CodOperazDone, CodOperazCurr F
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.AnagArticoli" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArt] = @Original_CodArt) AND ([PartProgMain] = @Original_PartProgMain) AND ([PartProgAux] = @Original_PartProgAux))</CommandText>
<CommandText>DELETE FROM [AnagArticoli] WHERE (([CodArt] = @Original_CodArt) AND ([Descrizione] = @Original_Descrizione))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagArticoli] ([CodArt], [PartProgMain], [PartProgAux]) VALUES (@CodArt, @PartProgMain, @PartProgAux);
SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodArt)</CommandText>
<CommandText>INSERT INTO [AnagArticoli] ([CodArt], [Descrizione]) VALUES (@CodArt, @Descrizione);
SELECT CodArt, Descrizione FROM AnagArticoli WHERE (CodArt = @CodArt)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodArt, PartProgMain, PartProgAux FROM dbo.AnagArticoli</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM AnagArticoli</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AnagArticoli] SET [CodArt] = @CodArt, [PartProgMain] = @PartProgMain, [PartProgAux] = @PartProgAux WHERE (([CodArt] = @Original_CodArt) AND ([PartProgMain] = @Original_PartProgMain) AND ([PartProgAux] = @Original_PartProgAux));
SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodArt)</CommandText>
<CommandText>UPDATE [AnagArticoli] SET [CodArt] = @CodArt, [Descrizione] = @Descrizione WHERE (([CodArt] = @Original_CodArt) AND ([Descrizione] = @Original_Descrizione));
SELECT CodArt, Descrizione FROM AnagArticoli WHERE (CodArt = @CodArt)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
@@ -245,8 +241,7 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
</MainSource>
<Mappings>
<Mapping SourceColumn="CodArt" DataSetColumn="CodArt" />
<Mapping SourceColumn="PartProgMain" DataSetColumn="PartProgMain" />
<Mapping SourceColumn="PartProgAux" DataSetColumn="PartProgAux" />
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_AnagArt_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
@@ -271,15 +266,14 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_AnagOpr_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_AnagArt_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AnagOpr_insertQuery</CommandText>
<CommandText>dbo.stp_AnagArt_insertQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Barcode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Cognome" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -292,8 +286,7 @@ SELECT CodArt, PartProgMain, PartProgAux FROM AnagArticoli WHERE (CodArt = @CodA
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -515,6 +508,127 @@ SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)</Com
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TabAttrezzatureTableAdapter" GeneratorDataComponentClassName="TabAttrezzatureTableAdapter" Name="TabAttrezzature" UserDataComponentName="TabAttrezzatureTableAdapter">
<MainSource>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.TabAttrezzature" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[TabAttrezzature] WHERE (([CodAttr] = @Original_CodAttr) AND ([CodArt_A] = @Original_CodArt_A) AND ([CodArt_B] = @Original_CodArt_B) AND ([PartProgMain] = @Original_PartProgMain) AND ([PartProgAux] = @Original_PartProgAux))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAttr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_A" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_B" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[TabAttrezzature] ([CodAttr], [CodArt_A], [CodArt_B], [PartProgMain], [PartProgAux]) VALUES (@CodAttr, @CodArt_A, @CodArt_B, @PartProgMain, @PartProgAux);
SELECT CodAttr, CodArt_A, CodArt_B, PartProgMain, PartProgAux FROM TabAttrezzature WHERE (CodArt_A = @CodArt_A) AND (CodArt_B = @CodArt_B) AND (CodAttr = @CodAttr)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAttr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_A" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_B" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodAttr, CodArt_A, CodArt_B, PartProgMain, PartProgAux FROM dbo.TabAttrezzature</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[TabAttrezzature] SET [CodAttr] = @CodAttr, [CodArt_A] = @CodArt_A, [CodArt_B] = @CodArt_B, [PartProgMain] = @PartProgMain, [PartProgAux] = @PartProgAux WHERE (([CodAttr] = @Original_CodAttr) AND ([CodArt_A] = @Original_CodArt_A) AND ([CodArt_B] = @Original_CodArt_B) AND ([PartProgMain] = @Original_PartProgMain) AND ([PartProgAux] = @Original_PartProgAux));
SELECT CodAttr, CodArt_A, CodArt_B, PartProgMain, PartProgAux FROM TabAttrezzature WHERE (CodArt_A = @CodArt_A) AND (CodArt_B = @CodArt_B) AND (CodAttr = @CodAttr)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAttr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_A" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_B" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAttr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_A" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt_B" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgMain" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PartProgAux" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodAttr" DataSetColumn="CodAttr" />
<Mapping SourceColumn="CodArt_A" DataSetColumn="CodArt_A" />
<Mapping SourceColumn="CodArt_B" DataSetColumn="CodArt_B" />
<Mapping SourceColumn="PartProgMain" DataSetColumn="PartProgMain" />
<Mapping SourceColumn="PartProgAux" DataSetColumn="PartProgAux" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_TabAttr_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TabAttr_deleteQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_TabAttr_search" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="FillBySearch" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetBySearch" GeneratorSourceName="FillBySearch" GetMethodModifier="Public" GetMethodName="GetBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetBySearch" UserSourceName="FillBySearch">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TabAttr_search</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_TabAttr_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TabAttr_insertQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_OMRConnectionString (Settings)" DbObjectName="[CMS-OMR].dbo.stp_TabAttr_updateQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="updateQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TabAttr_updateQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodAttr" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_A" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt_B" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgMain" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartProgAux" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -624,14 +738,7 @@ SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)</Com
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PartProgMain" msprop:Generator_ColumnVarNameInTable="columnPartProgMain" msprop:Generator_ColumnPropNameInRow="PartProgMain" msprop:Generator_ColumnPropNameInTable="PartProgMainColumn" msprop:Generator_UserColumnName="PartProgMain">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PartProgAux" msprop:Generator_ColumnVarNameInTable="columnPartProgAux" msprop:Generator_ColumnPropNameInRow="PartProgAux" msprop:Generator_ColumnPropNameInTable="PartProgAuxColumn" msprop:Generator_UserColumnName="PartProgAux">
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
@@ -714,6 +821,47 @@ SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)</Com
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TabAttrezzature" msprop:Generator_TableClassName="TabAttrezzatureDataTable" msprop:Generator_TableVarName="tableTabAttrezzature" msprop:Generator_TablePropName="TabAttrezzature" msprop:Generator_RowDeletingName="TabAttrezzatureRowDeleting" msprop:Generator_RowChangingName="TabAttrezzatureRowChanging" msprop:Generator_RowEvHandlerName="TabAttrezzatureRowChangeEventHandler" msprop:Generator_RowDeletedName="TabAttrezzatureRowDeleted" msprop:Generator_UserTableName="TabAttrezzature" msprop:Generator_RowChangedName="TabAttrezzatureRowChanged" msprop:Generator_RowEvArgName="TabAttrezzatureRowChangeEvent" msprop:Generator_RowClassName="TabAttrezzatureRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodAttr" msprop:Generator_ColumnVarNameInTable="columnCodAttr" msprop:Generator_ColumnPropNameInRow="CodAttr" msprop:Generator_ColumnPropNameInTable="CodAttrColumn" msprop:Generator_UserColumnName="CodAttr">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArt_A" msprop:Generator_ColumnVarNameInTable="columnCodArt_A" msprop:Generator_ColumnPropNameInRow="CodArt_A" msprop:Generator_ColumnPropNameInTable="CodArt_AColumn" msprop:Generator_UserColumnName="CodArt_A">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArt_B" msprop:Generator_ColumnVarNameInTable="columnCodArt_B" msprop:Generator_ColumnPropNameInRow="CodArt_B" msprop:Generator_ColumnPropNameInTable="CodArt_BColumn" msprop:Generator_UserColumnName="CodArt_B">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PartProgMain" msprop:Generator_ColumnVarNameInTable="columnPartProgMain" msprop:Generator_ColumnPropNameInRow="PartProgMain" msprop:Generator_ColumnPropNameInTable="PartProgMainColumn" msprop:Generator_UserColumnName="PartProgMain">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PartProgAux" msprop:Generator_ColumnVarNameInTable="columnPartProgAux" msprop:Generator_ColumnPropNameInRow="PartProgAux" msprop:Generator_ColumnPropNameInTable="PartProgAuxColumn" msprop:Generator_UserColumnName="PartProgAux">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -741,6 +889,12 @@ SELECT Barcode, Cognome, Nome FROM AnagOperatori WHERE (Barcode = @Barcode)</Com
<xs:selector xpath=".//mstns:AnagOperatori" />
<xs:field xpath="mstns:Barcode" />
</xs:unique>
<xs:unique name="TabAttrezzature_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TabAttrezzature" />
<xs:field xpath="mstns:CodAttr" />
<xs:field xpath="mstns:CodArt_A" />
<xs:field xpath="mstns:CodArt_B" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
+11 -10
View File
@@ -4,17 +4,18 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:TabOperazioni" ZOrder="9" X="91" Y="113" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:TabPezzi" ZOrder="8" X="479" Y="110" Height="227" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:AnagArticoli" ZOrder="6" X="830" Y="102" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:AnagAllarmi" ZOrder="3" X="119" Y="641" Height="227" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:StoricoAllarmiExp" ZOrder="1" X="469" Y="657" Height="227" Width="290" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:AnagOperatori" ZOrder="2" X="905" Y="683" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:TabOperazioni" ZOrder="10" X="91" Y="113" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:TabPezzi" ZOrder="9" X="479" Y="110" Height="227" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:AnagArticoli" ZOrder="2" X="830" Y="102" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AnagAllarmi" ZOrder="5" X="119" Y="641" Height="227" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:StoricoAllarmiExp" ZOrder="3" X="469" Y="657" Height="227" Width="290" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:AnagOperatori" ZOrder="4" X="905" Y="683" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:TabAttrezzature" ZOrder="1" X="1477" Y="344" Height="296" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_TabOperazioni_TabPezzi1" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_TabOperazioni_TabPezzi1" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>479</X>
@@ -26,7 +27,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_TabPezzi_AnagArticoli" ZOrder="5" LineWidth="11">
<Connector ID="DesignRelation:FK_TabPezzi_AnagArticoli" ZOrder="7" LineWidth="11">
<RoutePoints>
<Point>
<X>830</X>
@@ -38,7 +39,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_StoricoAllarmi_AnagAllarmi" ZOrder="4" LineWidth="11">
<Connector ID="DesignRelation:FK_StoricoAllarmi_AnagAllarmi" ZOrder="6" LineWidth="11">
<RoutePoints>
<Point>
<X>375</X>
+89 -9
View File
@@ -1,11 +1,87 @@
namespace DB_proxy
using System;
using System.Configuration;
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;
#region area gestione conf file
/// <summary>
/// legge conf in formato char
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static char CRC(string key)
{
char answ = '-';
try
{
answ = ConfigurationManager.AppSettings[key].ToCharArray()[0];
}
catch
{ }
return answ;
}
/// <summary>
/// legge conf in formato stringa
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static string CRS(string key)
{
string answ = "";
try
{
answ = ConfigurationManager.AppSettings[key].ToString();
}
catch
{ }
return answ;
}
/// <summary>
/// legge conf in formato INT
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static Int32 CRI(string key)
{
int answ = 0;
try
{
answ = Convert.ToInt32(CRS(key));
}
catch
{ }
return answ;
}
/// <summary>
/// legge conf in formato BOOLean
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static bool CRB(string key)
{
bool answ = false;
try
{
answ = Convert.ToBoolean(CRS(key));
}
catch
{ }
return answ;
}
#endregion
public DS_AppTableAdapters.AnagAllarmiTableAdapter taAnagAll;
public DS_AppTableAdapters.AnagArticoliTableAdapter taAnagArt;
public DS_AppTableAdapters.AnagOperatoriTableAdapter taAnagOpr;
public DS_AppTableAdapters.StoricoAllarmiExpTableAdapter taSAL;
public DS_AppTableAdapters.TabAttrezzatureTableAdapter taAttrezz;
public DS_AppTableAdapters.TabOperazioniTableAdapter taTO;
public DS_AppTableAdapters.TabPezziTableAdapter taPezzi;
/// <summary>
@@ -13,10 +89,13 @@
/// </summary>
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();
taAnagAll = new DS_AppTableAdapters.AnagAllarmiTableAdapter();
taAnagArt = new DS_AppTableAdapters.AnagArticoliTableAdapter();
taAnagOpr = new DS_AppTableAdapters.AnagOperatoriTableAdapter();
taSAL = new DS_AppTableAdapters.StoricoAllarmiExpTableAdapter();
taAttrezz = new DS_AppTableAdapters.TabAttrezzatureTableAdapter();
taTO = new DS_AppTableAdapters.TabOperazioniTableAdapter();
taPezzi = new DS_AppTableAdapters.TabPezziTableAdapter();
}
/// <summary>
/// Avvio DataLayer
@@ -25,6 +104,7 @@
{
initTA();
}
public static DataLayer man = new DataLayer();
}
}