From 82e2d7f78662006e2006a58bb04d7a3eeced2827 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 17 Mar 2020 17:45:01 +0100 Subject: [PATCH] Filtro su buttons x creare lotti e stampare: se COD ART non corretto NON permesso procedere --- MP-MAG/BaseUserControl.cs | 19 ++++++++++++++++++- MP-MAG/Web.config | 2 ++ MP-MAG/WebUserControls/cmp_semiLavArtOut.ascx | 4 ++-- .../WebUserControls/cmp_semiLavLottiOut.ascx | 14 ++++++++------ 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/MP-MAG/BaseUserControl.cs b/MP-MAG/BaseUserControl.cs index 352c806..781779b 100644 --- a/MP-MAG/BaseUserControl.cs +++ b/MP-MAG/BaseUserControl.cs @@ -76,7 +76,7 @@ namespace MP_MAG { get { - return memLayer.ML.CRS("redProdKey"); + return memLayer.ML.redHash(memLayer.ML.CRS("redProdKey")); } } /// @@ -225,6 +225,23 @@ namespace MP_MAG } } /// + /// Verifica se il cod articolo passato (tipicamente Eval DataGrid) sia OK con articolo corrente + /// + /// + /// + public bool codArtOk(object _codArt) + { + bool answ = false; + if (_codArt != null) + { + if (!string.IsNullOrEmpty(_codArt.ToString())) + { + answ = _codArt.ToString() == CurrCodArt; + } + } + return answ; + } + /// /// Descr Articolo corrente x post /// public string CurrArtDesc diff --git a/MP-MAG/Web.config b/MP-MAG/Web.config index 53fb853..1bc42f6 100644 --- a/MP-MAG/Web.config +++ b/MP-MAG/Web.config @@ -18,6 +18,7 @@ + @@ -25,6 +26,7 @@ + diff --git a/MP-MAG/WebUserControls/cmp_semiLavArtOut.ascx b/MP-MAG/WebUserControls/cmp_semiLavArtOut.ascx index 7e3ff48..f43a10d 100644 --- a/MP-MAG/WebUserControls/cmp_semiLavArtOut.ascx +++ b/MP-MAG/WebUserControls/cmp_semiLavArtOut.ascx @@ -20,10 +20,10 @@ - + - + diff --git a/MP-MAG/WebUserControls/cmp_semiLavLottiOut.ascx b/MP-MAG/WebUserControls/cmp_semiLavLottiOut.ascx index 5c1a3d5..b43d52e 100644 --- a/MP-MAG/WebUserControls/cmp_semiLavLottiOut.ascx +++ b/MP-MAG/WebUserControls/cmp_semiLavLottiOut.ascx @@ -21,10 +21,10 @@ - + - + @@ -62,13 +62,15 @@ - - / + + + / - - / + + + /