diff --git a/MP-ADM/BaseUserControl.cs b/MP-ADM/BaseUserControl.cs index dcd38e18..2a5a52e3 100644 --- a/MP-ADM/BaseUserControl.cs +++ b/MP-ADM/BaseUserControl.cs @@ -162,6 +162,35 @@ namespace MP_ADM #region Public Methods + /// + /// cambia il colore del campo secondo la due date indicata + /// rosso: in ritardo (scaduta) + /// verde: > 2 week + /// giallo: altrimenti + /// + /// + /// + public string cssDueDate(object dueDate) + { + DateTime oggi = DateTime.Today; + DateTime dataRif = oggi.AddDays(-1); + DateTime.TryParse(dueDate.ToString(), out dataRif); + string answ = "text-secondary"; + if (dataRif < oggi) + { + answ = "text-danger"; + } + else if (dataRif < oggi.AddDays(14)) + { + answ = "text-warning"; + } + else + { + answ = "text-success"; + } + return answ; + } + /// /// Conversione a bool del valore /// diff --git a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx index fff0ca42..6ac4111d 100644 --- a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx +++ b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx @@ -66,68 +66,59 @@ - + + + + + + + + + -
-
- - - <%# Eval("CodArticolo") %> - +
+
-
- +
+
+ + + + + + + + +
-
- +
+
-
- +
+ cod. + +
+
+
-
-
- + - - - <%# Eval("Nome") %> -
<%# Eval("CodMacchina") %>
-
+ +
+ +
- + - - - - - - - - - -
- - (m:s) -
-
-
- - - - - - - - - - + diff --git a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs index 624e0597..312ea46e 100644 --- a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs @@ -203,6 +203,40 @@ namespace MP_ADM.WebUserControls resetSelezione(); } + /// + /// seleziona/deseleziona le righe indicate... + /// + /// + /// + protected void btnSelAll_Click(object sender, EventArgs e) + { + // seleziono tutti i valori visibili nel datagrid + CheckBox chkbox = ((CheckBox)sender); + bool isChecked = chkbox.Checked; + if (!isChecked) + { + chkbox.ToolTip = traduci("btnSelAll"); + } + else + { + chkbox.ToolTip = traduci("btnDeselAll"); + } + foreach (GridViewRow riga in grView.Rows) + { + ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked; + } +#if false + calcTotali(); +#endif + } + + protected void chkSelect_CheckedChanged(object sender, EventArgs e) + { +#if false + calcTotali(); +#endif + } + protected void chkUnassigned_CheckedChanged(object sender, EventArgs e) { updateGrView(); diff --git a/MP-ADM/WebUserControls/cmp_planApprove.ascx.cs b/MP-ADM/WebUserControls/cmp_planApprove.ascx.cs index 1b8765d9..39fc800c 100644 --- a/MP-ADM/WebUserControls/cmp_planApprove.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_planApprove.ascx.cs @@ -343,35 +343,6 @@ namespace MP_ADM.WebUserControls #region Public Methods - /// - /// cambia il colore del campo secondo la due date indicata - /// rosso: in ritardo (scaduta) - /// verde: > 2 week - /// giallo: altrimenti - /// - /// - /// - public string cssDueDate(object dueDate) - { - DateTime oggi = DateTime.Today; - DateTime dataRif = oggi.AddDays(-1); - DateTime.TryParse(dueDate.ToString(), out dataRif); - string answ = "text-secondary"; - if (dataRif < oggi) - { - answ = "text-danger"; - } - else if (dataRif < oggi.AddDays(14)) - { - answ = "text-warning"; - } - else - { - answ = "text-success"; - } - return answ; - } - public void doUpdate() { grView.DataBind(); diff --git a/MapoDb/DS_Plan.Designer.cs b/MapoDb/DS_Plan.Designer.cs index fd74ffff..a9a04a72 100644 --- a/MapoDb/DS_Plan.Designer.cs +++ b/MapoDb/DS_Plan.Designer.cs @@ -3250,6 +3250,10 @@ namespace MapoDb { private global::System.Data.DataColumn columnIdxMacchina; + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnNome; + private global::System.Data.DataColumn columnNumPezzi; private global::System.Data.DataColumn columnTCAssegnato; @@ -3262,11 +3266,19 @@ namespace MapoDb { private global::System.Data.DataColumn columnNote; + private global::System.Data.DataColumn columnRagSociale; + + private global::System.Data.DataColumn columnDescrGruppo; + + private global::System.Data.DataColumn columnnomeMacc; + + private global::System.Data.DataColumn columnDescrMacc; + + private global::System.Data.DataColumn columnDisegno; + private global::System.Data.DataColumn columnDescArticolo; - private global::System.Data.DataColumn columnCodMacchina; - - private global::System.Data.DataColumn columnNome; + private global::System.Data.DataColumn columnDescCliente; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] @@ -3365,6 +3377,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn NumPezziColumn { @@ -3413,6 +3441,46 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RagSocialeColumn { + get { + return this.columnRagSociale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DescrGruppoColumn { + get { + return this.columnDescrGruppo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn nomeMaccColumn { + get { + return this.columnnomeMacc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DescrMaccColumn { + get { + return this.columnDescrMacc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DisegnoColumn { + get { + return this.columnDisegno; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn DescArticoloColumn { @@ -3423,17 +3491,9 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn CodMacchinaColumn { + public global::System.Data.DataColumn DescClienteColumn { get { - return this.columnCodMacchina; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn NomeColumn { - get { - return this.columnNome; + return this.columnDescCliente; } } @@ -3482,15 +3542,21 @@ namespace MapoDb { string CodArticolo, string CodGruppo, string IdxMacchina, + string CodMacchina, + string Nome, int NumPezzi, decimal TCAssegnato, System.DateTime DueDate, int Priorita, int PzPallet, string Note, + string RagSociale, + string DescrGruppo, + string nomeMacc, + string DescrMacc, + string Disegno, string DescArticolo, - string CodMacchina, - string Nome) { + string DescCliente) { PromesseOUTRow rowPromesseOUTRow = ((PromesseOUTRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -3501,15 +3567,21 @@ namespace MapoDb { CodArticolo, CodGruppo, IdxMacchina, + CodMacchina, + Nome, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note, + RagSociale, + DescrGruppo, + nomeMacc, + DescrMacc, + Disegno, DescArticolo, - CodMacchina, - Nome}; + DescCliente}; rowPromesseOUTRow.ItemArray = columnValuesArray; this.Rows.Add(rowPromesseOUTRow); return rowPromesseOUTRow; @@ -3547,15 +3619,21 @@ namespace MapoDb { this.columnCodArticolo = base.Columns["CodArticolo"]; this.columnCodGruppo = base.Columns["CodGruppo"]; this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnNome = base.Columns["Nome"]; this.columnNumPezzi = base.Columns["NumPezzi"]; this.columnTCAssegnato = base.Columns["TCAssegnato"]; this.columnDueDate = base.Columns["DueDate"]; this.columnPriorita = base.Columns["Priorita"]; this.columnPzPallet = base.Columns["PzPallet"]; this.columnNote = base.Columns["Note"]; + this.columnRagSociale = base.Columns["RagSociale"]; + this.columnDescrGruppo = base.Columns["DescrGruppo"]; + this.columnnomeMacc = base.Columns["nomeMacc"]; + this.columnDescrMacc = base.Columns["DescrMacc"]; + this.columnDisegno = base.Columns["Disegno"]; this.columnDescArticolo = base.Columns["DescArticolo"]; - this.columnCodMacchina = base.Columns["CodMacchina"]; - this.columnNome = base.Columns["Nome"]; + this.columnDescCliente = base.Columns["DescCliente"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3577,6 +3655,10 @@ namespace MapoDb { base.Columns.Add(this.columnCodGruppo); this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnIdxMacchina); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); this.columnNumPezzi = new global::System.Data.DataColumn("NumPezzi", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumPezzi); this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -3589,12 +3671,20 @@ namespace MapoDb { base.Columns.Add(this.columnPzPallet); this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNote); + this.columnRagSociale = new global::System.Data.DataColumn("RagSociale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRagSociale); + this.columnDescrGruppo = new global::System.Data.DataColumn("DescrGruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrGruppo); + this.columnnomeMacc = new global::System.Data.DataColumn("nomeMacc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnomeMacc); + this.columnDescrMacc = new global::System.Data.DataColumn("DescrMacc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrMacc); + this.columnDisegno = new global::System.Data.DataColumn("Disegno", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDisegno); this.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDescArticolo); - this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodMacchina); - this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNome); + this.columnDescCliente = new global::System.Data.DataColumn("DescCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescCliente); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxPromessa}, true)); this.columnidxPromessa.AutoIncrement = true; @@ -3615,6 +3705,9 @@ namespace MapoDb { this.columnCodGruppo.MaxLength = 50; this.columnIdxMacchina.AllowDBNull = false; this.columnIdxMacchina.MaxLength = 50; + this.columnCodMacchina.ReadOnly = true; + this.columnCodMacchina.MaxLength = 50; + this.columnNome.MaxLength = 50; this.columnNumPezzi.AllowDBNull = false; this.columnTCAssegnato.AllowDBNull = false; this.columnDueDate.AllowDBNull = false; @@ -3622,11 +3715,18 @@ namespace MapoDb { this.columnPzPallet.AllowDBNull = false; this.columnNote.AllowDBNull = false; this.columnNote.MaxLength = 2500; + this.columnRagSociale.MaxLength = 500; + this.columnDescrGruppo.MaxLength = 250; + this.columnnomeMacc.ReadOnly = true; + this.columnnomeMacc.MaxLength = 50; + this.columnDescrMacc.ReadOnly = true; + this.columnDescrMacc.MaxLength = 50; + this.columnDisegno.ReadOnly = true; + this.columnDisegno.MaxLength = 50; this.columnDescArticolo.ReadOnly = true; - this.columnDescArticolo.MaxLength = 301; - this.columnCodMacchina.ReadOnly = true; - this.columnCodMacchina.MaxLength = 50; - this.columnNome.MaxLength = 50; + this.columnDescArticolo.MaxLength = 250; + this.columnDescCliente.ReadOnly = true; + this.columnDescCliente.MaxLength = 500; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -7746,6 +7846,38 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CodMacchina { + get { + try { + return ((string)(this[this.tablePromesseOUT.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodMacchina\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tablePromesseOUT.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.NomeColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int NumPezzi { @@ -7812,6 +7944,86 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string RagSociale { + get { + try { + return ((string)(this[this.tablePromesseOUT.RagSocialeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'RagSociale\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.RagSocialeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DescrGruppo { + get { + try { + return ((string)(this[this.tablePromesseOUT.DescrGruppoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrGruppo\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.DescrGruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string nomeMacc { + get { + try { + return ((string)(this[this.tablePromesseOUT.nomeMaccColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacc\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.nomeMaccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string DescrMacc { + get { + try { + return ((string)(this[this.tablePromesseOUT.DescrMaccColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrMacc\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.DescrMaccColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Disegno { + get { + try { + return ((string)(this[this.tablePromesseOUT.DisegnoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Disegno\' nella tabella \'PromesseOUT\' è DBNull.", e); + } + } + set { + this[this.tablePromesseOUT.DisegnoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string DescArticolo { @@ -7830,48 +8042,20 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string CodMacchina { + public string DescCliente { get { try { - return ((string)(this[this.tablePromesseOUT.CodMacchinaColumn])); + return ((string)(this[this.tablePromesseOUT.DescClienteColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodMacchina\' nella tabella \'PromesseOUT\' è DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescCliente\' nella tabella \'PromesseOUT\' è DBNull.", e); } } set { - this[this.tablePromesseOUT.CodMacchinaColumn] = value; + this[this.tablePromesseOUT.DescClienteColumn] = value; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string Nome { - get { - try { - return ((string)(this[this.tablePromesseOUT.NomeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'PromesseOUT\' è DBNull.", e); - } - } - set { - this[this.tablePromesseOUT.NomeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsDescArticoloNull() { - return this.IsNull(this.tablePromesseOUT.DescArticoloColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetDescArticoloNull() { - this[this.tablePromesseOUT.DescArticoloColumn] = global::System.Convert.DBNull; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsCodMacchinaNull() { @@ -7895,6 +8079,90 @@ namespace MapoDb { public void SetNomeNull() { this[this.tablePromesseOUT.NomeColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsRagSocialeNull() { + return this.IsNull(this.tablePromesseOUT.RagSocialeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetRagSocialeNull() { + this[this.tablePromesseOUT.RagSocialeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDescrGruppoNull() { + return this.IsNull(this.tablePromesseOUT.DescrGruppoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDescrGruppoNull() { + this[this.tablePromesseOUT.DescrGruppoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsnomeMaccNull() { + return this.IsNull(this.tablePromesseOUT.nomeMaccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetnomeMaccNull() { + this[this.tablePromesseOUT.nomeMaccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDescrMaccNull() { + return this.IsNull(this.tablePromesseOUT.DescrMaccColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDescrMaccNull() { + this[this.tablePromesseOUT.DescrMaccColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDisegnoNull() { + return this.IsNull(this.tablePromesseOUT.DisegnoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDisegnoNull() { + this[this.tablePromesseOUT.DisegnoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDescArticoloNull() { + return this.IsNull(this.tablePromesseOUT.DescArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDescArticoloNull() { + this[this.tablePromesseOUT.DescArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDescClienteNull() { + return this.IsNull(this.tablePromesseOUT.DescClienteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDescClienteNull() { + this[this.tablePromesseOUT.DescClienteColumn] = global::System.Convert.DBNull; + } } /// @@ -11204,85 +11472,22 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo"); tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); tableMapping.ColumnMappings.Add("NumPezzi", "NumPezzi"); tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); tableMapping.ColumnMappings.Add("DueDate", "DueDate"); tableMapping.ColumnMappings.Add("Priorita", "Priorita"); tableMapping.ColumnMappings.Add("PzPallet", "PzPallet"); tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("RagSociale", "RagSociale"); + tableMapping.ColumnMappings.Add("DescrGruppo", "DescrGruppo"); + tableMapping.ColumnMappings.Add("nomeMacc", "nomeMacc"); + tableMapping.ColumnMappings.Add("DescrMacc", "DescrMacc"); + tableMapping.ColumnMappings.Add("Disegno", "Disegno"); tableMapping.ColumnMappings.Add("DescArticolo", "DescArticolo"); - tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); - tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("DescCliente", "DescCliente"); this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[PromesseOUT] WHERE (([idxPromessa] = @Original_idxPromessa) AND ([KeyRichiesta] = @Original_KeyRichiesta) AND ([KeyBCode] = @Original_KeyBCode) AND ([Attivabile] = @Original_Attivabile) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodGruppo] = @Original_CodGruppo) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([NumPezzi] = @Original_NumPezzi) AND ([TCAssegnato] = @Original_TCAssegnato) AND ([DueDate] = @Original_DueDate) AND ([Priorita] = @Original_Priorita) AND ([PzPallet] = @Original_PzPallet) AND ([Note] = @Original_Note))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPromessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPromessa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyRichiesta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyBCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyBCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivabile", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivabile", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DueDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DueDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Priorita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priorita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[PromesseOUT] ([KeyRichiesta], [KeyBCode], [Attivabile], [IdxODL], [CodArticolo], [CodGruppo], [IdxMacchina], [NumPezzi], [TCAssegnato], [DueDate], [Priorita], [PzPallet], [Note]) VALUES (@KeyRichiesta, @KeyBCode, @Attivabile, @IdxODL, @CodArticolo, @CodGruppo, @IdxMacchina, @NumPezzi, @TCAssegnato, @DueDate, @Priorita, @PzPallet, @Note); -SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodGruppo, IdxMacchina, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note FROM PromesseOUT WHERE (idxPromessa = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyRichiesta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyBCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivabile", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DueDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priorita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PromesseOUT] SET [KeyRichiesta] = @KeyRichiesta, [KeyBCode] = @KeyBCode, [Attivabile] = @Attivabile, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [CodGruppo] = @CodGruppo, [IdxMacchina] = @IdxMacchina, [NumPezzi] = @NumPezzi, [TCAssegnato] = @TCAssegnato, [DueDate] = @DueDate, [Priorita] = @Priorita, [PzPallet] = @PzPallet, [Note] = @Note WHERE (([idxPromessa] = @Original_idxPromessa) AND ([KeyRichiesta] = @Original_KeyRichiesta) AND ([KeyBCode] = @Original_KeyBCode) AND ([Attivabile] = @Original_Attivabile) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodGruppo] = @Original_CodGruppo) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([NumPezzi] = @Original_NumPezzi) AND ([TCAssegnato] = @Original_TCAssegnato) AND ([DueDate] = @Original_DueDate) AND ([Priorita] = @Original_Priorita) AND ([PzPallet] = @Original_PzPallet) AND ([Note] = @Original_Note)); -SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodGruppo, IdxMacchina, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note FROM PromesseOUT WHERE (idxPromessa = @idxPromessa)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyRichiesta", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyBCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivabile", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DueDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priorita", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPromessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPromessa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyRichiesta", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KeyBCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KeyBCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivabile", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivabile", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodGruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodGruppo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DueDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DueDate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Priorita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priorita", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxPromessa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -11298,9 +11503,7 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Desc" + - "Articolo, CodGruppo, IdxMacchina, CodMacchina, Nome, NumPezzi, TCAssegnato, DueD" + - "ate, Priorita, PzPallet, Note\r\nFROM v_PODL_OUT_exp"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_PODL_OUT_exp"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -11432,336 +11635,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod return dataTable; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Plan.PromesseOUTDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DS_Plan dataSet) { - return this.Adapter.Update(dataSet, "PromesseOUT"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idxPromessa, string Original_KeyRichiesta, string Original_KeyBCode, bool Original_Attivabile, int Original_IdxODL, string Original_CodArticolo, string Original_CodGruppo, string Original_IdxMacchina, int Original_NumPezzi, decimal Original_TCAssegnato, System.DateTime Original_DueDate, int Original_Priorita, int Original_PzPallet, string Original_Note) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxPromessa)); - if ((Original_KeyRichiesta == null)) { - throw new global::System.ArgumentNullException("Original_KeyRichiesta"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_KeyRichiesta)); - } - if ((Original_KeyBCode == null)) { - throw new global::System.ArgumentNullException("Original_KeyBCode"); - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_KeyBCode)); - } - this.Adapter.DeleteCommand.Parameters[3].Value = ((bool)(Original_Attivabile)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxODL)); - if ((Original_CodArticolo == null)) { - throw new global::System.ArgumentNullException("Original_CodArticolo"); - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodArticolo)); - } - if ((Original_CodGruppo == null)) { - throw new global::System.ArgumentNullException("Original_CodGruppo"); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodGruppo)); - } - if ((Original_IdxMacchina == null)) { - throw new global::System.ArgumentNullException("Original_IdxMacchina"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); - } - this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_NumPezzi)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((decimal)(Original_TCAssegnato)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_DueDate)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((int)(Original_Priorita)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_PzPallet)); - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Note)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(string KeyRichiesta, string KeyBCode, bool Attivabile, int IdxODL, string CodArticolo, string CodGruppo, string IdxMacchina, int NumPezzi, decimal TCAssegnato, System.DateTime DueDate, int Priorita, int PzPallet, string Note) { - if ((KeyRichiesta == null)) { - throw new global::System.ArgumentNullException("KeyRichiesta"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(KeyRichiesta)); - } - if ((KeyBCode == null)) { - throw new global::System.ArgumentNullException("KeyBCode"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(KeyBCode)); - } - this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(Attivabile)); - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdxODL)); - if ((CodArticolo == null)) { - throw new global::System.ArgumentNullException("CodArticolo"); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodArticolo)); - } - if ((CodGruppo == null)) { - throw new global::System.ArgumentNullException("CodGruppo"); - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(CodGruppo)); - } - if ((IdxMacchina == null)) { - throw new global::System.ArgumentNullException("IdxMacchina"); - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(IdxMacchina)); - } - this.Adapter.InsertCommand.Parameters[7].Value = ((int)(NumPezzi)); - this.Adapter.InsertCommand.Parameters[8].Value = ((decimal)(TCAssegnato)); - this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(DueDate)); - this.Adapter.InsertCommand.Parameters[10].Value = ((int)(Priorita)); - this.Adapter.InsertCommand.Parameters[11].Value = ((int)(PzPallet)); - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Note)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string KeyRichiesta, - string KeyBCode, - bool Attivabile, - int IdxODL, - string CodArticolo, - string CodGruppo, - string IdxMacchina, - int NumPezzi, - decimal TCAssegnato, - System.DateTime DueDate, - int Priorita, - int PzPallet, - string Note, - int Original_idxPromessa, - string Original_KeyRichiesta, - string Original_KeyBCode, - bool Original_Attivabile, - int Original_IdxODL, - string Original_CodArticolo, - string Original_CodGruppo, - string Original_IdxMacchina, - int Original_NumPezzi, - decimal Original_TCAssegnato, - System.DateTime Original_DueDate, - int Original_Priorita, - int Original_PzPallet, - string Original_Note, - int idxPromessa) { - if ((KeyRichiesta == null)) { - throw new global::System.ArgumentNullException("KeyRichiesta"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(KeyRichiesta)); - } - if ((KeyBCode == null)) { - throw new global::System.ArgumentNullException("KeyBCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(KeyBCode)); - } - this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(Attivabile)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdxODL)); - if ((CodArticolo == null)) { - throw new global::System.ArgumentNullException("CodArticolo"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodArticolo)); - } - if ((CodGruppo == null)) { - throw new global::System.ArgumentNullException("CodGruppo"); - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(CodGruppo)); - } - if ((IdxMacchina == null)) { - throw new global::System.ArgumentNullException("IdxMacchina"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(IdxMacchina)); - } - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(NumPezzi)); - this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(TCAssegnato)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(DueDate)); - this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Priorita)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(PzPallet)); - if ((Note == null)) { - throw new global::System.ArgumentNullException("Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Note)); - } - this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_idxPromessa)); - if ((Original_KeyRichiesta == null)) { - throw new global::System.ArgumentNullException("Original_KeyRichiesta"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_KeyRichiesta)); - } - if ((Original_KeyBCode == null)) { - throw new global::System.ArgumentNullException("Original_KeyBCode"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_KeyBCode)); - } - this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_Attivabile)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IdxODL)); - if ((Original_CodArticolo == null)) { - throw new global::System.ArgumentNullException("Original_CodArticolo"); - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_CodArticolo)); - } - if ((Original_CodGruppo == null)) { - throw new global::System.ArgumentNullException("Original_CodGruppo"); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_CodGruppo)); - } - if ((Original_IdxMacchina == null)) { - throw new global::System.ArgumentNullException("Original_IdxMacchina"); - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_IdxMacchina)); - } - this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_NumPezzi)); - this.Adapter.UpdateCommand.Parameters[22].Value = ((decimal)(Original_TCAssegnato)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_DueDate)); - this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_Priorita)); - this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_PzPallet)); - if ((Original_Note == null)) { - throw new global::System.ArgumentNullException("Original_Note"); - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_Note)); - } - this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(idxPromessa)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string KeyRichiesta, - string KeyBCode, - bool Attivabile, - int IdxODL, - string CodArticolo, - string CodGruppo, - string IdxMacchina, - int NumPezzi, - decimal TCAssegnato, - System.DateTime DueDate, - int Priorita, - int PzPallet, - string Note, - int Original_idxPromessa, - string Original_KeyRichiesta, - string Original_KeyBCode, - bool Original_Attivabile, - int Original_IdxODL, - string Original_CodArticolo, - string Original_CodGruppo, - string Original_IdxMacchina, - int Original_NumPezzi, - decimal Original_TCAssegnato, - System.DateTime Original_DueDate, - int Original_Priorita, - int Original_PzPallet, - string Original_Note) { - return this.Update(KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodGruppo, IdxMacchina, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note, Original_idxPromessa, Original_KeyRichiesta, Original_KeyBCode, Original_Attivabile, Original_IdxODL, Original_CodArticolo, Original_CodGruppo, Original_IdxMacchina, Original_NumPezzi, Original_TCAssegnato, Original_DueDate, Original_Priorita, Original_PzPallet, Original_Note, Original_idxPromessa); - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -13614,8 +13487,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod private PromesseINTableAdapter _promesseINTableAdapter; - private PromesseOUTTableAdapter _promesseOUTTableAdapter; - private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -13645,20 +13516,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public PromesseOUTTableAdapter PromesseOUTTableAdapter { - get { - return this._promesseOUTTableAdapter; - } - set { - this._promesseOUTTableAdapter = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -13682,10 +13539,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod && (this._promesseINTableAdapter.Connection != null))) { return this._promesseINTableAdapter.Connection; } - if (((this._promesseOUTTableAdapter != null) - && (this._promesseOUTTableAdapter.Connection != null))) { - return this._promesseOUTTableAdapter.Connection; - } return null; } set { @@ -13702,9 +13555,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod if ((this._promesseINTableAdapter != null)) { count = (count + 1); } - if ((this._promesseOUTTableAdapter != null)) { - count = (count + 1); - } return count; } } @@ -13725,15 +13575,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod allChangedRows.AddRange(updatedRows); } } - if ((this._promesseOUTTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.PromesseOUT.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._promesseOUTTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } return result; } @@ -13752,14 +13593,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod allAddedRows.AddRange(addedRows); } } - if ((this._promesseOUTTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.PromesseOUT.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._promesseOUTTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } return result; } @@ -13770,14 +13603,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_Plan dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._promesseOUTTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.PromesseOUT.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._promesseOUTTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._promesseINTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.PromesseIN.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -13830,11 +13655,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } - if (((this._promesseOUTTableAdapter != null) - && (this.MatchTableAdapterConnection(this._promesseOUTTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + - "a stessa stringa di connessione."); - } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" + @@ -13877,15 +13697,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod adaptersWithAcceptChangesDuringUpdate.Add(this._promesseINTableAdapter.Adapter); } } - if ((this._promesseOUTTableAdapter != null)) { - revertConnections.Add(this._promesseOUTTableAdapter, this._promesseOUTTableAdapter.Connection); - this._promesseOUTTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._promesseOUTTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._promesseOUTTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._promesseOUTTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._promesseOUTTableAdapter.Adapter); - } - } // //---- Perform updates ----------- // @@ -13948,10 +13759,6 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod this._promesseINTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._promesseINTableAdapter])); this._promesseINTableAdapter.Transaction = null; } - if ((this._promesseOUTTableAdapter != null)) { - this._promesseOUTTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._promesseOUTTableAdapter])); - this._promesseOUTTableAdapter.Transaction = null; - } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/MapoDb/DS_Plan.xsd b/MapoDb/DS_Plan.xsd index 063e71da..40719ef4 100644 --- a/MapoDb/DS_Plan.xsd +++ b/MapoDb/DS_Plan.xsd @@ -350,92 +350,14 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod - - - - DELETE FROM [dbo].[PromesseOUT] WHERE (([idxPromessa] = @Original_idxPromessa) AND ([KeyRichiesta] = @Original_KeyRichiesta) AND ([KeyBCode] = @Original_KeyBCode) AND ([Attivabile] = @Original_Attivabile) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodGruppo] = @Original_CodGruppo) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([NumPezzi] = @Original_NumPezzi) AND ([TCAssegnato] = @Original_TCAssegnato) AND ([DueDate] = @Original_DueDate) AND ([Priorita] = @Original_Priorita) AND ([PzPallet] = @Original_PzPallet) AND ([Note] = @Original_Note)) - - - - - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[PromesseOUT] ([KeyRichiesta], [KeyBCode], [Attivabile], [IdxODL], [CodArticolo], [CodGruppo], [IdxMacchina], [NumPezzi], [TCAssegnato], [DueDate], [Priorita], [PzPallet], [Note]) VALUES (@KeyRichiesta, @KeyBCode, @Attivabile, @IdxODL, @CodArticolo, @CodGruppo, @IdxMacchina, @NumPezzi, @TCAssegnato, @DueDate, @Priorita, @PzPallet, @Note); -SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodGruppo, IdxMacchina, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note FROM PromesseOUT WHERE (idxPromessa = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - + - - SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, DescArticolo, CodGruppo, IdxMacchina, CodMacchina, Nome, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note -FROM v_PODL_OUT_exp + + SELECT * +FROM v_PODL_OUT_exp - - - UPDATE [dbo].[PromesseOUT] SET [KeyRichiesta] = @KeyRichiesta, [KeyBCode] = @KeyBCode, [Attivabile] = @Attivabile, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [CodGruppo] = @CodGruppo, [IdxMacchina] = @IdxMacchina, [NumPezzi] = @NumPezzi, [TCAssegnato] = @TCAssegnato, [DueDate] = @DueDate, [Priorita] = @Priorita, [PzPallet] = @PzPallet, [Note] = @Note WHERE (([idxPromessa] = @Original_idxPromessa) AND ([KeyRichiesta] = @Original_KeyRichiesta) AND ([KeyBCode] = @Original_KeyBCode) AND ([Attivabile] = @Original_Attivabile) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([CodGruppo] = @Original_CodGruppo) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([NumPezzi] = @Original_NumPezzi) AND ([TCAssegnato] = @Original_TCAssegnato) AND ([DueDate] = @Original_DueDate) AND ([Priorita] = @Original_Priorita) AND ([PzPallet] = @Original_PzPallet) AND ([Note] = @Original_Note)); -SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodGruppo, IdxMacchina, NumPezzi, TCAssegnato, DueDate, Priorita, PzPallet, Note FROM PromesseOUT WHERE (idxPromessa = @idxPromessa) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -447,15 +369,21 @@ SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, Cod + + + + + + + - - + @@ -1120,6 +1048,20 @@ ORDER BY TotOreRich DESC + + + + + + + + + + + + + + @@ -1132,24 +1074,52 @@ ORDER BY TotOreRich DESC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - - - - + diff --git a/MapoDb/DS_Plan.xss b/MapoDb/DS_Plan.xss index 11010fe7..10a89355 100644 --- a/MapoDb/DS_Plan.xss +++ b/MapoDb/DS_Plan.xss @@ -4,26 +4,26 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - - - - - - - - - - - + + + + + + + + + + + - + 826 @@ -39,7 +39,7 @@ - + 1419