+
+
DEBUG UNLOAD PAGE
+
diff --git a/NKC_WF/site/DBG_QRCode_Unload.aspx.cs b/NKC_WF/site/DBG_QRCode_Unload.aspx.cs
index 1779ea8..4ae89c7 100644
--- a/NKC_WF/site/DBG_QRCode_Unload.aspx.cs
+++ b/NKC_WF/site/DBG_QRCode_Unload.aspx.cs
@@ -1,4 +1,5 @@
-using System;
+using SteamWare;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -48,10 +49,32 @@ namespace NKC_WF.site
}
}
///
+ /// restituisce URL immagine QRCode
+ ///
+ ///
+ public string getLoginUrl()
+ {
+ string baseUrl = "https://qrcode.steamware.net/HOME/QR_site/JSON?val=";
+ string payload = "{'baseUrl':'{0}','parameters':['" + memLayer.ML.CRS("BaseUrl") + "']}";
+ string answ = $"{baseUrl}{payload}";
+ return answ;
+ }
+ protected int qrSize
+ {
+ get
+ {
+ int answ = 32;
+ int.TryParse(ddlQrSize.SelectedValue, out answ);
+ return answ;
+ }
+ }
+ ///
/// Aggiorna componente principale e child components
///
private void doUpdate()
{
+ imgQrLogin.ImageUrl = getLoginUrl();
+ updateSize();
//!!!FIXME!!! fare calcolo del VERO batch corrente...
BatchId = 242; // fixed x test!
SheetID = 770;
@@ -63,5 +86,18 @@ namespace NKC_WF.site
cmp_MU_Items.ShowQr = true;
cmp_MU_Items.SheetID = SheetID;
}
+
+ protected void ddlQrSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ updateSize();
+ }
+
+ private void updateSize()
+ {
+ imgQrLogin.Height = qrSize * 2;
+ cmp_MU_bins.qrSize = qrSize;
+ cmp_MU_carts.qrSize = qrSize;
+ cmp_MU_Items.qrSize = qrSize;
+ }
}
}
\ No newline at end of file
diff --git a/NKC_WF/site/DBG_QRCode_Unload.aspx.designer.cs b/NKC_WF/site/DBG_QRCode_Unload.aspx.designer.cs
index 5b5b508..29d6660 100644
--- a/NKC_WF/site/DBG_QRCode_Unload.aspx.designer.cs
+++ b/NKC_WF/site/DBG_QRCode_Unload.aspx.designer.cs
@@ -32,6 +32,24 @@ namespace NKC_WF.site
///
protected global::System.Web.UI.WebControls.HiddenField hfSheetID;
+ ///
+ /// Controllo imgQrLogin.
+ ///
+ ///
+ /// 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 imgQrLogin;
+
+ ///
+ /// Controllo ddlQrSize.
+ ///
+ ///
+ /// 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.DropDownList ddlQrSize;
+
///
/// Controllo cmp_MU_Items.
///