diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs index 802827f..69d8f5b 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs +++ b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs @@ -66,6 +66,10 @@ namespace GIM_data { private v_mtzProgExpDataTable tablev_mtzProgExp; + private ImpiegoRisorseDataTable tableImpiegoRisorse; + + private AnagTipoRisorsaDataTable tableAnagTipoRisorsa; + private global::System.Data.DataRelation relationFK_AnagMacchine_AnagImpianti; private global::System.Data.DataRelation relationMacchine2FamMacchine_v_macchine; @@ -94,6 +98,10 @@ namespace GIM_data { private global::System.Data.DataRelation relationFK_InterventoOpMtz_AnagrOperMtz; + private global::System.Data.DataRelation relationFK_ImpiegoRisorse_AnagTipoRisorsa; + + private global::System.Data.DataRelation relationv_intervExp_ImpiegoRisorse; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -185,6 +193,12 @@ namespace GIM_data { if ((ds.Tables["v_mtzProgExp"] != null)) { base.Tables.Add(new v_mtzProgExpDataTable(ds.Tables["v_mtzProgExp"])); } + if ((ds.Tables["ImpiegoRisorse"] != null)) { + base.Tables.Add(new ImpiegoRisorseDataTable(ds.Tables["ImpiegoRisorse"])); + } + if ((ds.Tables["AnagTipoRisorsa"] != null)) { + base.Tables.Add(new AnagTipoRisorsaDataTable(ds.Tables["AnagTipoRisorsa"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -413,6 +427,26 @@ namespace GIM_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 ImpiegoRisorseDataTable ImpiegoRisorse { + get { + return this.tableImpiegoRisorse; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 AnagTipoRisorsaDataTable AnagTipoRisorsa { + get { + return this.tableAnagTipoRisorsa; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -543,6 +577,12 @@ namespace GIM_data { if ((ds.Tables["v_mtzProgExp"] != null)) { base.Tables.Add(new v_mtzProgExpDataTable(ds.Tables["v_mtzProgExp"])); } + if ((ds.Tables["ImpiegoRisorse"] != null)) { + base.Tables.Add(new ImpiegoRisorseDataTable(ds.Tables["ImpiegoRisorse"])); + } + if ((ds.Tables["AnagTipoRisorsa"] != null)) { + base.Tables.Add(new AnagTipoRisorsaDataTable(ds.Tables["AnagTipoRisorsa"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -702,6 +742,18 @@ namespace GIM_data { this.tablev_mtzProgExp.InitVars(); } } + this.tableImpiegoRisorse = ((ImpiegoRisorseDataTable)(base.Tables["ImpiegoRisorse"])); + if ((initTable == true)) { + if ((this.tableImpiegoRisorse != null)) { + this.tableImpiegoRisorse.InitVars(); + } + } + this.tableAnagTipoRisorsa = ((AnagTipoRisorsaDataTable)(base.Tables["AnagTipoRisorsa"])); + if ((initTable == true)) { + if ((this.tableAnagTipoRisorsa != null)) { + this.tableAnagTipoRisorsa.InitVars(); + } + } this.relationFK_AnagMacchine_AnagImpianti = this.Relations["FK_AnagMacchine_AnagImpianti"]; this.relationMacchine2FamMacchine_v_macchine = this.Relations["Macchine2FamMacchine_v_macchine"]; this.relationAnagFamMacchine_v_selFamMacc = this.Relations["AnagFamMacchine_v_selFamMacc"]; @@ -716,6 +768,8 @@ namespace GIM_data { this.relationFK_FiltroStati_AnagStati = this.Relations["FK_FiltroStati_AnagStati"]; this.relationFK_AnagCausali_AnagFamMacchine = this.Relations["FK_AnagCausali_AnagFamMacchine"]; this.relationFK_InterventoOpMtz_AnagrOperMtz = this.Relations["FK_InterventoOpMtz_AnagrOperMtz"]; + this.relationFK_ImpiegoRisorse_AnagTipoRisorsa = this.Relations["FK_ImpiegoRisorse_AnagTipoRisorsa"]; + this.relationv_intervExp_ImpiegoRisorse = this.Relations["v_intervExp_ImpiegoRisorse"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -768,6 +822,10 @@ namespace GIM_data { base.Tables.Add(this.tableAnagrOperMtz); this.tablev_mtzProgExp = new v_mtzProgExpDataTable(); base.Tables.Add(this.tablev_mtzProgExp); + this.tableImpiegoRisorse = new ImpiegoRisorseDataTable(); + base.Tables.Add(this.tableImpiegoRisorse); + this.tableAnagTipoRisorsa = new AnagTipoRisorsaDataTable(); + base.Tables.Add(this.tableAnagTipoRisorsa); this.relationFK_AnagMacchine_AnagImpianti = new global::System.Data.DataRelation("FK_AnagMacchine_AnagImpianti", new global::System.Data.DataColumn[] { this.tableAnagImpianti.idxImpiantoColumn}, new global::System.Data.DataColumn[] { this.tablev_macchine.idxImpiantoColumn}, false); @@ -824,6 +882,14 @@ namespace GIM_data { this.tableAnagrOperMtz.matrOpColumn}, new global::System.Data.DataColumn[] { this.tableInterventoOpMtz.matrOpColumn}, false); this.Relations.Add(this.relationFK_InterventoOpMtz_AnagrOperMtz); + this.relationFK_ImpiegoRisorse_AnagTipoRisorsa = new global::System.Data.DataRelation("FK_ImpiegoRisorse_AnagTipoRisorsa", new global::System.Data.DataColumn[] { + this.tableAnagTipoRisorsa.CodRisorsaColumn}, new global::System.Data.DataColumn[] { + this.tableImpiegoRisorse.CodRisorsaColumn}, false); + this.Relations.Add(this.relationFK_ImpiegoRisorse_AnagTipoRisorsa); + this.relationv_intervExp_ImpiegoRisorse = new global::System.Data.DataRelation("v_intervExp_ImpiegoRisorse", new global::System.Data.DataColumn[] { + this.tablev_intervExp.numIntMtzColumn}, new global::System.Data.DataColumn[] { + this.tableImpiegoRisorse.numIntMtzColumn}, false); + this.Relations.Add(this.relationv_intervExp_ImpiegoRisorse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -952,6 +1018,18 @@ namespace GIM_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeImpiegoRisorse() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagTipoRisorsa() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1070,6 +1148,12 @@ namespace GIM_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_mtzProgExpRowChangeEventHandler(object sender, v_mtzProgExpRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ImpiegoRisorseRowChangeEventHandler(object sender, ImpiegoRisorseRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagTipoRisorsaRowChangeEventHandler(object sender, AnagTipoRisorsaRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -8079,6 +8163,636 @@ namespace GIM_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ImpiegoRisorseDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxImpiego; + + private global::System.Data.DataColumn columnCodRisorsa; + + private global::System.Data.DataColumn columnnumIntMtz; + + private global::System.Data.DataColumn columnQtaRisorsa; + + private global::System.Data.DataColumn columnCostoUnit; + + private global::System.Data.DataColumn columnTotImport; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseDataTable() { + this.TableName = "ImpiegoRisorse"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ImpiegoRisorseDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ImpiegoRisorseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxImpiegoColumn { + get { + return this.columnidxImpiego; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodRisorsaColumn { + get { + return this.columnCodRisorsa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn numIntMtzColumn { + get { + return this.columnnumIntMtz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn QtaRisorsaColumn { + get { + return this.columnQtaRisorsa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CostoUnitColumn { + get { + return this.columnCostoUnit; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotImportColumn { + get { + return this.columnTotImport; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow this[int index] { + get { + return ((ImpiegoRisorseRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ImpiegoRisorseRowChangeEventHandler ImpiegoRisorseRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ImpiegoRisorseRowChangeEventHandler ImpiegoRisorseRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ImpiegoRisorseRowChangeEventHandler ImpiegoRisorseRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ImpiegoRisorseRowChangeEventHandler ImpiegoRisorseRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddImpiegoRisorseRow(ImpiegoRisorseRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow AddImpiegoRisorseRow(int idxImpiego, AnagTipoRisorsaRow parentAnagTipoRisorsaRowByFK_ImpiegoRisorse_AnagTipoRisorsa, v_intervExpRow parentv_intervExpRowByv_intervExp_ImpiegoRisorse, decimal QtaRisorsa, decimal CostoUnit, decimal TotImport) { + ImpiegoRisorseRow rowImpiegoRisorseRow = ((ImpiegoRisorseRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxImpiego, + null, + null, + QtaRisorsa, + CostoUnit, + TotImport}; + if ((parentAnagTipoRisorsaRowByFK_ImpiegoRisorse_AnagTipoRisorsa != null)) { + columnValuesArray[1] = parentAnagTipoRisorsaRowByFK_ImpiegoRisorse_AnagTipoRisorsa[0]; + } + if ((parentv_intervExpRowByv_intervExp_ImpiegoRisorse != null)) { + columnValuesArray[2] = parentv_intervExpRowByv_intervExp_ImpiegoRisorse[0]; + } + rowImpiegoRisorseRow.ItemArray = columnValuesArray; + this.Rows.Add(rowImpiegoRisorseRow); + return rowImpiegoRisorseRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow FindByidxImpiego(int idxImpiego) { + return ((ImpiegoRisorseRow)(this.Rows.Find(new object[] { + idxImpiego}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ImpiegoRisorseDataTable cln = ((ImpiegoRisorseDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [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 ImpiegoRisorseDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxImpiego = base.Columns["idxImpiego"]; + this.columnCodRisorsa = base.Columns["CodRisorsa"]; + this.columnnumIntMtz = base.Columns["numIntMtz"]; + this.columnQtaRisorsa = base.Columns["QtaRisorsa"]; + this.columnCostoUnit = base.Columns["CostoUnit"]; + this.columnTotImport = base.Columns["TotImport"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxImpiego = new global::System.Data.DataColumn("idxImpiego", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxImpiego); + this.columnCodRisorsa = new global::System.Data.DataColumn("CodRisorsa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodRisorsa); + this.columnnumIntMtz = new global::System.Data.DataColumn("numIntMtz", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnumIntMtz); + this.columnQtaRisorsa = new global::System.Data.DataColumn("QtaRisorsa", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtaRisorsa); + this.columnCostoUnit = new global::System.Data.DataColumn("CostoUnit", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCostoUnit); + this.columnTotImport = new global::System.Data.DataColumn("TotImport", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotImport); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxImpiego}, true)); + this.columnidxImpiego.AllowDBNull = false; + this.columnidxImpiego.Unique = true; + this.columnCodRisorsa.AllowDBNull = false; + this.columnCodRisorsa.MaxLength = 10; + this.columnnumIntMtz.AllowDBNull = false; + this.columnTotImport.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow NewImpiegoRisorseRow() { + return ((ImpiegoRisorseRow)(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 ImpiegoRisorseRow(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(ImpiegoRisorseRow); + } + + [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.ImpiegoRisorseRowChanged != null)) { + this.ImpiegoRisorseRowChanged(this, new ImpiegoRisorseRowChangeEvent(((ImpiegoRisorseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.ImpiegoRisorseRowChanging != null)) { + this.ImpiegoRisorseRowChanging(this, new ImpiegoRisorseRowChangeEvent(((ImpiegoRisorseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.ImpiegoRisorseRowDeleted != null)) { + this.ImpiegoRisorseRowDeleted(this, new ImpiegoRisorseRowChangeEvent(((ImpiegoRisorseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.ImpiegoRisorseRowDeleting != null)) { + this.ImpiegoRisorseRowDeleting(this, new ImpiegoRisorseRowChangeEvent(((ImpiegoRisorseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveImpiegoRisorseRow(ImpiegoRisorseRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ImpiegoRisorseDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagTipoRisorsaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodRisorsa; + + private global::System.Data.DataColumn columnUM; + + private global::System.Data.DataColumn columnDescrRisorsa; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaDataTable() { + this.TableName = "AnagTipoRisorsa"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagTipoRisorsaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagTipoRisorsaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodRisorsaColumn { + get { + return this.columnCodRisorsa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn UMColumn { + get { + return this.columnUM; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrRisorsaColumn { + get { + return this.columnDescrRisorsa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaRow this[int index] { + get { + return ((AnagTipoRisorsaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoRisorsaRowChangeEventHandler AnagTipoRisorsaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoRisorsaRowChangeEventHandler AnagTipoRisorsaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoRisorsaRowChangeEventHandler AnagTipoRisorsaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagTipoRisorsaRowChangeEventHandler AnagTipoRisorsaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagTipoRisorsaRow(AnagTipoRisorsaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaRow AddAnagTipoRisorsaRow(string CodRisorsa, string UM, string DescrRisorsa) { + AnagTipoRisorsaRow rowAnagTipoRisorsaRow = ((AnagTipoRisorsaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodRisorsa, + UM, + DescrRisorsa}; + rowAnagTipoRisorsaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagTipoRisorsaRow); + return rowAnagTipoRisorsaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaRow FindByCodRisorsa(string CodRisorsa) { + return ((AnagTipoRisorsaRow)(this.Rows.Find(new object[] { + CodRisorsa}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagTipoRisorsaDataTable cln = ((AnagTipoRisorsaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [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 AnagTipoRisorsaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodRisorsa = base.Columns["CodRisorsa"]; + this.columnUM = base.Columns["UM"]; + this.columnDescrRisorsa = base.Columns["DescrRisorsa"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodRisorsa = new global::System.Data.DataColumn("CodRisorsa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodRisorsa); + this.columnUM = new global::System.Data.DataColumn("UM", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUM); + this.columnDescrRisorsa = new global::System.Data.DataColumn("DescrRisorsa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrRisorsa); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodRisorsa}, true)); + this.columnCodRisorsa.AllowDBNull = false; + this.columnCodRisorsa.Unique = true; + this.columnCodRisorsa.MaxLength = 10; + this.columnUM.AllowDBNull = false; + this.columnUM.MaxLength = 10; + this.columnDescrRisorsa.AllowDBNull = false; + this.columnDescrRisorsa.Caption = "LemmaRisorsa"; + this.columnDescrRisorsa.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaRow NewAnagTipoRisorsaRow() { + return ((AnagTipoRisorsaRow)(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 AnagTipoRisorsaRow(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(AnagTipoRisorsaRow); + } + + [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.AnagTipoRisorsaRowChanged != null)) { + this.AnagTipoRisorsaRowChanged(this, new AnagTipoRisorsaRowChangeEvent(((AnagTipoRisorsaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.AnagTipoRisorsaRowChanging != null)) { + this.AnagTipoRisorsaRowChanging(this, new AnagTipoRisorsaRowChangeEvent(((AnagTipoRisorsaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.AnagTipoRisorsaRowDeleted != null)) { + this.AnagTipoRisorsaRowDeleted(this, new AnagTipoRisorsaRowChangeEvent(((AnagTipoRisorsaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.AnagTipoRisorsaRowDeleting != null)) { + this.AnagTipoRisorsaRowDeleting(this, new AnagTipoRisorsaRowChangeEvent(((AnagTipoRisorsaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagTipoRisorsaRow(AnagTipoRisorsaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagTipoRisorsaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -9701,6 +10415,17 @@ namespace GIM_data { return ((InterventoOpMtzRow[])(base.GetChildRows(this.Table.ChildRelations["v_intervExp_InterventoOpMtz"]))); } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow[] GetImpiegoRisorseRows() { + if ((this.Table.ChildRelations["v_intervExp_ImpiegoRisorse"] == null)) { + return new ImpiegoRisorseRow[0]; + } + else { + return ((ImpiegoRisorseRow[])(base.GetChildRows(this.Table.ChildRelations["v_intervExp_ImpiegoRisorse"]))); + } + } } /// @@ -11348,6 +12073,219 @@ namespace GIM_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class ImpiegoRisorseRow : global::System.Data.DataRow { + + private ImpiegoRisorseDataTable tableImpiegoRisorse; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ImpiegoRisorseRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableImpiegoRisorse = ((ImpiegoRisorseDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxImpiego { + get { + return ((int)(this[this.tableImpiegoRisorse.idxImpiegoColumn])); + } + set { + this[this.tableImpiegoRisorse.idxImpiegoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodRisorsa { + get { + return ((string)(this[this.tableImpiegoRisorse.CodRisorsaColumn])); + } + set { + this[this.tableImpiegoRisorse.CodRisorsaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int numIntMtz { + get { + return ((int)(this[this.tableImpiegoRisorse.numIntMtzColumn])); + } + set { + this[this.tableImpiegoRisorse.numIntMtzColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal QtaRisorsa { + get { + try { + return ((decimal)(this[this.tableImpiegoRisorse.QtaRisorsaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'QtaRisorsa\' in table \'ImpiegoRisorse\' is DBNull.", e); + } + } + set { + this[this.tableImpiegoRisorse.QtaRisorsaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal CostoUnit { + get { + try { + return ((decimal)(this[this.tableImpiegoRisorse.CostoUnitColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CostoUnit\' in table \'ImpiegoRisorse\' is DBNull.", e); + } + } + set { + this[this.tableImpiegoRisorse.CostoUnitColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TotImport { + get { + try { + return ((decimal)(this[this.tableImpiegoRisorse.TotImportColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotImport\' in table \'ImpiegoRisorse\' is DBNull.", e); + } + } + set { + this[this.tableImpiegoRisorse.TotImportColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaRow AnagTipoRisorsaRow { + get { + return ((AnagTipoRisorsaRow)(this.GetParentRow(this.Table.ParentRelations["FK_ImpiegoRisorse_AnagTipoRisorsa"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_ImpiegoRisorse_AnagTipoRisorsa"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_intervExpRow v_intervExpRow { + get { + return ((v_intervExpRow)(this.GetParentRow(this.Table.ParentRelations["v_intervExp_ImpiegoRisorse"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["v_intervExp_ImpiegoRisorse"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsQtaRisorsaNull() { + return this.IsNull(this.tableImpiegoRisorse.QtaRisorsaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetQtaRisorsaNull() { + this[this.tableImpiegoRisorse.QtaRisorsaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCostoUnitNull() { + return this.IsNull(this.tableImpiegoRisorse.CostoUnitColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCostoUnitNull() { + this[this.tableImpiegoRisorse.CostoUnitColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotImportNull() { + return this.IsNull(this.tableImpiegoRisorse.TotImportColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotImportNull() { + this[this.tableImpiegoRisorse.TotImportColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagTipoRisorsaRow : global::System.Data.DataRow { + + private AnagTipoRisorsaDataTable tableAnagTipoRisorsa; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagTipoRisorsaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagTipoRisorsa = ((AnagTipoRisorsaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodRisorsa { + get { + return ((string)(this[this.tableAnagTipoRisorsa.CodRisorsaColumn])); + } + set { + this[this.tableAnagTipoRisorsa.CodRisorsaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string UM { + get { + return ((string)(this[this.tableAnagTipoRisorsa.UMColumn])); + } + set { + this[this.tableAnagTipoRisorsa.UMColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrRisorsa { + get { + return ((string)(this[this.tableAnagTipoRisorsa.DescrRisorsaColumn])); + } + set { + this[this.tableAnagTipoRisorsa.DescrRisorsaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseRow[] GetImpiegoRisorseRows() { + if ((this.Table.ChildRelations["FK_ImpiegoRisorse_AnagTipoRisorsa"] == null)) { + return new ImpiegoRisorseRow[0]; + } + else { + return ((ImpiegoRisorseRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ImpiegoRisorse_AnagTipoRisorsa"]))); + } + } + } + /// ///Row event argument class /// @@ -12061,6 +12999,74 @@ namespace GIM_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ImpiegoRisorseRowChangeEvent : global::System.EventArgs { + + private ImpiegoRisorseRow 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 ImpiegoRisorseRowChangeEvent(ImpiegoRisorseRow 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 ImpiegoRisorseRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagTipoRisorsaRowChangeEvent : global::System.EventArgs { + + private AnagTipoRisorsaRow 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 AnagTipoRisorsaRowChangeEvent(AnagTipoRisorsaRow 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 AnagTipoRisorsaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GIM_data.DS_applicazioneTableAdapters { @@ -19812,6 +20818,764 @@ ORDER BY numIntMtz DESC"; return returnValue; } } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [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 ImpiegoRisorseTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ImpiegoRisorseTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + 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 = "ImpiegoRisorse"; + tableMapping.ColumnMappings.Add("idxImpiego", "idxImpiego"); + tableMapping.ColumnMappings.Add("CodRisorsa", "CodRisorsa"); + tableMapping.ColumnMappings.Add("numIntMtz", "numIntMtz"); + tableMapping.ColumnMappings.Add("QtaRisorsa", "QtaRisorsa"); + tableMapping.ColumnMappings.Add("CostoUnit", "CostoUnit"); + tableMapping.ColumnMappings.Add("TotImport", "TotImport"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ImpiegoRisorse] WHERE (([idxImpiego] = @Original_idxImpiego))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxImpiego", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpiego", 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].[ImpiegoRisorse] ([idxImpiego], [CodRisorsa], [numIntMtz], [Qta" + + "Risorsa], [CostoUnit]) VALUES (@idxImpiego, @CodRisorsa, @numIntMtz, @QtaRisorsa" + + ", @CostoUnit)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpiego", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpiego", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numIntMtz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numIntMtz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaRisorsa", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QtaRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostoUnit", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "CostoUnit", 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].[ImpiegoRisorse] SET [idxImpiego] = @idxImpiego, [CodRisorsa] = @Cod" + + "Risorsa, [numIntMtz] = @numIntMtz, [QtaRisorsa] = @QtaRisorsa, [CostoUnit] = @Co" + + "stoUnit WHERE (([idxImpiego] = @Original_idxImpiego))"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpiego", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpiego", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numIntMtz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "numIntMtz", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaRisorsa", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "QtaRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostoUnit", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 6, "CostoUnit", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxImpiego", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxImpiego", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString; + } + + [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[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT idxImpiego, CodRisorsa, numIntMtz, QtaRisorsa, CostoUnit, TotImport FROM d" + + "bo.ImpiegoRisorse"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [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.Fill, true)] + public virtual int Fill(DS_applicazione.ImpiegoRisorseDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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, true)] + public virtual DS_applicazione.ImpiegoRisorseDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.ImpiegoRisorseDataTable dataTable = new DS_applicazione.ImpiegoRisorseDataTable(); + 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")] + public virtual int Update(DS_applicazione.ImpiegoRisorseDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "ImpiegoRisorse"); + } + + [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(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idxImpiego) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxImpiego)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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 idxImpiego, string CodRisorsa, int numIntMtz, global::System.Nullable QtaRisorsa, global::System.Nullable CostoUnit) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxImpiego)); + if ((CodRisorsa == null)) { + throw new global::System.ArgumentNullException("CodRisorsa"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodRisorsa)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(numIntMtz)); + if ((QtaRisorsa.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(QtaRisorsa.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CostoUnit.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(CostoUnit.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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 idxImpiego, string CodRisorsa, int numIntMtz, global::System.Nullable QtaRisorsa, global::System.Nullable CostoUnit, int Original_idxImpiego) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxImpiego)); + if ((CodRisorsa == null)) { + throw new global::System.ArgumentNullException("CodRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodRisorsa)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(numIntMtz)); + if ((QtaRisorsa.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(QtaRisorsa.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CostoUnit.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(CostoUnit.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idxImpiego)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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 CodRisorsa, int numIntMtz, global::System.Nullable QtaRisorsa, global::System.Nullable CostoUnit, int Original_idxImpiego) { + return this.Update(Original_idxImpiego, CodRisorsa, numIntMtz, QtaRisorsa, CostoUnit, Original_idxImpiego); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [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 AnagTipoRisorsaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagTipoRisorsaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + 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 = "AnagTipoRisorsa"; + tableMapping.ColumnMappings.Add("CodRisorsa", "CodRisorsa"); + tableMapping.ColumnMappings.Add("UM", "UM"); + tableMapping.ColumnMappings.Add("LemmaRisorsa", "DescrRisorsa"); + tableMapping.ColumnMappings.Add("DescrRisorsa", "DescrRisorsa"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagTipoRisorsa] WHERE (([CodRisorsa] = @Original_CodRisorsa))" + + ""; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", 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].[AnagTipoRisorsa] ([CodRisorsa], [UM], [LemmaRisorsa]) VALUES (" + + "@CodRisorsa, @UM, @LemmaRisorsa)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UM", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LemmaRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LemmaRisorsa", 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].[AnagTipoRisorsa] SET [CodRisorsa] = @CodRisorsa, [UM] = @UM, [Descr" + + "Risorsa] = @DescrRisorsa WHERE (([CodRisorsa] = @Original_CodRisorsa))"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UM", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodRisorsa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString; + } + + [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[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagTipoRisorsa"; + 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_ATR_delete"; + 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_CodRisorsa", global::System.Data.SqlDbType.NVarChar, 10, 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 = "dbo.stp_ATR_insert"; + 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("@CodRisorsa", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UM", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrRisorsa", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_ATR_update"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodRisorsa", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UM", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrRisorsa", 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()] + [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_applicazione.AnagTipoRisorsaDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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, true)] + public virtual DS_applicazione.AnagTipoRisorsaDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.AnagTipoRisorsaDataTable dataTable = new DS_applicazione.AnagTipoRisorsaDataTable(); + 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")] + public virtual int Update(DS_applicazione.AnagTipoRisorsaDataTable dataTable) { + return this.Adapter.Update(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")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagTipoRisorsa"); + } + + [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(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_CodRisorsa) { + if ((Original_CodRisorsa == null)) { + throw new global::System.ArgumentNullException("Original_CodRisorsa"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodRisorsa)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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(string CodRisorsa, string UM, string LemmaRisorsa) { + if ((CodRisorsa == null)) { + throw new global::System.ArgumentNullException("CodRisorsa"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodRisorsa)); + } + if ((UM == null)) { + throw new global::System.ArgumentNullException("UM"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UM)); + } + if ((LemmaRisorsa == null)) { + throw new global::System.ArgumentNullException("LemmaRisorsa"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(LemmaRisorsa)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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 CodRisorsa, string UM, string DescrRisorsa, string Original_CodRisorsa) { + if ((CodRisorsa == null)) { + throw new global::System.ArgumentNullException("CodRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodRisorsa)); + } + if ((UM == null)) { + throw new global::System.ArgumentNullException("UM"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UM)); + } + if ((DescrRisorsa == null)) { + throw new global::System.ArgumentNullException("DescrRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescrRisorsa)); + } + if ((Original_CodRisorsa == null)) { + throw new global::System.ArgumentNullException("Original_CodRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodRisorsa)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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 UM, string DescrRisorsa, string Original_CodRisorsa) { + return this.Update(Original_CodRisorsa, UM, DescrRisorsa, Original_CodRisorsa); + } + + [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 deleteQuery(string Original_CodRisorsa) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_CodRisorsa == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodRisorsa)); + } + 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; + } + + [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 insertQuery(string CodRisorsa, string UM, string DescrRisorsa) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodRisorsa == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodRisorsa)); + } + if ((UM == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(UM)); + } + if ((DescrRisorsa == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(DescrRisorsa)); + } + 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; + } + + [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 updateQuery(string Original_CodRisorsa, string UM, string DescrRisorsa) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((Original_CodRisorsa == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodRisorsa)); + } + if ((UM == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(UM)); + } + if ((DescrRisorsa == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(DescrRisorsa)); + } + 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; + } + } } #pragma warning restore 1591 \ No newline at end of file diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xsd b/Projects/WebGIM/GIM_data/DS_applicazione.xsd index 51ff53e..90970d7 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xsd +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xsd @@ -1577,6 +1577,146 @@ WHERE (idxCausale = @Original_idxCausale) + + + + + + DELETE FROM [dbo].[ImpiegoRisorse] WHERE (([idxImpiego] = @Original_idxImpiego)) + + + + + + + + INSERT INTO [dbo].[ImpiegoRisorse] ([idxImpiego], [CodRisorsa], [numIntMtz], [QtaRisorsa], [CostoUnit]) VALUES (@idxImpiego, @CodRisorsa, @numIntMtz, @QtaRisorsa, @CostoUnit) + + + + + + + + + + + + SELECT idxImpiego, CodRisorsa, numIntMtz, QtaRisorsa, CostoUnit, TotImport FROM dbo.ImpiegoRisorse + + + + + + UPDATE [dbo].[ImpiegoRisorse] SET [idxImpiego] = @idxImpiego, [CodRisorsa] = @CodRisorsa, [numIntMtz] = @numIntMtz, [QtaRisorsa] = @QtaRisorsa, [CostoUnit] = @CostoUnit WHERE (([idxImpiego] = @Original_idxImpiego)) + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagTipoRisorsa] WHERE (([CodRisorsa] = @Original_CodRisorsa)) + + + + + + + + INSERT INTO [dbo].[AnagTipoRisorsa] ([CodRisorsa], [UM], [LemmaRisorsa]) VALUES (@CodRisorsa, @UM, @LemmaRisorsa) + + + + + + + + + + SELECT * FROM dbo.AnagTipoRisorsa + + + + + + UPDATE [dbo].[AnagTipoRisorsa] SET [CodRisorsa] = @CodRisorsa, [UM] = @UM, [DescrRisorsa] = @DescrRisorsa WHERE (([CodRisorsa] = @Original_CodRisorsa)) + + + + + + + + + + + + + + + + + + + + + dbo.stp_ATR_delete + + + + + + + + + + + dbo.stp_ATR_insert + + + + + + + + + + + + + dbo.stp_ATR_update + + + + + + + + + + + @@ -2067,7 +2207,7 @@ WHERE (idxCausale = @Original_idxCausale) - + @@ -2143,6 +2283,51 @@ WHERE (idxCausale = @Original_idxCausale) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2234,23 +2419,33 @@ WHERE (idxCausale = @Original_idxCausale) + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xss b/Projects/WebGIM/GIM_data/DS_applicazione.xss index 23f0852..ef5bbce 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xss +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xss @@ -4,32 +4,34 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + 1029 @@ -41,7 +43,7 @@ - + 1251 @@ -53,7 +55,7 @@ - + 1239 @@ -65,19 +67,19 @@ - + - 511 - 142 + 679 + 141 - 511 + 679 217 - + 810 @@ -89,31 +91,31 @@ - + - 453 - 437 + 448 + 417 - 484 - 437 + 526 + 417 - + - 353 - 260 + 301 + 225 - 484 - 260 + 526 + 225 - + 631 @@ -129,7 +131,7 @@ - + 1141 @@ -141,7 +143,7 @@ - + 1017 @@ -157,7 +159,7 @@ - + 1362 @@ -173,7 +175,7 @@ - + 922 @@ -185,7 +187,7 @@ - + 1328 @@ -197,7 +199,7 @@ - + 754 @@ -209,5 +211,37 @@ + + + + 141 + 738 + + + 141 + 681 + + + 249 + 681 + + + + + + + 569 + 598 + + + 569 + 642 + + + 460 + 642 + + + \ No newline at end of file diff --git a/Projects/WebGIM/GIM_data/bin/GIM_data.dll b/Projects/WebGIM/GIM_data/bin/GIM_data.dll index 836fb5a..e1b19b8 100644 Binary files a/Projects/WebGIM/GIM_data/bin/GIM_data.dll and b/Projects/WebGIM/GIM_data/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_data/bin/SteamWare.dll b/Projects/WebGIM/GIM_data/bin/SteamWare.dll index 51c4904..e339769 100644 Binary files a/Projects/WebGIM/GIM_data/bin/SteamWare.dll and b/Projects/WebGIM/GIM_data/bin/SteamWare.dll differ diff --git a/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx new file mode 100644 index 0000000..3b38fe8 --- /dev/null +++ b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx @@ -0,0 +1,5 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="AnagTipoRisorsa.aspx.cs" Inherits="GIM_site.AnagTipoRisorsa" %> +<%@ Register src="~/WebUserControls/mod_tipoRisorsa.ascx" tagname="mod_tipoRisorsa" tagprefix="uc1" %> + + + diff --git a/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.cs b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.cs new file mode 100644 index 0000000..0f048a9 --- /dev/null +++ b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GIM_site +{ + public partial class AnagTipoRisorsa : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.designer.cs b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.designer.cs new file mode 100644 index 0000000..b65dabc --- /dev/null +++ b/Projects/WebGIM/GIM_site/AnagTipoRisorsa.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GIM_site { + + + public partial class AnagTipoRisorsa { + + /// + /// mod_tipoRisorsa1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GIM_site.WebUserControls.mod_tipoRisorsa mod_tipoRisorsa1; + } +} diff --git a/Projects/WebGIM/GIM_site/GIM_site.csproj b/Projects/WebGIM/GIM_site/GIM_site.csproj index d18422e..decf757 100644 --- a/Projects/WebGIM/GIM_site/GIM_site.csproj +++ b/Projects/WebGIM/GIM_site/GIM_site.csproj @@ -174,6 +174,7 @@ + @@ -637,6 +638,9 @@ + + WebGIM.cs + adminDB.aspx ASPXCodeBehind @@ -644,6 +648,13 @@ adminDB.aspx + + AnagTipoRisorsa.aspx + ASPXCodeBehind + + + AnagTipoRisorsa.aspx + ExcelExportMtzPrev.aspx ASPXCodeBehind @@ -1191,6 +1202,13 @@ mod_tipoGuasto.ascx + + mod_tipoRisorsa.ascx + ASPXCodeBehind + + + mod_tipoRisorsa.ascx + mod_titlePortable.ascx ASPXCodeBehind @@ -1368,6 +1386,7 @@ + @@ -1422,6 +1441,10 @@ {F66427C8-882A-4EF8-B42F-EF142906DC8C} GIM_data + + {be594f80-8fc2-45be-99d1-aec73f71e41e} + VersGen + diff --git a/Projects/WebGIM/GIM_site/Properties/AssemblyInfo.cs b/Projects/WebGIM/GIM_site/Properties/AssemblyInfo.cs index 8202bec..9db70fa 100644 --- a/Projects/WebGIM/GIM_site/Properties/AssemblyInfo.cs +++ b/Projects/WebGIM/GIM_site/Properties/AssemblyInfo.cs @@ -5,12 +5,12 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("GIM_site")] +[assembly: AssemblyTitle("WebGIM")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("GIM_site")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +//[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("WebGIM")] +//[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +//[assembly: AssemblyVersion("1.0.0.0")] +//[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Projects/WebGIM/GIM_site/Web.config b/Projects/WebGIM/GIM_site/Web.config index 09c0887..1453707 100644 --- a/Projects/WebGIM/GIM_site/Web.config +++ b/Projects/WebGIM/GIM_site/Web.config @@ -107,9 +107,9 @@ - + diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettaglioIntervento.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettaglioIntervento.ascx index cc93410..b0e7fd0 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_dettaglioIntervento.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_dettaglioIntervento.ascx @@ -10,7 +10,7 @@
- +
@@ -98,8 +98,7 @@ SelectedValue='<%# Eval("idxImpianto") %>' Enabled="false"> - + SelectMethod="getImpiantiValidi" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter"> @@ -119,8 +118,7 @@ --%> - + SelectMethod="getData" TypeName="GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter"> @@ -167,8 +165,7 @@
-
+
@@ -344,8 +339,7 @@ --%> - + SelectMethod="getData" TypeName="GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter"> @@ -392,8 +386,7 @@
@@ -210,8 +207,7 @@ DataSourceID="odsStato" DataTextField="label" DataValueField="value" Enabled="false"> - + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selStatoTableAdapter"> @@ -323,8 +319,7 @@ Enabled="false"> - + SelectMethod="getImpiantiValidi" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter">
-
+
@@ -557,8 +548,7 @@ DataValueField="value" Width="400px" BackColor="#cdffcd" Font-Size="8pt" SelectedValue='<%# Bind("idxImpianto") %>'> - + SelectMethod="getImpiantiValidi" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter"> @@ -577,8 +567,7 @@ --%> - + SelectMethod="getData" TypeName="GIM_data.DS_utilityTableAdapters.v_selMacchineTableAdapter"> @@ -618,8 +607,7 @@ - + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selPriorTableAdapter">
@@ -435,8 +428,7 @@ DataSourceID="odsStato" DataTextField="label" DataValueField="value"> - + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selStatoTableAdapter"> @@ -544,8 +536,7 @@ SelectedValue='<%# Bind("idxAmbito") %>'> - + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selAmbitiTableAdapter">
- + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selTipoGuastoTableAdapter">
-
+
@@ -692,8 +678,7 @@ DataSourceID="odsStato" DataTextField="label" DataValueField="value"> - + SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selStatoTableAdapter"> diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_menuBottom.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_menuBottom.ascx.cs index 1882ad9..6a801e0 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_menuBottom.ascx.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_menuBottom.ascx.cs @@ -8,13 +8,18 @@ using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; +using System.Diagnostics; public partial class mod_menuBottom : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { // sistemo le stringhe... - lblApp.Text = string.Format("{0} v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev")); - lblCopyRight.Text = string.Format("{0}-{1}",ConfigurationManager.AppSettings.Get("copyRight"), DateTime.Now.Year); + lblApp.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); + var versionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location); + lblCopyRight.Text = string.Format("{0}", versionInfo.LegalCopyright); + + //lblApp.Text = string.Format("{0} v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev")); + //lblCopyRight.Text = string.Format("{0}-{1}",ConfigurationManager.AppSettings.Get("copyRight"), DateTime.Now.Year); } } diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx new file mode 100644 index 0000000..2ae0629 --- /dev/null +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx @@ -0,0 +1,84 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_tipoRisorsa.ascx.cs" Inherits="GIM_site.WebUserControls.mod_tipoRisorsa" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.cs new file mode 100644 index 0000000..586f393 --- /dev/null +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; + +namespace GIM_site.WebUserControls +{ + public partial class mod_tipoRisorsa : ApplicationUserControl + { + public event EventHandler eh_resetSelezione; + /// + /// evento dati associati a controllo + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + LinkButton lb; + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + lb = (LinkButton)cella.Controls[0]; + lb.Text = traduci(lb.Text); + } + catch + { } + } + int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); + lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + } + else + { + lblNumRec.Text = ""; + } + } + /// + /// reset delle selezioni + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// resetta la selezione dei valori in caso di modifiche su altri controlli + /// + public void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + if (eh_resetSelezione != null) + { + eh_resetSelezione(this, new EventArgs()); + } + } + /// + /// seleziono valore in editing... + /// + /// + /// + protected void grView_RowEditing(object sender, GridViewEditEventArgs e) + { + // seleziono la riga corrente... + grView.SelectedIndex = e.NewEditIndex; + } + /// + /// gestione evento inserimento nuovo record standard (se ZERO presenti) + /// + /// + /// + protected void btnNewFromEmpty_Click(object sender, EventArgs e) + { + // reset selezione... + resetSelezione(); + GIM_data.DS_applicazioneTableAdapters.AnagTipoRisorsaTableAdapter taATR = new GIM_data.DS_applicazioneTableAdapters.AnagTipoRisorsaTableAdapter(); + taATR.insertQuery("--NEW--", "NR", "Description"); + grView.DataBind(); + } + + } +} \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.designer.cs new file mode 100644 index 0000000..2da210e --- /dev/null +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_tipoRisorsa.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GIM_site.WebUserControls { + + + public partial class mod_tipoRisorsa { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// lblNumRec control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblNumRec; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx index 480945e..b02cabc 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx @@ -1,5 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" - Inherits="mod_vocabolario" Codebehind="mod_vocabolario.ascx.cs" %> + Inherits="mod_vocabolario" CodeBehind="mod_vocabolario.ascx.cs" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> @@ -12,19 +12,19 @@ - + + ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_s.png" /> - + + ToolTip='<%# traduci("Edit") %>' ImageUrl="~/images/edit_s.png" /> @@ -57,7 +57,7 @@ + ToolTip='<%# traduci("Delete") %>' ImageUrl="~/images/elimina_s.png" /> @@ -71,35 +71,29 @@ - + FilterExpression="Traduzione LIKE '%{0}%' OR Lemma LIKE '%{0}%' " + OnUpdated="ods_Updated" OnInserted="ods_Inserted"> - - - - - - - - - - - - - - - - + + + + + + + + + + +
- - - +
diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.cs index ec9d032..b33b889 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.cs @@ -9,8 +9,9 @@ using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using SteamWare; +using GIM_data; -public partial class mod_vocabolario : ApplicationUserControl +public partial class mod_vocabolario : SteamWare.UserControl { #region gestione eventi @@ -22,12 +23,13 @@ public partial class mod_vocabolario : ApplicationUserControl #region protected - protected override void traduciObj() + protected void Page_Load() { - base.traduciObj(); - btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma"); - txtNewLemma.Text = ""; - TBW_newLemma.WatermarkText = user_std.UtSn.Traduci("insertNewLemma"); + if (!Page.IsPostBack) + { + btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma"); + txtNewLemma.Text = ""; + } } /// @@ -55,15 +57,23 @@ public partial class mod_vocabolario : ApplicationUserControl // aggiorno il vocabolario in memoria... DataWrap.DW.resetVocabolario(); // riparto... - Response.Redirect(_paginaCorrente); + Response.Redirect(user_std.pagCorrente); } } - protected override void aggiornaControlliDataGL() + /// + /// dimensione pagina grid view + /// + public int pageSize { - base.aggiornaControlliDataGL(); - grView.PageSize = _righeDataGridAnagr; - ods.DataBind(); + get + { + return grView.PageSize; + } + set + { + grView.PageSize = value; + } } protected void grView_DataBound(object sender, EventArgs e) @@ -83,7 +93,7 @@ public partial class mod_vocabolario : ApplicationUserControl { } } int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1); - lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord); + lblNumRec.Text = string.Format("{0} ({1})", grView.Rows.Count, totRecord); } else { @@ -119,6 +129,7 @@ public partial class mod_vocabolario : ApplicationUserControl protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) { + DataWrap.DW.resetVocabolario(); selezionatoValore(); } @@ -141,6 +152,10 @@ public partial class mod_vocabolario : ApplicationUserControl } #endregion - -} + protected void ods_Inserted(object sender, ObjectDataSourceStatusEventArgs e) + { + DataWrap.DW.resetVocabolario(); + selezionatoValore(); + } +} \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.designer.cs b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.designer.cs index e1d042f..bc7c714 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.designer.cs +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_vocabolario.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -56,13 +55,4 @@ public partial class mod_vocabolario { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.TextBox txtNewLemma; - - /// - /// TBW_newLemma control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::AjaxControlToolkit.TextBoxWatermarkExtender TBW_newLemma; } diff --git a/Projects/WebGIM/GIM_site/bin/GIM_data.dll b/Projects/WebGIM/GIM_site/bin/GIM_data.dll index 836fb5a..e1b19b8 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_data.dll and b/Projects/WebGIM/GIM_site/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/GIM_site.dll b/Projects/WebGIM/GIM_site/bin/GIM_site.dll index 1f1efca..080eed5 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_site.dll and b/Projects/WebGIM/GIM_site/bin/GIM_site.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/SteamWare.dll b/Projects/WebGIM/GIM_site/bin/SteamWare.dll index 51c4904..e339769 100644 Binary files a/Projects/WebGIM/GIM_site/bin/SteamWare.dll and b/Projects/WebGIM/GIM_site/bin/SteamWare.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/VersGen.dll b/Projects/WebGIM/GIM_site/bin/VersGen.dll new file mode 100644 index 0000000..8cbb969 Binary files /dev/null and b/Projects/WebGIM/GIM_site/bin/VersGen.dll differ diff --git a/Projects/WebGIM/GIM_site/obj/Alumat/DesignTimeResolveAssemblyReferencesInput.cache b/Projects/WebGIM/GIM_site/obj/Alumat/DesignTimeResolveAssemblyReferencesInput.cache index a801899..c1db677 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Alumat/DesignTimeResolveAssemblyReferencesInput.cache and b/Projects/WebGIM/GIM_site/obj/Alumat/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csproj.FileListAbsolute.txt b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csproj.FileListAbsolute.txt index 595aa4c..7b673e6 100644 --- a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csproj.FileListAbsolute.txt +++ b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csproj.FileListAbsolute.txt @@ -29,3 +29,5 @@ C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GI C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\Alumat\RdlCompile.compiled C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\Alumat\GIM_site.dll C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\Alumat\GIM_site.pdb +C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\bin\VersGen.dll +C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\bin\VersGen.pdb diff --git a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csprojResolveAssemblyReference.cache b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csprojResolveAssemblyReference.cache index 652e7e4..3034df0 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csprojResolveAssemblyReference.cache and b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.csprojResolveAssemblyReference.cache differ diff --git a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.dll b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.dll index 1f1efca..11aa8aa 100644 Binary files a/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.dll and b/Projects/WebGIM/GIM_site/obj/Alumat/GIM_site.dll differ diff --git a/Projects/WebGIM/VersGen/Properties/AssemblyInfo.cs b/Projects/WebGIM/VersGen/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..887136f --- /dev/null +++ b/Projects/WebGIM/VersGen/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("VersGen")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +//[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("VersGen")] +//[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a5a814af-34cb-46f1-b3ab-518e55468a65")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +//[assembly: AssemblyVersion("1.0.0.0")] +//[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Projects/WebGIM/VersGen/VersGen.csproj b/Projects/WebGIM/VersGen/VersGen.csproj new file mode 100644 index 0000000..f710c2b --- /dev/null +++ b/Projects/WebGIM/VersGen/VersGen.csproj @@ -0,0 +1,65 @@ + + + + + Debug + AnyCPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E} + Library + Properties + VersGen + VersGen + v3.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + True + True + WebGIM.tt + + + + + TextTemplatingFileGenerator + WebGIM.cs + + + + + + + + \ No newline at end of file diff --git a/Projects/WebGIM/VersGen/WebGIM.cs b/Projects/WebGIM/VersGen/WebGIM.cs new file mode 100644 index 0000000..0945db6 --- /dev/null +++ b/Projects/WebGIM/VersGen/WebGIM.cs @@ -0,0 +1,11 @@ +// +// This code was generated by a tool. Any changes made manually will be lost +// the next time this code is regenerated. +// + +using System.Reflection; + +[assembly: AssemblyVersion("1.3.243.480")] +[assembly: AssemblyFileVersion("1.3.243.480")] +[assembly: AssemblyCopyright("Steamware © 2006-2015")] +[assembly: AssemblyCompany("Steamware")] diff --git a/Projects/WebGIM/VersGen/WebGIM.tt b/Projects/WebGIM/VersGen/WebGIM.tt new file mode 100644 index 0000000..71ee4e1 --- /dev/null +++ b/Projects/WebGIM/VersGen/WebGIM.tt @@ -0,0 +1,15 @@ +<#@ template language="C#" #> +// +// This code was generated by a tool. Any changes made manually will be lost +// the next time this code is regenerated. +// + +using System.Reflection; + +[assembly: AssemblyVersion("1.3.243.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("1.3.243.<#= this.RevisionNumber #>")] +[assembly: AssemblyCopyright("Steamware © 2006-<#= DateTime.Now.Year #>")] +[assembly: AssemblyCompany("Steamware")] +<#+ + int RevisionNumber = (int)(DateTime.UtcNow - new DateTime(2006,1,1)).TotalDays/7; +#> \ No newline at end of file diff --git a/Projects/WebGIM/VersGen/bin/Debug/VersGen.dll b/Projects/WebGIM/VersGen/bin/Debug/VersGen.dll new file mode 100644 index 0000000..8cbb969 Binary files /dev/null and b/Projects/WebGIM/VersGen/bin/Debug/VersGen.dll differ diff --git a/Projects/WebGIM/VersGen/bin/Release/VersGen.dll b/Projects/WebGIM/VersGen/bin/Release/VersGen.dll new file mode 100644 index 0000000..d99a3a8 Binary files /dev/null and b/Projects/WebGIM/VersGen/bin/Release/VersGen.dll differ diff --git a/Projects/WebGIM/WebGIM.sln b/Projects/WebGIM/WebGIM.sln index 992e25e..3336773 100644 --- a/Projects/WebGIM/WebGIM.sln +++ b/Projects/WebGIM/WebGIM.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GIM_site", "GIM_site\GIM_si EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GIM_data", "GIM_data\GIM_data.csproj", "{F66427C8-882A-4EF8-B42F-EF142906DC8C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VersGen", "VersGen\VersGen.csproj", "{BE594F80-8FC2-45BE-99D1-AEC73F71E41E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Alumat|Any CPU = Alumat|Any CPU @@ -60,6 +62,20 @@ Global {F66427C8-882A-4EF8-B42F-EF142906DC8C}.SomaschiniUSA|Any CPU.Build.0 = SomaschiniUSA|Any CPU {F66427C8-882A-4EF8-B42F-EF142906DC8C}.WinLab|Any CPU.ActiveCfg = WinLab|Any CPU {F66427C8-882A-4EF8-B42F-EF142906DC8C}.WinLab|Any CPU.Build.0 = WinLab|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Alumat|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Alumat|Any CPU.Build.0 = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.IIS02|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.IIS02|Any CPU.Build.0 = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Release|Any CPU.Build.0 = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Somaschini|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.Somaschini|Any CPU.Build.0 = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.SomaschiniUSA|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.SomaschiniUSA|Any CPU.Build.0 = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.WinLab|Any CPU.ActiveCfg = Release|Any CPU + {BE594F80-8FC2-45BE-99D1-AEC73F71E41E}.WinLab|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE