inserita gestione x creare fornitore da tendina (prima volta)

This commit is contained in:
Samuele Locatelli
2013-09-19 10:22:25 +02:00
parent cee51b197f
commit 1ed9724ec5
12 changed files with 848 additions and 67 deletions
+616
View File
@@ -38,6 +38,8 @@ namespace ETS_Data {
private v_selYearDataTable tablev_selYear;
private v_selFornitoriClaDataTable tablev_selFornitoriCla;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -87,6 +89,9 @@ namespace ETS_Data {
if ((ds.Tables["v_selYear"] != null)) {
base.Tables.Add(new v_selYearDataTable(ds.Tables["v_selYear"]));
}
if ((ds.Tables["v_selFornitoriCla"] != null)) {
base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -175,6 +180,16 @@ namespace ETS_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 v_selFornitoriClaDataTable v_selFornitoriCla {
get {
return this.tablev_selFornitoriCla;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -263,6 +278,9 @@ namespace ETS_Data {
if ((ds.Tables["v_selYear"] != null)) {
base.Tables.Add(new v_selYearDataTable(ds.Tables["v_selYear"]));
}
if ((ds.Tables["v_selFornitoriCla"] != null)) {
base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -338,6 +356,12 @@ namespace ETS_Data {
this.tablev_selYear.InitVars();
}
}
this.tablev_selFornitoriCla = ((v_selFornitoriClaDataTable)(base.Tables["v_selFornitoriCla"]));
if ((initTable == true)) {
if ((this.tablev_selFornitoriCla != null)) {
this.tablev_selFornitoriCla.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -362,6 +386,8 @@ namespace ETS_Data {
base.Tables.Add(this.tablev_selWeek);
this.tablev_selYear = new v_selYearDataTable();
base.Tables.Add(this.tablev_selYear);
this.tablev_selFornitoriCla = new v_selFornitoriClaDataTable();
base.Tables.Add(this.tablev_selFornitoriCla);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -406,6 +432,12 @@ namespace ETS_Data {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializev_selFornitoriCla() {
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) {
@@ -482,6 +514,9 @@ namespace ETS_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selYearRowChangeEventHandler(object sender, v_selYearRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selFornitoriClaRowChangeEventHandler(object sender, v_selFornitoriClaRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -2390,6 +2425,296 @@ namespace ETS_Data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class v_selFornitoriClaDataTable : global::System.Data.TypedTableBase<v_selFornitoriClaRow> {
private global::System.Data.DataColumn columnvalue;
private global::System.Data.DataColumn columnlabel;
private global::System.Data.DataColumn columnconditio;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selFornitoriClaDataTable() {
this.TableName = "v_selFornitoriCla";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selFornitoriClaDataTable(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 v_selFornitoriClaDataTable(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 valueColumn {
get {
return this.columnvalue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn labelColumn {
get {
return this.columnlabel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn conditioColumn {
get {
return this.columnconditio;
}
}
[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 v_selFornitoriClaRow this[int index] {
get {
return ((v_selFornitoriClaRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Addv_selFornitoriClaRow(v_selFornitoriClaRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selFornitoriClaRow Addv_selFornitoriClaRow(string value, string label, string conditio) {
v_selFornitoriClaRow rowv_selFornitoriClaRow = ((v_selFornitoriClaRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
value,
label,
conditio};
rowv_selFornitoriClaRow.ItemArray = columnValuesArray;
this.Rows.Add(rowv_selFornitoriClaRow);
return rowv_selFornitoriClaRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selFornitoriClaRow FindByvalue(string value) {
return ((v_selFornitoriClaRow)(this.Rows.Find(new object[] {
value})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
v_selFornitoriClaDataTable cln = ((v_selFornitoriClaDataTable)(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 v_selFornitoriClaDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnvalue = base.Columns["value"];
this.columnlabel = base.Columns["label"];
this.columnconditio = base.Columns["conditio"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnvalue);
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlabel);
this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnconditio);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnvalue}, true));
this.columnvalue.AllowDBNull = false;
this.columnvalue.Unique = true;
this.columnvalue.MaxLength = 5;
this.columnlabel.AllowDBNull = false;
this.columnlabel.MaxLength = 200;
this.columnconditio.MaxLength = 10;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selFornitoriClaRow Newv_selFornitoriClaRow() {
return ((v_selFornitoriClaRow)(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 v_selFornitoriClaRow(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(v_selFornitoriClaRow);
}
[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.v_selFornitoriClaRowChanged != null)) {
this.v_selFornitoriClaRowChanged(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowChanging != null)) {
this.v_selFornitoriClaRowChanging(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowDeleted != null)) {
this.v_selFornitoriClaRowDeleted(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowDeleting != null)) {
this.v_selFornitoriClaRowDeleting(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Removev_selFornitoriClaRow(v_selFornitoriClaRow 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_utilsProjEts ds = new DS_utilsProjEts();
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 = "v_selFornitoriClaDataTable";
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;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -2813,6 +3138,71 @@ namespace ETS_Data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class v_selFornitoriClaRow : global::System.Data.DataRow {
private v_selFornitoriClaDataTable tablev_selFornitoriCla;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selFornitoriClaRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tablev_selFornitoriCla = ((v_selFornitoriClaDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string value {
get {
return ((string)(this[this.tablev_selFornitoriCla.valueColumn]));
}
set {
this[this.tablev_selFornitoriCla.valueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string label {
get {
return ((string)(this[this.tablev_selFornitoriCla.labelColumn]));
}
set {
this[this.tablev_selFornitoriCla.labelColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string conditio {
get {
try {
return ((string)(this[this.tablev_selFornitoriCla.conditioColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'conditio\' in table \'v_selFornitoriCla\' is DBNull.", e);
}
}
set {
this[this.tablev_selFornitoriCla.conditioColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsconditioNull() {
return this.IsNull(this.tablev_selFornitoriCla.conditioColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetconditioNull() {
this[this.tablev_selFornitoriCla.conditioColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -3050,6 +3440,40 @@ namespace ETS_Data {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class v_selFornitoriClaRowChangeEvent : global::System.EventArgs {
private v_selFornitoriClaRow 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 v_selFornitoriClaRowChangeEvent(v_selFornitoriClaRow 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 v_selFornitoriClaRow 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 ETS_Data.DS_utilsProjEtsTableAdapters {
@@ -4475,6 +4899,198 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[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 v_selFornitoriClaTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
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 v_selFornitoriClaTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected internal 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")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[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 = "v_selFornitoriCla";
tableMapping.ColumnMappings.Add("value", "value");
tableMapping.ColumnMappings.Add("label", "label");
tableMapping.ColumnMappings.Add("conditio", "conditio");
this._adapter.TableMappings.Add(tableMapping);
}
[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 = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT value, label, conditio FROM dbo.v_selFornitoriCla";
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_VSF_getBySearchLike";
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("@ricerca", global::System.Data.SqlDbType.NVarChar, 200, 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_utilsProjEts.v_selFornitoriClaDataTable 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_utilsProjEts.v_selFornitoriClaDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_utilsProjEts.v_selFornitoriClaDataTable dataTable = new DS_utilsProjEts.v_selFornitoriClaDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_utilsProjEts.v_selFornitoriClaDataTable getBySearchLike(string ricerca) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((ricerca == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ricerca));
}
DS_utilsProjEts.v_selFornitoriClaDataTable dataTable = new DS_utilsProjEts.v_selFornitoriClaDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+68 -7
View File
@@ -243,6 +243,36 @@ ORDER BY label</CommandText>
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selFornitoriClaTableAdapter" GeneratorDataComponentClassName="v_selFornitoriClaTableAdapter" Name="v_selFornitoriCla" UserDataComponentName="v_selFornitoriClaTableAdapter">
<MainSource>
<DbSource ConnectionRef="ETS_PROJConnectionString (Settings)" DbObjectName="ETS_PROJ.dbo.v_selFornitoriCla" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT value, label, conditio FROM dbo.v_selFornitoriCla</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="value" DataSetColumn="value" />
<Mapping SourceColumn="label" DataSetColumn="label" />
<Mapping SourceColumn="conditio" DataSetColumn="conditio" />
</Mappings>
<Sources>
<DbSource ConnectionRef="ETS_PROJConnectionString (Settings)" DbObjectName="ETS_PROJ.dbo.stp_VSF_getBySearchLike" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearchLike" GetMethodModifier="Public" GetMethodName="getBySearchLike" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearchLike" UserSourceName="getBySearchLike">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_VSF_getBySearchLike</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ricerca" Precision="0" ProviderType="NVarChar" Scale="0" Size="200" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -251,7 +281,7 @@ ORDER BY label</CommandText>
<xs:element name="DS_utilsProjEts" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_utilsProjEts" msprop:Generator_UserDSName="DS_utilsProjEts">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="v_selClienti" msprop:Generator_TableClassName="v_selClientiDataTable" msprop:Generator_TableVarName="tablev_selClienti" msprop:Generator_RowChangedName="v_selClientiRowChanged" msprop:Generator_TablePropName="v_selClienti" msprop:Generator_RowDeletingName="v_selClientiRowDeleting" msprop:Generator_RowChangingName="v_selClientiRowChanging" msprop:Generator_RowEvHandlerName="v_selClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selClientiRowDeleted" msprop:Generator_RowClassName="v_selClientiRow" msprop:Generator_UserTableName="v_selClienti" msprop:Generator_RowEvArgName="v_selClientiRowChangeEvent">
<xs:element name="v_selClienti" msprop:Generator_TableClassName="v_selClientiDataTable" msprop:Generator_TableVarName="tablev_selClienti" msprop:Generator_TablePropName="v_selClienti" msprop:Generator_RowDeletingName="v_selClientiRowDeleting" msprop:Generator_RowChangingName="v_selClientiRowChanging" msprop:Generator_RowEvHandlerName="v_selClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selClientiRowDeleted" msprop:Generator_UserTableName="v_selClienti" msprop:Generator_RowChangedName="v_selClientiRowChanged" msprop:Generator_RowEvArgName="v_selClientiRowChangeEvent" msprop:Generator_RowClassName="v_selClientiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:int" />
@@ -265,7 +295,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selProgetti" msprop:Generator_TableClassName="v_selProgettiDataTable" msprop:Generator_TableVarName="tablev_selProgetti" msprop:Generator_RowChangedName="v_selProgettiRowChanged" msprop:Generator_TablePropName="v_selProgetti" msprop:Generator_RowDeletingName="v_selProgettiRowDeleting" msprop:Generator_RowChangingName="v_selProgettiRowChanging" msprop:Generator_RowEvHandlerName="v_selProgettiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selProgettiRowDeleted" msprop:Generator_RowClassName="v_selProgettiRow" msprop:Generator_UserTableName="v_selProgetti" msprop:Generator_RowEvArgName="v_selProgettiRowChangeEvent">
<xs:element name="v_selProgetti" msprop:Generator_TableClassName="v_selProgettiDataTable" msprop:Generator_TableVarName="tablev_selProgetti" msprop:Generator_TablePropName="v_selProgetti" msprop:Generator_RowDeletingName="v_selProgettiRowDeleting" msprop:Generator_RowChangingName="v_selProgettiRowChanging" msprop:Generator_RowEvHandlerName="v_selProgettiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selProgettiRowDeleted" msprop:Generator_UserTableName="v_selProgetti" msprop:Generator_RowChangedName="v_selProgettiRowChanged" msprop:Generator_RowEvArgName="v_selProgettiRowChangeEvent" msprop:Generator_RowClassName="v_selProgettiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:int" />
@@ -281,7 +311,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selCommesse" msprop:Generator_TableClassName="v_selCommesseDataTable" msprop:Generator_TableVarName="tablev_selCommesse" msprop:Generator_TablePropName="v_selCommesse" msprop:Generator_RowDeletingName="v_selCommesseRowDeleting" msprop:Generator_RowChangingName="v_selCommesseRowChanging" msprop:Generator_RowEvHandlerName="v_selCommesseRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCommesseRowDeleted" msprop:Generator_UserTableName="v_selCommesse" msprop:Generator_RowChangedName="v_selCommesseRowChanged" msprop:Generator_RowEvArgName="v_selCommesseRowChangeEvent" msprop:Generator_RowClassName="v_selCommesseRow">
<xs:element name="v_selCommesse" msprop:Generator_TableClassName="v_selCommesseDataTable" msprop:Generator_TableVarName="tablev_selCommesse" msprop:Generator_RowChangedName="v_selCommesseRowChanged" msprop:Generator_TablePropName="v_selCommesse" msprop:Generator_RowDeletingName="v_selCommesseRowDeleting" msprop:Generator_RowChangingName="v_selCommesseRowChanging" msprop:Generator_RowEvHandlerName="v_selCommesseRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCommesseRowDeleted" msprop:Generator_RowClassName="v_selCommesseRow" msprop:Generator_UserTableName="v_selCommesse" msprop:Generator_RowEvArgName="v_selCommesseRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:int" />
@@ -296,7 +326,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selCC" msprop:Generator_TableClassName="v_selCCDataTable" msprop:Generator_TableVarName="tablev_selCC" msprop:Generator_RowChangedName="v_selCCRowChanged" msprop:Generator_TablePropName="v_selCC" msprop:Generator_RowDeletingName="v_selCCRowDeleting" msprop:Generator_RowChangingName="v_selCCRowChanging" msprop:Generator_RowEvHandlerName="v_selCCRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCCRowDeleted" msprop:Generator_RowClassName="v_selCCRow" msprop:Generator_UserTableName="v_selCC" msprop:Generator_RowEvArgName="v_selCCRowChangeEvent">
<xs:element name="v_selCC" msprop:Generator_TableClassName="v_selCCDataTable" msprop:Generator_TableVarName="tablev_selCC" msprop:Generator_TablePropName="v_selCC" msprop:Generator_RowDeletingName="v_selCCRowDeleting" msprop:Generator_RowChangingName="v_selCCRowChanging" msprop:Generator_RowEvHandlerName="v_selCCRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCCRowDeleted" msprop:Generator_UserTableName="v_selCC" msprop:Generator_RowChangedName="v_selCCRowChanged" msprop:Generator_RowEvArgName="v_selCCRowChangeEvent" msprop:Generator_RowClassName="v_selCCRow">
<xs:complexType>
<xs:sequence>
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
@@ -316,7 +346,7 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selCC_all" msprop:Generator_TableClassName="v_selCC_allDataTable" msprop:Generator_TableVarName="tablev_selCC_all" msprop:Generator_RowChangedName="v_selCC_allRowChanged" msprop:Generator_TablePropName="v_selCC_all" msprop:Generator_RowDeletingName="v_selCC_allRowDeleting" msprop:Generator_RowChangingName="v_selCC_allRowChanging" msprop:Generator_RowEvHandlerName="v_selCC_allRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCC_allRowDeleted" msprop:Generator_RowClassName="v_selCC_allRow" msprop:Generator_UserTableName="v_selCC_all" msprop:Generator_RowEvArgName="v_selCC_allRowChangeEvent">
<xs:element name="v_selCC_all" msprop:Generator_TableClassName="v_selCC_allDataTable" msprop:Generator_TableVarName="tablev_selCC_all" msprop:Generator_TablePropName="v_selCC_all" msprop:Generator_RowDeletingName="v_selCC_allRowDeleting" msprop:Generator_RowChangingName="v_selCC_allRowChanging" msprop:Generator_RowEvHandlerName="v_selCC_allRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selCC_allRowDeleted" msprop:Generator_UserTableName="v_selCC_all" msprop:Generator_RowChangedName="v_selCC_allRowChanged" msprop:Generator_RowEvArgName="v_selCC_allRowChangeEvent" msprop:Generator_RowClassName="v_selCC_allRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
@@ -336,20 +366,47 @@ ORDER BY label</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selWeek" msprop:Generator_TableClassName="v_selWeekDataTable" msprop:Generator_TableVarName="tablev_selWeek" msprop:Generator_TablePropName="v_selWeek" msprop:Generator_RowDeletingName="v_selWeekRowDeleting" msprop:Generator_RowChangingName="v_selWeekRowChanging" msprop:Generator_RowEvHandlerName="v_selWeekRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selWeekRowDeleted" msprop:Generator_UserTableName="v_selWeek" msprop:Generator_RowChangedName="v_selWeekRowChanged" msprop:Generator_RowEvArgName="v_selWeekRowChangeEvent" msprop:Generator_RowClassName="v_selWeekRow">
<xs:element name="v_selWeek" msprop:Generator_TableClassName="v_selWeekDataTable" msprop:Generator_TableVarName="tablev_selWeek" msprop:Generator_RowChangedName="v_selWeekRowChanged" msprop:Generator_TablePropName="v_selWeek" msprop:Generator_RowDeletingName="v_selWeekRowDeleting" msprop:Generator_RowChangingName="v_selWeekRowChanging" msprop:Generator_RowEvHandlerName="v_selWeekRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selWeekRowDeleted" msprop:Generator_RowClassName="v_selWeekRow" msprop:Generator_UserTableName="v_selWeek" msprop:Generator_RowEvArgName="v_selWeekRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="n" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnn" msprop:Generator_ColumnPropNameInRow="n" msprop:Generator_ColumnPropNameInTable="nColumn" msprop:Generator_UserColumnName="n" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selYear" msprop:Generator_TableClassName="v_selYearDataTable" msprop:Generator_TableVarName="tablev_selYear" msprop:Generator_TablePropName="v_selYear" msprop:Generator_RowDeletingName="v_selYearRowDeleting" msprop:Generator_RowChangingName="v_selYearRowChanging" msprop:Generator_RowEvHandlerName="v_selYearRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selYearRowDeleted" msprop:Generator_UserTableName="v_selYear" msprop:Generator_RowChangedName="v_selYearRowChanged" msprop:Generator_RowEvArgName="v_selYearRowChangeEvent" msprop:Generator_RowClassName="v_selYearRow">
<xs:element name="v_selYear" msprop:Generator_TableClassName="v_selYearDataTable" msprop:Generator_TableVarName="tablev_selYear" msprop:Generator_RowChangedName="v_selYearRowChanged" msprop:Generator_TablePropName="v_selYear" msprop:Generator_RowDeletingName="v_selYearRowDeleting" msprop:Generator_RowChangingName="v_selYearRowChanging" msprop:Generator_RowEvHandlerName="v_selYearRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selYearRowDeleted" msprop:Generator_RowClassName="v_selYearRow" msprop:Generator_UserTableName="v_selYear" msprop:Generator_RowEvArgName="v_selYearRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="n" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnn" msprop:Generator_ColumnPropNameInRow="n" msprop:Generator_ColumnPropNameInTable="nColumn" msprop:Generator_UserColumnName="n" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFornitoriCla" msprop:Generator_TableClassName="v_selFornitoriClaDataTable" msprop:Generator_TableVarName="tablev_selFornitoriCla" msprop:Generator_TablePropName="v_selFornitoriCla" msprop:Generator_RowDeletingName="v_selFornitoriClaRowDeleting" msprop:Generator_RowChangingName="v_selFornitoriClaRowChanging" msprop:Generator_RowEvHandlerName="v_selFornitoriClaRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selFornitoriClaRowDeleted" msprop:Generator_UserTableName="v_selFornitoriCla" msprop:Generator_RowChangedName="v_selFornitoriClaRowChanged" msprop:Generator_RowEvArgName="v_selFornitoriClaRowChangeEvent" msprop:Generator_RowClassName="v_selFornitoriClaRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="5" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" msprop:Generator_UserColumnName="conditio" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -369,5 +426,9 @@ ORDER BY label</CommandText>
<xs:selector xpath=".//mstns:v_selWeek" />
<xs:field xpath="mstns:n" />
</xs:unique>
<xs:unique name="v_selFornitoriCla_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:v_selFornitoriCla" />
<xs:field xpath="mstns:value" />
</xs:unique>
</xs:element>
</xs:schema>
+8 -7
View File
@@ -6,13 +6,14 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:v_selClienti" ZOrder="7" X="70" Y="70" Height="153" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selProgetti" ZOrder="6" X="430" Y="128" Height="210" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_selCommesse" ZOrder="4" X="833" Y="226" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selCC" ZOrder="5" X="279" Y="433" Height="115" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selCC_all" ZOrder="3" X="136" Y="600" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selWeek" ZOrder="2" X="556" Y="507" Height="96" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:v_selYear" ZOrder="1" X="801" Y="513" Height="96" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:v_selClienti" ZOrder="8" X="70" Y="70" Height="153" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selProgetti" ZOrder="7" X="430" Y="128" Height="210" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_selCommesse" ZOrder="5" X="833" Y="226" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selCC" ZOrder="6" X="279" Y="433" Height="115" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selCC_all" ZOrder="4" X="136" Y="600" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selWeek" ZOrder="3" X="556" Y="507" Height="96" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:v_selYear" ZOrder="2" X="801" Y="513" Height="96" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:v_selFornitoriCla" ZOrder="1" X="393" Y="692" Height="153" Width="189" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
</Shapes>
<Connectors />
</DiagramLayout>
+3 -39
View File
@@ -28,6 +28,7 @@ namespace ETS_Data
public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli;
public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro;
public DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter taSelCom;
public DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter taSelForn;
/// <summary>
/// init dei table adapters
@@ -48,6 +49,7 @@ namespace ETS_Data
taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter();
taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter();
taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter();
taSelForn = new DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter();
}
/// <summary>
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -69,6 +71,7 @@ namespace ETS_Data
taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelForn.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
}
#endregion
@@ -85,45 +88,6 @@ namespace ETS_Data
#region utility public esposte
/// <summary>
/// invia una mail al destinatario x linkare nuovi devices tramite URL
/// </summary>
/// <param name="destinatario"></param>
/// <param name="UserAuthKey"></param>
/// <param name="idxDipendente"></param>
/// <returns></returns>
public bool sendUserAuthEmail(string destinatario, string UserAuthKey, int idxDipendente)
{
bool fatto = false;
string smtpCli = "";
string mittente = "";
string oggetto = "";
string userUrl = "";
string baseUrl = "";
string userWebUrl = "";
string baseWebUrl = "";
string corpo = "";
try
{
// compongo la stringa
smtpCli = utils.obj.confReadString("_smtpCli");
mittente = utils.obj.confReadString("_fromEmail");
oggetto = "Link autorizzazione device per GPW";
baseUrl = utils.obj.confReadString("baseUrl");
baseWebUrl = utils.obj.confReadString("baseWebUrl");
userUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseUrl);
userWebUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseWebUrl);
corpo = string.Format("Hai ricevuto questa email su richiesta tua o dell'Admin per poter procedere a registrare un (nuovo) devices con GPW:{0}<br/>Per proseguire clicca sul link seguente(rete interna):<br />{0}{0}{1}{0}{0}<br /><br />oppure sul link seguente (internet):<br />{0}{0}{2}{0}{0}<br /><br />Team GPW Steamware", Environment.NewLine, userUrl, userWebUrl);
#if false
gestEmail.ge.mandaEmail(mittente, destinatario, oggetto, corpo);
fatto = true;
#endif
}
catch
{ }
return fatto;
}
/// <summary>
/// idxDipendente in sessione
-8
View File
@@ -310,7 +310,6 @@
<Content Include="Test.aspx" />
<Content Include="unauthorized.aspx" />
<Content Include="WebUserControls\mod_autocomplete.ascx" />
<Content Include="WebUserControls\mod_commessa.ascx" />
<Content Include="WebUserControls\mod_commesse.ascx" />
<Content Include="WebUserControls\mod_commesseFull.ascx" />
<Content Include="WebUserControls\mod_commForn.ascx" />
@@ -549,13 +548,6 @@
<Compile Include="WebUserControls\mod_autocomplete.ascx.designer.cs">
<DependentUpon>mod_autocomplete.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_commessa.ascx.cs">
<DependentUpon>mod_commessa.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_commessa.ascx.designer.cs">
<DependentUpon>mod_commessa.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_commesse.ascx.cs">
<DependentUpon>mod_commesse.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -59,6 +59,23 @@ namespace PROJ_ETS.Services
return suggerimenti.ToArray();
}
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string[] Fornitori(string keywordStartsWith)
{
// inizializzo risposta
List<string> suggerimenti = new List<string>();
// elenco candidati
DS_utilsProjEts.v_selFornitoriClaDataTable tabella = DataProxy_ProjEts.DP.taSelForn.getBySearchLike(keywordStartsWith);
// aggiungo ogni riga...
foreach (DS_utilsProjEts.v_selFornitoriClaRow riga in tabella)
{
//suggerimenti.Add(riga.label);
suggerimenti.Add(string.Format("{0}#{1}", riga.label, riga.value));
}
return suggerimenti.ToArray();
}
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string[] Commesse(string keywordStartsWith)
+99 -3
View File
@@ -10,7 +10,7 @@
<div class="content-wrapper">
<hgroup class="title">
<h1><%: Title %>.</h1>
<h2>Modify this template to jump-start your ASP.NET application.</h2>
</hgroup>
<p>
</p>
@@ -19,11 +19,107 @@
</section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<%--test dialog--%>
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
<asp:Button runat="server" ID="btnApri" Text="Apri dialog" CssClass="openDiag" OnClick="btnApri_Click" />
<asp:Label runat="server" ID="lblOut" />
<%--test autocomplete multiplo--%>
<%-- <script>
$(function () {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
function split(val) {
return val.split(/,\s*/);
}
function extractLast(term) {
return split(term).pop();
}
$("#tags")
// don't navigate away from the field on tab when selecting an item
.bind("keydown", function (event) {
if (event.keyCode === $.ui.keyCode.TAB &&
$(this).data("ui-autocomplete").menu.active) {
event.preventDefault();
}
})
.autocomplete({
minLength: 0,
source: function (request, response) {
//// delegate back to autocomplete, but extract the last term
//response($.ui.autocomplete.filter(
// availableTags, extractLast(request.term)));
response($.ui.autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "Services/WS_data.asmx/Fornitori",
data: "{'keywordStartsWith':'" + extractLast(request.term) + "'}",
dataType: "json",
async: true,
success: function (data) {
//response(data.d);
response($.map(data.d, function (item) {
return {
label: item.split('#')[0],
val: item.split('#')[1]
}
}))
},
error: function (result) {
alert("Due to unexpected errors we were unable to load data");
}
});
},
focus: function () {
// prevent value inserted on focus
return false;
},
select: function (event, ui) {
var terms = split(this.value);
// remove the current input
terms.pop();
// add the selected item
terms.push(ui.item.value);
// add placeholder to get the comma-and-space at the end
terms.push("");
this.value = terms.join(", ");
return false;
}
});
});
</script>
<div class="ui-widget">
<label for="tags">Tag programming languages: </label>
<input id="tags" size="50" />
</div>--%>
</asp:Content>
@@ -1,6 +1,11 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_commForn.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_commForn" %>
<%@ Register Src="mod_navDettComm.ascx" TagName="mod_navDettComm" TagPrefix="uc1" %>
<div class="divSx">
<div class="divSx bordoAzzurro">
<asp:Label runat="server" ID="lblForn" AssociatedControlID="ddlForn" Text="Sel. Fornitore" />
<asp:DropDownList ID="ddlForn" runat="server" CssClass="divSx bordoAzzurro" BorderWidth="1px" Width="200px" DataSourceID="odsForn" DataTextField="label" DataValueField="label" />
</div>
<div class="clearDiv"></div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="idxDCF" DataSourceID="ods">
<AlternatingRowStyle CssClass="alternatingRowStyle" />
<EditRowStyle CssClass="editRowStyle" />
@@ -57,7 +62,7 @@
<asp:TemplateField HeaderText="Fornitore" SortExpression="Fornitore" ItemStyle-CssClass="valignMiddle">
<EditItemTemplate>
<div class="" style="font-size: 0.8em;">
<asp:TextBox ID="FornitoreLabel" runat="server" Text='<%# Bind("Fornitore") %>' CssClass="divSx bordoAzzurro" BorderWidth="1px" Width="15em" />
<asp:TextBox ID="FornitoreLabel" runat="server" Text='<%# Bind("Fornitore") %>' CssClass="divSx bordoAzzurro" BorderWidth="1px" Width="15em" />
</div>
<div class="clearDiv divSx" style="font-size: 0.8em;">
<asp:Label ID="lblReferente" runat="server" Text="Referente" AssociatedControlID="ReferenteLabel" />
@@ -168,6 +173,8 @@
<asp:Parameter Name="Original_idxDCF" Type="Int32" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsForn" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter"></asp:ObjectDataSource>
</div>
<uc1:mod_navDettComm ID="mod_navDettComm1" runat="server" btn2disable="4" />
@@ -140,7 +140,7 @@ namespace PROJ_ETS.WebUserControls
protected void btnNewEmpty_Click(object sender, EventArgs e)
{
int? idxFase = utils.obj.IntSessionObj("idxFase_sel");
DataProxy_ProjEts.DP.taDCF.Insert(idxFase, "fornitore", "referente", 0, "", "", "");
DataProxy_ProjEts.DP.taDCF.Insert(idxFase, ddlForn.SelectedValue, "referente", 0, "", "", "");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
@@ -156,7 +156,7 @@ namespace PROJ_ETS.WebUserControls
protected void btnNew_Click(object sender, EventArgs e)
{
int? idxFase = utils.obj.IntSessionObj("idxFase_sel");
DataProxy_ProjEts.DP.taDCF.Insert(idxFase, "fornitore", "referente", 0, "", "", "");
DataProxy_ProjEts.DP.taDCF.Insert(idxFase, ddlForn.SelectedValue, "referente", 0, "", "", "");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
@@ -12,6 +12,24 @@ namespace PROJ_ETS.WebUserControls {
public partial class mod_commForn {
/// <summary>
/// lblForn control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblForn;
/// <summary>
/// ddlForn control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlForn;
/// <summary>
/// grView control.
/// </summary>
@@ -30,6 +48,15 @@ namespace PROJ_ETS.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// odsForn control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsForn;
/// <summary>
/// mod_navDettComm1 control.
/// </summary>
Binary file not shown.
Binary file not shown.