diff --git a/MagData/DS_PackList.Designer.cs b/MagData/DS_PackList.Designer.cs
index c2832b14..7c14d137 100644
--- a/MagData/DS_PackList.Designer.cs
+++ b/MagData/DS_PackList.Designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
//
-// Il codice è stato generato da uno strumento.
-// Versione runtime:4.0.30319.42000
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
//
-// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
-// il codice viene rigenerato.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
//
//------------------------------------------------------------------------------
@@ -1631,7 +1631,7 @@ namespace MagData {
return ((string)(this[this.tablePackList.DescClienteColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescCliente\' nella tabella \'PackList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'DescCliente\' in table \'PackList\' is DBNull.", e);
}
}
set {
@@ -1658,7 +1658,7 @@ namespace MagData {
return ((string)(this[this.tablePackList.DescStatoColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescStato\' nella tabella \'PackList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'DescStato\' in table \'PackList\' is DBNull.", e);
}
}
set {
@@ -1674,7 +1674,7 @@ namespace MagData {
return ((int)(this[this.tablePackList.NumALColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumAL\' nella tabella \'PackList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'NumAL\' in table \'PackList\' is DBNull.", e);
}
}
set {
@@ -1690,7 +1690,7 @@ namespace MagData {
return ((decimal)(this[this.tablePackList.QtaTotColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtaTot\' nella tabella \'PackList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'QtaTot\' in table \'PackList\' is DBNull.", e);
}
}
set {
@@ -1813,7 +1813,7 @@ namespace MagData {
return ((string)(this[this.tableOrdersList.DescrArtColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrArt\' nella tabella \'OrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'DescrArt\' in table \'OrdersList\' is DBNull.", e);
}
}
set {
@@ -1851,7 +1851,7 @@ namespace MagData {
return ((string)(this[this.tableOrdersList.OrdDescrColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'OrdDescr\' nella tabella \'OrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'OrdDescr\' in table \'OrdersList\' is DBNull.", e);
}
}
set {
@@ -1867,7 +1867,7 @@ namespace MagData {
return ((int)(this[this.tableOrdersList.QtyPrelColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtyPrel\' nella tabella \'OrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'QtyPrel\' in table \'OrdersList\' is DBNull.", e);
}
}
set {
@@ -1978,7 +1978,7 @@ namespace MagData {
return ((int)(this[this.tableExtOrdersList.IdTestOrdColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdTestOrd\' nella tabella \'ExtOrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'IdTestOrd\' in table \'ExtOrdersList\' is DBNull.", e);
}
}
set {
@@ -2016,8 +2016,7 @@ namespace MagData {
return ((string)(this[this.tableExtOrdersList.CodDestinazioneColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodDestinazione\' nella tabella \'ExtOrdersList\' è DBNull." +
- "", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'CodDestinazione\' in table \'ExtOrdersList\' is DBNull.", e);
}
}
set {
@@ -2033,8 +2032,7 @@ namespace MagData {
return ((string)(this[this.tableExtOrdersList.DescDestinazioneColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescDestinazione\' nella tabella \'ExtOrdersList\' è DBNull" +
- ".", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'DescDestinazione\' in table \'ExtOrdersList\' is DBNull.", e);
}
}
set {
@@ -2050,7 +2048,7 @@ namespace MagData {
return ((string)(this[this.tableExtOrdersList.UMColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'UM\' nella tabella \'ExtOrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'UM\' in table \'ExtOrdersList\' is DBNull.", e);
}
}
set {
@@ -2088,7 +2086,7 @@ namespace MagData {
return ((string)(this[this.tableExtOrdersList.DescOrdineColumn]));
}
catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescOrdine\' nella tabella \'ExtOrdersList\' è DBNull.", e);
+ throw new global::System.Data.StrongTypingException("The value for column \'DescOrdine\' in table \'ExtOrdersList\' is DBNull.", e);
}
}
set {
@@ -3187,7 +3185,7 @@ namespace MagData.DS_PackListTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_ExtOrd_GetByCliente";
@@ -3196,10 +3194,19 @@ namespace MagData.DS_PackListTableAdapters {
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_ExtOrd_GetByKey";
+ this._commandCollection[1].CommandText = "dbo.stp_ExtOrd_GetByFilt";
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("@RigaOrd", 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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioCon", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineCon", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_ExtOrd_GetByKey";
+ 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("@RigaOrd", 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()]
@@ -3242,8 +3249,43 @@ namespace MagData.DS_PackListTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_PackList.ExtOrdersListDataTable getByKey(global::System.Nullable RigaOrd) {
+ public virtual DS_PackList.ExtOrdersListDataTable getByFilt(string CodCliente, global::System.Nullable InizioCon, global::System.Nullable FineCon, string CodArticolo) {
this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCliente == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCliente));
+ }
+ if ((InizioCon.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(InizioCon.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((FineCon.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(FineCon.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((CodArticolo == null)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodArticolo));
+ }
+ DS_PackList.ExtOrdersListDataTable dataTable = new DS_PackList.ExtOrdersListDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_PackList.ExtOrdersListDataTable getByKey(global::System.Nullable RigaOrd) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
if ((RigaOrd.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(RigaOrd.Value));
}
@@ -3387,9 +3429,8 @@ namespace MagData.DS_PackListTableAdapters {
}
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
- throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
- "età TableAdapter di ciascun oggetto TableAdapterManager su un\'istanza TableAdapt" +
- "er valida.");
+ throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
+ "ger TableAdapter property to a valid TableAdapter instance.");
}
bool workConnOpened = false;
if (((workConnection.State & global::System.Data.ConnectionState.Broken)
@@ -3402,8 +3443,8 @@ namespace MagData.DS_PackListTableAdapters {
}
global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
if ((workTransaction == null)) {
- throw new global::System.ApplicationException("Impossibile avviare la transazione. La connessione dati corrente non supporta le " +
- "transazioni oppure lo stato corrente non consente l\'avvio della transazione.");
+ throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
+ "ctions or the current state is not allowing the transaction to begin.");
}
global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List();
global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List();
diff --git a/MagData/DS_PackList.xsd b/MagData/DS_PackList.xsd
index 5876df7e..399d3ac0 100644
--- a/MagData/DS_PackList.xsd
+++ b/MagData/DS_PackList.xsd
@@ -221,6 +221,20 @@
+
+
+
+ dbo.stp_ExtOrd_GetByFilt
+
+
+
+
+
+
+
+
+
+
@@ -242,7 +256,7 @@
-
+
@@ -281,7 +295,7 @@
-
+
@@ -320,7 +334,7 @@
-
+
diff --git a/MagData/DS_PackList.xss b/MagData/DS_PackList.xss
index 91f4bca5..03be5b3c 100644
--- a/MagData/DS_PackList.xss
+++ b/MagData/DS_PackList.xss
@@ -8,7 +8,7 @@
-
+
\ No newline at end of file