diff --git a/MP-MAG/MP-MAG.csproj b/MP-MAG/MP-MAG.csproj index 6a16348..4876a61 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 @@ -682,6 +689,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 - - - - - - - - RICERCA LOTTI - - - - SEMILAVORATI - - - - FINITI - - - - PEDANE - + + + Modulo Magazzino + Gestione Lotti e stampa etichette UDC prodotti + + + + + + + + RICERCA LOTTI + + + + SEMILAVORATI + + + + FINITI + + + + PEDANE + + + + SMART START + + + - - - + \ 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 @@ + +