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/MP-MAG.csproj b/MP-MAG/MP-MAG.csproj index 6a16348..8647ef7 100644 --- a/MP-MAG/MP-MAG.csproj +++ b/MP-MAG/MP-MAG.csproj @@ -320,6 +320,13 @@ PLScanner.aspx + + SmartStarter.aspx + ASPXCodeBehind + + + SmartStarter.aspx + UserAdmin.aspx ASPXCodeBehind @@ -446,6 +453,13 @@ cmp_OrderListAdd.ascx + + cmp_OrderListByUdc.ascx + ASPXCodeBehind + + + cmp_OrderListByUdc.ascx + cmp_packList.ascx ASPXCodeBehind @@ -682,6 +696,7 @@ + @@ -702,6 +717,7 @@ + diff --git a/MP-MAG/SMART/SmartStarter.aspx b/MP-MAG/SMART/SmartStarter.aspx new file mode 100644 index 0000000..c022f48 --- /dev/null +++ b/MP-MAG/SMART/SmartStarter.aspx @@ -0,0 +1,21 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SmartStarter.aspx.cs" Inherits="MP_MAG.SMART.SmartStarter" %> + +<%@ Register Src="~/WebUserControls/cmp_OrderList.ascx" TagPrefix="uc1" TagName="cmp_OrderList" %> + + +
+
+

SMART STARTER

