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