Aggiunta gestione MULTIAREA x fornitori
This commit is contained in:
Generated
+185
-19
@@ -2151,6 +2151,8 @@ namespace Data {
|
||||
|
||||
private global::System.Data.DataColumn columnidxArea;
|
||||
|
||||
private global::System.Data.DataColumn columnAttivazione;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public RelFornitore2AreaDataTable() {
|
||||
@@ -2200,6 +2202,14 @@ namespace Data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public global::System.Data.DataColumn AttivazioneColumn {
|
||||
get {
|
||||
return this.columnAttivazione;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -2237,11 +2247,12 @@ namespace Data {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public RelFornitore2AreaRow AddRelFornitore2AreaRow(AnagAreeRow parentAnagAreeRowByAnagAree_RelFornitore2Area) {
|
||||
public RelFornitore2AreaRow AddRelFornitore2AreaRow(AnagAreeRow parentAnagAreeRowByAnagAree_RelFornitore2Area, System.DateTime Attivazione) {
|
||||
RelFornitore2AreaRow rowRelFornitore2AreaRow = ((RelFornitore2AreaRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
null,
|
||||
null};
|
||||
null,
|
||||
Attivazione};
|
||||
if ((parentAnagAreeRowByAnagAree_RelFornitore2Area != null)) {
|
||||
columnValuesArray[1] = parentAnagAreeRowByAnagAree_RelFornitore2Area[0];
|
||||
}
|
||||
@@ -2277,6 +2288,7 @@ namespace Data {
|
||||
internal void InitVars() {
|
||||
this.columnidxFornitore = base.Columns["idxFornitore"];
|
||||
this.columnidxArea = base.Columns["idxArea"];
|
||||
this.columnAttivazione = base.Columns["Attivazione"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -2286,6 +2298,8 @@ namespace Data {
|
||||
base.Columns.Add(this.columnidxFornitore);
|
||||
this.columnidxArea = new global::System.Data.DataColumn("idxArea", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnidxArea);
|
||||
this.columnAttivazione = new global::System.Data.DataColumn("Attivazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnAttivazione);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnidxFornitore,
|
||||
this.columnidxArea}, true));
|
||||
@@ -3608,6 +3622,23 @@ namespace Data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public System.DateTime Attivazione {
|
||||
get {
|
||||
try {
|
||||
return ((global::System.DateTime)(this[this.tableRelFornitore2Area.AttivazioneColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("Il valore della colonna \'Attivazione\' nella tabella \'RelFornitore2Area\' è DBNull." +
|
||||
"", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableRelFornitore2Area.AttivazioneColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public AnagAreeRow AnagAreeRow {
|
||||
@@ -3619,6 +3650,18 @@ namespace Data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public bool IsAttivazioneNull() {
|
||||
return this.IsNull(this.tableRelFornitore2Area.AttivazioneColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public void SetAttivazioneNull() {
|
||||
this[this.tableRelFornitore2Area.AttivazioneColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
public AnagFornitoriRow[] GetAnagFornitoriRows() {
|
||||
@@ -5707,11 +5750,23 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id,
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idxArea, Area, Note, Qta FROM dbo.v_AnagAree";
|
||||
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_AAF_getByForn";
|
||||
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("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_AAF_getUnassigned";
|
||||
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("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -5737,6 +5792,40 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id,
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_app.AnagAreeDataTable getByForn(global::System.Nullable<int> idxFornitore) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((idxFornitore.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxFornitore.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_app.AnagAreeDataTable dataTable = new DS_app.AnagAreeDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_app.AnagAreeDataTable getUnassigned(global::System.Nullable<int> idxFornitore) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((idxFornitore.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxFornitore.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_app.AnagAreeDataTable dataTable = new DS_app.AnagAreeDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -6598,29 +6687,37 @@ SELECT idxFornitore, username, password, nome, indirizzo, p_iva, indirizzo_email
|
||||
tableMapping.DataSetTable = "RelFornitore2Area";
|
||||
tableMapping.ColumnMappings.Add("idxFornitore", "idxFornitore");
|
||||
tableMapping.ColumnMappings.Add("idxArea", "idxArea");
|
||||
tableMapping.ColumnMappings.Add("Attivazione", "Attivazione");
|
||||
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].[RelFornitore2Area] WHERE (([idxFornitore] = @Original_idxForni" +
|
||||
"tore) AND ([idxArea] = @Original_idxArea))";
|
||||
"tore) AND ([idxArea] = @Original_idxArea) AND ((@IsNull_Attivazione = 1 AND [Att" +
|
||||
"ivazione] IS NULL) OR ([Attivazione] = @Original_Attivazione)))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFornitore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFornitore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxArea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxArea", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attivazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", 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].[RelFornitore2Area] ([idxArea]) VALUES (@idxArea);\r\nSELECT idxF" +
|
||||
"ornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxForn" +
|
||||
"itore = SCOPE_IDENTITY())";
|
||||
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[RelFornitore2Area] ([idxArea], [Attivazione]) VALUES (@idxArea" +
|
||||
", @Attivazione);\r\nSELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Ar" +
|
||||
"ea WHERE (idxArea = @idxArea) AND (idxFornitore = SCOPE_IDENTITY())";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxArea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxArea", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", 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].[RelFornitore2Area] SET [idxArea] = @idxArea WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea));
|
||||
SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = @idxFornitore)";
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[RelFornitore2Area] SET [idxArea] = @idxArea, [Attivazione] = @Attivazione WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea) AND ((@IsNull_Attivazione = 1 AND [Attivazione] IS NULL) OR ([Attivazione] = @Original_Attivazione)));
|
||||
SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = @idxFornitore)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxArea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxArea", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFornitore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFornitore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxArea", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxArea", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attivazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxFornitore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
@@ -6634,11 +6731,18 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idxFornitore, idxArea FROM dbo.RelFornitore2Area";
|
||||
this._commandCollection[0].CommandText = "SELECT * FROM dbo.RelFornitore2Area";
|
||||
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_RFA_insertQuery";
|
||||
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("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxArea", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -6698,9 +6802,17 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_idxFornitore, int Original_idxArea) {
|
||||
public virtual int Delete(int Original_idxFornitore, int Original_idxArea, global::System.Nullable<global::System.DateTime> Original_Attivazione) {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxFornitore));
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_idxArea));
|
||||
if ((Original_Attivazione.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_Attivazione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
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)) {
|
||||
@@ -6721,8 +6833,14 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 idxArea) {
|
||||
public virtual int Insert(int idxArea, global::System.Nullable<global::System.DateTime> Attivazione) {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxArea));
|
||||
if ((Attivazione.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Attivazione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[1].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)) {
|
||||
@@ -6743,11 +6861,25 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 idxArea, int Original_idxFornitore, int Original_idxArea, int idxFornitore) {
|
||||
public virtual int Update(int idxArea, global::System.Nullable<global::System.DateTime> Attivazione, int Original_idxFornitore, int Original_idxArea, global::System.Nullable<global::System.DateTime> Original_Attivazione, int idxFornitore) {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxArea));
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idxFornitore));
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idxArea));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(idxFornitore));
|
||||
if ((Attivazione.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Attivazione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idxFornitore));
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxArea));
|
||||
if ((Original_Attivazione.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_Attivazione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(idxFornitore));
|
||||
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)) {
|
||||
@@ -6768,8 +6900,42 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 Original_idxFornitore, int Original_idxArea) {
|
||||
return this.Update(Original_idxArea, Original_idxFornitore, Original_idxArea, Original_idxFornitore);
|
||||
public virtual int Update(global::System.Nullable<global::System.DateTime> Attivazione, int Original_idxFornitore, int Original_idxArea, global::System.Nullable<global::System.DateTime> Original_Attivazione) {
|
||||
return this.Update(Original_idxArea, Attivazione, Original_idxFornitore, Original_idxArea, Original_Attivazione, Original_idxFornitore);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insertQuery(global::System.Nullable<int> idxFornitore, global::System.Nullable<int> idxArea) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((idxFornitore.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(idxFornitore.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((idxArea.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((int)(idxArea.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+54
-10
@@ -305,7 +305,30 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, cod_Id,
|
||||
<Mapping SourceColumn="Note" DataSetColumn="Note" />
|
||||
<Mapping SourceColumn="Qta" DataSetColumn="Qta" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AAF_getByForn" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByForn" GetMethodModifier="Public" GetMethodName="getByForn" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByForn" UserSourceName="getByForn">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AAF_getByForn</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="int" DbType="Int32" Direction="Input" ParameterName="@idxFornitore" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AAF_getUnassigned" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getUnassigned" GetMethodModifier="Public" GetMethodName="getUnassigned" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getUnassigned" UserSourceName="getUnassigned">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AAF_getUnassigned</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="int" DbType="Int32" Direction="Input" ParameterName="@idxFornitore" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagFornitoriTableAdapter" GeneratorDataComponentClassName="AnagFornitoriTableAdapter" Name="AnagFornitori" UserDataComponentName="AnagFornitoriTableAdapter">
|
||||
<MainSource>
|
||||
@@ -441,37 +464,43 @@ SELECT idxFornitore, username, password, nome, indirizzo, p_iva, indirizzo_email
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.RelFornitore2Area" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[RelFornitore2Area] WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea))</CommandText>
|
||||
<CommandText>DELETE FROM [dbo].[RelFornitore2Area] WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea) AND ((@IsNull_Attivazione = 1 AND [Attivazione] IS NULL) OR ([Attivazione] = @Original_Attivazione)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFornitore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFornitore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxArea" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxArea" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Attivazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Attivazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[RelFornitore2Area] ([idxArea]) VALUES (@idxArea);
|
||||
SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = SCOPE_IDENTITY())</CommandText>
|
||||
<CommandText>INSERT INTO [dbo].[RelFornitore2Area] ([idxArea], [Attivazione]) VALUES (@idxArea, @Attivazione);
|
||||
SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxArea" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxArea" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Attivazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxFornitore, idxArea FROM dbo.RelFornitore2Area</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT * FROM dbo.RelFornitore2Area</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[RelFornitore2Area] SET [idxArea] = @idxArea WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea));
|
||||
SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = @idxFornitore)</CommandText>
|
||||
<CommandText>UPDATE [dbo].[RelFornitore2Area] SET [idxArea] = @idxArea, [Attivazione] = @Attivazione WHERE (([idxFornitore] = @Original_idxFornitore) AND ([idxArea] = @Original_idxArea) AND ((@IsNull_Attivazione = 1 AND [Attivazione] IS NULL) OR ([Attivazione] = @Original_Attivazione)));
|
||||
SELECT idxFornitore, idxArea, Attivazione FROM RelFornitore2Area WHERE (idxArea = @idxArea) AND (idxFornitore = @idxFornitore)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxArea" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxArea" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Attivazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxFornitore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxFornitore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxArea" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxArea" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxFornitore" ColumnName="idxFornitore" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxFornitore" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxFornitore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Attivazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Attivazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Attivazione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idxFornitore" ColumnName="idxFornitore" DataSourceName="B2BCond.dbo.RelFornitore2Area" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxFornitore" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxFornitore" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -480,8 +509,22 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxFornitore" DataSetColumn="idxFornitore" />
|
||||
<Mapping SourceColumn="idxArea" DataSetColumn="idxArea" />
|
||||
<Mapping SourceColumn="Attivazione" DataSetColumn="Attivazione" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_RFA_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_RFA_insertQuery</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="int" DbType="Int32" Direction="Input" ParameterName="@idxFornitore" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxArea" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
@@ -681,6 +724,7 @@ SELECT idxFornitore, idxArea FROM RelFornitore2Area WHERE (idxArea = @idxArea) A
|
||||
<xs:sequence>
|
||||
<xs:element name="idxFornitore" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFornitore" msprop:Generator_ColumnPropNameInRow="idxFornitore" msprop:Generator_ColumnPropNameInTable="idxFornitoreColumn" msprop:Generator_UserColumnName="idxFornitore" type="xs:int" />
|
||||
<xs:element name="idxArea" msprop:Generator_ColumnVarNameInTable="columnidxArea" msprop:Generator_ColumnPropNameInRow="idxArea" msprop:Generator_ColumnPropNameInTable="idxAreaColumn" msprop:Generator_UserColumnName="idxArea" type="xs:int" />
|
||||
<xs:element name="Attivazione" msprop:Generator_ColumnVarNameInTable="columnAttivazione" msprop:Generator_ColumnPropNameInRow="Attivazione" msprop:Generator_ColumnPropNameInTable="AttivazioneColumn" msprop:Generator_UserColumnName="Attivazione" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
+6
-6
@@ -8,9 +8,9 @@
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:AnagAmministratori" ZOrder="8" X="70" Y="70" Height="158" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:AnagCondomini" ZOrder="7" X="440" Y="70" Height="388" Width="283" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagAree" ZOrder="5" X="800" Y="1085" Height="181" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagFornitori" ZOrder="4" X="808" Y="384" Height="388" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:RelFornitore2Area" ZOrder="3" X="804" Y="844" Height="135" Width="264" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagAree" ZOrder="2" X="800" Y="1085" Height="227" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagFornitori" ZOrder="5" X="808" Y="384" Height="388" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:RelFornitore2Area" ZOrder="1" X="804" Y="844" Height="181" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagCondomini_AnagAmministratori" ZOrder="6" LineWidth="11">
|
||||
@@ -25,7 +25,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:RelFornitore2Area_AnagFornitori" ZOrder="2" LineWidth="11">
|
||||
<Connector ID="DesignRelation:RelFornitore2Area_AnagFornitori" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>894</X>
|
||||
@@ -37,7 +37,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:AnagAree_RelFornitore2Area" ZOrder="1" LineWidth="11">
|
||||
<Connector ID="DesignRelation:AnagAree_RelFornitore2Area" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>928</X>
|
||||
@@ -45,7 +45,7 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<X>928</X>
|
||||
<Y>979</Y>
|
||||
<Y>1025</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+9
-1
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Data</RootNamespace>
|
||||
<AssemblyName>Data</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -45,6 +46,7 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_app.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DtProxy.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
@@ -70,5 +72,11 @@
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWare\SteamWareLib\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,49 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class DtProxy
|
||||
{
|
||||
#region area protected
|
||||
|
||||
protected DtProxy()
|
||||
{
|
||||
// inizializzo i table adapters
|
||||
avvioTableAdapters();
|
||||
setupConnectionString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// procedura di avvio dei tableAdapter
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdapters()
|
||||
{
|
||||
taRFA = new DS_appTableAdapters.RelFornitore2AreaTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionString()
|
||||
{
|
||||
string connStr = memLayer.ML.confReadString("B2BCondConnectionString");
|
||||
//string connStrFiles = memLayer.ML.confReadString("B2BCondFilesConnectionString");
|
||||
// connections del db vocabolario
|
||||
taRFA.Connection.ConnectionString = connStr;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
public DS_appTableAdapters.RelFornitore2AreaTableAdapter taRFA;
|
||||
|
||||
public static DtProxy man = new DtProxy();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+3
-5
@@ -1,10 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="Data.Properties.Settings.B2BCondConnectionString"
|
||||
connectionString="Data Source=SQL2016DEV;Initial Catalog=B2BCond;Persist Security Info=True;User ID=sa;Password=keyhammer16"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="Data.Properties.Settings.B2BCondConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=B2BCond;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
||||
|
||||
@@ -23,51 +23,6 @@ textarea {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
/* Paginazione table */
|
||||
/*bs4-aspnet-pager*/
|
||||
.bs4-aspnet-pager a,
|
||||
.bs4-aspnet-pager span {
|
||||
position: relative;
|
||||
float: left;
|
||||
padding: 6px 12px;
|
||||
margin-left: -1px;
|
||||
line-height: 1.42857143;
|
||||
color: #337ab7;
|
||||
text-decoration: none;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.bs4-aspnet-pager span {
|
||||
z-index: 3;
|
||||
color: #fff;
|
||||
cursor: default;
|
||||
background-color: #337ab7;
|
||||
border-color: #337ab7;
|
||||
}
|
||||
.bs4-aspnet-pager tr > td:first-child > a,
|
||||
.bs4-aspnet-pager tr > td:first-child > span {
|
||||
margin-left: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
.bs4-aspnet-pager tr > td:last-child > a,
|
||||
.bs4-aspnet-pager tr > td:last-child > span {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
.bs4-aspnet-pager a:hover,
|
||||
.bs4-aspnet-pager span:hover,
|
||||
.bs4-aspnet-pager a:focus,
|
||||
.bs4-aspnet-pager span:focus {
|
||||
z-index: 2;
|
||||
color: #23527c;
|
||||
background-color: #eee;
|
||||
border-color: #ddd;
|
||||
}
|
||||
.bs4-aspnet-pager td {
|
||||
padding: 0;
|
||||
}
|
||||
/*end bs4-aspnet-pager */
|
||||
/* Responsive: Portrait tablets and up */
|
||||
@media screen and (min-width: 768px) {
|
||||
.jumbotron {
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/SitePBO.master" AutoEventWireup="true" CodeBehind="AnagFornitori.aspx.cs" Inherits="PUB.PBO.AnagFornitori" %>
|
||||
|
||||
<%@ Register Src="~/WebUserContols/mod_anagFornitori.ascx" TagPrefix="uc1" TagName="mod_anagFornitori" %>
|
||||
<%@ Register Src="~/WebUserContols/mod_forn2aree.ascx" TagPrefix="uc1" TagName="mod_forn2aree" %>
|
||||
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container-fluid">
|
||||
<uc1:mod_anagFornitori runat="server" id="mod_anagFornitori" />
|
||||
<div class="row">
|
||||
<div runat="server" id="divMain" class="col-12">
|
||||
<uc1:mod_anagFornitori runat="server" ID="mod_anagFornitori" />
|
||||
</div>
|
||||
<div runat="server" id="divSide" class="col-3" visible="false">
|
||||
<uc1:mod_forn2aree runat="server" id="mod_forn2aree" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -11,7 +11,37 @@ namespace PUB.PBO
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_anagFornitori.eh_selected += Mod_anagFornitori_eh_selected;
|
||||
mod_anagFornitori.eh_reset += Mod_anagFornitori_eh_reset;
|
||||
}
|
||||
|
||||
private void Mod_anagFornitori_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
togglDetail(false);
|
||||
}
|
||||
|
||||
private void Mod_anagFornitori_eh_selected(object sender, EventArgs e)
|
||||
{
|
||||
mod_forn2aree.idxForn = mod_anagFornitori.idxForn;
|
||||
togglDetail(true);
|
||||
}
|
||||
|
||||
private void togglDetail(bool showDetail)
|
||||
{
|
||||
// cambio classe div + visibilità...
|
||||
divSide.Visible = showDetail;
|
||||
divMain.Attributes.Remove("class");
|
||||
divSide.Attributes.Remove("class");
|
||||
if (showDetail)
|
||||
{
|
||||
divMain.Attributes.Add("class", "col-9");
|
||||
divSide.Attributes.Add("class", "col-3");
|
||||
}
|
||||
else
|
||||
{
|
||||
divMain.Attributes.Add("class", "col-12");
|
||||
divSide.Attributes.Add("class", "col-1");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+27
@@ -12,6 +12,15 @@ namespace PUB.PBO {
|
||||
|
||||
public partial class AnagFornitori {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divMain.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_anagFornitori.
|
||||
/// </summary>
|
||||
@@ -20,5 +29,23 @@ namespace PUB.PBO {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::PUB.WebUserContols.mod_anagFornitori mod_anagFornitori;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divSide.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSide;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_forn2aree.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::PUB.WebUserContols.mod_forn2aree mod_forn2aree;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
8:41:11 4779 Caricati 166 lemmi!
|
||||
8:42:55 3974 Caricati 166 lemmi!
|
||||
8:43:01 7275 Caricati 166 lemmi!
|
||||
8:45:19 7101 Caricati 166 lemmi!
|
||||
8:48:07 9338 Caricati 166 lemmi!
|
||||
8:49:42 8913 Caricati 166 lemmi!
|
||||
8:49:46 5278 Caricati 166 lemmi!
|
||||
9:01:07 1670 Caricati 166 lemmi!
|
||||
9:03:34 5098 Caricati 166 lemmi!
|
||||
9:03:39 4903 Caricati 166 lemmi!
|
||||
9:06:30 6894 Caricati 166 lemmi!
|
||||
9:06:35 2954 Caricati 166 lemmi!
|
||||
9:13:06 4411 Caricati 166 lemmi!
|
||||
9:35:24 4048 Errore in startupAppConf:
|
||||
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'dbo.Config'.
|
||||
in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
in System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
in System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
in System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
in System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||
in SteamWare.DS_UtilityTableAdapters.ConfigTableAdapter.GetData() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\DS_Utility.Designer.cs:riga 2669
|
||||
in SteamWare.memLayer.ricaricaAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 192
|
||||
in SteamWare.memLayer.startupAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 150
|
||||
ClientConnectionId:74c894c4-7506-41b5-84ac-6c463e4e5a5f
|
||||
Error Number:208,State:1,Class:16
|
||||
9:35:24 4078 Errore in startupAppConf:
|
||||
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'dbo.Config'.
|
||||
in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
in System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
in System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
in System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
in System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||
in SteamWare.DS_UtilityTableAdapters.ConfigTableAdapter.GetData() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\DS_Utility.Designer.cs:riga 2669
|
||||
in SteamWare.memLayer.ricaricaAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 192
|
||||
in SteamWare.memLayer.startupAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 150
|
||||
ClientConnectionId:74c894c4-7506-41b5-84ac-6c463e4e5a5f
|
||||
Error Number:208,State:1,Class:16
|
||||
9:35:24 4108 Errore in startupAppConf:
|
||||
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'dbo.Config'.
|
||||
in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
in System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
in System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
in System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
in System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
in System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
in System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||
in System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||
in SteamWare.DS_UtilityTableAdapters.ConfigTableAdapter.GetData() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\DS_Utility.Designer.cs:riga 2669
|
||||
in SteamWare.memLayer.ricaricaAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 192
|
||||
in SteamWare.memLayer.startupAppConf() in C:\Users\samuele.steamw\Documents\VisualStudioProject\Steamware\SteamWareLib\memLayer.cs:riga 150
|
||||
ClientConnectionId:74c894c4-7506-41b5-84ac-6c463e4e5a5f
|
||||
Error Number:208,State:1,Class:16
|
||||
9:35:24 4288 Caricati 166 lemmi!
|
||||
+11
-1
@@ -215,6 +215,7 @@
|
||||
<Content Include="WebUserContols\mod_anagCond.ascx" />
|
||||
<Content Include="WebUserContols\mod_anagFornitori.ascx" />
|
||||
<Content Include="WebUserContols\mod_contabilita.ascx" />
|
||||
<Content Include="WebUserContols\mod_forn2aree.ascx" />
|
||||
<Content Include="WebUserContols\mod_graficiRow.ascx" />
|
||||
<Content Include="WebUserContols\mod_graphBar.ascx" />
|
||||
<Content Include="WebUserContols\mod_graphLine.ascx" />
|
||||
@@ -270,7 +271,9 @@
|
||||
<Content Include="Scripts\WebForms\WebParts.js" />
|
||||
<Content Include="Scripts\WebForms\WebUIValidation.js" />
|
||||
<Content Include="Site.Master" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Bundle.config" />
|
||||
<Content Include="Scripts\umd\popper.min.js.map" />
|
||||
<Content Include="Scripts\umd\popper.js.map" />
|
||||
@@ -480,6 +483,13 @@
|
||||
<Compile Include="WebUserContols\mod_contabilita.ascx.designer.cs">
|
||||
<DependentUpon>mod_contabilita.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_forn2aree.ascx.cs">
|
||||
<DependentUpon>mod_forn2aree.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_forn2aree.ascx.designer.cs">
|
||||
<DependentUpon>mod_forn2aree.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_graficiRow.ascx.cs">
|
||||
<DependentUpon>mod_graficiRow.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
+4
-3
@@ -6,11 +6,12 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--DB 2016-->
|
||||
<!--<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=B2BCond;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="B2BCondConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=B2BCond;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<!--
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />-->
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="Data.Properties.Settings.B2BCondConnectionString"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body px-1 py-0 small" id="detailScad">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="idxFornitore" DataSourceID="ods" GridLines="None" CssClass="table table-striped table-hover table-sm table-responsive-sm mw-100" OnDataBound="grView_DataBound">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="idxFornitore" DataSourceID="ods" GridLines="None" CssClass="table table-striped table-hover table-sm table-responsive-sm mw-100" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<EditRowStyle CssClass="bg-secondary" />
|
||||
<PagerStyle CssClass="bs4-aspnet-pager" />
|
||||
@@ -50,8 +50,6 @@
|
||||
<asp:LinkButton ID="lbtReset" runat="server" CausesValidation="False" CommandName="Cancel" CssClass="text-warning text-center" OnClick="lbtReset_Click"><i class="fas fa-sync-alt"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:BoundField DataField="idxFornitore" HeaderText="idxFornitore" SortExpression="idxFornitore" InsertVisible="False" ReadOnly="True" />
|
||||
<asp:BoundField DataField="username" HeaderText="username" SortExpression="username" />
|
||||
<asp:BoundField DataField="password" HeaderText="password" SortExpression="password" />
|
||||
<asp:BoundField DataField="nome" HeaderText="nome" SortExpression="nome" />
|
||||
@@ -61,8 +59,6 @@
|
||||
<asp:BoundField DataField="indirizzo_email" HeaderText="indirizzo_email" SortExpression="indirizzo_email" />
|
||||
<asp:BoundField DataField="numero_di_telefono" HeaderText="numero_di_telefono" SortExpression="numero_di_telefono" />
|
||||
<asp:BoundField DataField="numero_di_cellulare" HeaderText="numero_di_cellulare" SortExpression="numero_di_cellulare" />
|
||||
<asp:BoundField DataField="idxArea" HeaderText="idxArea" SortExpression="idxArea" />
|
||||
<asp:BoundField DataField="area" HeaderText="area" SortExpression="area" />
|
||||
<asp:BoundField DataField="iscritta" HeaderText="iscritta" SortExpression="iscritta" />
|
||||
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
|
||||
@@ -9,6 +9,19 @@ namespace PUB.WebUserContols
|
||||
{
|
||||
public partial class mod_anagFornitori : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// indicato (nuovo) numero righe x pagina
|
||||
/// </summary>
|
||||
public event EventHandler eh_selected;
|
||||
/// <summary>
|
||||
/// indicato (nuovo) numero righe x pagina
|
||||
/// </summary>
|
||||
public event EventHandler eh_reset;
|
||||
/// <summary>
|
||||
/// Load pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -36,6 +49,11 @@ namespace PUB.WebUserContols
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_reset != null)
|
||||
{
|
||||
eh_reset(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
@@ -51,5 +69,24 @@ namespace PUB.WebUserContols
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
public int idxForn
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(grView.SelectedValue.ToString(), out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selected != null)
|
||||
{
|
||||
eh_selected(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_forn2aree.ascx.cs" Inherits="PUB.WebUserContols.mod_forn2aree" %>
|
||||
<%@ Register Src="~/WebUserContols/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header alert alert-secondary text-uppercase">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<asp:LinkButton runat="server" ID="lbtAdd" CssClass="btn btn-sm btn-success" OnClick="lbtAdd_Click">Aggiungi <i class="far fa-plus-square"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<asp:DropDownList runat="server" ID="ddlAree" DataSourceID="odsAree" DataTextField="Area" DataValueField="idxArea">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsAree" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getUnassigned" TypeName="Data.DS_appTableAdapters.AnagAreeTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfIdxForn" Name="idxFornitore" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body px-1 py-0 small" id="detailScad">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="idxArea" DataSourceID="ods" GridLines="None" CssClass="table table-striped table-hover table-sm table-responsive-sm mw-100" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<SelectedRowStyle CssClass="table-info" />
|
||||
<EditRowStyle CssClass="bg-secondary" />
|
||||
<PagerStyle CssClass="bs4-aspnet-pager" />
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Area" HeaderText="Area" SortExpression="Area" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByForn" TypeName="Data.DS_appTableAdapters.AnagAreeTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfIdxForn" DefaultValue="0" Name="idxFornitore" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfIdxForn" />
|
||||
<%--<p>su click mostro i dati di statistiche: es num condomini, num interventi periodo, fatturato last 12 mesi generato, ...</p>--%>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Data;
|
||||
|
||||
namespace PUB.WebUserContols
|
||||
{
|
||||
public partial class mod_forn2aree : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// indicato (nuovo) numero righe x pagina
|
||||
/// </summary>
|
||||
public event EventHandler eh_selected;
|
||||
/// <summary>
|
||||
/// indicato (nuovo) numero righe x pagina
|
||||
/// </summary>
|
||||
public event EventHandler eh_reset;
|
||||
/// <summary>
|
||||
/// Load pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_reset != null)
|
||||
{
|
||||
eh_reset(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selected != null)
|
||||
{
|
||||
eh_selected(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornitore selezionato
|
||||
/// </summary>
|
||||
public int idxForn
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(hfIdxForn.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfIdxForn.Value = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// NUOVA Area selezionata
|
||||
/// </summary>
|
||||
public int idxAreaNew
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(ddlAree.SelectedValue, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
// aggiungo area selezionata...
|
||||
DtProxy.man.taRFA.insertQuery(idxForn, idxAreaNew);
|
||||
// aggiorno...
|
||||
grView.DataBind();
|
||||
ddlAree.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PUB.WebUserContols {
|
||||
|
||||
|
||||
public partial class mod_forn2aree {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtAdd.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtAdd;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlAree.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlAree;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsAree.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsAree;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfIdxForn.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfIdxForn;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user