diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs
index bb956c18..388d4eb9 100644
--- a/MP-IO/Controllers/IOBController.cs
+++ b/MP-IO/Controllers/IOBController.cs
@@ -510,6 +510,52 @@ namespace MP_IO.Controllers
{ }
return answ;
}
+ ///
+ /// Recupera elenco articoli dei PODL correnti:
+ ///
+ /// GET: IOB/getArtCurrPODL
+ ///
+ /// Json contenente lista oggetti ARTICOLI serializzati
+ public string getArtCurrPODL()
+ {
+ string answ = "";
+
+ // init obj DataLayer
+ DataLayer DataLayerObj = new DataLayer();
+ try
+ {
+ // recupero dati macchina...
+ var elencoArt = DataLayerObj.taAnagArt.getByCurrPODL();
+
+ answ = JsonConvert.SerializeObject(elencoArt);
+ }
+ catch
+ { }
+ return answ;
+ }
+ ///
+ /// Recupera elenco articoli USATI:
+ ///
+ /// GET: IOB/getArtUsed
+ ///
+ /// Json contenente lista oggetti ARTICOLI serializzati
+ public string getArtUsed()
+ {
+ string answ = "";
+
+ // init obj DataLayer
+ DataLayer DataLayerObj = new DataLayer();
+ try
+ {
+ // recupero dati macchina...
+ var elencoArt = DataLayerObj.taAnagArt.getUsed();
+
+ answ = JsonConvert.SerializeObject(elencoArt);
+ }
+ catch
+ { }
+ return answ;
+ }
///
/// Recupera ODL corrente x macchina:
diff --git a/MapoDb/DS_DossPar.Designer.cs b/MapoDb/DS_DossPar.Designer.cs
index bf5145ea..6ec84c1f 100644
--- a/MapoDb/DS_DossPar.Designer.cs
+++ b/MapoDb/DS_DossPar.Designer.cs
@@ -287,6 +287,8 @@ namespace MapoDb {
private global::System.Data.DataColumn columnIdxODL;
+ private global::System.Data.DataColumn columnCodArticolo;
+
private global::System.Data.DataColumn columnDataType;
private global::System.Data.DataColumn columnValore;
@@ -356,6 +358,14 @@ namespace MapoDb {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public global::System.Data.DataColumn CodArticoloColumn {
+ get {
+ return this.columnCodArticolo;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn DataTypeColumn {
@@ -409,13 +419,14 @@ namespace MapoDb {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
- public DossiersRow AddDossiersRow(string IdxMacchina, System.DateTime DtRif, int IdxODL, string DataType, string Valore) {
+ public DossiersRow AddDossiersRow(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore) {
DossiersRow rowDossiersRow = ((DossiersRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
IdxMacchina,
DtRif,
IdxODL,
+ CodArticolo,
DataType,
Valore};
rowDossiersRow.ItemArray = columnValuesArray;
@@ -451,6 +462,7 @@ namespace MapoDb {
this.columnIdxMacchina = base.Columns["IdxMacchina"];
this.columnDtRif = base.Columns["DtRif"];
this.columnIdxODL = base.Columns["IdxODL"];
+ this.columnCodArticolo = base.Columns["CodArticolo"];
this.columnDataType = base.Columns["DataType"];
this.columnValore = base.Columns["Valore"];
}
@@ -466,6 +478,8 @@ namespace MapoDb {
base.Columns.Add(this.columnDtRif);
this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxODL);
+ this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodArticolo);
this.columnDataType = new global::System.Data.DataColumn("DataType", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDataType);
this.columnValore = new global::System.Data.DataColumn("Valore", typeof(string), null, global::System.Data.MappingType.Element);
@@ -482,6 +496,8 @@ namespace MapoDb {
this.columnIdxMacchina.MaxLength = 50;
this.columnDtRif.AllowDBNull = false;
this.columnIdxODL.AllowDBNull = false;
+ this.columnCodArticolo.AllowDBNull = false;
+ this.columnCodArticolo.MaxLength = 50;
this.columnDataType.AllowDBNull = false;
this.columnDataType.MaxLength = 50;
this.columnValore.AllowDBNull = false;
@@ -670,6 +686,17 @@ namespace MapoDb {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ public string CodArticolo {
+ get {
+ return ((string)(this[this.tableDossiers.CodArticoloColumn]));
+ }
+ set {
+ this[this.tableDossiers.CodArticoloColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string DataType {
@@ -856,44 +883,47 @@ namespace MapoDb.DS_DossParTableAdapters {
tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina");
tableMapping.ColumnMappings.Add("DtRif", "DtRif");
tableMapping.ColumnMappings.Add("IdxODL", "IdxODL");
+ tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo");
tableMapping.ColumnMappings.Add("DataType", "DataType");
tableMapping.ColumnMappings.Add("Valore", "Valore");
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].[Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([I" +
- "dxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxOD" +
- "L] = @Original_IdxODL) AND ([DataType] = @Original_DataType))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", 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_DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", 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_DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", 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].[Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @DataType, @Valore);
-SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [CodArticolo], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @CodArticolo, @DataType, @Valore);
+SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
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("@DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", 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("@DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Valore", 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].[Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([DataType] = @Original_DataType));
-SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType));
+SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
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("@DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", 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("@DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Valore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", 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_DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", 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_DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -911,8 +941,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM dbo.Dossiers" +
- "";
+ this._commandCollection[0].CommandText = "SELECT *\r\nFROM Dossiers";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -1012,7 +1041,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_DataType) {
+ public virtual int Delete(int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxDossier));
if ((Original_IdxMacchina == null)) {
throw new global::System.ArgumentNullException("Original_IdxMacchina");
@@ -1022,11 +1051,17 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
}
this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DtRif));
this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_IdxODL));
+ if ((Original_CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodArticolo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodArticolo));
+ }
if ((Original_DataType == null)) {
throw new global::System.ArgumentNullException("Original_DataType");
}
else {
- this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_DataType));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_DataType));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -1048,7 +1083,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IdxMacchina, System.DateTime DtRif, int IdxODL, string DataType, string Valore) {
+ public virtual int Insert(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore) {
if ((IdxMacchina == null)) {
throw new global::System.ArgumentNullException("IdxMacchina");
}
@@ -1057,17 +1092,23 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
}
this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DtRif));
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxODL));
+ if ((CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("CodArticolo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodArticolo));
+ }
if ((DataType == null)) {
throw new global::System.ArgumentNullException("DataType");
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(DataType));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(DataType));
}
if ((Valore == null)) {
throw new global::System.ArgumentNullException("Valore");
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Valore));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Valore));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -1089,7 +1130,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IdxMacchina, System.DateTime DtRif, int IdxODL, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_DataType, int IdxDossier) {
+ public virtual int Update(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType, int IdxDossier) {
if ((IdxMacchina == null)) {
throw new global::System.ArgumentNullException("IdxMacchina");
}
@@ -1098,34 +1139,46 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
}
this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DtRif));
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxODL));
+ if ((CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("CodArticolo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodArticolo));
+ }
if ((DataType == null)) {
throw new global::System.ArgumentNullException("DataType");
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(DataType));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(DataType));
}
if ((Valore == null)) {
throw new global::System.ArgumentNullException("Valore");
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Valore));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Valore));
}
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxDossier));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxDossier));
if ((Original_IdxMacchina == null)) {
throw new global::System.ArgumentNullException("Original_IdxMacchina");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_IdxMacchina));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtRif));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxODL));
+ if ((Original_CodArticolo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodArticolo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodArticolo));
}
- this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_DtRif));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxODL));
if ((Original_DataType == null)) {
throw new global::System.ArgumentNullException("Original_DataType");
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_DataType));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_DataType));
}
- this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IdxDossier));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(IdxDossier));
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)) {
@@ -1146,8 +1199,8 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 IdxMacchina, System.DateTime DtRif, int IdxODL, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_DataType) {
- return this.Update(IdxMacchina, DtRif, IdxODL, DataType, Valore, Original_IdxDossier, Original_IdxMacchina, Original_DtRif, Original_IdxODL, Original_DataType, Original_IdxDossier);
+ public virtual int Update(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType) {
+ return this.Update(IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore, Original_IdxDossier, Original_IdxMacchina, Original_DtRif, Original_IdxODL, Original_CodArticolo, Original_DataType, Original_IdxDossier);
}
}
diff --git a/MapoDb/DS_DossPar.xsd b/MapoDb/DS_DossPar.xsd
index c5674d6c..ca398e15 100644
--- a/MapoDb/DS_DossPar.xsd
+++ b/MapoDb/DS_DossPar.xsd
@@ -12,49 +12,54 @@
- DELETE FROM [dbo].[Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([DataType] = @Original_DataType))
+ DELETE FROM [Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType))
+
- INSERT INTO [dbo].[Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @DataType, @Valore);
-SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())
+ INSERT INTO [Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [CodArticolo], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @CodArticolo, @DataType, @Valore);
+SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())
+
-
- SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM dbo.Dossiers
+
+ SELECT *
+FROM Dossiers
- UPDATE [dbo].[Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([DataType] = @Original_DataType));
-SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)
+ UPDATE [Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType));
+SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)
+
+
@@ -67,6 +72,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
+
@@ -102,27 +108,34 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
-
+
-
-
+
+
-
-
-
+
+
+
-
+
+
+
+
+
+
+
+
diff --git a/MapoDb/DS_DossPar.xss b/MapoDb/DS_DossPar.xss
index a721b098..67cc0030 100644
--- a/MapoDb/DS_DossPar.xss
+++ b/MapoDb/DS_DossPar.xss
@@ -6,7 +6,7 @@
-->
-
+
\ No newline at end of file
diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd
index e2934be5..0858febe 100644
--- a/MapoDb/DS_ProdTempi.xsd
+++ b/MapoDb/DS_ProdTempi.xsd
@@ -716,6 +716,16 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
+
+
+
+ dbo.stp_ART_getByCurrPODL
+
+
+
+
+
+
diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs
index 16f80254..f2d03013 100644
--- a/MapoDb/DS_ProdTempi1.Designer.cs
+++ b/MapoDb/DS_ProdTempi1.Designer.cs
@@ -19035,7 +19035,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM v_AnagArticoli";
@@ -19061,43 +19061,48 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "dbo.stp_ART_getPaged";
+ this._commandCollection[4].CommandText = "dbo.stp_ART_getByCurrPODL";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
- this._commandCollection[5].CommandText = "dbo.stp_ART_getUsed";
+ this._commandCollection[5].CommandText = "dbo.stp_ART_getPaged";
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[6].Connection = this.Connection;
- this._commandCollection[6].CommandText = "dbo.stp_ART_rowCount";
+ this._commandCollection[6].CommandText = "dbo.stp_ART_getUsed";
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
- this._commandCollection[7].CommandText = "dbo.stp_ART_setNewRev";
+ this._commandCollection[7].CommandText = "dbo.stp_ART_rowCount";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[8].Connection = this.Connection;
- this._commandCollection[8].CommandText = "dbo.stp_ART_update";
+ this._commandCollection[8].CommandText = "dbo.stp_ART_setNewRev";
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[9].Connection = this.Connection;
+ this._commandCollection[9].CommandText = "dbo.stp_ART_update";
+ this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -19145,8 +19150,19 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable maximumRows, global::System.Nullable startRowIndex, string orderByCol, string searchVal, string tipo) {
+ public virtual DS_ProdTempi.AnagArticoliDataTable getByCurrPODL() {
this.Adapter.SelectCommand = this.CommandCollection[4];
+ DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable maximumRows, global::System.Nullable startRowIndex, string orderByCol, string searchVal, string tipo) {
+ this.Adapter.SelectCommand = this.CommandCollection[5];
if ((maximumRows.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maximumRows.Value));
}
@@ -19187,7 +19203,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_ProdTempi.AnagArticoliDataTable getUsed() {
- this.Adapter.SelectCommand = this.CommandCollection[5];
+ this.Adapter.SelectCommand = this.CommandCollection[6];
DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -19532,7 +19548,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual object rowCount(string searchVal, string tipo) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((searchVal == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -19572,7 +19588,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int setNewRev(string Original_CodArticolo) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
if ((Original_CodArticolo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -19600,7 +19616,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int updateQry(string Original_CodArticolo, string DescArticolo, string CurrRev, string CodArticolo, string Disegno, string Tipo) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
if ((Original_CodArticolo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}