Merge branch 'release/AddMpIoArtMethod'

This commit is contained in:
Samuele Locatelli
2022-10-07 09:27:05 +02:00
6 changed files with 203 additions and 65 deletions
+46
View File
@@ -510,6 +510,52 @@ namespace MP_IO.Controllers
{ }
return answ;
}
/// <summary>
/// Recupera elenco articoli dei PODL correnti:
///
/// GET: IOB/getArtCurrPODL
/// </summary>
/// <returns>Json contenente lista oggetti ARTICOLI serializzati</returns>
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;
}
/// <summary>
/// Recupera elenco articoli USATI:
///
/// GET: IOB/getArtUsed
/// </summary>
/// <returns>Json contenente lista oggetti ARTICOLI serializzati</returns>
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;
}
/// <summary>
/// Recupera ODL corrente x macchina:
+79 -26
View File
@@ -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);
}
}
+27 -14
View File
@@ -12,49 +12,54 @@
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.Dossiers" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([DataType] = @Original_DataType))</CommandText>
<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))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<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())</CommandText>
<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())</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM dbo.Dossiers</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM Dossiers</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<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)</CommandText>
<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)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Valore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IdxMacchina" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRif" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRif" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArticolo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArticolo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="IdxDossier" ColumnName="IdxDossier" DataSourceName="MoonPro.dbo.Dossiers" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
@@ -67,6 +72,7 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
<Mapping SourceColumn="IdxMacchina" DataSetColumn="IdxMacchina" />
<Mapping SourceColumn="DtRif" DataSetColumn="DtRif" />
<Mapping SourceColumn="IdxODL" DataSetColumn="IdxODL" />
<Mapping SourceColumn="CodArticolo" DataSetColumn="CodArticolo" />
<Mapping SourceColumn="DataType" DataSetColumn="DataType" />
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
</Mappings>
@@ -102,27 +108,34 @@ SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, DataType, Valore FROM Dossiers WH
<xs:element name="DS_DossPar" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DS_DossPar" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DS_DossPar">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Dossiers" msprop:Generator_RowClassName="DossiersRow" msprop:Generator_RowEvHandlerName="DossiersRowChangeEventHandler" msprop:Generator_RowDeletedName="DossiersRowDeleted" msprop:Generator_RowDeletingName="DossiersRowDeleting" msprop:Generator_RowEvArgName="DossiersRowChangeEvent" msprop:Generator_TablePropName="Dossiers" msprop:Generator_RowChangedName="DossiersRowChanged" msprop:Generator_UserTableName="Dossiers" msprop:Generator_RowChangingName="DossiersRowChanging" msprop:Generator_TableClassName="DossiersDataTable" msprop:Generator_TableVarName="tableDossiers">
<xs:element name="Dossiers" msprop:Generator_RowEvHandlerName="DossiersRowChangeEventHandler" msprop:Generator_RowDeletedName="DossiersRowDeleted" msprop:Generator_RowDeletingName="DossiersRowDeleting" msprop:Generator_RowEvArgName="DossiersRowChangeEvent" msprop:Generator_TablePropName="Dossiers" msprop:Generator_RowChangedName="DossiersRowChanged" msprop:Generator_UserTableName="Dossiers" msprop:Generator_RowChangingName="DossiersRowChanging" msprop:Generator_RowClassName="DossiersRow" msprop:Generator_TableClassName="DossiersDataTable" msprop:Generator_TableVarName="tableDossiers">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxDossier" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="IdxDossier" msprop:Generator_ColumnPropNameInTable="IdxDossierColumn" msprop:Generator_ColumnPropNameInRow="IdxDossier" msprop:Generator_ColumnVarNameInTable="columnIdxDossier" type="xs:int" />
<xs:element name="IdxMacchina" msprop:Generator_UserColumnName="IdxMacchina" msprop:Generator_ColumnPropNameInTable="IdxMacchinaColumn" msprop:Generator_ColumnPropNameInRow="IdxMacchina" msprop:Generator_ColumnVarNameInTable="columnIdxMacchina">
<xs:element name="IdxDossier" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdxDossierColumn" msprop:Generator_ColumnPropNameInRow="IdxDossier" msprop:Generator_UserColumnName="IdxDossier" msprop:Generator_ColumnVarNameInTable="columnIdxDossier" type="xs:int" />
<xs:element name="IdxMacchina" msprop:Generator_ColumnPropNameInRow="IdxMacchina" msprop:Generator_ColumnPropNameInTable="IdxMacchinaColumn" msprop:Generator_ColumnVarNameInTable="columnIdxMacchina" msprop:Generator_UserColumnName="IdxMacchina">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DtRif" msprop:Generator_UserColumnName="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_ColumnVarNameInTable="columnDtRif" type="xs:dateTime" />
<xs:element name="IdxODL" msprop:Generator_UserColumnName="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnVarNameInTable="columnIdxODL" type="xs:int" />
<xs:element name="DataType" msprop:Generator_UserColumnName="DataType" msprop:Generator_ColumnPropNameInTable="DataTypeColumn" msprop:Generator_ColumnPropNameInRow="DataType" msprop:Generator_ColumnVarNameInTable="columnDataType">
<xs:element name="DtRif" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnVarNameInTable="columnDtRif" msprop:Generator_UserColumnName="DtRif" type="xs:dateTime" />
<xs:element name="IdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
<xs:element name="CodArticolo" msprop:Generator_ColumnPropNameInRow="CodArticolo" msprop:Generator_ColumnPropNameInTable="CodArticoloColumn" msprop:Generator_ColumnVarNameInTable="columnCodArticolo" msprop:Generator_UserColumnName="CodArticolo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Valore" msprop:Generator_UserColumnName="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnVarNameInTable="columnValore">
<xs:element name="DataType" msprop:Generator_ColumnPropNameInRow="DataType" msprop:Generator_ColumnPropNameInTable="DataTypeColumn" msprop:Generator_ColumnVarNameInTable="columnDataType" msprop:Generator_UserColumnName="DataType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Valore" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_ColumnVarNameInTable="columnValore" msprop:Generator_UserColumnName="Valore">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
+1 -1
View File
@@ -6,7 +6,7 @@
</autogenerated>-->
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Dossiers" ZOrder="1" X="70" Y="70" Height="229" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:Dossiers" ZOrder="1" X="70" Y="70" Height="248" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
</Shapes>
<Connectors />
</DiagramLayout>
+10
View File
@@ -716,6 +716,16 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ART_getByCurrPODL" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCurrPODL" GetMethodModifier="Public" GetMethodName="getByCurrPODL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCurrPODL" UserSourceName="getByCurrPODL">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ART_getByCurrPODL</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_ART_getPaged" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getPaged" GetMethodModifier="Public" GetMethodName="getPaged" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getPaged" UserSourceName="getPaged">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
+40 -24
View File
@@ -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<int> maximumRows, global::System.Nullable<int> 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<int> maximumRows, global::System.Nullable<int> 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;
}