diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..02cf5a0
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,4 @@
+[*.cs]
+
+# CA1303: Non passare valori letterali come parametri localizzati
+dotnet_diagnostic.CA1303.severity = none
diff --git a/C-TRACK.sln b/C-TRACK.sln
index 84e51c2..8ada324 100644
--- a/C-TRACK.sln
+++ b/C-TRACK.sln
@@ -13,6 +13,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MP-MAG", "MP-MAG\MP-MAG.csp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagData", "MagData\MagData.csproj", "{973245E4-02C0-4ED1-A81B-1727C5F4CA59}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E9EAA61B-E4E0-4051-8836-6F9A89E27930}"
+ ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs
index 63b6500..1c52187 100644
--- a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs
@@ -47,6 +47,51 @@ namespace MP_MAG.WebUserControls
}
}
+ ///
+ /// ID della packing list selezionata
+ ///
+ protected int SelPackList
+ {
+ get
+ {
+ return cmp_SelPackList.PackListID;
+ }
+ set
+ {
+ cmp_SelPackList.PackListID = value;
+ }
+ }
+
+ ///
+ /// Pedana selezionata
+ ///
+ protected string SelPedana
+ {
+ get
+ {
+ return cmp_SelPedana.Pedana;
+ }
+ set
+ {
+ cmp_SelPedana.Pedana = value;
+ }
+ }
+
+ ///
+ /// UDC selezionato
+ ///
+ protected string SelUDC
+ {
+ get
+ {
+ return cmp_SelUdc.UDC;
+ }
+ set
+ {
+ cmp_SelUdc.UDC = value;
+ }
+ }
+
#endregion Protected Properties
#region Private Methods
@@ -161,6 +206,7 @@ namespace MP_MAG.WebUserControls
///
private void processSuggestion(codeType tipoCod, string rawData, int codeInt)
{
+ bool allOk = false;
// processo suggerimenti
switch (tipoCod)
{
@@ -170,9 +216,9 @@ namespace MP_MAG.WebUserControls
switch (rawData)
{
case "CMDRESET":
- cmp_SelPackList.PackListID = 0;
- cmp_SelPedana.Pedana = "ND";
- cmp_SelUdc.UDC = "NA";
+ SelPackList = 0;
+ SelPedana = "ND";
+ SelUDC = "NA";
resetSelection(true);
break;
@@ -183,9 +229,7 @@ namespace MP_MAG.WebUserControls
case codeType.PackList:
// verifica packlist...
- bool allOk = false;
- string messCss = "form-control text-center ";
- string messText = "";
+ allOk = false;
// step 1 : esiste
var tabPList = MagDataLayer.man.taPList.getByKey(codeInt);
if (tabPList.Rows.Count > 0)
@@ -195,8 +239,7 @@ namespace MP_MAG.WebUserControls
switch (rowPList.PackStatus)
{
case 0:
- messCss += "border border-danger text-danger";
- messText = traduci("Err_PL_Bozza");
+ displError("Errore: PackList in bozza", "form-control text-center border border-danger text-danger");
break;
case 1:
@@ -205,53 +248,64 @@ namespace MP_MAG.WebUserControls
break;
case 3:
- messCss += "border border-warning text-warning";
- messText = traduci("Err_PL_Completed");
+ displError("Errore: PackList completata", "form-control text-center border border-warning text-warning");
break;
case 4:
- messCss += "border border-danger text-danger";
- messText = traduci("Err_PL_Transferred");
+ displError("Errore: PackList già trasferita", "form-control text-center border border-danger text-danger");
break;
default:
- messCss += "border border-danger text-danger";
- messText = traduci("Err_PL_Unk");
+ displError("Errore: PackList in stato UNK", "form-control text-center border border-danger text-danger");
break;
}
- lblOutMessage.Visible = !string.IsNullOrEmpty(messText);
- if (lblOutMessage.Visible)
- {
- lblOutMessage.CssClass = messCss;
- lblOutMessage.Text = messText;
- }
}
if (allOk)
{
// seleziono PackList
- cmp_SelPackList.PackListID = codeInt;
+ SelPackList = codeInt;
tryLinkAlUdc();
}
break;
case codeType.Pedana:
- // verifico e seleziono pedana
-
- if (true)
+ // verifico di avere pack list
+ allOk = false;
+ if (SelPackList == 0)
{
- cmp_SelPedana.Pedana = rawData;
+ displError("Errore: manca PackList!", "form-control text-center border border-danger text-danger");
+ }
+ else
+ {
+ // verifico esista
+ var tabAL = MagDataLayer.man.taEAL.getByKey(rawData);
+ if (tabAL.Rows.Count > 0)
+ {
+ // ...e NON sia associata ad altre PList
+ if (tabAL[0].PackListID == 0)
+ {
+ // se non associata associo...
+ MagDataLayer.man.taEAL.updatePList(rawData, SelPackList);
+ allOk = true;
+ }
+ else if (tabAL[0].PackListID != SelPackList)
+ {
+ displError($"Errore: Pedana già associata ad altra PackList: {tabAL[0].PackListID}", "form-control text-center border border-danger text-danger");
+ }
+ else
+ {
+ // tutto ok
+ allOk = true;
+ }
+ }
+ //...e seleziono pedana
+ if (allOk)
+ {
+ SelPedana = rawData;
+ }
}
- //tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
- //if (tabItem.Count == 1)
- //{
- // showItemDetail(true, tabItem[0], false);
- //}
- //else if (tabItem.Count == 0)
- //{
- // showItemDetail(false, null, true);
- //}
break;
case codeType.Udc:
@@ -260,90 +314,13 @@ namespace MP_MAG.WebUserControls
if (true)
{
- cmp_SelUdc.UDC = rawData;
+ SelUDC = rawData;
}
tryLinkAlUdc();
break;
- //case codeType.Item:
- // tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
- // if (tabItem.Count == 1)
- // {
- // showItemDetail(true, tabItem[0], false);
- // }
- // else if (tabItem.Count == 0)
- // {
- // showItemDetail(false, null, true);
- // }
- // break;
- //case codeType.ItemGeneric:
- // // PRIMA CERCSE ne ho in stato 1..3
- // tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 3);
- // if (tabItem.Count == 0)
- // {
- // // se NON ne trovo cerci FINO a stato 5...
- // tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 5);
- // }
- // if (tabItem.Count == 1)
- // {
- // showItemDetail(true, tabItem[0], false);
- // }
- // else if (tabItem.Count == 0)
- // {
- // showItemDetail(false, null, true);
- // }
- // break;
- //case codeType.Cart:
- // // verifico NON SIA richiesto PAINT
- // if (showBin)
- // {
- // displError("PAINT: BIN REQUESTED: please retry", true);
- // }
- // else
- // {
- // if (currCartTab.Count == 1)
- // {
- // // controllo se sia quello corretto
- // if (rawData != currCartTab[0].CartDtmx)
- // {
- // displError("INCORRECT CART: please retry", true);
- // }
- // else
- // {
- // // dichiaro che è depositato
- // DataLayer.man.taIL.updateStatus(itemIdSelected, 3, PlaceId);
- // lblDestination.Text = $"Item {itemIdSelected} PUT IN CART {rawData}";
- // resetSelection(false);
- // }
- // }
- // }
- // break;
- //case codeType.Bin:
- // // verifico NON SIA richiesto PAINT
- // if (showCart)
- // {
- // displError("NOT PAINTED: CART REQUESTED: please retry", true);
- // }
- // else
- // {
- // if (currBinTab.Count == 1)
- // {
- // // controllo se sia quello corretto
- // if (rawData != currBinTab[0].BinDtmx)
- // {
- // displError("INCORRECT BIN: please retry", true);
- // }
- // else
- // {
- // // dichiaro che è depositato
- // DataLayer.man.taIL.updateStatus(itemIdSelected, 4, PlaceId);
- // lblDestination.Text = $"Item {itemIdSelected} PUT IN BIN {rawData}";
- // resetSelection(false);
- // }
- // }
- // }
- // break;
+
default:
break;
}
@@ -362,8 +339,22 @@ namespace MP_MAG.WebUserControls
#region Protected Methods
+ protected void displError(string message, string cssClass)
+ {
+ lblOutMessage.Visible = !string.IsNullOrEmpty(message);
+ if (lblOutMessage.Visible)
+ {
+ lblOutMessage.CssClass = cssClass;
+ lblOutMessage.Text = message;
+ }
+ }
+
protected void Page_Load(object sender, EventArgs e)
{
+ if (!Page.IsPostBack)
+ {
+ SelPackList = 0;
+ }
// eventi barcode
cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh;
// eventi reset lotti IN
diff --git a/MagData/DS_Mag.Designer.cs b/MagData/DS_Mag.Designer.cs
index 2e1a6ac..272551b 100644
--- a/MagData/DS_Mag.Designer.cs
+++ b/MagData/DS_Mag.Designer.cs
@@ -2799,6 +2799,10 @@ namespace MagData {
private global::System.Data.DataColumn columnDescr;
+ private global::System.Data.DataColumn columnPackListID;
+
+ private global::System.Data.DataColumn columnStatus;
+
private global::System.Data.DataColumn columnDtRec;
private global::System.Data.DataColumn columnPeso;
@@ -2864,6 +2868,22 @@ namespace MagData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn PackListIDColumn {
+ get {
+ return this.columnPackListID;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn StatusColumn {
+ get {
+ return this.columnStatus;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DtRecColumn {
@@ -2965,11 +2985,13 @@ namespace MagData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public ElencoALRow AddElencoALRow(string AL, string Descr, System.DateTime DtRec, decimal Peso, decimal Tara, string CodSoggetto, decimal QtaUdc, int NumUdc, decimal PesoUdc, decimal TaraUdc) {
+ public ElencoALRow AddElencoALRow(string AL, string Descr, int PackListID, int Status, System.DateTime DtRec, decimal Peso, decimal Tara, string CodSoggetto, decimal QtaUdc, int NumUdc, decimal PesoUdc, decimal TaraUdc) {
ElencoALRow rowElencoALRow = ((ElencoALRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
AL,
Descr,
+ PackListID,
+ Status,
DtRec,
Peso,
Tara,
@@ -3009,6 +3031,8 @@ namespace MagData {
internal void InitVars() {
this.columnAL = base.Columns["AL"];
this.columnDescr = base.Columns["Descr"];
+ this.columnPackListID = base.Columns["PackListID"];
+ this.columnStatus = base.Columns["Status"];
this.columnDtRec = base.Columns["DtRec"];
this.columnPeso = base.Columns["Peso"];
this.columnTara = base.Columns["Tara"];
@@ -3026,6 +3050,10 @@ namespace MagData {
base.Columns.Add(this.columnAL);
this.columnDescr = new global::System.Data.DataColumn("Descr", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescr);
+ this.columnPackListID = new global::System.Data.DataColumn("PackListID", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnPackListID);
+ this.columnStatus = new global::System.Data.DataColumn("Status", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnStatus);
this.columnDtRec = new global::System.Data.DataColumn("DtRec", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDtRec);
this.columnPeso = new global::System.Data.DataColumn("Peso", typeof(decimal), null, global::System.Data.MappingType.Element);
@@ -3049,6 +3077,8 @@ namespace MagData {
this.columnAL.MaxLength = 50;
this.columnDescr.AllowDBNull = false;
this.columnDescr.MaxLength = 50;
+ this.columnPackListID.AllowDBNull = false;
+ this.columnStatus.AllowDBNull = false;
this.columnDtRec.AllowDBNull = false;
this.columnPeso.AllowDBNull = false;
this.columnTara.AllowDBNull = false;
@@ -4789,6 +4819,28 @@ namespace MagData {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int PackListID {
+ get {
+ return ((int)(this[this.tableElencoAL.PackListIDColumn]));
+ }
+ set {
+ this[this.tableElencoAL.PackListIDColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public int Status {
+ get {
+ return ((int)(this[this.tableElencoAL.StatusColumn]));
+ }
+ set {
+ this[this.tableElencoAL.StatusColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public System.DateTime DtRec {
@@ -6822,6 +6874,8 @@ namespace MagData.DS_MagTableAdapters {
tableMapping.DataSetTable = "ElencoAL";
tableMapping.ColumnMappings.Add("AL", "AL");
tableMapping.ColumnMappings.Add("Descr", "Descr");
+ tableMapping.ColumnMappings.Add("PackListID", "PackListID");
+ tableMapping.ColumnMappings.Add("Status", "Status");
tableMapping.ColumnMappings.Add("DtRec", "DtRec");
tableMapping.ColumnMappings.Add("Peso", "Peso");
tableMapping.ColumnMappings.Add("Tara", "Tara");
@@ -6843,45 +6897,58 @@ namespace MagData.DS_MagTableAdapters {
[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[5];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM v_ElencoAL";
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_EAL_getByPackList";
+ this._commandCollection[1].CommandText = "dbo.stp_EAL_getByKey";
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("@PackListID", 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("@AL", 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_EAL_getBySearch";
+ this._commandCollection[2].CommandText = "dbo.stp_EAL_getByPackList";
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("@FiltDate", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DayRef", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_EAL_insertQuery";
+ this._commandCollection[3].CommandText = "dbo.stp_EAL_getBySearch";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltDate", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DayRef", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "dbo.stp_EAL_updateQuery";
+ this._commandCollection[4].CommandText = "dbo.stp_EAL_insertQuery";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DayRef", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_EAL_updatePList";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[6].Connection = this.Connection;
+ this._commandCollection[6].CommandText = "dbo.stp_EAL_updateQuery";
+ this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6912,8 +6979,25 @@ namespace MagData.DS_MagTableAdapters {
[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_Mag.ElencoALDataTable getByPackList(global::System.Nullable PackListID) {
+ public virtual DS_Mag.ElencoALDataTable getByKey(string AL) {
this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((AL == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(AL));
+ }
+ DS_Mag.ElencoALDataTable dataTable = new DS_Mag.ElencoALDataTable();
+ 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_Mag.ElencoALDataTable getByPackList(global::System.Nullable PackListID) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
if ((PackListID.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(PackListID.Value));
}
@@ -6930,7 +7014,7 @@ namespace MagData.DS_MagTableAdapters {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Mag.ElencoALDataTable getBySearch(global::System.Nullable FiltDate, global::System.Nullable DayRef, string SearchVal) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((FiltDate.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((bool)(FiltDate.Value));
}
@@ -6959,7 +7043,7 @@ namespace MagData.DS_MagTableAdapters {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Mag.ElencoALDataTable insertQuery(global::System.Nullable DayRef, string Flusso, string CodSoggetto, string Descr, global::System.Nullable PackListID, global::System.Nullable Tara) {
- this.Adapter.SelectCommand = this.CommandCollection[3];
+ this.Adapter.SelectCommand = this.CommandCollection[4];
if ((DayRef.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DayRef.Value));
}
@@ -7001,11 +7085,45 @@ namespace MagData.DS_MagTableAdapters {
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")]
+ public virtual int updatePList(string Original_AL, global::System.Nullable PackListID) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
+ if ((Original_AL == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_AL));
+ }
+ if ((PackListID.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(PackListID.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;
+ }
+
[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")]
public virtual int updateQuery(string Original_AL, string Descr, global::System.Nullable Peso, global::System.Nullable Tara) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
if ((Original_AL == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/MagData/DS_Mag.xsd b/MagData/DS_Mag.xsd
index a3204f7..c44614c 100644
--- a/MagData/DS_Mag.xsd
+++ b/MagData/DS_Mag.xsd
@@ -355,7 +355,7 @@ FROM dbo.ElencoPost2Queue
-
+
SELECT * FROM v_ElencoAL
@@ -365,6 +365,8 @@ FROM dbo.ElencoPost2Queue
+
+
@@ -375,6 +377,17 @@ FROM dbo.ElencoPost2Queue
+
+
+
+ dbo.stp_EAL_getByKey
+
+
+
+
+
+
+
@@ -415,6 +428,18 @@ FROM dbo.ElencoPost2Queue
+
+
+
+ dbo.stp_EAL_updatePList
+
+
+
+
+
+
+
+
@@ -512,7 +537,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -587,7 +612,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -742,7 +767,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -769,7 +794,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -836,7 +861,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -856,7 +881,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
@@ -873,6 +898,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
+
+
@@ -890,7 +917,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM
-
+
diff --git a/MagData/DS_Mag.xss b/MagData/DS_Mag.xss
index 4f56de0..ac5002f 100644
--- a/MagData/DS_Mag.xss
+++ b/MagData/DS_Mag.xss
@@ -11,7 +11,7 @@
-
+
diff --git a/MagData/DS_PackList.Designer.cs b/MagData/DS_PackList.Designer.cs
index d118f46..d3d4f42 100644
--- a/MagData/DS_PackList.Designer.cs
+++ b/MagData/DS_PackList.Designer.cs
@@ -28,12 +28,8 @@ namespace MagData {
private OrdersListDataTable tableOrdersList;
- private AL2PackListDataTable tableAL2PackList;
-
private ExtOrdersListDataTable tableExtOrdersList;
- private global::System.Data.DataRelation relationFK_AL2PackList_PackList;
-
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -68,9 +64,6 @@ namespace MagData {
if ((ds.Tables["OrdersList"] != null)) {
base.Tables.Add(new OrdersListDataTable(ds.Tables["OrdersList"]));
}
- if ((ds.Tables["AL2PackList"] != null)) {
- base.Tables.Add(new AL2PackListDataTable(ds.Tables["AL2PackList"]));
- }
if ((ds.Tables["ExtOrdersList"] != null)) {
base.Tables.Add(new ExtOrdersListDataTable(ds.Tables["ExtOrdersList"]));
}
@@ -112,16 +105,6 @@ namespace MagData {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AL2PackListDataTable AL2PackList {
- get {
- return this.tableAL2PackList;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -205,9 +188,6 @@ namespace MagData {
if ((ds.Tables["OrdersList"] != null)) {
base.Tables.Add(new OrdersListDataTable(ds.Tables["OrdersList"]));
}
- if ((ds.Tables["AL2PackList"] != null)) {
- base.Tables.Add(new AL2PackListDataTable(ds.Tables["AL2PackList"]));
- }
if ((ds.Tables["ExtOrdersList"] != null)) {
base.Tables.Add(new ExtOrdersListDataTable(ds.Tables["ExtOrdersList"]));
}
@@ -256,19 +236,12 @@ namespace MagData {
this.tableOrdersList.InitVars();
}
}
- this.tableAL2PackList = ((AL2PackListDataTable)(base.Tables["AL2PackList"]));
- if ((initTable == true)) {
- if ((this.tableAL2PackList != null)) {
- this.tableAL2PackList.InitVars();
- }
- }
this.tableExtOrdersList = ((ExtOrdersListDataTable)(base.Tables["ExtOrdersList"]));
if ((initTable == true)) {
if ((this.tableExtOrdersList != null)) {
this.tableExtOrdersList.InitVars();
}
}
- this.relationFK_AL2PackList_PackList = this.Relations["FK_AL2PackList_PackList"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -283,14 +256,8 @@ namespace MagData {
base.Tables.Add(this.tablePackList);
this.tableOrdersList = new OrdersListDataTable();
base.Tables.Add(this.tableOrdersList);
- this.tableAL2PackList = new AL2PackListDataTable();
- base.Tables.Add(this.tableAL2PackList);
this.tableExtOrdersList = new ExtOrdersListDataTable();
base.Tables.Add(this.tableExtOrdersList);
- this.relationFK_AL2PackList_PackList = new global::System.Data.DataRelation("FK_AL2PackList_PackList", new global::System.Data.DataColumn[] {
- this.tablePackList.PackListIDColumn}, new global::System.Data.DataColumn[] {
- this.tableAL2PackList.PackListIDColumn}, false);
- this.Relations.Add(this.relationFK_AL2PackList_PackList);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -305,12 +272,6 @@ namespace MagData {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- private bool ShouldSerializeAL2PackList() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeExtOrdersList() {
@@ -378,9 +339,6 @@ namespace MagData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void OrdersListRowChangeEventHandler(object sender, OrdersListRowChangeEvent e);
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public delegate void AL2PackListRowChangeEventHandler(object sender, AL2PackListRowChangeEvent e);
-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void ExtOrdersListRowChangeEventHandler(object sender, ExtOrdersListRowChangeEvent e);
@@ -1136,299 +1094,6 @@ namespace MagData {
}
}
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AL2PackListDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnAL;
-
- private global::System.Data.DataColumn columnPackListID;
-
- private global::System.Data.DataColumn columnStatus;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListDataTable() {
- this.TableName = "AL2PackList";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- internal AL2PackListDataTable(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", "16.0.0.0")]
- protected AL2PackListDataTable(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", "16.0.0.0")]
- public global::System.Data.DataColumn ALColumn {
- get {
- return this.columnAL;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public global::System.Data.DataColumn PackListIDColumn {
- get {
- return this.columnPackListID;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public global::System.Data.DataColumn StatusColumn {
- get {
- return this.columnStatus;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
- public AL2PackListRow this[int index] {
- get {
- return ((AL2PackListRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public event AL2PackListRowChangeEventHandler AL2PackListRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public event AL2PackListRowChangeEventHandler AL2PackListRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public event AL2PackListRowChangeEventHandler AL2PackListRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public event AL2PackListRowChangeEventHandler AL2PackListRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public void AddAL2PackListRow(AL2PackListRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListRow AddAL2PackListRow(string AL, PackListRow parentPackListRowByFK_AL2PackList_PackList, int Status) {
- AL2PackListRow rowAL2PackListRow = ((AL2PackListRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- AL,
- null,
- Status};
- if ((parentPackListRowByFK_AL2PackList_PackList != null)) {
- columnValuesArray[1] = parentPackListRowByFK_AL2PackList_PackList[0];
- }
- rowAL2PackListRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAL2PackListRow);
- return rowAL2PackListRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListRow FindByALPackListID(string AL, int PackListID) {
- return ((AL2PackListRow)(this.Rows.Find(new object[] {
- AL,
- PackListID})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- AL2PackListDataTable cln = ((AL2PackListDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AL2PackListDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- internal void InitVars() {
- this.columnAL = base.Columns["AL"];
- this.columnPackListID = base.Columns["PackListID"];
- this.columnStatus = base.Columns["Status"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- private void InitClass() {
- this.columnAL = new global::System.Data.DataColumn("AL", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnAL);
- this.columnPackListID = new global::System.Data.DataColumn("PackListID", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnPackListID);
- this.columnStatus = new global::System.Data.DataColumn("Status", typeof(int), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnStatus);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnAL,
- this.columnPackListID}, true));
- this.columnAL.AllowDBNull = false;
- this.columnAL.MaxLength = 50;
- this.columnPackListID.AllowDBNull = false;
- this.columnStatus.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListRow NewAL2PackListRow() {
- return ((AL2PackListRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AL2PackListRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(AL2PackListRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AL2PackListRowChanged != null)) {
- this.AL2PackListRowChanged(this, new AL2PackListRowChangeEvent(((AL2PackListRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AL2PackListRowChanging != null)) {
- this.AL2PackListRowChanging(this, new AL2PackListRowChangeEvent(((AL2PackListRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AL2PackListRowDeleted != null)) {
- this.AL2PackListRowDeleted(this, new AL2PackListRowChangeEvent(((AL2PackListRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AL2PackListRowDeleting != null)) {
- this.AL2PackListRowDeleting(this, new AL2PackListRowChangeEvent(((AL2PackListRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public void RemoveAL2PackListRow(AL2PackListRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_PackList ds = new DS_PackList();
- 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 = "AL2PackListDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
///
///Represents the strongly named DataTable class.
///
@@ -2004,17 +1669,6 @@ namespace MagData {
public void SetQtaTotNull() {
this[this.tablePackList.QtaTotColumn] = global::System.Convert.DBNull;
}
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListRow[] GetAL2PackListRows() {
- if ((this.Table.ChildRelations["FK_AL2PackList_PackList"] == null)) {
- return new AL2PackListRow[0];
- }
- else {
- return ((AL2PackListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AL2PackList_PackList"])));
- }
- }
}
///
@@ -2154,65 +1808,6 @@ namespace MagData {
}
}
- ///
- ///Represents strongly named DataRow class.
- ///
- public partial class AL2PackListRow : global::System.Data.DataRow {
-
- private AL2PackListDataTable tableAL2PackList;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- internal AL2PackListRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAL2PackList = ((AL2PackListDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public string AL {
- get {
- return ((string)(this[this.tableAL2PackList.ALColumn]));
- }
- set {
- this[this.tableAL2PackList.ALColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public int PackListID {
- get {
- return ((int)(this[this.tableAL2PackList.PackListIDColumn]));
- }
- set {
- this[this.tableAL2PackList.PackListIDColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public int Status {
- get {
- return ((int)(this[this.tableAL2PackList.StatusColumn]));
- }
- set {
- this[this.tableAL2PackList.StatusColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public PackListRow PackListRow {
- get {
- return ((PackListRow)(this.GetParentRow(this.Table.ParentRelations["FK_AL2PackList_PackList"])));
- }
- set {
- this.SetParentRow(value, this.Table.ParentRelations["FK_AL2PackList_PackList"]);
- }
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -2457,40 +2052,6 @@ namespace MagData {
}
}
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public class AL2PackListRowChangeEvent : global::System.EventArgs {
-
- private AL2PackListRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public AL2PackListRowChangeEvent(AL2PackListRow 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", "16.0.0.0")]
- public AL2PackListRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
///
///Row event argument class
///
@@ -3453,335 +3014,6 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O
}
}
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AL2PackListTableAdapter : 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", "16.0.0.0")]
- public AL2PackListTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "AL2PackList";
- tableMapping.ColumnMappings.Add("AL", "AL");
- tableMapping.ColumnMappings.Add("PackListID", "PackListID");
- tableMapping.ColumnMappings.Add("Status", "Status");
- 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].[AL2PackList] WHERE (([AL] = @Original_AL) AND ([PackListID] = " +
- "@Original_PackListID) AND ([Status] = @Original_Status))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackListID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", 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].[AL2PackList] ([AL], [PackListID], [Status]) VALUES (@AL, @Pack" +
- "ListID, @Status);\r\nSELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @A" +
- "L) AND (PackListID = @PackListID)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackListID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", 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].[AL2PackList] SET [AL] = @AL, [PackListID] = @PackListID, [Status] = @Status WHERE (([AL] = @Original_AL) AND ([PackListID] = @Original_PackListID) AND ([Status] = @Original_Status));
-SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID = @PackListID)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PackListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackListID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PackListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PackListID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::MagData.Properties.Settings.Default.MoonPro_MAGConnectionString;
- }
-
- [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[1];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT AL, PackListID, Status FROM dbo.AL2PackList";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- }
-
- [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.Fill, true)]
- public virtual int Fill(DS_PackList.AL2PackListDataTable 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", "16.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_PackList.AL2PackListDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_PackList.AL2PackListDataTable dataTable = new DS_PackList.AL2PackListDataTable();
- 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")]
- public virtual int Update(DS_PackList.AL2PackListDataTable dataTable) {
- return this.Adapter.Update(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")]
- public virtual int Update(DS_PackList dataSet) {
- return this.Adapter.Update(dataSet, "AL2PackList");
- }
-
- [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")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_AL, int Original_PackListID, int Original_Status) {
- if ((Original_AL == null)) {
- throw new global::System.ArgumentNullException("Original_AL");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_AL));
- }
- this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_PackListID));
- this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Status));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string AL, int PackListID, int Status) {
- if ((AL == null)) {
- throw new global::System.ArgumentNullException("AL");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(AL));
- }
- this.Adapter.InsertCommand.Parameters[1].Value = ((int)(PackListID));
- this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Status));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string AL, int PackListID, int Status, string Original_AL, int Original_PackListID, int Original_Status) {
- if ((AL == null)) {
- throw new global::System.ArgumentNullException("AL");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(AL));
- }
- this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(PackListID));
- this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Status));
- if ((Original_AL == null)) {
- throw new global::System.ArgumentNullException("Original_AL");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_AL));
- }
- this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_PackListID));
- this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Status));
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 Status, string Original_AL, int Original_PackListID, int Original_Status) {
- return this.Update(Original_AL, Original_PackListID, Status, Original_AL, Original_PackListID, Original_Status);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -4009,8 +3241,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
private OrdersListTableAdapter _ordersListTableAdapter;
- private AL2PackListTableAdapter _aL2PackListTableAdapter;
-
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -4040,20 +3270,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
- "a", "System.Drawing.Design.UITypeEditor")]
- public AL2PackListTableAdapter AL2PackListTableAdapter {
- get {
- return this._aL2PackListTableAdapter;
- }
- set {
- this._aL2PackListTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -4077,10 +3293,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
&& (this._ordersListTableAdapter.Connection != null))) {
return this._ordersListTableAdapter.Connection;
}
- if (((this._aL2PackListTableAdapter != null)
- && (this._aL2PackListTableAdapter.Connection != null))) {
- return this._aL2PackListTableAdapter.Connection;
- }
return null;
}
set {
@@ -4097,9 +3309,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
if ((this._ordersListTableAdapter != null)) {
count = (count + 1);
}
- if ((this._aL2PackListTableAdapter != null)) {
- count = (count + 1);
- }
return count;
}
}
@@ -4120,15 +3329,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._aL2PackListTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AL2PackList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._aL2PackListTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
return result;
}
@@ -4147,14 +3347,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
allAddedRows.AddRange(addedRows);
}
}
- if ((this._aL2PackListTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AL2PackList.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._aL2PackListTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
return result;
}
@@ -4165,14 +3357,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateDeletedRows(DS_PackList dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
- if ((this._aL2PackListTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AL2PackList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._aL2PackListTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
if ((this._ordersListTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.OrdersList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -4225,11 +3409,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
- if (((this._aL2PackListTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._aL2PackListTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
- "a stessa stringa di connessione.");
- }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
@@ -4272,15 +3451,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
adaptersWithAcceptChangesDuringUpdate.Add(this._ordersListTableAdapter.Adapter);
}
}
- if ((this._aL2PackListTableAdapter != null)) {
- revertConnections.Add(this._aL2PackListTableAdapter, this._aL2PackListTableAdapter.Connection);
- this._aL2PackListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._aL2PackListTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._aL2PackListTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._aL2PackListTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._aL2PackListTableAdapter.Adapter);
- }
- }
//
//---- Perform updates -----------
//
@@ -4343,10 +3513,6 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
this._ordersListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersListTableAdapter]));
this._ordersListTableAdapter.Transaction = null;
}
- if ((this._aL2PackListTableAdapter != null)) {
- this._aL2PackListTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._aL2PackListTableAdapter]));
- this._aL2PackListTableAdapter.Transaction = null;
- }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/MagData/DS_PackList.xsd b/MagData/DS_PackList.xsd
index ae23d67..2d057a8 100644
--- a/MagData/DS_PackList.xsd
+++ b/MagData/DS_PackList.xsd
@@ -30,7 +30,7 @@
-
+
dbo.stp_PackList_deleteQuery
@@ -64,7 +64,7 @@
-
+
dbo.stp_PackList_insertQuery
@@ -87,7 +87,7 @@
-
+
dbo.stp_PackList_updateStatus
@@ -168,7 +168,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O
-
+
dbo.stp_OrdList_deleteQuery
@@ -190,7 +190,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O
-
+
dbo.stp_OrdList_insertQuery
@@ -205,7 +205,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O
-
+
dbo.stp_OrdList_updateQuery
@@ -220,59 +220,6 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O
-
-
-
-
-
- DELETE FROM [dbo].[AL2PackList] WHERE (([AL] = @Original_AL) AND ([PackListID] = @Original_PackListID) AND ([Status] = @Original_Status))
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AL2PackList] ([AL], [PackListID], [Status]) VALUES (@AL, @PackListID, @Status);
-SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID = @PackListID)
-
-
-
-
-
-
-
-
-
- SELECT AL, PackListID, Status FROM dbo.AL2PackList
-
-
-
-
-
- UPDATE [dbo].[AL2PackList] SET [AL] = @AL, [PackListID] = @PackListID, [Status] = @Status WHERE (([AL] = @Original_AL) AND ([PackListID] = @Original_PackListID) AND ([Status] = @Original_Status));
-SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID = @PackListID)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -321,7 +268,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
-
+
@@ -360,7 +307,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
-
+
@@ -398,22 +345,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -469,19 +401,9 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/MagData/DS_PackList.xss b/MagData/DS_PackList.xss
index dfd72fe..27a1eb8 100644
--- a/MagData/DS_PackList.xss
+++ b/MagData/DS_PackList.xss
@@ -8,21 +8,7 @@
-
-
-
-
-
- 701
- 103
-
-
- 835
- 103
-
-
-
-
+
\ No newline at end of file
diff --git a/VersGen/VersGen.csproj b/VersGen/VersGen.csproj
index 8498c3e..f64cab1 100644
--- a/VersGen/VersGen.csproj
+++ b/VersGen/VersGen.csproj
@@ -62,5 +62,10 @@
+
+
+ .editorconfig
+
+
\ No newline at end of file