switch gestione sinonimi/tags

This commit is contained in:
Samuele E. Locatelli
2015-11-23 12:44:30 +01:00
parent f5867498e1
commit f6bf1e4270
11 changed files with 308 additions and 222 deletions
+113 -113
View File
@@ -34,7 +34,7 @@ namespace GIM_data {
private StatoMagDataTable tableStatoMag;
private AnagTagDataTable tableAnagTag;
private AnagTagsDataTable tableAnagTags;
private Tag2ItemDataTable tableTag2Item;
@@ -99,8 +99,8 @@ namespace GIM_data {
if ((ds.Tables["StatoMag"] != null)) {
base.Tables.Add(new StatoMagDataTable(ds.Tables["StatoMag"]));
}
if ((ds.Tables["AnagTag"] != null)) {
base.Tables.Add(new AnagTagDataTable(ds.Tables["AnagTag"]));
if ((ds.Tables["AnagTags"] != null)) {
base.Tables.Add(new AnagTagsDataTable(ds.Tables["AnagTags"]));
}
if ((ds.Tables["Tag2Item"] != null)) {
base.Tables.Add(new Tag2ItemDataTable(ds.Tables["Tag2Item"]));
@@ -183,9 +183,9 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public AnagTagDataTable AnagTag {
public AnagTagsDataTable AnagTags {
get {
return this.tableAnagTag;
return this.tableAnagTags;
}
}
@@ -301,8 +301,8 @@ namespace GIM_data {
if ((ds.Tables["StatoMag"] != null)) {
base.Tables.Add(new StatoMagDataTable(ds.Tables["StatoMag"]));
}
if ((ds.Tables["AnagTag"] != null)) {
base.Tables.Add(new AnagTagDataTable(ds.Tables["AnagTag"]));
if ((ds.Tables["AnagTags"] != null)) {
base.Tables.Add(new AnagTagsDataTable(ds.Tables["AnagTags"]));
}
if ((ds.Tables["Tag2Item"] != null)) {
base.Tables.Add(new Tag2ItemDataTable(ds.Tables["Tag2Item"]));
@@ -376,10 +376,10 @@ namespace GIM_data {
this.tableStatoMag.InitVars();
}
}
this.tableAnagTag = ((AnagTagDataTable)(base.Tables["AnagTag"]));
this.tableAnagTags = ((AnagTagsDataTable)(base.Tables["AnagTags"]));
if ((initTable == true)) {
if ((this.tableAnagTag != null)) {
this.tableAnagTag.InitVars();
if ((this.tableAnagTags != null)) {
this.tableAnagTags.InitVars();
}
}
this.tableTag2Item = ((Tag2ItemDataTable)(base.Tables["Tag2Item"]));
@@ -427,8 +427,8 @@ namespace GIM_data {
base.Tables.Add(this.tableAnagItems);
this.tableStatoMag = new StatoMagDataTable();
base.Tables.Add(this.tableStatoMag);
this.tableAnagTag = new AnagTagDataTable();
base.Tables.Add(this.tableAnagTag);
this.tableAnagTags = new AnagTagsDataTable();
base.Tables.Add(this.tableAnagTags);
this.tableTag2Item = new Tag2ItemDataTable();
base.Tables.Add(this.tableTag2Item);
this.tableTag2Macc = new Tag2MaccDataTable();
@@ -452,11 +452,11 @@ namespace GIM_data {
this.tableTag2Item.idxItemColumn}, false);
this.Relations.Add(this.relationFK_Tag2Item_AnagItems);
this.relationFK_Tag2Item_AnagTag = new global::System.Data.DataRelation("FK_Tag2Item_AnagTag", new global::System.Data.DataColumn[] {
this.tableAnagTag.TagCodeColumn}, new global::System.Data.DataColumn[] {
this.tableAnagTags.TagCodeColumn}, new global::System.Data.DataColumn[] {
this.tableTag2Item.TagCodeColumn}, false);
this.Relations.Add(this.relationFK_Tag2Item_AnagTag);
this.relationFK_Tag2Macc_AnagTag = new global::System.Data.DataRelation("FK_Tag2Macc_AnagTag", new global::System.Data.DataColumn[] {
this.tableAnagTag.TagCodeColumn}, new global::System.Data.DataColumn[] {
this.tableAnagTags.TagCodeColumn}, new global::System.Data.DataColumn[] {
this.tableTag2Macc.TagCodeColumn}, false);
this.Relations.Add(this.relationFK_Tag2Macc_AnagTag);
this.relationFK_Tag2Macc_AnagMacchine = new global::System.Data.DataRelation("FK_Tag2Macc_AnagMacchine", new global::System.Data.DataColumn[] {
@@ -497,7 +497,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeAnagTag() {
private bool ShouldSerializeAnagTags() {
return false;
}
@@ -590,7 +590,7 @@ namespace GIM_data {
public delegate void StatoMagRowChangeEventHandler(object sender, StatoMagRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void AnagTagRowChangeEventHandler(object sender, AnagTagRowChangeEvent e);
public delegate void AnagTagsRowChangeEventHandler(object sender, AnagTagsRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void Tag2ItemRowChangeEventHandler(object sender, Tag2ItemRowChangeEvent e);
@@ -2338,7 +2338,7 @@ namespace GIM_data {
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class AnagTagDataTable : global::System.Data.TypedTableBase<AnagTagRow> {
public partial class AnagTagsDataTable : global::System.Data.TypedTableBase<AnagTagsRow> {
private global::System.Data.DataColumn columnTagCode;
@@ -2348,8 +2348,8 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagDataTable() {
this.TableName = "AnagTag";
public AnagTagsDataTable() {
this.TableName = "AnagTags";
this.BeginInit();
this.InitClass();
this.EndInit();
@@ -2357,7 +2357,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal AnagTagDataTable(global::System.Data.DataTable table) {
internal AnagTagsDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
@@ -2374,7 +2374,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected AnagTagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
protected AnagTagsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
@@ -2414,54 +2414,54 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow this[int index] {
public AnagTagsRow this[int index] {
get {
return ((AnagTagRow)(this.Rows[index]));
return ((AnagTagsRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AnagTagRowChangeEventHandler AnagTagRowChanging;
public event AnagTagsRowChangeEventHandler AnagTagsRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AnagTagRowChangeEventHandler AnagTagRowChanged;
public event AnagTagsRowChangeEventHandler AnagTagsRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AnagTagRowChangeEventHandler AnagTagRowDeleting;
public event AnagTagsRowChangeEventHandler AnagTagsRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event AnagTagRowChangeEventHandler AnagTagRowDeleted;
public event AnagTagsRowChangeEventHandler AnagTagsRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddAnagTagRow(AnagTagRow row) {
public void AddAnagTagsRow(AnagTagsRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow AddAnagTagRow(string TagCode, string Class, string TagDescr) {
AnagTagRow rowAnagTagRow = ((AnagTagRow)(this.NewRow()));
public AnagTagsRow AddAnagTagsRow(string TagCode, string Class, string TagDescr) {
AnagTagsRow rowAnagTagsRow = ((AnagTagsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
TagCode,
Class,
TagDescr};
rowAnagTagRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagTagRow);
return rowAnagTagRow;
rowAnagTagsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagTagsRow);
return rowAnagTagsRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow FindByTagCode(string TagCode) {
return ((AnagTagRow)(this.Rows.Find(new object[] {
public AnagTagsRow FindByTagCode(string TagCode) {
return ((AnagTagsRow)(this.Rows.Find(new object[] {
TagCode})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
AnagTagDataTable cln = ((AnagTagDataTable)(base.Clone()));
AnagTagsDataTable cln = ((AnagTagsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
@@ -2469,7 +2469,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new AnagTagDataTable();
return new AnagTagsDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2502,28 +2502,28 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow NewAnagTagRow() {
return ((AnagTagRow)(this.NewRow()));
public AnagTagsRow NewAnagTagsRow() {
return ((AnagTagsRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new AnagTagRow(builder);
return new AnagTagsRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(AnagTagRow);
return typeof(AnagTagsRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.AnagTagRowChanged != null)) {
this.AnagTagRowChanged(this, new AnagTagRowChangeEvent(((AnagTagRow)(e.Row)), e.Action));
if ((this.AnagTagsRowChanged != null)) {
this.AnagTagsRowChanged(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
}
}
@@ -2531,8 +2531,8 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.AnagTagRowChanging != null)) {
this.AnagTagRowChanging(this, new AnagTagRowChangeEvent(((AnagTagRow)(e.Row)), e.Action));
if ((this.AnagTagsRowChanging != null)) {
this.AnagTagsRowChanging(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
}
}
@@ -2540,8 +2540,8 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.AnagTagRowDeleted != null)) {
this.AnagTagRowDeleted(this, new AnagTagRowChangeEvent(((AnagTagRow)(e.Row)), e.Action));
if ((this.AnagTagsRowDeleted != null)) {
this.AnagTagsRowDeleted(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
}
}
@@ -2549,14 +2549,14 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.AnagTagRowDeleting != null)) {
this.AnagTagRowDeleting(this, new AnagTagRowChangeEvent(((AnagTagRow)(e.Row)), e.Action));
if ((this.AnagTagsRowDeleting != null)) {
this.AnagTagsRowDeleting(this, new AnagTagsRowChangeEvent(((AnagTagsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveAnagTagRow(AnagTagRow row) {
public void RemoveAnagTagsRow(AnagTagsRow row) {
this.Rows.Remove(row);
}
@@ -2583,7 +2583,7 @@ namespace GIM_data {
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "AnagTagDataTable";
attribute2.FixedValue = "AnagTagsDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
@@ -2721,7 +2721,7 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Tag2ItemRow AddTag2ItemRow(AnagItemsRow parentAnagItemsRowByFK_Tag2Item_AnagItems, AnagTagRow parentAnagTagRowByFK_Tag2Item_AnagTag) {
public Tag2ItemRow AddTag2ItemRow(AnagItemsRow parentAnagItemsRowByFK_Tag2Item_AnagItems, AnagTagsRow parentAnagTagsRowByFK_Tag2Item_AnagTag) {
Tag2ItemRow rowTag2ItemRow = ((Tag2ItemRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -2729,8 +2729,8 @@ namespace GIM_data {
if ((parentAnagItemsRowByFK_Tag2Item_AnagItems != null)) {
columnValuesArray[0] = parentAnagItemsRowByFK_Tag2Item_AnagItems[0];
}
if ((parentAnagTagRowByFK_Tag2Item_AnagTag != null)) {
columnValuesArray[1] = parentAnagTagRowByFK_Tag2Item_AnagTag[0];
if ((parentAnagTagsRowByFK_Tag2Item_AnagTag != null)) {
columnValuesArray[1] = parentAnagTagsRowByFK_Tag2Item_AnagTag[0];
}
rowTag2ItemRow.ItemArray = columnValuesArray;
this.Rows.Add(rowTag2ItemRow);
@@ -3002,13 +3002,13 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Tag2MaccRow AddTag2MaccRow(AnagTagRow parentAnagTagRowByFK_Tag2Macc_AnagTag, AnagMacchineRow parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine) {
public Tag2MaccRow AddTag2MaccRow(AnagTagsRow parentAnagTagsRowByFK_Tag2Macc_AnagTag, AnagMacchineRow parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine) {
Tag2MaccRow rowTag2MaccRow = ((Tag2MaccRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
null};
if ((parentAnagTagRowByFK_Tag2Macc_AnagTag != null)) {
columnValuesArray[0] = parentAnagTagRowByFK_Tag2Macc_AnagTag[0];
if ((parentAnagTagsRowByFK_Tag2Macc_AnagTag != null)) {
columnValuesArray[0] = parentAnagTagsRowByFK_Tag2Macc_AnagTag[0];
}
if ((parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine != null)) {
columnValuesArray[1] = parentAnagMacchineRowByFK_Tag2Macc_AnagMacchine[0];
@@ -4231,25 +4231,25 @@ namespace GIM_data {
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class AnagTagRow : global::System.Data.DataRow {
public partial class AnagTagsRow : global::System.Data.DataRow {
private AnagTagDataTable tableAnagTag;
private AnagTagsDataTable tableAnagTags;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal AnagTagRow(global::System.Data.DataRowBuilder rb) :
internal AnagTagsRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableAnagTag = ((AnagTagDataTable)(this.Table));
this.tableAnagTags = ((AnagTagsDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string TagCode {
get {
return ((string)(this[this.tableAnagTag.TagCodeColumn]));
return ((string)(this[this.tableAnagTags.TagCodeColumn]));
}
set {
this[this.tableAnagTag.TagCodeColumn] = value;
this[this.tableAnagTags.TagCodeColumn] = value;
}
}
@@ -4257,10 +4257,10 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Class {
get {
return ((string)(this[this.tableAnagTag.ClassColumn]));
return ((string)(this[this.tableAnagTags.ClassColumn]));
}
set {
this[this.tableAnagTag.ClassColumn] = value;
this[this.tableAnagTags.ClassColumn] = value;
}
}
@@ -4268,10 +4268,10 @@ namespace GIM_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string TagDescr {
get {
return ((string)(this[this.tableAnagTag.TagDescrColumn]));
return ((string)(this[this.tableAnagTags.TagDescrColumn]));
}
set {
this[this.tableAnagTag.TagDescrColumn] = value;
this[this.tableAnagTags.TagDescrColumn] = value;
}
}
@@ -4347,9 +4347,9 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow AnagTagRow {
public AnagTagsRow AnagTagRow {
get {
return ((AnagTagRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Item_AnagTag"])));
return ((AnagTagsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Item_AnagTag"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Item_AnagTag"]);
@@ -4395,9 +4395,9 @@ namespace GIM_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow AnagTagRow {
public AnagTagsRow AnagTagRow {
get {
return ((AnagTagRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Macc_AnagTag"])));
return ((AnagTagsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tag2Macc_AnagTag"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["FK_Tag2Macc_AnagTag"]);
@@ -4873,22 +4873,22 @@ namespace GIM_data {
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class AnagTagRowChangeEvent : global::System.EventArgs {
public class AnagTagsRowChangeEvent : global::System.EventArgs {
private AnagTagRow eventRow;
private AnagTagsRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRowChangeEvent(AnagTagRow row, global::System.Data.DataRowAction action) {
public AnagTagsRowChangeEvent(AnagTagsRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagRow Row {
public AnagTagsRow Row {
get {
return this.eventRow;
}
@@ -6917,7 +6917,7 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class AnagTagTableAdapter : global::System.ComponentModel.Component {
public partial class AnagTagsTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
@@ -6931,7 +6931,7 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public AnagTagTableAdapter() {
public AnagTagsTableAdapter() {
this.ClearBeforeFill = true;
}
@@ -7028,7 +7028,7 @@ namespace GIM_data.DS_MagTableAdapters {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "AnagTag";
tableMapping.DataSetTable = "AnagTags";
tableMapping.ColumnMappings.Add("TagCode", "TagCode");
tableMapping.ColumnMappings.Add("Class", "Class");
tableMapping.ColumnMappings.Add("TagDescr", "TagDescr");
@@ -7070,7 +7070,7 @@ namespace GIM_data.DS_MagTableAdapters {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT TagCode, Class, TagDescr FROM dbo.AnagTag";
this._commandCollection[0].CommandText = "SELECT TagCode, Class, TagDescr\r\nFROM AnagTags";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -7101,7 +7101,7 @@ 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.Fill, true)]
public virtual int Fill(DS_Mag.AnagTagDataTable dataTable) {
public virtual int Fill(DS_Mag.AnagTagsDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
@@ -7114,9 +7114,9 @@ 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.Select, true)]
public virtual DS_Mag.AnagTagDataTable GetData() {
public virtual DS_Mag.AnagTagsDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_Mag.AnagTagDataTable dataTable = new DS_Mag.AnagTagDataTable();
DS_Mag.AnagTagsDataTable dataTable = new DS_Mag.AnagTagsDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
@@ -7124,7 +7124,7 @@ 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 Update(DS_Mag.AnagTagDataTable dataTable) {
public virtual int Update(DS_Mag.AnagTagsDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
@@ -7132,7 +7132,7 @@ 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")]
public virtual int Update(DS_Mag dataSet) {
return this.Adapter.Update(dataSet, "AnagTag");
return this.Adapter.Update(dataSet, "AnagTags");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8494,7 +8494,7 @@ namespace GIM_data.DS_MagTableAdapters {
private AnagItemsTableAdapter _anagItemsTableAdapter;
private AnagTagTableAdapter _anagTagTableAdapter;
private AnagTagsTableAdapter _anagTagsTableAdapter;
private Tag2ItemTableAdapter _tag2ItemTableAdapter;
@@ -8578,12 +8578,12 @@ namespace GIM_data.DS_MagTableAdapters {
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public AnagTagTableAdapter AnagTagTableAdapter {
public AnagTagsTableAdapter AnagTagsTableAdapter {
get {
return this._anagTagTableAdapter;
return this._anagTagsTableAdapter;
}
set {
this._anagTagTableAdapter = value;
this._anagTagsTableAdapter = value;
}
}
@@ -8664,9 +8664,9 @@ namespace GIM_data.DS_MagTableAdapters {
&& (this._anagItemsTableAdapter.Connection != null))) {
return this._anagItemsTableAdapter.Connection;
}
if (((this._anagTagTableAdapter != null)
&& (this._anagTagTableAdapter.Connection != null))) {
return this._anagTagTableAdapter.Connection;
if (((this._anagTagsTableAdapter != null)
&& (this._anagTagsTableAdapter.Connection != null))) {
return this._anagTagsTableAdapter.Connection;
}
if (((this._tag2ItemTableAdapter != null)
&& (this._tag2ItemTableAdapter.Connection != null))) {
@@ -8705,7 +8705,7 @@ namespace GIM_data.DS_MagTableAdapters {
if ((this._anagItemsTableAdapter != null)) {
count = (count + 1);
}
if ((this._anagTagTableAdapter != null)) {
if ((this._anagTagsTableAdapter != null)) {
count = (count + 1);
}
if ((this._tag2ItemTableAdapter != null)) {
@@ -8746,12 +8746,12 @@ namespace GIM_data.DS_MagTableAdapters {
allChangedRows.AddRange(updatedRows);
}
}
if ((this._anagTagTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagTag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
if ((this._anagTagsTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._anagTagTableAdapter.Update(updatedRows));
result = (result + this._anagTagsTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -8826,11 +8826,11 @@ namespace GIM_data.DS_MagTableAdapters {
allAddedRows.AddRange(addedRows);
}
}
if ((this._anagTagTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagTag.Select(null, null, global::System.Data.DataViewRowState.Added);
if ((this._anagTagsTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._anagTagTableAdapter.Update(addedRows));
result = (result + this._anagTagsTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -8924,11 +8924,11 @@ namespace GIM_data.DS_MagTableAdapters {
allChangedRows.AddRange(deletedRows);
}
}
if ((this._anagTagTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagTag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if ((this._anagTagsTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagTags.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._anagTagTableAdapter.Update(deletedRows));
result = (result + this._anagTagsTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -9007,8 +9007,8 @@ namespace GIM_data.DS_MagTableAdapters {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._anagTagTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagTagTableAdapter.Connection) == false))) {
if (((this._anagTagsTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagTagsTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
@@ -9095,13 +9095,13 @@ namespace GIM_data.DS_MagTableAdapters {
adaptersWithAcceptChangesDuringUpdate.Add(this._anagItemsTableAdapter.Adapter);
}
}
if ((this._anagTagTableAdapter != null)) {
revertConnections.Add(this._anagTagTableAdapter, this._anagTagTableAdapter.Connection);
this._anagTagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._anagTagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._anagTagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._anagTagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._anagTagTableAdapter.Adapter);
if ((this._anagTagsTableAdapter != null)) {
revertConnections.Add(this._anagTagsTableAdapter, this._anagTagsTableAdapter.Connection);
this._anagTagsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._anagTagsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._anagTagsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._anagTagsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._anagTagsTableAdapter.Adapter);
}
}
if ((this._tag2ItemTableAdapter != null)) {
@@ -9205,9 +9205,9 @@ namespace GIM_data.DS_MagTableAdapters {
this._anagItemsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagItemsTableAdapter]));
this._anagItemsTableAdapter.Transaction = null;
}
if ((this._anagTagTableAdapter != null)) {
this._anagTagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTagTableAdapter]));
this._anagTagTableAdapter.Transaction = null;
if ((this._anagTagsTableAdapter != null)) {
this._anagTagsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTagsTableAdapter]));
this._anagTagsTableAdapter.Transaction = null;
}
if ((this._tag2ItemTableAdapter != null)) {
this._tag2ItemTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tag2ItemTableAdapter]));
+22 -21
View File
@@ -339,9 +339,9 @@ FROM dbo.v_StatoMag</CommandText>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagTagTableAdapter" GeneratorDataComponentClassName="AnagTagTableAdapter" Name="AnagTag" UserDataComponentName="AnagTagTableAdapter">
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagTagsTableAdapter" GeneratorDataComponentClassName="AnagTagsTableAdapter" Name="AnagTags" UserDataComponentName="AnagTagsTableAdapter">
<MainSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.AnagTag" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.AnagTags" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[AnagTag] WHERE (([TagCode] = @Original_TagCode))</CommandText>
@@ -362,7 +362,8 @@ FROM dbo.v_StatoMag</CommandText>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT TagCode, Class, TagDescr FROM dbo.AnagTag</CommandText>
<CommandText>SELECT TagCode, Class, TagDescr
FROM AnagTags</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
@@ -618,7 +619,7 @@ FROM dbo.v_StatoMag</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_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: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:complexType>
<xs:sequence>
<xs:element name="CodLocazione" msprop:Generator_ColumnVarNameInTable="columnCodLocazione" msprop:Generator_ColumnPropNameInRow="CodLocazione" msprop:Generator_ColumnPropNameInTable="CodLocazioneColumn" msprop:Generator_UserColumnName="CodLocazione">
@@ -638,7 +639,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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" />
@@ -661,7 +662,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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" />
@@ -672,7 +673,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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" />
@@ -709,7 +710,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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 +778,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagTag" msprop:Generator_TableClassName="AnagTagDataTable" msprop:Generator_TableVarName="tableAnagTag" msprop:Generator_TablePropName="AnagTag" msprop:Generator_RowDeletingName="AnagTagRowDeleting" msprop:Generator_RowChangingName="AnagTagRowChanging" msprop:Generator_RowEvHandlerName="AnagTagRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagRowDeleted" msprop:Generator_UserTableName="AnagTag" msprop:Generator_RowChangedName="AnagTagRowChanged" msprop:Generator_RowEvArgName="AnagTagRowChangeEvent" msprop:Generator_RowClassName="AnagTagRow">
<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:complexType>
<xs:sequence>
<xs:element name="TagCode" msprop:Generator_ColumnVarNameInTable="columnTagCode" msprop:Generator_ColumnPropNameInRow="TagCode" msprop:Generator_ColumnPropNameInTable="TagCodeColumn" msprop:Generator_UserColumnName="TagCode">
@@ -804,7 +805,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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" />
@@ -818,7 +819,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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:complexType>
<xs:sequence>
<xs:element name="TagCode" msprop:Generator_ColumnVarNameInTable="columnTagCode" msprop:Generator_ColumnPropNameInRow="TagCode" msprop:Generator_ColumnPropNameInTable="TagCodeColumn" msprop:Generator_UserColumnName="TagCode">
@@ -832,7 +833,7 @@ FROM dbo.v_StatoMag</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<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: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: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" />
@@ -897,8 +898,8 @@ FROM dbo.v_StatoMag</CommandText>
<xs:selector xpath=".//mstns:StatoMag" />
<xs:field xpath="mstns:idxItem" />
</xs:unique>
<xs:unique name="AnagTag_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagTag" />
<xs:unique name="AnagTags_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagTags" />
<xs:field xpath="mstns:TagCode" />
</xs:unique>
<xs:unique name="Tag2Item_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
@@ -918,13 +919,13 @@ FROM dbo.v_StatoMag</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_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="AnagTag" 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="AnagTag" />
<msdata:Relationship name="FK_Tag2Macc_AnagTag" msdata:parent="AnagTag" 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="AnagTag" />
<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" />
<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" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+3 -3
View File
@@ -36,7 +36,7 @@ public class TA_app
public GIM_data.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter taElencoIntExt;
public GIM_data.DS_MagTableAdapters.AnagItemsTableAdapter taAnagItem;
public GIM_data.DS_MagTableAdapters.AnagLocazioniTableAdapter taAnagLoc;
public GIM_data.DS_MagTableAdapters.AnagTagTableAdapter taAnagTag;
public GIM_data.DS_MagTableAdapters.AnagTagsTableAdapter taAnagTags;
public GIM_data.DS_MagTableAdapters.MagRicTableAdapter taMagRic;
public GIM_data.DS_MagTableAdapters.MovMagRicTableAdapter taMovMag;
public GIM_data.DS_MagTableAdapters.StatoMagTableAdapter taStatoMag;
@@ -78,7 +78,7 @@ public class TA_app
taElencoIntExt.Connection.ConnectionString = connString;
taAnagItem.Connection.ConnectionString = connString;
taAnagLoc.Connection.ConnectionString = connString;
taAnagTag.Connection.ConnectionString = connString;
taAnagTags.Connection.ConnectionString = connString;
taMagRic.Connection.ConnectionString = connString;
taMovMag.Connection.ConnectionString = connString;
taStatoMag.Connection.ConnectionString = connString;
@@ -120,7 +120,7 @@ public class TA_app
taElencoIntExt = new GIM_data.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter();
taAnagItem = new GIM_data.DS_MagTableAdapters.AnagItemsTableAdapter();
taAnagLoc = new GIM_data.DS_MagTableAdapters.AnagLocazioniTableAdapter();
taAnagTag = new GIM_data.DS_MagTableAdapters.AnagTagTableAdapter();
taAnagTags = new GIM_data.DS_MagTableAdapters.AnagTagsTableAdapter();
taMagRic = new GIM_data.DS_MagTableAdapters.MagRicTableAdapter();
taMovMag = new GIM_data.DS_MagTableAdapters.MovMagRicTableAdapter();
taStatoMag = new GIM_data.DS_MagTableAdapters.StatoMagTableAdapter();
Binary file not shown.
Binary file not shown.
@@ -1,88 +1,95 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagTags.ascx.cs" Inherits="GIM_site.WebUserControls.mod_anagTags" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div style="float: right;">
<asp:Button runat="server" ID="btnMode" OnClick="btnMode_Click" />
</div>
<h3>FARE GESTIONE SINONIMI</h3>
<i>in modo da ricodificare i tags (salvando l'operazione in tab sinonimi x successivi import e però spostando i collegamenti verso items e macchine ai tags "raggruppati")</i>
<div runat="server" id="divRicodifica">
<h3>FARE GESTIONE SINONIMI</h3>
<i>in modo da ricodificare i tags (salvando l'operazione in tab sinonimi x successivi import e però spostando i collegamenti verso items e macchine ai tags "raggruppati")</i>
</div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
DataKeyNames="TagCode" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing">
<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" ItemStyle-HorizontalAlign="Center">
<EditItemTemplate>
<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) %>' />
</EditItemTemplate>
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
Visible="false" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
Visible='<%# isWritable() && !hasChild(Eval("TagCode")) %>' ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="TagCode" HeaderText="TagCode" ReadOnly="True" SortExpression="TagCode" />
<asp:BoundField DataField="Class" HeaderText="Class" SortExpression="Class" />
<asp:BoundField DataField="TagDescr" HeaderText="TagDescr" SortExpression="TagDescr" />
<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() && !hasChild(Eval("TagCode")) %>' 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="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_MagTableAdapters.AnagTagTableAdapter"
UpdateMethod="Update" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}"
FilterExpression="TagCode LIKE '%{0}%' OR Class LIKE '%{0}%' OR TagDescr LIKE '%{0}%' " InsertMethod="Insert">
<UpdateParameters>
<asp:Parameter Name="TagCode" Type="String" />
<asp:Parameter Name="Class" Type="String" />
<asp:Parameter Name="TagDescr" Type="String" />
<asp:Parameter Name="Original_TagCode" Type="String" />
</UpdateParameters>
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_TagCode" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="TagCode" Type="String" />
<asp:Parameter Name="Class" Type="String" />
<asp:Parameter Name="TagDescr" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
<div runat="server" id="divTags">
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
DataKeyNames="TagCode" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing">
<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" ItemStyle-HorizontalAlign="Center">
<EditItemTemplate>
<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) %>' />
</EditItemTemplate>
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
Visible="false" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
Visible='<%# isWritable() && !hasChild(Eval("TagCode")) %>' ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="TagCode" HeaderText="TagCode" ReadOnly="True" SortExpression="TagCode" />
<asp:BoundField DataField="Class" HeaderText="Class" SortExpression="Class" />
<asp:BoundField DataField="TagDescr" HeaderText="TagDescr" SortExpression="TagDescr" />
<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() && !hasChild(Eval("TagCode")) %>' 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="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_MagTableAdapters.AnagTagsTableAdapter"
UpdateMethod="Update" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}"
FilterExpression="TagCode LIKE '%{0}%' OR Class LIKE '%{0}%' OR TagDescr LIKE '%{0}%' " InsertMethod="Insert">
<UpdateParameters>
<asp:Parameter Name="TagCode" Type="String" />
<asp:Parameter Name="Class" Type="String" />
<asp:Parameter Name="TagDescr" Type="String" />
<asp:Parameter Name="Original_TagCode" Type="String" />
</UpdateParameters>
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_TagCode" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="TagCode" Type="String" />
<asp:Parameter Name="Class" Type="String" />
<asp:Parameter Name="TagDescr" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</div>
@@ -10,6 +10,50 @@ namespace GIM_site.WebUserControls
{
public partial class mod_anagTags : ApplicationUserControl
{
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!Page.IsPostBack)
{
setMode(false);
}
}
public bool _showRicodifica
{
get
{
return memLayer.ML.BoolSessionObj("showRicodifica");
}
set
{
memLayer.ML.setSessionVal("showRicodifica", value);
}
}
/// <summary>
/// imposta modalità controllo
/// </summary>
/// <param name="showRicodifica"></param>
private void setMode(bool showRicodifica)
{
_showRicodifica = showRicodifica;
string txtBtn = "";
if (showRicodifica)
{
txtBtn = "MostraTags";
}
else
{
txtBtn = "MostraRicodifica";
}
// traduco buttons!
btnMode.Text = traduci(txtBtn);
// sistemo visibilità tags
divRicodifica.Visible = showRicodifica;
divTags.Visible = !showRicodifica;
}
public event EventHandler eh_resetSelezione;
/// <summary>
/// evento dati associati a controllo
@@ -81,7 +125,7 @@ namespace GIM_site.WebUserControls
// reset selezione...
resetSelezione();
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
TA_app.obj.taAnagTag.Insert(memLayer.ML.confReadString("newTagCode"), memLayer.ML.confReadString("newTagClass"), memLayer.ML.confReadString("newTagDescr"));
TA_app.obj.taAnagTags.Insert(memLayer.ML.confReadString("newTagCode"), memLayer.ML.confReadString("newTagClass"), memLayer.ML.confReadString("newTagDescr"));
grView.DataBind();
}
/// <summary>
@@ -104,5 +148,11 @@ namespace GIM_site.WebUserControls
{ }
return answ;
}
protected void btnMode_Click(object sender, EventArgs e)
{
// inverto modalità ricodifica (scambio si/no)
setMode(!_showRicodifica);
}
}
}
@@ -12,6 +12,33 @@ namespace GIM_site.WebUserControls {
public partial class mod_anagTags {
/// <summary>
/// btnMode 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 btnMode;
/// <summary>
/// divRicodifica 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 divRicodifica;
/// <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>
/// grView control.
/// </summary>
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -45,5 +45,6 @@ exec voc.stp_insNewLemma 'Giacenza', 'Giacenza'
exec voc.stp_insNewLemma 'CodLocazione', 'Cod Locazione'
exec voc.stp_insNewLemma 'DescrLocazione', 'Locazione'
exec voc.stp_insNewLemma 'dtLastUpd', 'Last Update'
exec voc.stp_insNewLemma 'MostraTags', 'Mostra Tags'
exec voc.stp_insNewLemma 'MostraRicodifica', 'Mostra Ricodifica'