Fix tag2macchine con insert da DDL... iniziato inserimento dell'elenco multiselezione

This commit is contained in:
Samuele E. Locatelli
2015-11-24 11:48:10 +01:00
parent eff9c44fe2
commit 9be4998d00
28 changed files with 1101 additions and 190 deletions
+198 -52
View File
@@ -1572,12 +1572,16 @@ namespace GIM_data {
private global::System.Data.DataColumn columnCodCostruttore;
private global::System.Data.DataColumn columnCodSomaschini;
private global::System.Data.DataColumn columnCodInterno;
private global::System.Data.DataColumn columnQtaMin;
private global::System.Data.DataColumn columnQtaLotto;
private global::System.Data.DataColumn columnFamiglia;
private global::System.Data.DataColumn columnValore;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagItemsDataTable() {
@@ -1645,9 +1649,9 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CodSomaschiniColumn {
public global::System.Data.DataColumn CodInternoColumn {
get {
return this.columnCodSomaschini;
return this.columnCodInterno;
}
}
@@ -1667,6 +1671,22 @@ namespace GIM_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn FamigliaColumn {
get {
return this.columnFamiglia;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn ValoreColumn {
get {
return this.columnValore;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1704,16 +1724,18 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagItemsRow AddAnagItemsRow(int idxItem, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto) {
public AnagItemsRow AddAnagItemsRow(int idxItem, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, int QtaMin, int QtaLotto, string Famiglia, decimal Valore) {
AnagItemsRow rowAnagItemsRow = ((AnagItemsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
idxItem,
Descrizione,
NomeCostruttore,
CodCostruttore,
CodSomaschini,
CodInterno,
QtaMin,
QtaLotto};
QtaLotto,
Famiglia,
Valore};
rowAnagItemsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagItemsRow);
return rowAnagItemsRow;
@@ -1747,9 +1769,11 @@ namespace GIM_data {
this.columnDescrizione = base.Columns["Descrizione"];
this.columnNomeCostruttore = base.Columns["NomeCostruttore"];
this.columnCodCostruttore = base.Columns["CodCostruttore"];
this.columnCodSomaschini = base.Columns["CodSomaschini"];
this.columnCodInterno = base.Columns["CodInterno"];
this.columnQtaMin = base.Columns["QtaMin"];
this.columnQtaLotto = base.Columns["QtaLotto"];
this.columnFamiglia = base.Columns["Famiglia"];
this.columnValore = base.Columns["Valore"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1763,12 +1787,16 @@ namespace GIM_data {
base.Columns.Add(this.columnNomeCostruttore);
this.columnCodCostruttore = new global::System.Data.DataColumn("CodCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodCostruttore);
this.columnCodSomaschini = new global::System.Data.DataColumn("CodSomaschini", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodSomaschini);
this.columnCodInterno = new global::System.Data.DataColumn("CodInterno", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodInterno);
this.columnQtaMin = new global::System.Data.DataColumn("QtaMin", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaMin);
this.columnQtaLotto = new global::System.Data.DataColumn("QtaLotto", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaLotto);
this.columnFamiglia = new global::System.Data.DataColumn("Famiglia", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFamiglia);
this.columnValore = new global::System.Data.DataColumn("Valore", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnValore);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidxItem}, true));
this.columnidxItem.AllowDBNull = false;
@@ -1779,10 +1807,13 @@ namespace GIM_data {
this.columnNomeCostruttore.MaxLength = 250;
this.columnCodCostruttore.AllowDBNull = false;
this.columnCodCostruttore.MaxLength = 250;
this.columnCodSomaschini.AllowDBNull = false;
this.columnCodSomaschini.MaxLength = 50;
this.columnCodInterno.AllowDBNull = false;
this.columnCodInterno.MaxLength = 50;
this.columnQtaMin.AllowDBNull = false;
this.columnQtaLotto.AllowDBNull = false;
this.columnFamiglia.AllowDBNull = false;
this.columnFamiglia.MaxLength = 50;
this.columnValore.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1926,7 +1957,7 @@ namespace GIM_data {
private global::System.Data.DataColumn columnCodCostruttore;
private global::System.Data.DataColumn columnCodSomaschini;
private global::System.Data.DataColumn columnCodInterno;
private global::System.Data.DataColumn columnQtaMin;
@@ -2019,9 +2050,9 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CodSomaschiniColumn {
public global::System.Data.DataColumn CodInternoColumn {
get {
return this.columnCodSomaschini;
return this.columnCodInterno;
}
}
@@ -2126,7 +2157,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public StatoMagRow AddStatoMagRow(int idxItem, string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, decimal Valore, int Giacenza, string CodLocazione, string DescrLocazione, string Note, System.DateTime dtLastUpd) {
public StatoMagRow AddStatoMagRow(int idxItem, string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodInterno, int QtaMin, int QtaLotto, decimal Valore, int Giacenza, string CodLocazione, string DescrLocazione, string Note, System.DateTime dtLastUpd) {
StatoMagRow rowStatoMagRow = ((StatoMagRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
idxItem,
@@ -2134,7 +2165,7 @@ namespace GIM_data {
Descrizione,
NomeCostruttore,
CodCostruttore,
CodSomaschini,
CodInterno,
QtaMin,
QtaLotto,
Valore,
@@ -2177,7 +2208,7 @@ namespace GIM_data {
this.columnDescrizione = base.Columns["Descrizione"];
this.columnNomeCostruttore = base.Columns["NomeCostruttore"];
this.columnCodCostruttore = base.Columns["CodCostruttore"];
this.columnCodSomaschini = base.Columns["CodSomaschini"];
this.columnCodInterno = base.Columns["CodInterno"];
this.columnQtaMin = base.Columns["QtaMin"];
this.columnQtaLotto = base.Columns["QtaLotto"];
this.columnValore = base.Columns["Valore"];
@@ -2201,8 +2232,8 @@ namespace GIM_data {
base.Columns.Add(this.columnNomeCostruttore);
this.columnCodCostruttore = new global::System.Data.DataColumn("CodCostruttore", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodCostruttore);
this.columnCodSomaschini = new global::System.Data.DataColumn("CodSomaschini", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodSomaschini);
this.columnCodInterno = new global::System.Data.DataColumn("CodInterno", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodInterno);
this.columnQtaMin = new global::System.Data.DataColumn("QtaMin", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaMin);
this.columnQtaLotto = new global::System.Data.DataColumn("QtaLotto", typeof(int), null, global::System.Data.MappingType.Element);
@@ -2232,8 +2263,8 @@ namespace GIM_data {
this.columnNomeCostruttore.MaxLength = 250;
this.columnCodCostruttore.AllowDBNull = false;
this.columnCodCostruttore.MaxLength = 250;
this.columnCodSomaschini.AllowDBNull = false;
this.columnCodSomaschini.MaxLength = 50;
this.columnCodInterno.AllowDBNull = false;
this.columnCodInterno.MaxLength = 50;
this.columnQtaMin.AllowDBNull = false;
this.columnQtaLotto.AllowDBNull = false;
this.columnValore.AllowDBNull = false;
@@ -4236,12 +4267,12 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CodSomaschini {
public string CodInterno {
get {
return ((string)(this[this.tableAnagItems.CodSomaschiniColumn]));
return ((string)(this[this.tableAnagItems.CodInternoColumn]));
}
set {
this[this.tableAnagItems.CodSomaschiniColumn] = value;
this[this.tableAnagItems.CodInternoColumn] = value;
}
}
@@ -4267,6 +4298,28 @@ namespace GIM_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Famiglia {
get {
return ((string)(this[this.tableAnagItems.FamigliaColumn]));
}
set {
this[this.tableAnagItems.FamigliaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public decimal Valore {
get {
return ((decimal)(this[this.tableAnagItems.ValoreColumn]));
}
set {
this[this.tableAnagItems.ValoreColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public MagRicRow[] GetMagRicRows() {
@@ -4372,12 +4425,12 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CodSomaschini {
public string CodInterno {
get {
return ((string)(this[this.tableStatoMag.CodSomaschiniColumn]));
return ((string)(this[this.tableStatoMag.CodInternoColumn]));
}
set {
this[this.tableStatoMag.CodSomaschiniColumn] = value;
this[this.tableStatoMag.CodInternoColumn] = value;
}
}
@@ -6646,9 +6699,11 @@ namespace GIM_data.DS_MagTableAdapters {
tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
tableMapping.ColumnMappings.Add("NomeCostruttore", "NomeCostruttore");
tableMapping.ColumnMappings.Add("CodCostruttore", "CodCostruttore");
tableMapping.ColumnMappings.Add("CodSomaschini", "CodSomaschini");
tableMapping.ColumnMappings.Add("CodSomaschini", "CodInterno");
tableMapping.ColumnMappings.Add("QtaMin", "QtaMin");
tableMapping.ColumnMappings.Add("QtaLotto", "QtaLotto");
tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
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;
@@ -6657,28 +6712,28 @@ namespace GIM_data.DS_MagTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", 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].[AnagItems] ([idxItem], [Descrizione], [NomeCostruttore], [CodC" +
"ostruttore], [CodSomaschini], [QtaMin], [QtaLotto]) VALUES (@idxItem, @Descrizio" +
"ne, @NomeCostruttore, @CodCostruttore, @CodSomaschini, @QtaMin, @QtaLotto)";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagItems] ([Famiglia], [Descrizione], [NomeCostruttore], [CodCostruttore], [CodSomaschini], [QtaMin], [QtaLotto], [Valore]) VALUES (@Famiglia, @Descrizione, @NomeCostruttore, @CodCostruttore, @CodSomaschini, @QtaMin, @QtaLotto, @Valore)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NomeCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSomaschini", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSomaschini", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaLotto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "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].[AnagItems] SET [idxItem] = @idxItem, [Descrizione] = @Descrizione, [NomeCostruttore] = @NomeCostruttore, [CodCostruttore] = @CodCostruttore, [CodSomaschini] = @CodSomaschini, [QtaMin] = @QtaMin, [QtaLotto] = @QtaLotto WHERE (([idxItem] = @Original_idxItem))";
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagItems] SET [Famiglia] = @Famiglia, [Descrizione] = @Descrizione, [NomeCostruttore] = @NomeCostruttore, [CodCostruttore] = @CodCostruttore, [CodSomaschini] = @CodSomaschini, [QtaMin] = @QtaMin, [QtaLotto] = @QtaLotto, [Valore] = @Valore WHERE (([idxItem] = @Original_idxItem))";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Famiglia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Famiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NomeCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCostruttore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCostruttore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSomaschini", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSomaschini", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaMin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaMin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaLotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaLotto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "Valore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxItem", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxItem", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
@@ -6692,12 +6747,17 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idxItem, Descrizione, NomeCostruttore, CodCostruttore, CodSomaschini, QtaM" +
"in, QtaLotto FROM dbo.AnagItems";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.AnagItems";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_AnItems_getByTag";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", 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()]
@@ -6724,6 +6784,23 @@ namespace GIM_data.DS_MagTableAdapters {
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Mag.AnagItemsDataTable getByTag(string TagCode) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((TagCode == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
}
DS_Mag.AnagItemsDataTable dataTable = new DS_Mag.AnagItemsDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -6779,8 +6856,13 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(int idxItem, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto) {
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxItem));
public virtual int Insert(string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, decimal Valore) {
if ((Famiglia == null)) {
throw new global::System.ArgumentNullException("Famiglia");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Famiglia));
}
if ((Descrizione == null)) {
throw new global::System.ArgumentNullException("Descrizione");
}
@@ -6807,6 +6889,7 @@ namespace GIM_data.DS_MagTableAdapters {
}
this.Adapter.InsertCommand.Parameters[5].Value = ((int)(QtaMin));
this.Adapter.InsertCommand.Parameters[6].Value = ((int)(QtaLotto));
this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(Valore));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -6827,8 +6910,13 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(int idxItem, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, int Original_idxItem) {
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxItem));
public virtual int Update(string Famiglia, string Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, decimal Valore, int Original_idxItem) {
if ((Famiglia == null)) {
throw new global::System.ArgumentNullException("Famiglia");
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Famiglia));
}
if ((Descrizione == null)) {
throw new global::System.ArgumentNullException("Descrizione");
}
@@ -6855,7 +6943,8 @@ namespace GIM_data.DS_MagTableAdapters {
}
this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(QtaMin));
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(QtaLotto));
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idxItem));
this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Valore));
this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxItem));
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)) {
@@ -6871,14 +6960,6 @@ namespace GIM_data.DS_MagTableAdapters {
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 Descrizione, string NomeCostruttore, string CodCostruttore, string CodSomaschini, int QtaMin, int QtaLotto, int Original_idxItem) {
return this.Update(Original_idxItem, Descrizione, NomeCostruttore, CodCostruttore, CodSomaschini, QtaMin, QtaLotto, Original_idxItem);
}
}
/// <summary>
@@ -7006,7 +7087,7 @@ namespace GIM_data.DS_MagTableAdapters {
tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
tableMapping.ColumnMappings.Add("NomeCostruttore", "NomeCostruttore");
tableMapping.ColumnMappings.Add("CodCostruttore", "CodCostruttore");
tableMapping.ColumnMappings.Add("CodSomaschini", "CodSomaschini");
tableMapping.ColumnMappings.Add("CodSomaschini", "CodInterno");
tableMapping.ColumnMappings.Add("QtaMin", "QtaMin");
tableMapping.ColumnMappings.Add("QtaLotto", "QtaLotto");
tableMapping.ColumnMappings.Add("Valore", "Valore");
@@ -7016,6 +7097,7 @@ namespace GIM_data.DS_MagTableAdapters {
tableMapping.ColumnMappings.Add("Note", "Note");
tableMapping.ColumnMappings.Add("dtLastUpd", "dtLastUpd");
tableMapping.ColumnMappings.Add("Famiglia", "Famiglia");
tableMapping.ColumnMappings.Add("CodInterno", "CodInterno");
this._adapter.TableMappings.Add(tableMapping);
}
@@ -8674,12 +8756,25 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
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 idxMacchina, idxImpianto, codMacchina, nomeMacchina, modello, matricola, a" +
"nno, kgPeso, kwConsumo, funzDal, funzAl FROM dbo.AnagMacchine";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_T2M_deleteByTag";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_AM_getByTag";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", 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()]
@@ -8706,6 +8801,23 @@ namespace GIM_data.DS_MagTableAdapters {
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Mag.AnagMacchineDataTable getByTag(string TagCode) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((TagCode == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
}
DS_Mag.AnagMacchineDataTable dataTable = new DS_Mag.AnagMacchineDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -8899,6 +9011,40 @@ namespace GIM_data.DS_MagTableAdapters {
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int deleteTag2Macc(string Original_TagCode, global::System.Nullable<int> Original_idxMacchina) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_TagCode == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(Original_TagCode));
}
if ((Original_idxMacchina.HasValue == true)) {
command.Parameters[2].Value = ((int)(Original_idxMacchina.Value));
}
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
+79 -29
View File
@@ -211,35 +211,38 @@
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagItems] ([idxItem], [Descrizione], [NomeCostruttore], [CodCostruttore], [CodSomaschini], [QtaMin], [QtaLotto]) VALUES (@idxItem, @Descrizione, @NomeCostruttore, @CodCostruttore, @CodSomaschini, @QtaMin, @QtaLotto)</CommandText>
<CommandText>INSERT INTO [dbo].[AnagItems] ([Famiglia], [Descrizione], [NomeCostruttore], [CodCostruttore], [CodSomaschini], [QtaMin], [QtaLotto], [Valore]) VALUES (@Famiglia, @Descrizione, @NomeCostruttore, @CodCostruttore, @CodSomaschini, @QtaMin, @QtaLotto, @Valore)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxItem" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxItem" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Famiglia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Famiglia" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NomeCostruttore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NomeCostruttore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCostruttore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCostruttore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSomaschini" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSomaschini" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaMin" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaMin" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaLotto" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaLotto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Valore" Precision="18" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idxItem, Descrizione, NomeCostruttore, CodCostruttore, CodSomaschini, QtaMin, QtaLotto FROM dbo.AnagItems</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM dbo.AnagItems</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AnagItems] SET [idxItem] = @idxItem, [Descrizione] = @Descrizione, [NomeCostruttore] = @NomeCostruttore, [CodCostruttore] = @CodCostruttore, [CodSomaschini] = @CodSomaschini, [QtaMin] = @QtaMin, [QtaLotto] = @QtaLotto WHERE (([idxItem] = @Original_idxItem))</CommandText>
<CommandText>UPDATE [dbo].[AnagItems] SET [Famiglia] = @Famiglia, [Descrizione] = @Descrizione, [NomeCostruttore] = @NomeCostruttore, [CodCostruttore] = @CodCostruttore, [CodSomaschini] = @CodSomaschini, [QtaMin] = @QtaMin, [QtaLotto] = @QtaLotto, [Valore] = @Valore WHERE (([idxItem] = @Original_idxItem))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxItem" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxItem" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Famiglia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Famiglia" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Descrizione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NomeCostruttore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NomeCostruttore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCostruttore" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCostruttore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSomaschini" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSomaschini" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaMin" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaMin" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaLotto" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaLotto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Valore" Precision="18" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="Valore" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxItem" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxItem" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
@@ -251,11 +254,25 @@
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
<Mapping SourceColumn="NomeCostruttore" DataSetColumn="NomeCostruttore" />
<Mapping SourceColumn="CodCostruttore" DataSetColumn="CodCostruttore" />
<Mapping SourceColumn="CodSomaschini" DataSetColumn="CodSomaschini" />
<Mapping SourceColumn="CodSomaschini" DataSetColumn="CodInterno" />
<Mapping SourceColumn="QtaMin" DataSetColumn="QtaMin" />
<Mapping SourceColumn="QtaLotto" DataSetColumn="QtaLotto" />
<Mapping SourceColumn="Famiglia" DataSetColumn="Famiglia" />
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_AnItems_getByTag" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTag" GetMethodModifier="Public" GetMethodName="getByTag" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTag" UserSourceName="getByTag">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AnItems_getByTag</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TagCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StatoMagTableAdapter" GeneratorDataComponentClassName="StatoMagTableAdapter" Name="StatoMag" UserDataComponentName="StatoMagTableAdapter">
<MainSource>
@@ -274,7 +291,7 @@ FROM dbo.v_StatoMag</CommandText>
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
<Mapping SourceColumn="NomeCostruttore" DataSetColumn="NomeCostruttore" />
<Mapping SourceColumn="CodCostruttore" DataSetColumn="CodCostruttore" />
<Mapping SourceColumn="CodSomaschini" DataSetColumn="CodSomaschini" />
<Mapping SourceColumn="CodSomaschini" DataSetColumn="CodInterno" />
<Mapping SourceColumn="QtaMin" DataSetColumn="QtaMin" />
<Mapping SourceColumn="QtaLotto" DataSetColumn="QtaLotto" />
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
@@ -284,6 +301,7 @@ FROM dbo.v_StatoMag</CommandText>
<Mapping SourceColumn="Note" DataSetColumn="Note" />
<Mapping SourceColumn="dtLastUpd" DataSetColumn="dtLastUpd" />
<Mapping SourceColumn="Famiglia" DataSetColumn="Famiglia" />
<Mapping SourceColumn="CodInterno" DataSetColumn="CodInterno" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_StatoMag_delete" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
@@ -631,7 +649,31 @@ FROM AnagTags</CommandText>
<Mapping SourceColumn="funzDal" DataSetColumn="funzDal" />
<Mapping SourceColumn="funzAl" DataSetColumn="funzAl" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_T2M_deleteByTag" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteTag2Macc" Modifier="Public" Name="deleteTag2Macc" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteTag2Macc">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_T2M_deleteByTag</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_TagCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxMacchina" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_AM_getByTag" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTag" GetMethodModifier="Public" GetMethodName="getByTag" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTag" UserSourceName="getByTag">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AM_getByTag</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TagCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SinonimiTagTableAdapter" GeneratorDataComponentClassName="SinonimiTagTableAdapter" Name="SinonimiTag" UserDataComponentName="SinonimiTagTableAdapter">
<MainSource>
@@ -698,7 +740,7 @@ FROM AnagTags</CommandText>
<xs:element name="DS_Mag" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Mag" msprop:Generator_UserDSName="DS_Mag">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="AnagLocazioni" msprop:Generator_TableClassName="AnagLocazioniDataTable" msprop:Generator_TableVarName="tableAnagLocazioni" msprop:Generator_RowChangedName="AnagLocazioniRowChanged" msprop:Generator_TablePropName="AnagLocazioni" msprop:Generator_RowDeletingName="AnagLocazioniRowDeleting" msprop:Generator_RowChangingName="AnagLocazioniRowChanging" msprop:Generator_RowEvHandlerName="AnagLocazioniRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagLocazioniRowDeleted" msprop:Generator_RowClassName="AnagLocazioniRow" msprop:Generator_UserTableName="AnagLocazioni" msprop:Generator_RowEvArgName="AnagLocazioniRowChangeEvent">
<xs:element name="AnagLocazioni" msprop:Generator_TableClassName="AnagLocazioniDataTable" msprop:Generator_TableVarName="tableAnagLocazioni" msprop:Generator_TablePropName="AnagLocazioni" msprop:Generator_RowDeletingName="AnagLocazioniRowDeleting" msprop:Generator_RowChangingName="AnagLocazioniRowChanging" msprop:Generator_RowEvHandlerName="AnagLocazioniRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagLocazioniRowDeleted" msprop:Generator_UserTableName="AnagLocazioni" msprop:Generator_RowChangedName="AnagLocazioniRowChanged" msprop:Generator_RowEvArgName="AnagLocazioniRowChangeEvent" msprop:Generator_RowClassName="AnagLocazioniRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodLocazione" msprop:Generator_ColumnVarNameInTable="columnCodLocazione" msprop:Generator_ColumnPropNameInRow="CodLocazione" msprop:Generator_ColumnPropNameInTable="CodLocazioneColumn" msprop:Generator_UserColumnName="CodLocazione">
@@ -718,7 +760,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MagRic" msprop:Generator_TableClassName="MagRicDataTable" msprop:Generator_TableVarName="tableMagRic" msprop:Generator_RowChangedName="MagRicRowChanged" msprop:Generator_TablePropName="MagRic" msprop:Generator_RowDeletingName="MagRicRowDeleting" msprop:Generator_RowChangingName="MagRicRowChanging" msprop:Generator_RowEvHandlerName="MagRicRowChangeEventHandler" msprop:Generator_RowDeletedName="MagRicRowDeleted" msprop:Generator_RowClassName="MagRicRow" msprop:Generator_UserTableName="MagRic" msprop:Generator_RowEvArgName="MagRicRowChangeEvent">
<xs:element name="MagRic" msprop:Generator_TableClassName="MagRicDataTable" msprop:Generator_TableVarName="tableMagRic" msprop:Generator_TablePropName="MagRic" msprop:Generator_RowDeletingName="MagRicRowDeleting" msprop:Generator_RowChangingName="MagRicRowChanging" msprop:Generator_RowEvHandlerName="MagRicRowChangeEventHandler" msprop:Generator_RowDeletedName="MagRicRowDeleted" msprop:Generator_UserTableName="MagRic" msprop:Generator_RowChangedName="MagRicRowChanged" msprop:Generator_RowEvArgName="MagRicRowChangeEvent" msprop:Generator_RowClassName="MagRicRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
@@ -741,7 +783,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MovMagRic" msprop:Generator_TableClassName="MovMagRicDataTable" msprop:Generator_TableVarName="tableMovMagRic" msprop:Generator_RowChangedName="MovMagRicRowChanged" msprop:Generator_TablePropName="MovMagRic" msprop:Generator_RowDeletingName="MovMagRicRowDeleting" msprop:Generator_RowChangingName="MovMagRicRowChanging" msprop:Generator_RowEvHandlerName="MovMagRicRowChangeEventHandler" msprop:Generator_RowDeletedName="MovMagRicRowDeleted" msprop:Generator_RowClassName="MovMagRicRow" msprop:Generator_UserTableName="MovMagRic" msprop:Generator_RowEvArgName="MovMagRicRowChangeEvent">
<xs:element name="MovMagRic" msprop:Generator_TableClassName="MovMagRicDataTable" msprop:Generator_TableVarName="tableMovMagRic" msprop:Generator_TablePropName="MovMagRic" msprop:Generator_RowDeletingName="MovMagRicRowDeleting" msprop:Generator_RowChangingName="MovMagRicRowChanging" msprop:Generator_RowEvHandlerName="MovMagRicRowChangeEventHandler" msprop:Generator_RowDeletedName="MovMagRicRowDeleted" msprop:Generator_UserTableName="MovMagRic" msprop:Generator_RowChangedName="MovMagRicRowChanged" msprop:Generator_RowEvArgName="MovMagRicRowChangeEvent" msprop:Generator_RowClassName="MovMagRicRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
@@ -752,7 +794,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagItems" msprop:Generator_TableClassName="AnagItemsDataTable" msprop:Generator_TableVarName="tableAnagItems" msprop:Generator_RowChangedName="AnagItemsRowChanged" msprop:Generator_TablePropName="AnagItems" msprop:Generator_RowDeletingName="AnagItemsRowDeleting" msprop:Generator_RowChangingName="AnagItemsRowChanging" msprop:Generator_RowEvHandlerName="AnagItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagItemsRowDeleted" msprop:Generator_RowClassName="AnagItemsRow" msprop:Generator_UserTableName="AnagItems" msprop:Generator_RowEvArgName="AnagItemsRowChangeEvent">
<xs:element name="AnagItems" msprop:Generator_TableClassName="AnagItemsDataTable" msprop:Generator_TableVarName="tableAnagItems" msprop:Generator_TablePropName="AnagItems" msprop:Generator_RowDeletingName="AnagItemsRowDeleting" msprop:Generator_RowChangingName="AnagItemsRowChanging" msprop:Generator_RowEvHandlerName="AnagItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagItemsRowDeleted" msprop:Generator_UserTableName="AnagItems" msprop:Generator_RowChangedName="AnagItemsRowChanged" msprop:Generator_RowEvArgName="AnagItemsRowChangeEvent" msprop:Generator_RowClassName="AnagItemsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
@@ -777,7 +819,7 @@ FROM AnagTags</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodSomaschini" msprop:Generator_ColumnVarNameInTable="columnCodSomaschini" msprop:Generator_ColumnPropNameInRow="CodSomaschini" msprop:Generator_ColumnPropNameInTable="CodSomaschiniColumn" msprop:Generator_UserColumnName="CodSomaschini">
<xs:element name="CodInterno" msprop:Generator_ColumnVarNameInTable="columnCodInterno" msprop:Generator_ColumnPropNameInRow="CodInterno" msprop:Generator_ColumnPropNameInTable="CodInternoColumn" msprop:Generator_UserColumnName="CodInterno">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -786,10 +828,18 @@ FROM AnagTags</CommandText>
</xs:element>
<xs:element name="QtaMin" msprop:Generator_ColumnVarNameInTable="columnQtaMin" msprop:Generator_ColumnPropNameInRow="QtaMin" msprop:Generator_ColumnPropNameInTable="QtaMinColumn" msprop:Generator_UserColumnName="QtaMin" type="xs:int" />
<xs:element name="QtaLotto" msprop:Generator_ColumnVarNameInTable="columnQtaLotto" msprop:Generator_ColumnPropNameInRow="QtaLotto" msprop:Generator_ColumnPropNameInTable="QtaLottoColumn" msprop:Generator_UserColumnName="QtaLotto" type="xs:int" />
<xs:element name="Famiglia" msprop:Generator_ColumnVarNameInTable="columnFamiglia" msprop:Generator_ColumnPropNameInRow="Famiglia" msprop:Generator_ColumnPropNameInTable="FamigliaColumn" msprop:Generator_UserColumnName="Famiglia">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Valore" msprop:Generator_ColumnVarNameInTable="columnValore" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_UserColumnName="Valore" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="StatoMag" msprop:Generator_TableClassName="StatoMagDataTable" msprop:Generator_TableVarName="tableStatoMag" msprop:Generator_TablePropName="StatoMag" msprop:Generator_RowDeletingName="StatoMagRowDeleting" msprop:Generator_RowChangingName="StatoMagRowChanging" msprop:Generator_RowEvHandlerName="StatoMagRowChangeEventHandler" msprop:Generator_RowDeletedName="StatoMagRowDeleted" msprop:Generator_UserTableName="StatoMag" msprop:Generator_RowChangedName="StatoMagRowChanged" msprop:Generator_RowEvArgName="StatoMagRowChangeEvent" msprop:Generator_RowClassName="StatoMagRow">
<xs:element name="StatoMag" msprop:Generator_TableClassName="StatoMagDataTable" msprop:Generator_TableVarName="tableStatoMag" msprop:Generator_RowChangedName="StatoMagRowChanged" msprop:Generator_TablePropName="StatoMag" msprop:Generator_RowDeletingName="StatoMagRowDeleting" msprop:Generator_RowChangingName="StatoMagRowChanging" msprop:Generator_RowEvHandlerName="StatoMagRowChangeEventHandler" msprop:Generator_RowDeletedName="StatoMagRowDeleted" msprop:Generator_RowClassName="StatoMagRow" msprop:Generator_UserTableName="StatoMag" msprop:Generator_RowEvArgName="StatoMagRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
@@ -821,7 +871,7 @@ FROM AnagTags</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodSomaschini" msprop:Generator_ColumnVarNameInTable="columnCodSomaschini" msprop:Generator_ColumnPropNameInRow="CodSomaschini" msprop:Generator_ColumnPropNameInTable="CodSomaschiniColumn" msprop:Generator_UserColumnName="CodSomaschini">
<xs:element name="CodInterno" msprop:Generator_ColumnVarNameInTable="columnCodInterno" msprop:Generator_ColumnPropNameInRow="CodInterno" msprop:Generator_ColumnPropNameInTable="CodInternoColumn" msprop:Generator_UserColumnName="CodInterno">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -857,7 +907,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_RowClassName="AnagTagsRow" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent">
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent" msprop:Generator_RowClassName="AnagTagsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="TagCode" msprop:Generator_ColumnVarNameInTable="columnTagCode" msprop:Generator_ColumnPropNameInRow="TagCode" msprop:Generator_ColumnPropNameInTable="TagCodeColumn" msprop:Generator_UserColumnName="TagCode">
@@ -884,7 +934,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tag2Item" msprop:Generator_TableClassName="Tag2ItemDataTable" msprop:Generator_TableVarName="tableTag2Item" msprop:Generator_RowChangedName="Tag2ItemRowChanged" msprop:Generator_TablePropName="Tag2Item" msprop:Generator_RowDeletingName="Tag2ItemRowDeleting" msprop:Generator_RowChangingName="Tag2ItemRowChanging" msprop:Generator_RowEvHandlerName="Tag2ItemRowChangeEventHandler" msprop:Generator_RowDeletedName="Tag2ItemRowDeleted" msprop:Generator_RowClassName="Tag2ItemRow" msprop:Generator_UserTableName="Tag2Item" msprop:Generator_RowEvArgName="Tag2ItemRowChangeEvent">
<xs:element name="Tag2Item" msprop:Generator_TableClassName="Tag2ItemDataTable" msprop:Generator_TableVarName="tableTag2Item" msprop:Generator_TablePropName="Tag2Item" msprop:Generator_RowDeletingName="Tag2ItemRowDeleting" msprop:Generator_RowChangingName="Tag2ItemRowChanging" msprop:Generator_RowEvHandlerName="Tag2ItemRowChangeEventHandler" msprop:Generator_RowDeletedName="Tag2ItemRowDeleted" msprop:Generator_UserTableName="Tag2Item" msprop:Generator_RowChangedName="Tag2ItemRowChanged" msprop:Generator_RowEvArgName="Tag2ItemRowChangeEvent" msprop:Generator_RowClassName="Tag2ItemRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
@@ -898,7 +948,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tag2Macc" msprop:Generator_TableClassName="Tag2MaccDataTable" msprop:Generator_TableVarName="tableTag2Macc" msprop:Generator_RowChangedName="Tag2MaccRowChanged" msprop:Generator_TablePropName="Tag2Macc" msprop:Generator_RowDeletingName="Tag2MaccRowDeleting" msprop:Generator_RowChangingName="Tag2MaccRowChanging" msprop:Generator_RowEvHandlerName="Tag2MaccRowChangeEventHandler" msprop:Generator_RowDeletedName="Tag2MaccRowDeleted" msprop:Generator_RowClassName="Tag2MaccRow" msprop:Generator_UserTableName="Tag2Macc" msprop:Generator_RowEvArgName="Tag2MaccRowChangeEvent">
<xs:element name="Tag2Macc" msprop:Generator_TableClassName="Tag2MaccDataTable" msprop:Generator_TableVarName="tableTag2Macc" msprop:Generator_TablePropName="Tag2Macc" msprop:Generator_RowDeletingName="Tag2MaccRowDeleting" msprop:Generator_RowChangingName="Tag2MaccRowChanging" msprop:Generator_RowEvHandlerName="Tag2MaccRowChangeEventHandler" msprop:Generator_RowDeletedName="Tag2MaccRowDeleted" msprop:Generator_UserTableName="Tag2Macc" msprop:Generator_RowChangedName="Tag2MaccRowChanged" msprop:Generator_RowEvArgName="Tag2MaccRowChangeEvent" msprop:Generator_RowClassName="Tag2MaccRow">
<xs:complexType>
<xs:sequence>
<xs:element name="TagCode" msprop:Generator_ColumnVarNameInTable="columnTagCode" msprop:Generator_ColumnPropNameInRow="TagCode" msprop:Generator_ColumnPropNameInTable="TagCodeColumn" msprop:Generator_UserColumnName="TagCode">
@@ -912,7 +962,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagMacchine" msprop:Generator_TableClassName="AnagMacchineDataTable" msprop:Generator_TableVarName="tableAnagMacchine" msprop:Generator_RowChangedName="AnagMacchineRowChanged" msprop:Generator_TablePropName="AnagMacchine" msprop:Generator_RowDeletingName="AnagMacchineRowDeleting" msprop:Generator_RowChangingName="AnagMacchineRowChanging" msprop:Generator_RowEvHandlerName="AnagMacchineRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagMacchineRowDeleted" msprop:Generator_RowClassName="AnagMacchineRow" msprop:Generator_UserTableName="AnagMacchine" msprop:Generator_RowEvArgName="AnagMacchineRowChangeEvent">
<xs:element name="AnagMacchine" msprop:Generator_TableClassName="AnagMacchineDataTable" msprop:Generator_TableVarName="tableAnagMacchine" msprop:Generator_TablePropName="AnagMacchine" msprop:Generator_RowDeletingName="AnagMacchineRowDeleting" msprop:Generator_RowChangingName="AnagMacchineRowChanging" msprop:Generator_RowEvHandlerName="AnagMacchineRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagMacchineRowDeleted" msprop:Generator_UserTableName="AnagMacchine" msprop:Generator_RowChangedName="AnagMacchineRowChanged" msprop:Generator_RowEvArgName="AnagMacchineRowChangeEvent" msprop:Generator_RowClassName="AnagMacchineRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxMacchina" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxMacchina" msprop:Generator_ColumnPropNameInRow="idxMacchina" msprop:Generator_ColumnPropNameInTable="idxMacchinaColumn" msprop:Generator_UserColumnName="idxMacchina" type="xs:int" />
@@ -953,7 +1003,7 @@ FROM AnagTags</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SinonimiTag" msprop:Generator_TableClassName="SinonimiTagDataTable" msprop:Generator_TableVarName="tableSinonimiTag" msprop:Generator_TablePropName="SinonimiTag" msprop:Generator_RowDeletingName="SinonimiTagRowDeleting" msprop:Generator_RowChangingName="SinonimiTagRowChanging" msprop:Generator_RowEvHandlerName="SinonimiTagRowChangeEventHandler" msprop:Generator_RowDeletedName="SinonimiTagRowDeleted" msprop:Generator_UserTableName="SinonimiTag" msprop:Generator_RowChangedName="SinonimiTagRowChanged" msprop:Generator_RowEvArgName="SinonimiTagRowChangeEvent" msprop:Generator_RowClassName="SinonimiTagRow">
<xs:element name="SinonimiTag" msprop:Generator_TableClassName="SinonimiTagDataTable" msprop:Generator_TableVarName="tableSinonimiTag" msprop:Generator_RowChangedName="SinonimiTagRowChanged" msprop:Generator_TablePropName="SinonimiTag" msprop:Generator_RowDeletingName="SinonimiTagRowDeleting" msprop:Generator_RowChangingName="SinonimiTagRowChanging" msprop:Generator_RowEvHandlerName="SinonimiTagRowChangeEventHandler" msprop:Generator_RowDeletedName="SinonimiTagRowDeleted" msprop:Generator_RowClassName="SinonimiTagRow" msprop:Generator_UserTableName="SinonimiTag" msprop:Generator_RowEvArgName="SinonimiTagRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="TagCodeOrig" msprop:Generator_ColumnVarNameInTable="columnTagCodeOrig" msprop:Generator_ColumnPropNameInRow="TagCodeOrig" msprop:Generator_ColumnPropNameInTable="TagCodeOrigColumn" msprop:Generator_UserColumnName="TagCodeOrig">
@@ -1022,13 +1072,13 @@ FROM AnagTags</CommandText>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_MagRic_AnagLocazioni" msdata:parent="AnagLocazioni" msdata:child="MagRic" msdata:parentkey="CodLocazione" msdata:childkey="CodLocazione" msprop:Generator_UserChildTable="MagRic" msprop:Generator_ChildPropName="GetMagRicRows" msprop:Generator_UserRelationName="FK_MagRic_AnagLocazioni" msprop:Generator_RelationVarName="relationFK_MagRic_AnagLocazioni" msprop:Generator_UserParentTable="AnagLocazioni" msprop:Generator_ParentPropName="AnagLocazioniRow" />
<msdata:Relationship name="FK_MagRic_AnagItems" msdata:parent="AnagItems" msdata:child="MagRic" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="MagRic" msprop:Generator_ChildPropName="GetMagRicRows" msprop:Generator_UserRelationName="FK_MagRic_AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" msprop:Generator_RelationVarName="relationFK_MagRic_AnagItems" msprop:Generator_UserParentTable="AnagItems" />
<msdata:Relationship name="FK_MovMagRic_AnagItems" msdata:parent="AnagItems" msdata:child="MovMagRic" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="MovMagRic" msprop:Generator_ChildPropName="GetMovMagRicRows" msprop:Generator_UserRelationName="FK_MovMagRic_AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" msprop:Generator_RelationVarName="relationFK_MovMagRic_AnagItems" msprop:Generator_UserParentTable="AnagItems" />
<msdata:Relationship name="FK_Tag2Item_AnagItems" msdata:parent="AnagItems" msdata:child="Tag2Item" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="Tag2Item" msprop:Generator_ChildPropName="GetTag2ItemRows" msprop:Generator_UserRelationName="FK_Tag2Item_AnagItems" msprop:Generator_RelationVarName="relationFK_Tag2Item_AnagItems" msprop:Generator_UserParentTable="AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" />
<msdata:Relationship name="FK_Tag2Item_AnagTag" msdata:parent="AnagTags" msdata:child="Tag2Item" msdata:parentkey="TagCode" msdata:childkey="TagCode" msprop:Generator_UserChildTable="Tag2Item" msprop:Generator_ChildPropName="GetTag2ItemRows" msprop:Generator_UserRelationName="FK_Tag2Item_AnagTag" msprop:Generator_RelationVarName="relationFK_Tag2Item_AnagTag" msprop:Generator_UserParentTable="AnagTags" msprop:Generator_ParentPropName="AnagTagRow" />
<msdata:Relationship name="FK_Tag2Macc_AnagTag" msdata:parent="AnagTags" msdata:child="Tag2Macc" msdata:parentkey="TagCode" msdata:childkey="TagCode" msprop:Generator_UserChildTable="Tag2Macc" msprop:Generator_ChildPropName="GetTag2MaccRows" msprop:Generator_UserRelationName="FK_Tag2Macc_AnagTag" msprop:Generator_RelationVarName="relationFK_Tag2Macc_AnagTag" msprop:Generator_UserParentTable="AnagTags" msprop:Generator_ParentPropName="AnagTagRow" />
<msdata:Relationship name="FK_Tag2Macc_AnagMacchine" msdata:parent="AnagMacchine" msdata:child="Tag2Macc" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="Tag2Macc" msprop:Generator_ChildPropName="GetTag2MaccRows" msprop:Generator_UserRelationName="FK_Tag2Macc_AnagMacchine" msprop:Generator_ParentPropName="AnagMacchineRow" msprop:Generator_RelationVarName="relationFK_Tag2Macc_AnagMacchine" msprop:Generator_UserParentTable="AnagMacchine" />
<msdata:Relationship name="FK_MagRic_AnagLocazioni" msdata:parent="AnagLocazioni" msdata:child="MagRic" msdata:parentkey="CodLocazione" msdata:childkey="CodLocazione" msprop:Generator_UserChildTable="MagRic" msprop:Generator_ChildPropName="GetMagRicRows" msprop:Generator_UserRelationName="FK_MagRic_AnagLocazioni" msprop:Generator_ParentPropName="AnagLocazioniRow" msprop:Generator_RelationVarName="relationFK_MagRic_AnagLocazioni" msprop:Generator_UserParentTable="AnagLocazioni" />
<msdata:Relationship name="FK_MagRic_AnagItems" msdata:parent="AnagItems" msdata:child="MagRic" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="MagRic" msprop:Generator_ChildPropName="GetMagRicRows" msprop:Generator_UserRelationName="FK_MagRic_AnagItems" msprop:Generator_RelationVarName="relationFK_MagRic_AnagItems" msprop:Generator_UserParentTable="AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" />
<msdata:Relationship name="FK_MovMagRic_AnagItems" msdata:parent="AnagItems" msdata:child="MovMagRic" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="MovMagRic" msprop:Generator_ChildPropName="GetMovMagRicRows" msprop:Generator_UserRelationName="FK_MovMagRic_AnagItems" msprop:Generator_RelationVarName="relationFK_MovMagRic_AnagItems" msprop:Generator_UserParentTable="AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" />
<msdata:Relationship name="FK_Tag2Item_AnagItems" msdata:parent="AnagItems" msdata:child="Tag2Item" msdata:parentkey="idxItem" msdata:childkey="idxItem" msprop:Generator_UserChildTable="Tag2Item" msprop:Generator_ChildPropName="GetTag2ItemRows" msprop:Generator_UserRelationName="FK_Tag2Item_AnagItems" msprop:Generator_ParentPropName="AnagItemsRow" msprop:Generator_RelationVarName="relationFK_Tag2Item_AnagItems" msprop:Generator_UserParentTable="AnagItems" />
<msdata:Relationship name="FK_Tag2Item_AnagTag" msdata:parent="AnagTags" msdata:child="Tag2Item" msdata:parentkey="TagCode" msdata:childkey="TagCode" msprop:Generator_UserChildTable="Tag2Item" msprop:Generator_ChildPropName="GetTag2ItemRows" msprop:Generator_UserRelationName="FK_Tag2Item_AnagTag" msprop:Generator_ParentPropName="AnagTagRow" msprop:Generator_RelationVarName="relationFK_Tag2Item_AnagTag" msprop:Generator_UserParentTable="AnagTags" />
<msdata:Relationship name="FK_Tag2Macc_AnagTag" msdata:parent="AnagTags" msdata:child="Tag2Macc" msdata:parentkey="TagCode" msdata:childkey="TagCode" msprop:Generator_UserChildTable="Tag2Macc" msprop:Generator_ChildPropName="GetTag2MaccRows" msprop:Generator_UserRelationName="FK_Tag2Macc_AnagTag" msprop:Generator_ParentPropName="AnagTagRow" msprop:Generator_RelationVarName="relationFK_Tag2Macc_AnagTag" msprop:Generator_UserParentTable="AnagTags" />
<msdata:Relationship name="FK_Tag2Macc_AnagMacchine" msdata:parent="AnagMacchine" msdata:child="Tag2Macc" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="Tag2Macc" msprop:Generator_ChildPropName="GetTag2MaccRows" msprop:Generator_UserRelationName="FK_Tag2Macc_AnagMacchine" msprop:Generator_RelationVarName="relationFK_Tag2Macc_AnagMacchine" msprop:Generator_UserParentTable="AnagMacchine" msprop:Generator_ParentPropName="AnagMacchineRow" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+48 -21
View File
@@ -4,18 +4,21 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagLocazioni" ZOrder="12" X="244" Y="75" Height="172" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:MagRic" ZOrder="11" X="250" Y="300" Height="172" Width="188" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:MovMagRic" ZOrder="6" X="555" Y="58" Height="172" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagItems" ZOrder="9" X="538" Y="292" Height="210" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:Item2FamMacchine" ZOrder="5" X="374" Y="607" Height="115" Width="258" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Item2Macchine" ZOrder="3" X="668" Y="607" Height="115" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:StatoMag" ZOrder="1" X="1029" Y="46" Height="381" Width="203" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="273" />
<Shape ID="DesignTable:AnagLocazioni" ZOrder="17" X="244" Y="75" Height="172" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:MagRic" ZOrder="16" X="250" Y="300" Height="172" Width="188" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:MovMagRic" ZOrder="12" X="555" Y="58" Height="172" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagItems" ZOrder="2" X="538" Y="292" Height="267" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:StatoMag" ZOrder="11" X="927" Y="12" Height="362" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagTags" ZOrder="10" X="759" Y="553" Height="210" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:Tag2Item" ZOrder="3" X="961" Y="468" Height="153" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Tag2Macc" ZOrder="4" X="529" Y="599" Height="134" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagMacchine" ZOrder="1" X="254" Y="521" Height="324" Width="189" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:SinonimiTag" ZOrder="9" X="43" Y="591" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_MagRic_AnagLocazioni" ZOrder="10" LineWidth="11">
<Connector ID="DesignRelation:FK_MagRic_AnagLocazioni" ZOrder="15" LineWidth="11">
<RoutePoints>
<Point>
<X>298</X>
@@ -27,7 +30,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_MagRic_AnagItems" ZOrder="8" LineWidth="11">
<Connector ID="DesignRelation:FK_MagRic_AnagItems" ZOrder="14" LineWidth="11">
<RoutePoints>
<Point>
<X>538</X>
@@ -39,7 +42,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_MovMagRic_AnagItems" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_MovMagRic_AnagItems" ZOrder="13" LineWidth="11">
<RoutePoints>
<Point>
<X>650</X>
@@ -51,27 +54,51 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Item2FamMacchine_AnagItems" ZOrder="4" LineWidth="11">
<Connector ID="DesignRelation:FK_Tag2Item_AnagItems" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>592</X>
<Y>502</Y>
<X>745</X>
<Y>469</Y>
</Point>
<Point>
<X>592</X>
<Y>607</Y>
<X>961</X>
<Y>469</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Item2Macchine_AnagItems" ZOrder="2" LineWidth="11">
<Connector ID="DesignRelation:FK_Tag2Item_AnagTag" ZOrder="7" LineWidth="11">
<RoutePoints>
<Point>
<X>705</X>
<Y>502</Y>
<X>917</X>
<Y>593</Y>
</Point>
<Point>
<X>705</X>
<Y>607</Y>
<X>961</X>
<Y>593</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Tag2Macc_AnagTag" ZOrder="6" LineWidth="11">
<RoutePoints>
<Point>
<X>759</X>
<Y>660</Y>
</Point>
<Point>
<X>687</X>
<Y>660</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Tag2Macc_AnagMacchine" ZOrder="5" LineWidth="11">
<RoutePoints>
<Point>
<X>443</X>
<Y>673</Y>
</Point>
<Point>
<X>529</X>
<Y>673</Y>
</Point>
</RoutePoints>
</Connector>
+8 -8
View File
@@ -4,17 +4,17 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-7" ViewPortY="-54" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="8" ViewPortY="-54" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:LogUpdateDb" ZOrder="41" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:LogUpdateDb" ZOrder="41" X="36" Y="15" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="40" X="475" Y="7" Height="134" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagPriorita" ZOrder="10" X="239" Y="375" Height="190" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="34" X="810" Y="350" Height="207" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="34" X="810" Y="341" Height="221" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:v_macchine" ZOrder="11" X="1116" Y="309" Height="374" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="32" X="1084" Y="88" Height="190" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="21" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="13" X="526" Y="217" Height="381" Width="258" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="9" X="66" Y="164" Height="105" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="9" X="237" Y="187" Height="111" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagStati" ZOrder="31" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="15" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:MtzProgPending" ZOrder="29" X="821" Y="791" Height="249" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="162" />
@@ -108,12 +108,12 @@
<Connector ID="DesignRelation:FK_InterventiMtz_AnagTipoGuasto" ZOrder="33" LineWidth="11">
<RoutePoints>
<Point>
<X>301</X>
<Y>225</Y>
<X>472</X>
<Y>250</Y>
</Point>
<Point>
<X>526</X>
<Y>225</Y>
<Y>250</Y>
</Point>
</RoutePoints>
</Connector>
@@ -149,7 +149,7 @@
<RoutePoints>
<Point>
<X>1017</X>
<Y>557</Y>
<Y>562</Y>
</Point>
<Point>
<X>1017</X>
+28 -5
View File
@@ -9876,16 +9876,22 @@ namespace GIM_data.DS_utilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
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 * FROM dbo.v_selMacchine";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "SELECT * FROM dbo.v_selMacchine\r\nwhere conditio=@conditio";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "conditio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].CommandText = "dbo.stp_VSM_avail4Tag";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "SELECT * FROM dbo.v_selMacchine\r\nwhere conditio=@conditio";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "conditio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9916,8 +9922,25 @@ namespace GIM_data.DS_utilityTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_utility.v_selMacchineDataTable getByConditio(global::System.Nullable<int> conditio) {
public virtual DS_utility.v_selMacchineDataTable avail4tag(string TagCode) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((TagCode == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TagCode));
}
DS_utility.v_selMacchineDataTable dataTable = new DS_utility.v_selMacchineDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_utility.v_selMacchineDataTable getByConditio(global::System.Nullable<int> conditio) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((conditio.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[0].Value = ((int)(conditio.Value));
}
+14 -3
View File
@@ -51,6 +51,17 @@ order by label</CommandText>
<Mapping SourceColumn="conditio" DataSetColumn="conditio" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_VSM_avail4Tag" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="avail4tag" GetMethodModifier="Public" GetMethodName="avail4tag" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="avail4tag" UserSourceName="avail4tag">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_VSM_avail4Tag</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TagCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_selMacchine" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByConditio" GetMethodModifier="Public" GetMethodName="getByConditio" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByConditio" UserSourceName="getByConditio">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
@@ -1036,7 +1047,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selAnTipoRis" msprop:Generator_TableClassName="v_selAnTipoRisDataTable" msprop:Generator_TableVarName="tablev_selAnTipoRis" msprop:Generator_RowChangedName="v_selAnTipoRisRowChanged" msprop:Generator_TablePropName="v_selAnTipoRis" msprop:Generator_RowDeletingName="v_selAnTipoRisRowDeleting" msprop:Generator_RowChangingName="v_selAnTipoRisRowChanging" msprop:Generator_RowEvHandlerName="v_selAnTipoRisRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selAnTipoRisRowDeleted" msprop:Generator_RowClassName="v_selAnTipoRisRow" msprop:Generator_UserTableName="v_selAnTipoRis" msprop:Generator_RowEvArgName="v_selAnTipoRisRowChangeEvent">
<xs:element name="v_selAnTipoRis" msprop:Generator_TableClassName="v_selAnTipoRisDataTable" msprop:Generator_TableVarName="tablev_selAnTipoRis" msprop:Generator_TablePropName="v_selAnTipoRis" msprop:Generator_RowDeletingName="v_selAnTipoRisRowDeleting" msprop:Generator_RowChangingName="v_selAnTipoRisRowChanging" msprop:Generator_RowEvHandlerName="v_selAnTipoRisRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selAnTipoRisRowDeleted" msprop:Generator_UserTableName="v_selAnTipoRis" msprop:Generator_RowChangedName="v_selAnTipoRisRowChanged" msprop:Generator_RowEvArgName="v_selAnTipoRisRowChangeEvent" msprop:Generator_RowClassName="v_selAnTipoRisRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -1056,7 +1067,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selListVal" msprop:Generator_TableClassName="v_selListValDataTable" msprop:Generator_TableVarName="tablev_selListVal" msprop:Generator_TablePropName="v_selListVal" msprop:Generator_RowDeletingName="v_selListValRowDeleting" msprop:Generator_RowChangingName="v_selListValRowChanging" msprop:Generator_RowEvHandlerName="v_selListValRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selListValRowDeleted" msprop:Generator_UserTableName="v_selListVal" msprop:Generator_RowChangedName="v_selListValRowChanged" msprop:Generator_RowEvArgName="v_selListValRowChangeEvent" msprop:Generator_RowClassName="v_selListValRow">
<xs:element name="v_selListVal" msprop:Generator_TableClassName="v_selListValDataTable" msprop:Generator_TableVarName="tablev_selListVal" msprop:Generator_RowChangedName="v_selListValRowChanged" msprop:Generator_TablePropName="v_selListVal" msprop:Generator_RowDeletingName="v_selListValRowDeleting" msprop:Generator_RowChangingName="v_selListValRowChanging" msprop:Generator_RowEvHandlerName="v_selListValRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selListValRowDeleted" msprop:Generator_RowClassName="v_selListValRow" msprop:Generator_UserTableName="v_selListVal" msprop:Generator_RowEvArgName="v_selListValRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
@@ -1076,7 +1087,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ListValues" msprop:Generator_TableClassName="ListValuesDataTable" msprop:Generator_TableVarName="tableListValues" msprop:Generator_TablePropName="ListValues" msprop:Generator_RowDeletingName="ListValuesRowDeleting" msprop:Generator_RowChangingName="ListValuesRowChanging" msprop:Generator_RowEvHandlerName="ListValuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ListValuesRowDeleted" msprop:Generator_UserTableName="ListValues" msprop:Generator_RowChangedName="ListValuesRowChanged" msprop:Generator_RowEvArgName="ListValuesRowChangeEvent" msprop:Generator_RowClassName="ListValuesRow">
<xs:element name="ListValues" msprop:Generator_TableClassName="ListValuesDataTable" msprop:Generator_TableVarName="tableListValues" msprop:Generator_RowChangedName="ListValuesRowChanged" msprop:Generator_TablePropName="ListValues" msprop:Generator_RowDeletingName="ListValuesRowDeleting" msprop:Generator_RowChangingName="ListValuesRowChanging" msprop:Generator_RowEvHandlerName="ListValuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ListValuesRowDeleted" msprop:Generator_RowClassName="ListValuesRow" msprop:Generator_UserTableName="ListValues" msprop:Generator_RowEvArgName="ListValuesRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="TableName" msprop:Generator_ColumnVarNameInTable="columnTableName" msprop:Generator_ColumnPropNameInRow="TableName" msprop:Generator_ColumnPropNameInTable="TableNameColumn" msprop:Generator_UserColumnName="TableName">
+19 -19
View File
@@ -4,27 +4,27 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="5" ViewPortY="60" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:v_selImpianti" ZOrder="19" X="69" Y="73" Height="134" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selMacchine" ZOrder="18" X="360" Y="70" Height="139" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_selPrior" ZOrder="17" X="686" Y="79" Height="105" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selAmbiti" ZOrder="16" X="944" Y="83" Height="105" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selCausaliMacchine" ZOrder="6" X="946" Y="208" Height="172" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selTipoGuasto" ZOrder="15" X="669" Y="524" Height="105" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selSemafori" ZOrder="14" X="666" Y="249" Height="105" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selFreq" ZOrder="13" X="662" Y="373" Height="130" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selStato" ZOrder="10" X="375" Y="236" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="12" X="358" Y="478" Height="139" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_elencoImpiantiMacchine" ZOrder="3" X="681" Y="645" Height="241" Width="295" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" />
<Shape ID="DesignTable:v_elencoIntervFilt" ZOrder="7" X="15" Y="425" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:sp_elencoIntMTBF_MTTR" ZOrder="11" X="365" Y="657" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:v_selFam" ZOrder="9" X="70" Y="215" Height="111" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selOperMtz" ZOrder="8" X="68" Y="864" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_mtzProgPendingExp" ZOrder="1" X="991" Y="413" Height="324" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:v_selAnTipoRis" ZOrder="5" X="379" Y="908" Height="115" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selListVal" ZOrder="4" X="687" Y="902" Height="153" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ListValues" ZOrder="2" X="1051" Y="758" Height="210" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:v_selMacchine" ZOrder="2" X="360" Y="70" Height="172" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selPrior" ZOrder="18" X="686" Y="79" Height="105" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selAmbiti" ZOrder="17" X="944" Y="83" Height="105" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selCausaliMacchine" ZOrder="8" X="946" Y="208" Height="172" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selTipoGuasto" ZOrder="16" X="669" Y="524" Height="105" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selSemafori" ZOrder="15" X="666" Y="249" Height="105" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_selFreq" ZOrder="14" X="662" Y="373" Height="130" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selStato" ZOrder="1" X="371" Y="296" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="13" X="358" Y="478" Height="139" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_elencoImpiantiMacchine" ZOrder="5" X="681" Y="645" Height="241" Width="295" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" />
<Shape ID="DesignTable:v_elencoIntervFilt" ZOrder="9" X="15" Y="425" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:sp_elencoIntMTBF_MTTR" ZOrder="12" X="365" Y="657" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:v_selFam" ZOrder="11" X="70" Y="215" Height="111" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selOperMtz" ZOrder="10" X="68" Y="864" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_mtzProgPendingExp" ZOrder="3" X="991" Y="413" Height="324" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:v_selAnTipoRis" ZOrder="7" X="379" Y="908" Height="115" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selListVal" ZOrder="6" X="687" Y="902" Height="153" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ListValues" ZOrder="4" X="1051" Y="758" Height="210" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors />
</DiagramLayout>
+3 -3
View File
@@ -42,7 +42,7 @@ public class TA_app
public GIM_data.DS_MagTableAdapters.SinonimiTagTableAdapter taSinTag;
public GIM_data.DS_MagTableAdapters.StatoMagTableAdapter taStatoMag;
public GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter taTag2Item;
public GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter tatag2Macc;
public GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter taTag2Macc;
#endregion
@@ -85,7 +85,7 @@ public class TA_app
taSinTag.Connection.ConnectionString = connString;
taStatoMag.Connection.ConnectionString = connString;
taTag2Item.Connection.ConnectionString = connString;
tatag2Macc.Connection.ConnectionString = connString;
taTag2Macc.Connection.ConnectionString = connString;
}
protected TA_app()
{
@@ -128,7 +128,7 @@ public class TA_app
taSinTag = new GIM_data.DS_MagTableAdapters.SinonimiTagTableAdapter();
taStatoMag = new GIM_data.DS_MagTableAdapters.StatoMagTableAdapter();
taTag2Item = new GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter();
tatag2Macc = new GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter();
taTag2Macc = new GIM_data.DS_MagTableAdapters.Tag2MaccTableAdapter();
}
/// <summary>
Binary file not shown.
Binary file not shown.
@@ -97,7 +97,7 @@ namespace GIM_site.WebUserControls
{
TagCode = _TagCode.ToString();
trovati += TA_app.obj.taTag2Item.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.tatag2Macc.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.taTag2Macc.getByTag(TagCode).Rows.Count;
answ = (trovati > 0);
}
catch
@@ -7,7 +7,7 @@
<h3><%: traduci("GestioneTags") %></h3>
<div style="width: 70%; float: left;">
<div style="width: 50%; float: left;">
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
DataKeyNames="TagCode" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<RowStyle CssClass="ctrRowStyle" />
@@ -86,13 +86,13 @@
</InsertParameters>
</asp:ObjectDataSource>
</div>
<div runat="server" id="divDetail" style="width: 30%; float: left;">
<div runat="server" id="divDetail" style="width: 50%; float: left; font-size: 0.9em;">
<div>
<h4><%: traduci("Tag2Item") %></h4>
<h4><%: traduci("Macc2Tag") %></h4>
<uc1:mod_tag2Macc runat="server" ID="mod_tag2Macc" modoControllo="MACC" />
</div>
<div>
<h4><%: traduci("Item2Tag") %></h4>
<uc1:mod_tag2Item runat="server" ID="mod_tag2Item" modoControllo="ITEMS" />
</div>
<div>
<h4><%: traduci("Tag2Macc") %></h4>
<uc1:mod_tag2Macc runat="server" ID="mod_tag2Macc" />
</div>
</div>
@@ -106,7 +106,7 @@ namespace GIM_site.WebUserControls
{
TagCode = _TagCode.ToString();
trovati += TA_app.obj.taTag2Item.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.tatag2Macc.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.taTag2Macc.getByTag(TagCode).Rows.Count;
answ = (trovati > 0);
}
catch
@@ -127,6 +127,7 @@ namespace GIM_site.WebUserControls
{
divDetail.Visible = true;
mod_tag2Item.TagCode = grView.SelectedDataKey["TagCode"].ToString();
mod_tag2Macc.TagCode = grView.SelectedDataKey["TagCode"].ToString();
}
else
{
@@ -48,15 +48,6 @@ namespace GIM_site.WebUserControls {
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
/// <summary>
/// mod_tag2Item control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GIM_site.WebUserControls.mod_tag2Item mod_tag2Item;
/// <summary>
/// mod_tag2Macc control.
/// </summary>
@@ -65,5 +56,14 @@ namespace GIM_site.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GIM_site.WebUserControls.mod_tag2Macc mod_tag2Macc;
/// <summary>
/// mod_tag2Item control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GIM_site.WebUserControls.mod_tag2Item mod_tag2Item;
}
}
@@ -41,7 +41,7 @@
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
<asp:BoundField DataField="CodSomaschini" HeaderText="CodSomaschini" SortExpression="CodSomaschini" />
<asp:BoundField DataField="CodInterno" HeaderText="CodInterno" SortExpression="CodInterno" />
<asp:BoundField DataField="QtaMin" HeaderText="QtaMin" SortExpression="QtaMin" />
<asp:BoundField DataField="QtaLotto" HeaderText="QtaLotto" SortExpression="QtaLotto" />
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
@@ -74,13 +74,13 @@
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_MagTableAdapters.StatoMagTableAdapter"
UpdateMethod="updateQuery" DeleteMethod="deleteQuery" OldValuesParameterFormatString="Original_{0}"
FilterExpression="Famiglia LIKE '%{0}%' OR Descrizione LIKE '%{0}%' OR NomeCostruttore LIKE '%{0}%' OR CodCostruttore LIKE '%{0}%' OR CodSomaschini LIKE '%{0}%' OR CodLocazione LIKE '%{0}%' OR DescrLocazione LIKE '%{0}%' OR Note LIKE '%{0}%' " InsertMethod="insertQuery">
FilterExpression="Famiglia LIKE '%{0}%' OR Descrizione LIKE '%{0}%' OR NomeCostruttore LIKE '%{0}%' OR CodCostruttore LIKE '%{0}%' OR CodInterno LIKE '%{0}%' OR CodLocazione LIKE '%{0}%' OR DescrLocazione LIKE '%{0}%' OR Note LIKE '%{0}%' " InsertMethod="insertQuery">
<UpdateParameters>
<asp:Parameter Name="Original_idxItem" Type="Int32" />
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="NomeCostruttore" Type="String" />
<asp:Parameter Name="CodCostruttore" Type="String" />
<asp:Parameter Name="CodSomaschini" Type="String" />
<asp:Parameter Name="CodInterno" Type="String" />
<asp:Parameter Name="QtaMin" Type="Int32" />
<asp:Parameter Name="QtaLotto" Type="Int32" />
<asp:Parameter Name="Valore" Type="Decimal" />
@@ -97,7 +97,7 @@
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="NomeCostruttore" Type="String" />
<asp:Parameter Name="CodCostruttore" Type="String" />
<asp:Parameter Name="CodSomaschini" Type="String" />
<asp:Parameter Name="CodInterno" Type="String" />
<asp:Parameter Name="QtaMin" Type="Int32" />
<asp:Parameter Name="QtaLotto" Type="Int32" />
<asp:Parameter Name="Valore" Type="Decimal" />
@@ -4,8 +4,6 @@
<asp:HiddenField runat="server" ID="hfTagCode" />
<asp:HiddenField runat="server" ID="hfIdxItem" />
<h4><%: traduci("Tags2Item") %></h4>
<div runat="server" id="divTags">
<div>
<asp:LinkButton runat="server" ID="lbtAddNew" OnClick="lbtAddNew_Click"><%: traduci("addNewTag2Item") %></asp:LinkButton>
@@ -82,7 +80,7 @@
</asp:ObjectDataSource>
</div>
<div runat="server" id="divItems">
<asp:GridView ID="grViewItem" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20" DataKeyNames="idxItem,TagCode" DataSourceID="odsByTags" OnDataBound="grViewItem_DataBound" OnRowEditing="grViewItem_RowEditing">
<asp:GridView ID="grViewItem" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20" DataKeyNames="idxItem" DataSourceID="odsByTags" OnDataBound="grViewItem_DataBound" OnRowEditing="grViewItem_RowEditing">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -114,8 +112,27 @@
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>--%>
<asp:BoundField DataField="idxItem" HeaderText="idxItem" ReadOnly="True" SortExpression="idxItem" />
<asp:BoundField DataField="TagCode" HeaderText="TagCode" SortExpression="TagCode" ReadOnly="True" />
<%--<asp:BoundField DataField="idxItem" HeaderText="idxItem" ReadOnly="True" SortExpression="idxItem" />--%>
<asp:TemplateField SortExpression="Famiglia">
<HeaderTemplate>
<%# traduci("FamigliaDescrizione") %>
</HeaderTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Famiglia") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Bind("Descrizione") %>' />
<div style="font-size: 0.8em; font-style: italic;">
<asp:Label ID="lblFamiglia" runat="server" Text='<%# Bind("Famiglia") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
<asp:BoundField DataField="CodInterno" HeaderText="CodInterno" SortExpression="CodInterno" />
<asp:BoundField DataField="QtaMin" HeaderText="QtaMin" SortExpression="QtaMin" />
<asp:BoundField DataField="QtaLotto" HeaderText="QtaLotto" SortExpression="QtaLotto" />
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
<%--<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isWritable() %>' />
@@ -137,7 +154,7 @@
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRecItem" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="odsByTags" runat="server" SelectMethod="getByTag" TypeName="GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter" OldValuesParameterFormatString="original_{0}">
<asp:ObjectDataSource ID="odsByTags" runat="server" SelectMethod="getByTag" TypeName="GIM_data.DS_MagTableAdapters.AnagItemsTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:ControlParameter ControlID="hfTagCode" Name="TagCode" PropertyName="Value" Type="String" />
</SelectParameters>
@@ -21,7 +21,7 @@ namespace GIM_site.WebUserControls
string answ = "TAGS";
try
{
answ = memLayer.ML.StringSessionObj("modoControllo").ToUpper();
answ = memLayer.ML.StringSessionObj("modoControlloT2I").ToUpper();
}
catch
{ }
@@ -29,7 +29,7 @@ namespace GIM_site.WebUserControls
}
set
{
memLayer.ML.setSessionVal("modoControllo", value.ToUpper());
memLayer.ML.setSessionVal("modoControlloT2I", value.ToUpper());
fixVisualizzazione();
}
}
@@ -79,7 +79,7 @@ namespace GIM_site.WebUserControls
bool showItems;
switch (modoControllo)
{
case "ITEM":
case "ITEMS":
showItems = true;
break;
case "TAGS":
@@ -233,7 +233,7 @@ namespace GIM_site.WebUserControls
{
TagCode = _TagCode.ToString();
trovati += TA_app.obj.taTag2Item.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.tatag2Macc.getByTag(TagCode).Rows.Count;
trovati += TA_app.obj.taTag2Macc.getByTag(TagCode).Rows.Count;
answ = (trovati > 0);
}
catch
@@ -1,4 +1,150 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_tag2Macc.ascx.cs" Inherits="GIM_site.WebUserControls.mod_tag2Macc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:HiddenField runat="server" ID="hfTagCode" />
<asp:HiddenField runat="server" ID="hfIdxMacc" />
<div runat="server" id="divTags">
<asp:GridView ID="grViewTags" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20" DataKeyNames="idxItem,TagCode" DataSourceID="odsByItem" OnDataBound="grViewTags_DataBound" OnRowEditing="grViewTags_RowEditing" OnRowDeleted="grViewTags_RowDeleted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>'
Visible='<%# isWritable() %>' />
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="TagCode" HeaderText="TagCode" SortExpression="TagCode" ReadOnly="True" />
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
</HeaderTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete" Visible='<%# isWritable() %>' ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina, SteamWare.dimImg.small) %>' />
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="imgDelete"></cc1:ConfirmButtonExtender>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRecTags" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="odsByItem" runat="server" SelectMethod="getByItem" TypeName="GIM_data.DS_MagTableAdapters.Tag2ItemTableAdapter" OldValuesParameterFormatString="Original_{0}" DeleteMethod="Delete">
<DeleteParameters>
<asp:Parameter Name="Original_idxItem" Type="Int32" />
<asp:Parameter Name="Original_TagCode" Type="String" />
</DeleteParameters>
<SelectParameters>
<asp:ControlParameter ControlID="hfIdxMacc" Name="IdxMacc" PropertyName="Value" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div runat="server" id="divMacc">
<asp:Button runat="server" ID="btnShowHideAdd" Text="..." OnClick="btnShowHideAdd_Click" />
<div runat="server" id="divAddNew">
<asp:LinkButton runat="server" ID="lbtAddNew" OnClick="lbtAddNew_Click"><%: traduci("addNewTag2Macc") %></asp:LinkButton>
<div style="font-size: 0.8em;">
<asp:DropDownList runat="server" ID="ddlMacc" DataSourceID="odsMaccAvail" DataTextField="label" DataValueField="value"></asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsMaccAvail" OldValuesParameterFormatString="original_{0}" SelectMethod="avail4tag" TypeName="GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfTagCode" Name="TagCode" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
associazione macchine e tags
<div style="float: right;">
<asp:TextBox runat="server" ID="txtCercaMacchine" Width="8em" Text="*" AutoPostBack="True" />
</div>
<div>
<asp:ListBox ID="listMacchine" runat="server" AutoPostBack="True" DataSourceID="odsMacchine"
SelectionMode="Multiple" DataTextField="label" DataValueField="value" Height="200px"
Width="450px" BackColor="#ddffee" Font-Size="8pt" OnSelectedIndexChanged="listMacchine_SelectedIndexChanged"
OnDataBound="listMacchine_DataBound" />
<asp:ObjectDataSource ID="odsMacchine" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter"
FilterExpression="label LIKE '%{0}%'">
<FilterParameters>
<asp:ControlParameter ControlID="txtCercaMacchine" DefaultValue="*" Type="String"
Name="txtCercaMacchine" />
</FilterParameters>
</asp:ObjectDataSource>
</div>
</div>
<asp:GridView ID="grViewMacc" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20" DataKeyNames="idxMacchina" DataSourceID="odsByTags" OnDataBound="grViewMacc_DataBound" OnRowEditing="grViewMacc_RowEditing" OnRowDeleted="grViewMacc_RowDeleted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
<%--<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isWritable() %>' />--%>
</EmptyDataTemplate>
<Columns>
<%--<asp:TemplateField ShowHeader="False" Macctyle-HorizontalAlign="Center">
<EditMaccTemplate>
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
</EditMaccTemplate>
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" />
</HeaderTemplate>
<MaccTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
</MaccTemplate>
<Macctyle HorizontalAlign="Center" />
</asp:TemplateField>--%>
<asp:BoundField DataField="codMacchina" HeaderText="codMacchina" SortExpression="codMacchina" />
<asp:BoundField DataField="nomeMacchina" HeaderText="nomeMacchina" SortExpression="nomeMacchina" />
<asp:BoundField DataField="modello" HeaderText="modello" SortExpression="modello" />
<asp:BoundField DataField="matricola" HeaderText="matricola" SortExpression="matricola" />
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<%--<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isWritable() %>' />--%>
</HeaderTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete" Visible='<%# isWritable() %>' ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina, SteamWare.dimImg.small) %>' />
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
TargetControlID="imgDelete">
</cc1:ConfirmButtonExtender>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRecMacc" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="odsByTags" runat="server" SelectMethod="getByTag" TypeName="GIM_data.DS_MagTableAdapters.AnagMacchineTableAdapter" OldValuesParameterFormatString="Original_{0}" DeleteMethod="deleteTag2Macc">
<DeleteParameters>
<asp:Parameter Name="Original_idxMacchina" Type="Int32" />
<asp:ControlParameter ControlID="hfTagCode" Name="Original_TagCode" PropertyName="Value" Type="String" />
</DeleteParameters>
<SelectParameters>
<asp:ControlParameter ControlID="hfTagCode" Name="TagCode" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
@@ -4,14 +4,339 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using GIM_data;
namespace GIM_site.WebUserControls
{
public partial class mod_tag2Macc : System.Web.UI.UserControl
public partial class mod_tag2Macc : ApplicationUserControl
{
protected void Page_Load(object sender, EventArgs e)
/// <summary>
/// modalità controllo: Macc / TAGS
/// </summary>
public string modoControllo
{
get
{
string answ = "TAGS";
try
{
answ = memLayer.ML.StringSessionObj("modoControlloT2M").ToUpper();
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal("modoControlloT2M", value.ToUpper());
fixVisualizzazione();
}
}
/// <summary>
/// modalità addNew attiva (...Si/no...)
/// </summary>
public bool addNewMacc
{
get
{
bool answ = false;
try
{
answ = memLayer.ML.BoolSessionObj("addNewMacc");
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal("addNewMacc", value);
fixAddNewT2M();
}
}
private void fixAddNewT2M()
{
divAddNew.Visible = addNewMacc;
string btnText = "";
if (addNewMacc)
{
btnText = "HideAddNew";
}
else
{
btnText = "ShowAddNew";
}
btnShowHideAdd.Text = traduci(btnText);
}
public string TagCode
{
get
{
string answ = "";
if (hfTagCode.Value != "")
{
answ = hfTagCode.Value.ToUpper();
}
return answ;
}
set
{
hfTagCode.Value = value.ToUpper();
}
}
public string IdxMacc
{
get
{
string answ = "";
if (hfIdxMacc.Value != "")
{
answ = hfIdxMacc.Value.ToUpper();
}
return answ;
}
set
{
hfIdxMacc.Value = value.ToUpper();
}
}
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
bool showMacc = true;
showMacc = fixVisualizzazione();
fixAddNewT2M();
}
/// <summary>
/// valorizzazione iniziale filtro macchine
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void listMacchine_DataBound(object sender, EventArgs e)
{
foreach (ListItem item in ((ListBox)sender).Items)
{
item.Selected = true;
}
}
/// <summary>
/// salvo elenco macchine selected
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void listMacchine_SelectedIndexChanged(object sender, EventArgs e)
{
}
private bool fixVisualizzazione()
{
// fix visualizzazione tipo controllo
bool showMacc;
switch (modoControllo)
{
case "MACC":
showMacc = true;
break;
case "TAGS":
default:
showMacc = false;
break;
}
divMacc.Visible = showMacc;
divTags.Visible = !showMacc;
return showMacc;
}
public event EventHandler eh_resetSelezione;
/// <summary>
/// evento dati associati a controllo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grViewMacc_DataBound(object sender, EventArgs e)
{
if (grViewMacc.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grViewMacc.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grViewMacc.Rows.Count + grViewMacc.PageSize * (grViewMacc.PageCount - 1);
lblNumRecMacc.Text = string.Format("{0} records of ~ {1}", grViewMacc.Rows.Count, totRecord);
}
else
{
lblNumRecMacc.Text = "";
}
}
/// <summary>
/// evento dati associati a controllo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grViewTags_DataBound(object sender, EventArgs e)
{
if (grViewTags.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grViewTags.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grViewTags.Rows.Count + grViewTags.PageSize * (grViewTags.PageCount - 1);
lblNumRecTags.Text = string.Format("{0} records of ~ {1}", grViewTags.Rows.Count, totRecord);
}
else
{
lblNumRecTags.Text = "";
}
}
/// <summary>
/// reset delle selezioni
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnReset_Click(object sender, EventArgs e)
{
resetSelezione("TAGS");
resetSelezione("MACC");
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
/// <param name="quale"></param>
public void resetSelezione(string quale)
{
switch (quale)
{
case "TAGS":
grViewTags.SelectedIndex = -1;
grViewTags.DataBind();
break;
case "MACC":
default:
grViewMacc.SelectedIndex = -1;
grViewMacc.DataBind();
break;
}
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// seleziono valore in editing...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grViewMacc_RowEditing(object sender, GridViewEditEventArgs e)
{
// seleziono la riga corrente...
grViewMacc.SelectedIndex = e.NewEditIndex;
}
/// <summary>
/// seleziono valore in editing...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grViewTags_RowEditing(object sender, GridViewEditEventArgs e)
{
// seleziono la riga corrente...
grViewTags.SelectedIndex = e.NewEditIndex;
}
/// <summary>
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
{
#if false
// reset selezione...
resetSelezione("TAGS");
resetSelezione("Macc");
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
TA_app.obj.taAnagTags.Insert(memLayer.ML.confReadString("newTagCode"), memLayer.ML.confReadString("newTagClass"), memLayer.ML.confReadString("newTagDescr"));
grView.DataBind();
#endif
}
/// <summary>
/// verifica se il tag abbia child (= associazioni a macchine o Macc...)
/// </summary>
/// <param name="TagCode"></param>
public bool hasChild(object _TagCode)
{
bool answ = false;
int trovati = 0;
string TagCode = "";
try
{
TagCode = _TagCode.ToString();
trovati += TA_app.obj.taTag2Macc.getByTag(TagCode).Rows.Count;
answ = (trovati > 0);
}
catch
{ }
return answ;
}
/// <summary>
/// effettua update grView
/// </summary>
public void doUpdate()
{
grViewTags.DataBind();
grViewMacc.DataBind();
}
protected void lbtAddNew_Click(object sender, EventArgs e)
{
// aggiunge tag ad Macc selezionato...
int idxMacc = 0;
try
{
idxMacc = Convert.ToInt32(ddlMacc.SelectedValue);
}
catch
{ }
if (idxMacc > 0)
{
TA_app.obj.taTag2Macc.Insert(hfTagCode.Value, idxMacc);
grViewMacc.DataBind();
ddlMacc.DataBind();
}
}
protected void grViewTags_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
}
protected void grViewMacc_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
ddlMacc.DataBind();
}
protected void btnShowHideAdd_Click(object sender, EventArgs e)
{
addNewMacc = !addNewMacc;
fixAddNewT2M();
}
}
}
@@ -3,15 +3,175 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GIM_site.WebUserControls
{
public partial class mod_tag2Macc
{
namespace GIM_site.WebUserControls {
public partial class mod_tag2Macc {
/// <summary>
/// hfTagCode control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfTagCode;
/// <summary>
/// hfIdxMacc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxMacc;
/// <summary>
/// divTags control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTags;
/// <summary>
/// grViewTags control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grViewTags;
/// <summary>
/// lblNumRecTags control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRecTags;
/// <summary>
/// odsByItem control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsByItem;
/// <summary>
/// divMacc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMacc;
/// <summary>
/// btnShowHideAdd control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnShowHideAdd;
/// <summary>
/// divAddNew control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAddNew;
/// <summary>
/// lbtAddNew control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtAddNew;
/// <summary>
/// ddlMacc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlMacc;
/// <summary>
/// odsMaccAvail control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsMaccAvail;
/// <summary>
/// txtCercaMacchine control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtCercaMacchine;
/// <summary>
/// listMacchine control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ListBox listMacchine;
/// <summary>
/// odsMacchine control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsMacchine;
/// <summary>
/// grViewMacc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grViewMacc;
/// <summary>
/// lblNumRecMacc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRecMacc;
/// <summary>
/// odsByTags control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsByTags;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9 -4
View File
@@ -37,7 +37,7 @@ exec voc.stp_insNewLemma 'TagDescr', 'Descrizione Tag'
exec voc.stp_insNewLemma 'Famiglia', 'Famiglia'
exec voc.stp_insNewLemma 'NomeCostruttore', 'Nome Costruttore'
exec voc.stp_insNewLemma 'CodCostruttore', 'Cod. Costruttore'
exec voc.stp_insNewLemma 'CodSomaschini', 'Cod. Somaschini'
exec voc.stp_insNewLemma 'CodInterno', 'Cod. Somaschini'
exec voc.stp_insNewLemma 'QtaMin', 'Qta Min'
exec voc.stp_insNewLemma 'QtaLotto', 'Qta Lotto'
exec voc.stp_insNewLemma 'Valore', 'Valore'
@@ -50,8 +50,13 @@ exec voc.stp_insNewLemma 'MostraRicodifica', 'Mostra Ricodifica'
exec voc.stp_insNewLemma 'GestioneTags', 'Elenco Etichette'
exec voc.stp_insNewLemma 'GestioneSinonimi', 'Gestione ricodifica Etichette'
exec voc.stp_insNewLemma 'TagCodeOrig', 'Etichetta originale import'
exec voc.stp_insNewLemma 'Tag2Macc', 'Macchine associate'
exec voc.stp_insNewLemma 'Tag2Item', 'Item associati'
exec voc.stp_insNewLemma 'Tags2Item', 'Etichette Associate'
exec voc.stp_insNewLemma 'Tag2Macc', 'Etichette associate'
exec voc.stp_insNewLemma 'Macc2Tag', 'Macchine associate'
exec voc.stp_insNewLemma 'Item2Tag', 'Item associati'
exec voc.stp_insNewLemma 'Tag2Item', 'Etichette Associate'
exec voc.stp_insNewLemma 'addNewTag2Item', 'Aggiungi Etichetta ad Item'
exec voc.stp_insNewLemma 'FamigliaDescrizione', 'Fam. / Descriz.'
exec voc.stp_insNewLemma 'addNewTag2Macc', 'Associa Macchina'
exec voc.stp_insNewLemma 'HideAddNew', 'Nascondi aggiunta Macchine'
exec voc.stp_insNewLemma 'ShowAddNew', 'Mostra aggiunta Macchine'
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("1.6.258.515")]
[assembly: AssemblyFileVersion("1.6.258.515")]
[assembly: AssemblyVersion("1.6.262.516")]
[assembly: AssemblyFileVersion("1.6.262.516")]
[assembly: AssemblyCopyright("Steamware © 2006-2015")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("1.6.258.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.6.258.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("1.6.262.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.6.262.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2006-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+
Binary file not shown.