+
+
+
+
+ Link per accesso diretto tramite lettore portatile per l'utente corrente +
+
+ +
+
+
+
+
\ No newline at end of file diff --git a/MP-MAG/SMART/SmartStarter.aspx.cs b/MP-MAG/SMART/SmartStarter.aspx.cs new file mode 100644 index 0000000..ad062ae --- /dev/null +++ b/MP-MAG/SMART/SmartStarter.aspx.cs @@ -0,0 +1,55 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MP_MAG.SMART +{ + public partial class SmartStarter : System.Web.UI.Page + { + #region Private Methods + + private void fixDisplay() + { + refreshQrCode(); + } + + #endregion Private Methods + + #region Protected Methods + + /// + /// restituisce URL immagine QRCode + /// + /// + protected string getImageUrl() + { + string matrixUrl = $"{memLayer.ML.CRS("matrixUrl")}/HOME/QR_site/JSON?val="; + string baseUrlPath = $"{memLayer.ML.CRS("baseUrl")}{memLayer.ML.CRS("basePath")}"; + // fare: inviare user+token adeguatamente cablati... + string payload = "{'baseUrl':'" + baseUrlPath + "PLScanner?{0}','parameters':['?UserAuthkey=asdfbqhewrqg7802345bhasdfg78']}"; + string answ = $"{matrixUrl}{payload}"; + return answ; + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + fixDisplay(); + } + } + + protected void refreshQrCode() + { + // genero nuovo QR + string qrUrl = getImageUrl(); + imgQrMain.ImageUrl = qrUrl; + } + + #endregion Protected Methods + } +} \ No newline at end of file diff --git a/MP-MAG/SMART/SmartStarter.aspx.designer.cs b/MP-MAG/SMART/SmartStarter.aspx.designer.cs new file mode 100644 index 0000000..8567fc6 --- /dev/null +++ b/MP-MAG/SMART/SmartStarter.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MP_MAG.SMART +{ + + + public partial class SmartStarter + { + + /// + /// Controllo imgQrMain. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Image imgQrMain; + } +} diff --git a/MP-MAG/SMART/gestPedane.aspx b/MP-MAG/SMART/gestPedane.aspx index ae22184..6e77ed7 100644 --- a/MP-MAG/SMART/gestPedane.aspx +++ b/MP-MAG/SMART/gestPedane.aspx @@ -36,9 +36,6 @@ - diff --git a/MP-MAG/SMART/gestPedane.aspx.cs b/MP-MAG/SMART/gestPedane.aspx.cs index ccdc5f2..8be85ce 100644 --- a/MP-MAG/SMART/gestPedane.aspx.cs +++ b/MP-MAG/SMART/gestPedane.aspx.cs @@ -68,6 +68,18 @@ namespace MP_MAG.SMART fixDisplay(); } + /// + /// restituisce URL immagine QRCode + /// + /// + protected string getImageUrl() + { + string baseUrl = $"{memLayer.ML.CRS("matrixUrl")}/HOME/QR_site/JSON?val="; + string payload = "{'baseUrl':'{0}','parameters':['PL" + PackListID + "']}"; + string answ = $"{baseUrl}{payload}"; + return answ; + } + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) @@ -86,21 +98,5 @@ namespace MP_MAG.SMART } #endregion Protected Methods - - #region Public Methods - - /// - /// restituisce URL immagine QRCode - /// - /// - public string getImageUrl() - { - string baseUrl = $"{memLayer.ML.CRS("matrixUrl")}/HOME/QR_site/JSON?val="; - string payload = "{'baseUrl':'{0}','parameters':['PL" + PackListID + "']}"; - string answ = $"{baseUrl}{payload}"; - return answ; - } - - #endregion Public Methods } } \ No newline at end of file diff --git a/MP-MAG/SMART/menu.aspx b/MP-MAG/SMART/menu.aspx index 5b9d775..bad9585 100644 --- a/MP-MAG/SMART/menu.aspx +++ b/MP-MAG/SMART/menu.aspx @@ -1,34 +1,37 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="menu.aspx.cs" Inherits="MP_MAG.SMART.menu" %> - -
-
-

Modulo Magazzino

- Gestione Lotti e stampa etichette UDC prodotti -
- -
- - + \ No newline at end of file diff --git a/MP-MAG/Web.config b/MP-MAG/Web.config index 8c24619..bde7d6b 100644 --- a/MP-MAG/Web.config +++ b/MP-MAG/Web.config @@ -24,6 +24,8 @@ + + diff --git a/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx new file mode 100644 index 0000000..0c52cb6 --- /dev/null +++ b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx @@ -0,0 +1,47 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_OrderListByUdc.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_OrderListByUdc" %> + + + + + + + +
+
+ Nessun record trovato +
+
+
+ + + + + + + + + + + + + +
+ +
+ + +
+ +
+
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.cs b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.cs new file mode 100644 index 0000000..f926b6a --- /dev/null +++ b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.cs @@ -0,0 +1,104 @@ +using MagData; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MP_MAG.WebUserControls +{ + public partial class cmp_OrderListByUdc : BaseUserControl + { + #region Public Properties + + public int PackListID + { + get + { + int answ = 0; + int.TryParse(hfPackListID.Value, out answ); + return answ; + } + set + { + hfPackListID.Value = $"{value}"; + } + } + + /// + /// Ordine selezionato + /// + public int SelOrdID + { + get + { + int answ = 0; + if (grView.SelectedIndex >= 0) + { + int.TryParse(grView.SelectedValue.ToString(), out answ); + } + return answ; + } + } + + public string UdcSel + { + get + { + return hfUdc.Value; + } + set + { + hfUdc.Value = value; + doUpdate(); + } + } + + #endregion Public Properties + + #region Private Methods + + private void Cmp_OrderListAdd_eh_addNew(object sender, EventArgs e) + { + resetSelezione(); + } + + private void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + raiseReset(); + } + + #endregion Private Methods + + #region Protected Methods + + /// + /// comando reset + /// + /// + /// + protected void lbtReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + + protected void Page_Load(object sender, EventArgs e) + { + } + + #endregion Protected Methods + + #region Public Methods + + public void doUpdate() + { + // calcolo il codcliente + grView.DataBind(); + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.designer.cs new file mode 100644 index 0000000..4868a39 --- /dev/null +++ b/MP-MAG/WebUserControls/cmp_OrderListByUdc.ascx.designer.cs @@ -0,0 +1,53 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MP_MAG.WebUserControls +{ + + + public partial class cmp_OrderListByUdc + { + + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// Controllo hfPackListID. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfPackListID; + + /// + /// Controllo hfUdc. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfUdc; + } +} diff --git a/MP-MAG/WebUserControls/cmp_PLScanner.ascx b/MP-MAG/WebUserControls/cmp_PLScanner.ascx index b8f5e5b..d832f07 100644 --- a/MP-MAG/WebUserControls/cmp_PLScanner.ascx +++ b/MP-MAG/WebUserControls/cmp_PLScanner.ascx @@ -19,6 +19,7 @@
+
diff --git a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs index 14a5cc0..ae01a3d 100644 --- a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs @@ -28,6 +28,21 @@ namespace MP_MAG.WebUserControls } } + /// + /// UDC selezionato + /// + protected string LastUDC + { + get + { + return hfLastUDC.Value; + } + set + { + hfLastUDC.Value = value; + } + } + /// /// ULTIMO Comando barcode VALIDO (!="") letto /// @@ -47,6 +62,63 @@ namespace MP_MAG.WebUserControls } } + /// + /// ID dell'ordine selezionato (per UDC) + /// + protected int SelOrdID + { + get + { + return cmp_SelUdc.SelOrdID; + } + } + + /// + /// ID della packing list selezionata + /// + protected int SelPackList + { + get + { + return cmp_SelPackList.PackListID; + } + set + { + cmp_SelPackList.PackListID = value; + cmp_SelUdc.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 @@ -129,7 +201,7 @@ namespace MP_MAG.WebUserControls private bool processLastCmd(bool doRaiseEv) { - if (lastCmd == "") doRaiseEv = true; + if (string.IsNullOrEmpty(lastCmd)) doRaiseEv = true; // processiamo barcode letto decodedData decoData = MagDataLayer.man.decodeBcode(lastValidCmd); switch (decoData.codeType) @@ -144,7 +216,7 @@ namespace MP_MAG.WebUserControls break; default: - cmp_barcode.showOutput("text-danger", $"Codice sconosciuto: {decoData.rawData} --> ignoro"); + cmp_barcode.showOutput("badge badge-danger", $"Codice sconosciuto: {decoData.rawData} --> ignoro"); resetSelection(false); doRaiseEv = true; break; @@ -161,8 +233,8 @@ namespace MP_MAG.WebUserControls /// private void processSuggestion(codeType tipoCod, string rawData, int codeInt) { - //DS_App.ItemListDataTable tabItem = null; - // processo suggerimenti x ITEM / cart / bin dato suo RawData (Dtmx) e Cod univoco (intero) + bool allOk = false; + // processo suggerimenti switch (tipoCod) { case codeType.Command: @@ -171,9 +243,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,140 +255,178 @@ namespace MP_MAG.WebUserControls break; case codeType.PackList: - // FARE!!! verificare packlist valida... - if (true) + // verifica packlist... + allOk = false; + // step 1 : esiste + var tabPList = MagDataLayer.man.taPList.getByKey(codeInt); + if (tabPList.Rows.Count > 0) { - // seleziono PackList - cmp_SelPackList.PackListID = codeInt; - } - - tryLinkAlUdc(); -#if false - // IN PRIMIS cerco lotto valido - DS_Mag.ElencoLottiDataTable tabLotti; - tabLotti = MagDataLayer.man.taEL.getByKey(rawData, "*", codStatoIN); - if (tabLotti.Count == 1) - { - // se trovato cerco in elenco --> aggiungo in lista se non c'è - var currLotti = lottiSel; - if (!currLotti.Contains(rawData)) + // step 2: stato (1 richiesta, 2 iniziata, 3 completata) + var rowPList = tabPList[0]; + switch (rowPList.PackStatus) { - currLotti.Add(rawData); - lottiSel = currLotti; + case 0: + cmp_barcode.showOutput("badge badge-danger", "Errore: PackList in bozza"); + break; + + case 1: + case 2: + allOk = true; + break; + + case 3: + cmp_barcode.showOutput("badge badge-warning", "Errore: PackList completata"); + break; + + case 4: + cmp_barcode.showOutput("badge badge-danger", "Errore: PackList già trasferita"); + break; + + default: + cmp_barcode.showOutput("badge badge-danger", "Errore: PackList in stato UNK"); + break; } } -#endif + if (allOk) + { + // seleziono PackList + SelPackList = codeInt; + // resetto PEDANA ed UDC + SelPedana = ""; + SelUDC = ""; + } + break; case codeType.Pedana: - // verifico e seleziono pedana - - if (true) + // verifico di avere pack list + allOk = false; + if (SelPackList == 0) { - cmp_SelPedana.Pedana = rawData; + cmp_barcode.showOutput("badge badge-danger", "Errore: manca PackList!"); + } + else + { + // verifico esista + var tabAL = MagDataLayer.man.taEAL.getByKey(rawData); + if (tabAL.Rows.Count == 0) + { + cmp_barcode.showOutput("badge badge-warning", $"Errore: Pedana non trovata: {rawData}"); + } + else + { + // ...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) + { + cmp_barcode.showOutput("badge badge-danger", $"Errore: AL {rawData} già associata a PackList {tabAL[0].PackListID}"); + } + else if (tabAL[0].Status > 0) + { + cmp_barcode.showOutput("badge badge-danger", $"Errore: AL {rawData} non modificabile"); + } + else + { + // tutto ok + allOk = true; + } + } + //...e seleziono pedana + if (allOk) + { + SelPedana = rawData; + // resetto UDC + SelUDC = ""; + } } - //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: - - // verifico e seleziono udc - - if (true) + // verifico di avere pack list + allOk = false; + if (SelPackList == 0) { - cmp_SelUdc.UDC = rawData; + cmp_barcode.showOutput("badge badge-danger", "Errore: manca PackList!"); + } + else + { + // verifico di avere Pedana + if (string.IsNullOrEmpty(SelPedana)) + { + cmp_barcode.showOutput("badge badge-danger", "Errore: manca Pedana!"); + } + else + { + // verifico esista + var tabUDC = MagDataLayer.man.taEUdc.getByKey(rawData); + if (tabUDC.Rows.Count == 0) + { + cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC non trovato: {rawData}"); + } + else + { + // ...e NON sia stato TRASFERITO + if (tabUDC[0].IdxPosizione > 0) + { + cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC già trasferito: {rawData}"); + } + else + { + // cerco AL se sia quello selezionato... + var tabAL = MagDataLayer.man.taEAL.getByUdc(rawData); + // se non trovo --> associo + if (tabAL.Rows.Count == 0) + { + // tutto ok + allOk = true; + } + // se uguale OK + else if (tabAL[0].AL == SelPedana) + { + // tutto ok + allOk = true; + } + else + { + // se siamo in seconda lettura --> OK x spostamento + if (LastUDC == rawData) + { + allOk = true; + LastUDC = ""; + } + else + { + // verifico pedana (vecchia/attuale) libera... + if (tabAL[0].Status > 0) + { + cmp_barcode.showOutput("badge badge-danger", $"Attenzione: AL di origine ({tabAL[0].AL}) non modificabile, impossibile spostare"); + } + // chiedo seconda lettura SE AL "libero" + else + { + cmp_barcode.showOutput("badge badge-info", $"Attenzione: UDC {rawData} già associato ad AL ({tabAL[0].AL}), rileggere per confermare ({SelPedana})"); + LastUDC = rawData; + } + } + } + } + } + // ...e seleziono udc + if (allOk) + { + SelUDC = rawData; + tryLinkAlUdc(); + } + } } - - 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; } @@ -324,11 +434,42 @@ namespace MP_MAG.WebUserControls private void tryLinkAlUdc() { - // verifica UDC ed al, se entrambi validi e LIBERI - - // se c'è già un associazione UDC con altro AL --> chiede rilettura - - // se non c'era effettua associazione + bool doRecordUdc = false; + int OrderListID = 0; + // cerco se UDC sia tra quelli RICHIESTI facendo Ordine <--> Lotto <--> UDC + var tabOrdini = MagDataLayer.man.taOList.getByPL_UDC(SelPackList, SelUDC); + // se sono 0 --> NON COMPATIBILE + if (tabOrdini.Rows.Count == 0) + { + cmp_barcode.showOutput("badge badge-danger", "Errore: articolo non presente nella PackList, impossibile acquisire"); + } + // se 1 --> associa + else if (tabOrdini.Rows.Count == 1) + { + OrderListID = tabOrdini[0].OrderListID; + doRecordUdc = true; + } + // se è già selezionato un singolo ordine + else if (SelOrdID > 0) + { + OrderListID = SelOrdID; + doRecordUdc = true; + } + // se > 1 ma NON HO selezione --> chiede a quale associare + else + { + cmp_barcode.showOutput("badge badge-warning", "Attenzione: più di un ordine presente, prego selezionare (UDC)"); + } + // se va salvato... + if (doRecordUdc) + { + MagDataLayer.man.taEA2U.upsertQuery(SelUDC, SelPedana, OrderListID); + cmp_SelUdc.cssCol = "success"; + } + else + { + cmp_SelUdc.cssCol = "warning"; + } } #endregion Private Methods @@ -337,6 +478,13 @@ namespace MP_MAG.WebUserControls protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + SelPackList = 0; + SelPedana = ""; + SelUDC = ""; + LastUDC = ""; + } // eventi barcode cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh; // eventi reset lotti IN diff --git a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.designer.cs index 7f4b6db..255f478 100644 --- a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.designer.cs +++ b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.designer.cs @@ -68,6 +68,15 @@ namespace MP_MAG.WebUserControls /// protected global::MP_MAG.WebUserControls.cmp_SelUdc cmp_SelUdc; + /// + /// Controllo hfLastUDC. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfLastUDC; + /// /// Controllo cmp_SelPedana. /// diff --git a/MP-MAG/WebUserControls/cmp_SelPackList.ascx b/MP-MAG/WebUserControls/cmp_SelPackList.ascx index d70eab8..967e466 100644 --- a/MP-MAG/WebUserControls/cmp_SelPackList.ascx +++ b/MP-MAG/WebUserControls/cmp_SelPackList.ascx @@ -4,12 +4,8 @@
- - PACKING LIST - - - -
+ +
diff --git a/MP-MAG/WebUserControls/cmp_SelPackList.ascx.cs b/MP-MAG/WebUserControls/cmp_SelPackList.ascx.cs index 58321e5..9f7ca2b 100644 --- a/MP-MAG/WebUserControls/cmp_SelPackList.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_SelPackList.ascx.cs @@ -9,6 +9,13 @@ namespace MP_MAG.WebUserControls { public partial class cmp_SelPackList : BaseUserControl { + #region Protected Fields + + protected string baseText = "PACK LIST"; + protected string cssCol = "primary"; + + #endregion Protected Fields + #region Public Properties public int PackListID @@ -22,8 +29,9 @@ namespace MP_MAG.WebUserControls set { hfPackListID.Value = $"{value}"; - lblPackListID.Text = $"{value}"; cmp_OrderList.PackListID = value; + lbtShow.CssClass = value > 0 ? $"btn btn-{cssCol} btn-block" : $"btn btn-outline-{cssCol} btn-block disabled"; + lbtShow.Text = $"{baseText} {value}"; } } diff --git a/MP-MAG/WebUserControls/cmp_SelPackList.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_SelPackList.ascx.designer.cs index a1dad5d..ae43abb 100644 --- a/MP-MAG/WebUserControls/cmp_SelPackList.ascx.designer.cs +++ b/MP-MAG/WebUserControls/cmp_SelPackList.ascx.designer.cs @@ -23,15 +23,6 @@ namespace MP_MAG.WebUserControls /// protected global::System.Web.UI.WebControls.LinkButton lbtShow; - /// - /// Controllo lblPackListID. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblPackListID; - /// /// Controllo cmp_OrderList. /// diff --git a/MP-MAG/WebUserControls/cmp_SelPedana.ascx b/MP-MAG/WebUserControls/cmp_SelPedana.ascx index 92f0aa4..85f7f85 100644 --- a/MP-MAG/WebUserControls/cmp_SelPedana.ascx +++ b/MP-MAG/WebUserControls/cmp_SelPedana.ascx @@ -4,13 +4,9 @@
- - Pedana - - - -
- + +
+
diff --git a/MP-MAG/WebUserControls/cmp_SelPedana.ascx.cs b/MP-MAG/WebUserControls/cmp_SelPedana.ascx.cs index f087a58..10dec9a 100644 --- a/MP-MAG/WebUserControls/cmp_SelPedana.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_SelPedana.ascx.cs @@ -9,19 +9,27 @@ namespace MP_MAG.WebUserControls { public partial class cmp_SelPedana : BaseUserControl { + #region Protected Fields + + protected string baseText = "Pedana"; + protected string cssCol = "secondary"; + + #endregion Protected Fields + #region Public Properties public string Pedana { get { - return hfPedana.Value; ; + return hfPedana.Value; } set { hfPedana.Value = value; - lblPedana.Text = value; cmp_UDCList.AlSel = value; + lbtShow.CssClass = !string.IsNullOrEmpty(value) ? $"btn btn-{cssCol} btn-block" : $"btn btn-outline-{cssCol} btn-block disabled"; + lbtShow.Text = $"{baseText} {value}"; } } diff --git a/MP-MAG/WebUserControls/cmp_SelPedana.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_SelPedana.ascx.designer.cs index 65df1a0..ac6c1b0 100644 --- a/MP-MAG/WebUserControls/cmp_SelPedana.ascx.designer.cs +++ b/MP-MAG/WebUserControls/cmp_SelPedana.ascx.designer.cs @@ -23,15 +23,6 @@ namespace MP_MAG.WebUserControls /// protected global::System.Web.UI.WebControls.LinkButton lbtShow; - /// - /// Controllo lblPedana. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblPedana; - /// /// Controllo cmp_UDCList. /// diff --git a/MP-MAG/WebUserControls/cmp_SelUdc.ascx b/MP-MAG/WebUserControls/cmp_SelUdc.ascx index 7c2950b..c93c8cb 100644 --- a/MP-MAG/WebUserControls/cmp_SelUdc.ascx +++ b/MP-MAG/WebUserControls/cmp_SelUdc.ascx @@ -1,18 +1,17 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_SelUdc.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_SelUdc" %> +<%@ Register Src="~/WebUserControls/cmp_OrderListByUdc.ascx" TagPrefix="uc1" TagName="cmp_OrderListByUdc" %>
- - UDC - - - -
- dettaglio UDC? + +
+
- \ No newline at end of file + + + \ No newline at end of file diff --git a/MP-MAG/WebUserControls/cmp_SelUdc.ascx.cs b/MP-MAG/WebUserControls/cmp_SelUdc.ascx.cs index 008544e..c1b31e3 100644 --- a/MP-MAG/WebUserControls/cmp_SelUdc.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_SelUdc.ascx.cs @@ -9,21 +9,64 @@ namespace MP_MAG.WebUserControls { public partial class cmp_SelUdc : BaseUserControl { + #region Protected Fields + + protected string baseText = "UDC"; + + #endregion Protected Fields + #region Public Properties + public string cssCol + { + get + { + return hfBaseCss.Value; + } + set + { + hfBaseCss.Value = value; + lbtShow.CssClass = !string.IsNullOrEmpty(UDC) ? $"btn btn-{value} btn-block" : $"btn btn-outline-{value} btn-block disabled"; + } + } + + public int PackListID + { + get + { + int answ = 0; + int.TryParse(hfPackListID.Value, out answ); + return answ; + } + set + { + hfPackListID.Value = $"{value}"; + cmp_OrderListByUdc.PackListID = value; + } + } + + /// + /// Ordine selezionato + /// + public int SelOrdID + { + get + { + return cmp_OrderListByUdc.SelOrdID; + } + } + public string UDC { get { - return hfUDC.Value; ; + return hfUDC.Value; } set { hfUDC.Value = value; - lblUDC.Text = value; -#if false - cmp_OrderList.PackListID = value; -#endif + cmp_OrderListByUdc.UdcSel = value; + lbtShow.Text = $"{baseText} {value}"; } } @@ -35,6 +78,7 @@ namespace MP_MAG.WebUserControls { if (!Page.IsPostBack) { + PackListID = 0; UDC = ""; } } diff --git a/MP-MAG/WebUserControls/cmp_SelUdc.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_SelUdc.ascx.designer.cs index 3fc499f..9aabdae 100644 --- a/MP-MAG/WebUserControls/cmp_SelUdc.ascx.designer.cs +++ b/MP-MAG/WebUserControls/cmp_SelUdc.ascx.designer.cs @@ -24,13 +24,13 @@ namespace MP_MAG.WebUserControls protected global::System.Web.UI.WebControls.LinkButton lbtShow; /// - /// Controllo lblUDC. + /// Controllo cmp_OrderListByUdc. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Label lblUDC; + protected global::MP_MAG.WebUserControls.cmp_OrderListByUdc cmp_OrderListByUdc; /// /// Controllo hfUDC. @@ -40,5 +40,23 @@ namespace MP_MAG.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfUDC; + + /// + /// Controllo hfPackListID. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfPackListID; + + /// + /// Controllo hfBaseCss. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfBaseCss; } } diff --git a/MP-MAG/WebUserControls/cmp_UDCList.ascx b/MP-MAG/WebUserControls/cmp_UDCList.ascx index c61001a..f5d668a 100644 --- a/MP-MAG/WebUserControls/cmp_UDCList.ascx +++ b/MP-MAG/WebUserControls/cmp_UDCList.ascx @@ -1,39 +1,25 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_UDCList.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_UDCList" %> - + - - - - - - <%----%> - <%----%> - <%----%> + + + +
+ +
+
+ + + +
+ +
+
- <%----%> - <%----%> - <%-- - - --%> - <%-- - --%> - <%-- - - - - --%> - <%-- - - - - - - - --%>
Nessun record trovato diff --git a/MP-MAG/WebUserControls/cmp_barcode.ascx b/MP-MAG/WebUserControls/cmp_barcode.ascx index eda1585..a30db52 100644 --- a/MP-MAG/WebUserControls/cmp_barcode.ascx +++ b/MP-MAG/WebUserControls/cmp_barcode.ascx @@ -2,5 +2,7 @@
- +
+ +
\ No newline at end of file diff --git a/MP-MAG/WebUserControls/cmp_barcode.ascx.cs b/MP-MAG/WebUserControls/cmp_barcode.ascx.cs index f4e3865..16daefb 100644 --- a/MP-MAG/WebUserControls/cmp_barcode.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_barcode.ascx.cs @@ -7,57 +7,71 @@ using System.Web.UI.WebControls; namespace MP_MAG.WebUserControls { - public partial class cmp_barcode : BaseUserControl - { - protected void Page_Load(object sender, EventArgs e) + public partial class cmp_barcode : BaseUserControl { - if (!Page.IsPostBack) - { - resetMessage(); - } - else if (inputAcquired == "") - { - raiseEvent(); - } - } + #region Public Properties - public void resetMessage() - { - lblOutput.Visible = false; - lblOutput.Text = ""; - } + /// + /// Valore acquisito in lettura barcode + /// + public string inputAcquired + { + get + { + return txtBarcode.Text.Trim(); + } + set + { + txtBarcode.Text = ""; + txtBarcode.Focus(); + } + } - protected void txtBarcode_TextChanged(object sender, EventArgs e) - { - raiseEvent(); + #endregion Public Properties + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + resetMessage(); + } + else if (inputAcquired == "") + { + raiseEvent(); + } + } + + protected void txtBarcode_TextChanged(object sender, EventArgs e) + { + raiseEvent(); + } + + #endregion Protected Methods + + #region Public Methods + + public void resetMessage() + { + lblOutput.Visible = false; + lblOutput.Text = ""; + } + + /// + /// Gestione output da mostrare (opzionale + /// + /// + /// + public void showOutput(string cssClass, string messaggio) + { + // In primis: mostro qualcosa SOLO SE ho del testo + lblOutput.Visible = !string.IsNullOrEmpty(messaggio); + lblOutput.Text = messaggio; + lblOutput.Attributes.Remove("class"); + lblOutput.Attributes.Add("class", cssClass); + } + + #endregion Public Methods } - /// - /// Valore acquisito in lettura barcode - /// - public string inputAcquired - { - get - { - return txtBarcode.Text.Trim(); - } - set - { - txtBarcode.Text = ""; - txtBarcode.Focus(); - } - } - /// - /// Gestione output da mostrare (opzionale - /// - /// - /// - public void showOutput(string cssClass, string messaggio) - { - // In primis: mostro qualcosa SOLO SE ho del testo - lblOutput.Visible = (messaggio != ""); - lblOutput.Text = messaggio; - lblOutput.Attributes.Remove("class"); - lblOutput.Attributes.Add("class", cssClass); - } - } } \ No newline at end of file diff --git a/MagData/DS_Mag.Designer.cs b/MagData/DS_Mag.Designer.cs index 2e1a6ac..6862ab1 100644 --- a/MagData/DS_Mag.Designer.cs +++ b/MagData/DS_Mag.Designer.cs @@ -38,6 +38,8 @@ namespace MagData { private AnagClientiDataTable tableAnagClienti; + private ElencoAL2UDCDataTable tableElencoAL2UDC; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -87,6 +89,9 @@ namespace MagData { if ((ds.Tables["AnagClienti"] != null)) { base.Tables.Add(new AnagClientiDataTable(ds.Tables["AnagClienti"])); } + if ((ds.Tables["ElencoAL2UDC"] != null)) { + base.Tables.Add(new ElencoAL2UDCDataTable(ds.Tables["ElencoAL2UDC"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -175,6 +180,16 @@ 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 ElencoAL2UDCDataTable ElencoAL2UDC { + get { + return this.tableElencoAL2UDC; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -263,6 +278,9 @@ namespace MagData { if ((ds.Tables["AnagClienti"] != null)) { base.Tables.Add(new AnagClientiDataTable(ds.Tables["AnagClienti"])); } + if ((ds.Tables["ElencoAL2UDC"] != null)) { + base.Tables.Add(new ElencoAL2UDCDataTable(ds.Tables["ElencoAL2UDC"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -338,6 +356,12 @@ namespace MagData { this.tableAnagClienti.InitVars(); } } + this.tableElencoAL2UDC = ((ElencoAL2UDCDataTable)(base.Tables["ElencoAL2UDC"])); + if ((initTable == true)) { + if ((this.tableElencoAL2UDC != null)) { + this.tableElencoAL2UDC.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -362,6 +386,8 @@ namespace MagData { base.Tables.Add(this.tableElencoAL); this.tableAnagClienti = new AnagClientiDataTable(); base.Tables.Add(this.tableAnagClienti); + this.tableElencoAL2UDC = new ElencoAL2UDCDataTable(); + base.Tables.Add(this.tableElencoAL2UDC); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -406,6 +432,12 @@ namespace MagData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeElencoAL2UDC() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -482,6 +514,9 @@ namespace MagData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void AnagClientiRowChangeEventHandler(object sender, AnagClientiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void ElencoAL2UDCRowChangeEventHandler(object sender, ElencoAL2UDCRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2799,6 +2834,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 +2903,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 +3020,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 +3066,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 +3085,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 +3112,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; @@ -3539,6 +3604,297 @@ namespace MagData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ElencoAL2UDCDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnAL; + + private global::System.Data.DataColumn columnUDC; + + private global::System.Data.DataColumn columnOrderListID; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ElencoAL2UDCDataTable() { + this.TableName = "ElencoAL2UDC"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ElencoAL2UDCDataTable(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 ElencoAL2UDCDataTable(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 UDCColumn { + get { + return this.columnUDC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OrderListIDColumn { + get { + return this.columnOrderListID; + } + } + + [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 ElencoAL2UDCRow this[int index] { + get { + return ((ElencoAL2UDCRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ElencoAL2UDCRowChangeEventHandler ElencoAL2UDCRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ElencoAL2UDCRowChangeEventHandler ElencoAL2UDCRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ElencoAL2UDCRowChangeEventHandler ElencoAL2UDCRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event ElencoAL2UDCRowChangeEventHandler ElencoAL2UDCRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddElencoAL2UDCRow(ElencoAL2UDCRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ElencoAL2UDCRow AddElencoAL2UDCRow(string AL, string UDC, int OrderListID) { + ElencoAL2UDCRow rowElencoAL2UDCRow = ((ElencoAL2UDCRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + AL, + UDC, + OrderListID}; + rowElencoAL2UDCRow.ItemArray = columnValuesArray; + this.Rows.Add(rowElencoAL2UDCRow); + return rowElencoAL2UDCRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ElencoAL2UDCRow FindByALUDC(string AL, string UDC) { + return ((ElencoAL2UDCRow)(this.Rows.Find(new object[] { + AL, + UDC}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + ElencoAL2UDCDataTable cln = ((ElencoAL2UDCDataTable)(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 ElencoAL2UDCDataTable(); + } + + [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.columnUDC = base.Columns["UDC"]; + this.columnOrderListID = base.Columns["OrderListID"]; + } + + [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.columnUDC = new global::System.Data.DataColumn("UDC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUDC); + this.columnOrderListID = new global::System.Data.DataColumn("OrderListID", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrderListID); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnAL, + this.columnUDC}, true)); + this.columnAL.AllowDBNull = false; + this.columnAL.MaxLength = 50; + this.columnUDC.AllowDBNull = false; + this.columnUDC.MaxLength = 50; + this.columnOrderListID.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public ElencoAL2UDCRow NewElencoAL2UDCRow() { + return ((ElencoAL2UDCRow)(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 ElencoAL2UDCRow(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(ElencoAL2UDCRow); + } + + [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.ElencoAL2UDCRowChanged != null)) { + this.ElencoAL2UDCRowChanged(this, new ElencoAL2UDCRowChangeEvent(((ElencoAL2UDCRow)(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.ElencoAL2UDCRowChanging != null)) { + this.ElencoAL2UDCRowChanging(this, new ElencoAL2UDCRowChangeEvent(((ElencoAL2UDCRow)(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.ElencoAL2UDCRowDeleted != null)) { + this.ElencoAL2UDCRowDeleted(this, new ElencoAL2UDCRowChangeEvent(((ElencoAL2UDCRow)(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.ElencoAL2UDCRowDeleting != null)) { + this.ElencoAL2UDCRowDeleting(this, new ElencoAL2UDCRowChangeEvent(((ElencoAL2UDCRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveElencoAL2UDCRow(ElencoAL2UDCRow 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_Mag ds = new DS_Mag(); + 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 = "ElencoAL2UDCDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -4789,6 +5145,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 { @@ -5038,6 +5416,54 @@ namespace MagData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class ElencoAL2UDCRow : global::System.Data.DataRow { + + private ElencoAL2UDCDataTable tableElencoAL2UDC; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal ElencoAL2UDCRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableElencoAL2UDC = ((ElencoAL2UDCDataTable)(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.tableElencoAL2UDC.ALColumn])); + } + set { + this[this.tableElencoAL2UDC.ALColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string UDC { + get { + return ((string)(this[this.tableElencoAL2UDC.UDCColumn])); + } + set { + this[this.tableElencoAL2UDC.UDCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int OrderListID { + get { + return ((int)(this[this.tableElencoAL2UDC.OrderListIDColumn])); + } + set { + this[this.tableElencoAL2UDC.OrderListIDColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -5275,6 +5701,40 @@ namespace MagData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class ElencoAL2UDCRowChangeEvent : global::System.EventArgs { + + private ElencoAL2UDCRow 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 ElencoAL2UDCRowChangeEvent(ElencoAL2UDCRow 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 ElencoAL2UDCRow 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; + } + } + } } } namespace MagData.DS_MagTableAdapters { @@ -6822,6 +7282,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 +7305,64 @@ 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[8]; 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_getByUDC"; 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("@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("@Tara", 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("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_insertQuery"; + 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("@DayRef", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].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[5].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[5].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[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[5].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[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = "dbo.stp_EAL_updatePList"; + 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("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_EAL_updateQuery"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].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[7].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[7].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[7].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[7].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 +7393,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 +7428,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)); } @@ -6954,12 +7452,29 @@ 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Mag.ElencoALDataTable getByUdc(string UDC) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + 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 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[5]; if ((DayRef.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DayRef.Value)); } @@ -7001,11 +7516,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[6]; + 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[7]; if ((Original_AL == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -7532,6 +8081,392 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM } } + /// + ///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 ElencoAL2UDCTableAdapter : 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 ElencoAL2UDCTableAdapter() { + 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 = "ElencoAL2UDC"; + tableMapping.ColumnMappings.Add("AL", "AL"); + tableMapping.ColumnMappings.Add("UDC", "UDC"); + tableMapping.ColumnMappings.Add("OrderListID", "OrderListID"); + 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].[ElencoAL2UDC] WHERE (([AL] = @Original_AL) AND ([UDC] = @Origi" + + "nal_UDC) AND ([OrderListID] = @Original_OrderListID))"; + 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_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderListID", 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].[ElencoAL2UDC] ([AL], [UDC], [OrderListID]) VALUES (@AL, @UDC, " + + "@OrderListID);\r\nSELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) A" + + "ND (UDC = @UDC)"; + 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("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderListID", 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].[ElencoAL2UDC] SET [AL] = @AL, [UDC] = @UDC, [OrderListID] = @OrderListID WHERE (([AL] = @Original_AL) AND ([UDC] = @Original_UDC) AND ([OrderListID] = @Original_OrderListID)); +SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC)"; + 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("@UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderListID", 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_UDC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UDC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderListID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderListID", 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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.ElencoAL2UDC"; + 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_EA2U_upsertQuery"; + 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("@UDC", global::System.Data.SqlDbType.NVarChar, 50, 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("@AL", global::System.Data.SqlDbType.NVarChar, 50, 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("@OrderListID", 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()] + [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_Mag.ElencoAL2UDCDataTable 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_Mag.ElencoAL2UDCDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Mag.ElencoAL2UDCDataTable dataTable = new DS_Mag.ElencoAL2UDCDataTable(); + 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.ElencoAL2UDCDataTable upsertQuery(string UDC, string AL, global::System.Nullable OrderListID) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC)); + } + if ((AL == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(AL)); + } + if ((OrderListID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(OrderListID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_Mag.ElencoAL2UDCDataTable dataTable = new DS_Mag.ElencoAL2UDCDataTable(); + 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_Mag.ElencoAL2UDCDataTable 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_Mag dataSet) { + return this.Adapter.Update(dataSet, "ElencoAL2UDC"); + } + + [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, string Original_UDC, int Original_OrderListID) { + if ((Original_AL == null)) { + throw new global::System.ArgumentNullException("Original_AL"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_AL)); + } + if ((Original_UDC == null)) { + throw new global::System.ArgumentNullException("Original_UDC"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UDC)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_OrderListID)); + 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, string UDC, int OrderListID) { + if ((AL == null)) { + throw new global::System.ArgumentNullException("AL"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(AL)); + } + if ((UDC == null)) { + throw new global::System.ArgumentNullException("UDC"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UDC)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(OrderListID)); + 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, string UDC, int OrderListID, string Original_AL, string Original_UDC, int Original_OrderListID) { + if ((AL == null)) { + throw new global::System.ArgumentNullException("AL"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(AL)); + } + if ((UDC == null)) { + throw new global::System.ArgumentNullException("UDC"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UDC)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(OrderListID)); + if ((Original_AL == null)) { + throw new global::System.ArgumentNullException("Original_AL"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_AL)); + } + if ((Original_UDC == null)) { + throw new global::System.ArgumentNullException("Original_UDC"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_UDC)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_OrderListID)); + 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 OrderListID, string Original_AL, string Original_UDC, int Original_OrderListID) { + return this.Update(Original_AL, Original_UDC, OrderListID, Original_AL, Original_UDC, Original_OrderListID); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -7546,6 +8481,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM private AnagClientiTableAdapter _anagClientiTableAdapter; + private ElencoAL2UDCTableAdapter _elencoAL2UDCTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -7575,6 +8512,20 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM } } + [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 ElencoAL2UDCTableAdapter ElencoAL2UDCTableAdapter { + get { + return this._elencoAL2UDCTableAdapter; + } + set { + this._elencoAL2UDCTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -7598,6 +8549,10 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM && (this._anagClientiTableAdapter.Connection != null))) { return this._anagClientiTableAdapter.Connection; } + if (((this._elencoAL2UDCTableAdapter != null) + && (this._elencoAL2UDCTableAdapter.Connection != null))) { + return this._elencoAL2UDCTableAdapter.Connection; + } return null; } set { @@ -7614,6 +8569,9 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM if ((this._anagClientiTableAdapter != null)) { count = (count + 1); } + if ((this._elencoAL2UDCTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -7634,6 +8592,15 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM allChangedRows.AddRange(updatedRows); } } + if ((this._elencoAL2UDCTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ElencoAL2UDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._elencoAL2UDCTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -7652,6 +8619,14 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM allAddedRows.AddRange(addedRows); } } + if ((this._elencoAL2UDCTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ElencoAL2UDC.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._elencoAL2UDCTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -7662,6 +8637,14 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_Mag dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._elencoAL2UDCTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ElencoAL2UDC.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._elencoAL2UDCTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._anagClientiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagClienti.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -7714,6 +8697,11 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } + if (((this._elencoAL2UDCTableAdapter != null) + && (this.MatchTableAdapterConnection(this._elencoAL2UDCTableAdapter.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" + @@ -7756,6 +8744,15 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM adaptersWithAcceptChangesDuringUpdate.Add(this._anagClientiTableAdapter.Adapter); } } + if ((this._elencoAL2UDCTableAdapter != null)) { + revertConnections.Add(this._elencoAL2UDCTableAdapter, this._elencoAL2UDCTableAdapter.Connection); + this._elencoAL2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._elencoAL2UDCTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._elencoAL2UDCTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._elencoAL2UDCTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._elencoAL2UDCTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -7818,6 +8815,10 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM this._anagClientiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagClientiTableAdapter])); this._anagClientiTableAdapter.Transaction = null; } + if ((this._elencoAL2UDCTableAdapter != null)) { + this._elencoAL2UDCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoAL2UDCTableAdapter])); + this._elencoAL2UDCTableAdapter.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_Mag.xsd b/MagData/DS_Mag.xsd index a3204f7..f81717c 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 + + + + + + + @@ -399,6 +412,17 @@ FROM dbo.ElencoPost2Queue + + + + dbo.stp_EAL_getByUDC + + + + + + + @@ -415,6 +439,18 @@ FROM dbo.ElencoPost2Queue + + + + dbo.stp_EAL_updatePList + + + + + + + + @@ -504,6 +540,73 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM + + + + + + DELETE FROM [dbo].[ElencoAL2UDC] WHERE (([AL] = @Original_AL) AND ([UDC] = @Original_UDC) AND ([OrderListID] = @Original_OrderListID)) + + + + + + + + + + INSERT INTO [dbo].[ElencoAL2UDC] ([AL], [UDC], [OrderListID]) VALUES (@AL, @UDC, @OrderListID); +SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC) + + + + + + + + + + SELECT * FROM dbo.ElencoAL2UDC + + + + + + UPDATE [dbo].[ElencoAL2UDC] SET [AL] = @AL, [UDC] = @UDC, [OrderListID] = @OrderListID WHERE (([AL] = @Original_AL) AND ([UDC] = @Original_UDC) AND ([OrderListID] = @Original_OrderListID)); +SELECT AL, UDC, OrderListID FROM ElencoAL2UDC WHERE (AL = @AL) AND (UDC = @UDC) + + + + + + + + + + + + + + + + + + + + + + dbo.stp_EA2U_upsertQuery + + + + + + + + + + + @@ -512,7 +615,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -587,7 +690,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -742,7 +845,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -769,7 +872,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -836,7 +939,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -856,7 +959,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -873,6 +976,8 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM + + @@ -890,7 +995,7 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM - + @@ -945,6 +1050,27 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM + + + + + + + + + + + + + + + + + + + + + @@ -975,5 +1101,10 @@ SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione FROM + + + + + \ No newline at end of file diff --git a/MagData/DS_Mag.xss b/MagData/DS_Mag.xss index 4f56de0..da964cc 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..426c7bf 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 /// @@ -3086,7 +2647,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O [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[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM v_OrdersList"; @@ -3099,28 +2660,35 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_OrdList_getByPLID"; + this._commandCollection[2].CommandText = "dbo.stp_OrdList_getByPL_UDC"; 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("@PackListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_OrdList_insertQuery"; + this._commandCollection[3].CommandText = "dbo.stp_OrdList_getByPLID"; 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("@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("@ExtOrdCod", 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("@CodArt", 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("@OrdDescr", 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("@Qty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_OrdList_updateQuery"; + this._commandCollection[4].CommandText = "dbo.stp_OrdList_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_OrderListID", 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("@Qty", 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("@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("@ExtOrdCod", 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("@CodArt", 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("@OrdDescr", 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("@Qty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_OrdList_updateQuery"; + 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_OrderListID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrdDescr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3151,7 +2719,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O [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.OrdersListDataTable getByPLID(global::System.Nullable PackListID) { + public virtual DS_PackList.OrdersListDataTable getByPL_UDC(global::System.Nullable PackListID, string UDC) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((PackListID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(PackListID.Value)); @@ -3159,6 +2727,29 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } + if ((UDC == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(UDC)); + } + DS_PackList.OrdersListDataTable dataTable = new DS_PackList.OrdersListDataTable(); + 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.OrdersListDataTable getByPLID(global::System.Nullable PackListID) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((PackListID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(PackListID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } DS_PackList.OrdersListDataTable dataTable = new DS_PackList.OrdersListDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -3364,7 +2955,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int insertQuery(global::System.Nullable PackListID, string ExtOrdCod, string CodArt, string OrdDescr, global::System.Nullable Qty) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((PackListID.HasValue == true)) { command.Parameters[1].Value = ((int)(PackListID.Value)); } @@ -3416,7 +3007,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O [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(global::System.Nullable Original_OrderListID, global::System.Nullable Qty, string OrdDescr) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((Original_OrderListID.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_OrderListID.Value)); } @@ -3453,335 +3044,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 +3271,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 +3300,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 +3323,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 +3339,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 +3359,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 +3377,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 +3387,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 +3439,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 +3481,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 +3543,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..5504498 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 @@ -179,6 +179,18 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O + + + + dbo.stp_OrdList_getByPL_UDC + + + + + + + + @@ -190,7 +202,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O - + dbo.stp_OrdList_insertQuery @@ -205,7 +217,7 @@ SELECT OrderListID, ExtOrdCod, DueDate, CodArt, PackListID, Qty, OrdDescr FROM O - + dbo.stp_OrdList_updateQuery @@ -220,59 +232,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 +280,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID - + @@ -360,7 +319,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID - + @@ -398,22 +357,7 @@ SELECT AL, PackListID, Status FROM AL2PackList WHERE (AL = @AL) AND (PackListID - - - - - - - - - - - - - - - - + @@ -469,19 +413,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..0f0fa3e 100644 --- a/MagData/DS_PackList.xss +++ b/MagData/DS_PackList.xss @@ -6,23 +6,9 @@ --> - - - + + - - - - - 701 - 103 - - - 835 - 103 - - - - + \ No newline at end of file diff --git a/MagData/MagDataLayer.cs b/MagData/MagDataLayer.cs index 9bd90e7..1b5c776 100644 --- a/MagData/MagDataLayer.cs +++ b/MagData/MagDataLayer.cs @@ -30,6 +30,7 @@ namespace MagData public DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter taCFOdette; public DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter taCPed; public DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter taCSemil; + public DS_MagTableAdapters.ElencoAL2UDCTableAdapter taEA2U; public DS_MagTableAdapters.ElencoALTableAdapter taEAL; public DS_MagTableAdapters.ElencoLottiTableAdapter taEL; public DS_PackListTableAdapters.ExtOrdersListTableAdapter taEOL; @@ -180,6 +181,7 @@ namespace MagData taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter(); taAA = new DS_MagTableAdapters.AnagArtTableAdapter(); + taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter(); taEAL = new DS_MagTableAdapters.ElencoALTableAdapter(); taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter(); taEP2Q = new DS_MagTableAdapters.Elencopost2QueueTableAdapter(); @@ -201,6 +203,7 @@ namespace MagData taCSemil.Connection.ConnectionString = connString; taAA.Connection.ConnectionString = connString; + taEA2U.Connection.ConnectionString = connString; taEAL.Connection.ConnectionString = connString; taEL.Connection.ConnectionString = connString; taEP2Q.Connection.ConnectionString = connString; 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