pagina smart starter
This commit is contained in:
@@ -320,6 +320,13 @@
|
||||
<Compile Include="SMART\PLScanner.aspx.designer.cs">
|
||||
<DependentUpon>PLScanner.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SMART\SmartStarter.aspx.cs">
|
||||
<DependentUpon>SmartStarter.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SMART\SmartStarter.aspx.designer.cs">
|
||||
<DependentUpon>SmartStarter.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SMART\UserAdmin.aspx.cs">
|
||||
<DependentUpon>UserAdmin.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -682,6 +689,7 @@
|
||||
<Content Include="SMART\login.aspx" />
|
||||
<Content Include="SMART\packList.aspx" />
|
||||
<Content Include="SMART\PLScanner.aspx" />
|
||||
<Content Include="SMART\SmartStarter.aspx" />
|
||||
<Content Include="SMART\UserAdmin.aspx" />
|
||||
<Content Include="WebUserControls\cmp_activeParams.ascx" />
|
||||
<Content Include="WebUserControls\cmp_barcode.ascx" />
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="card border-info">
|
||||
<div class="card-header text-uppercase">
|
||||
<h3>SMART STARTER</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-10">
|
||||
Link per accesso diretto tramite lettore portatile per l'utente corrente
|
||||
</div>
|
||||
<div class="col-12 col-md-2">
|
||||
<asp:Image runat="server" ID="imgQrMain" CssClass="img-fluid" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -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
|
||||
|
||||
/// <summary>
|
||||
/// restituisce URL immagine QRCode
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
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
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
{
|
||||
|
||||
|
||||
public partial class SmartStarter
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo imgQrMain.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image imgQrMain;
|
||||
}
|
||||
}
|
||||
@@ -36,9 +36,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer text-right">
|
||||
<%--<uc1:cmp_numRow runat="server" ID="cmp_numRow" />--%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -68,6 +68,18 @@ namespace MP_MAG.SMART
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce URL immagine QRCode
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
/// restituisce URL immagine QRCode
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
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
|
||||
}
|
||||
}
|
||||
+32
-29
@@ -1,34 +1,37 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="menu.aspx.cs" Inherits="MP_MAG.SMART.menu" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container">
|
||||
<div class="jumbotron">
|
||||
<h2>Modulo Magazzino</h2>
|
||||
<i>Gestione Lotti e stampa etichette UDC prodotti</i>
|
||||
</div>
|
||||
|
||||
<div class="shortcuts">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a href="elencoLotti" class="shortcut">
|
||||
<i class="fa-2x fas fa-list"></i>
|
||||
<span class="shortcut-label">RICERCA LOTTI</span>
|
||||
</a>
|
||||
<a href="prtSemilav" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">SEMILAVORATI</span>
|
||||
</a>
|
||||
<a href="prtFiniti" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">FINITI</span>
|
||||
</a>
|
||||
<a href="gestPedane" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">PEDANE</span>
|
||||
</a>
|
||||
<div class="container">
|
||||
<div class="jumbotron">
|
||||
<h2>Modulo Magazzino</h2>
|
||||
<i>Gestione Lotti e stampa etichette UDC prodotti</i>
|
||||
</div>
|
||||
|
||||
<div class="shortcuts">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a href="elencoLotti" class="shortcut">
|
||||
<i class="fa-2x fas fa-list"></i>
|
||||
<span class="shortcut-label">RICERCA LOTTI</span>
|
||||
</a>
|
||||
<a href="prtSemilav" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">SEMILAVORATI</span>
|
||||
</a>
|
||||
<a href="prtFiniti" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">FINITI</span>
|
||||
</a>
|
||||
<a href="gestPedane" class="shortcut">
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">PEDANE</span>
|
||||
</a>
|
||||
<a href="SmartStarter" class="shortcut">
|
||||
<i class="fa-2x fas fa-mobile-alt"></i>
|
||||
<span class="shortcut-label">SMART START</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
</asp:Content>
|
||||
@@ -24,6 +24,8 @@
|
||||
<add key="ttlPrintCount" value="5" />
|
||||
<add key="_safePages" value="chLang#jumper#unauthorized#forceUser#login#test#UserAdmin#UpdMan#about#contact" />
|
||||
<add key="matrixUrl" value="https://qrcode.steamware.net/" />
|
||||
<add key="baseUrl" value="http://10.74.82.218/" />
|
||||
<add key="basePath" value="MP/MAG/smart/" />
|
||||
<add key="intUpdatePagina_ms" value="60000" />
|
||||
<!--Redis conn-->
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
||||
|
||||
Reference in New Issue
Block a user