From 3b5b843d2b74e77ab41218a89595021739ebdad3 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 17 Oct 2017 12:16:34 +0200 Subject: [PATCH] Modifica x controllo valore matricola > 1000x abilitare ELIMINAZIONE --- WebSCR/WebUserControls/mod_impegno.ascx | 2 +- WebSCR/WebUserControls/mod_impegno.ascx.cs | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/WebSCR/WebUserControls/mod_impegno.ascx b/WebSCR/WebUserControls/mod_impegno.ascx index db71380..1111bc8 100644 --- a/WebSCR/WebUserControls/mod_impegno.ascx +++ b/WebSCR/WebUserControls/mod_impegno.ascx @@ -283,7 +283,7 @@
- +
diff --git a/WebSCR/WebUserControls/mod_impegno.ascx.cs b/WebSCR/WebUserControls/mod_impegno.ascx.cs index fd2960c..6f54045 100644 --- a/WebSCR/WebUserControls/mod_impegno.ascx.cs +++ b/WebSCR/WebUserControls/mod_impegno.ascx.cs @@ -62,6 +62,25 @@ namespace WebSCR.WebUserControls } } /// + /// verifica se ci sia matricola in sessione (CON VALORE > 1000... + /// + public bool hasMatricolaKilo + { + get + { + bool answ = hasMatricola; + // se ho matricola DEVE essere numero e > 1000... + if (answ) + { + // converto + int numMatr = 0; + Int32.TryParse(matrOp, out numMatr); + answ = numMatr > 1000; + } + return answ; + } + } + /// /// matricola OP (x utente) /// public string matrOp