From d46447aa1b127e5e2313b804d1b92f17be8decfb Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 7 Sep 2020 18:46:08 +0200 Subject: [PATCH] =?UTF-8?q?Aggiunta=20classi=20di=20base=20x=20ereditariet?= =?UTF-8?q?=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP-ADM/BasePage.cs | 30 ++++++++++++++++++++++++++++++ MP-ADM/BaseUserControl.cs | 37 +++++++++++++++++++++++++++++++++++++ MP-ADM/MP-ADM.csproj | 6 ++++++ 3 files changed, 73 insertions(+) create mode 100644 MP-ADM/BasePage.cs create mode 100644 MP-ADM/BaseUserControl.cs diff --git a/MP-ADM/BasePage.cs b/MP-ADM/BasePage.cs new file mode 100644 index 00000000..dd4aad1a --- /dev/null +++ b/MP-ADM/BasePage.cs @@ -0,0 +1,30 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace MP_ADM +{ + public class BasePage : System.Web.UI.Page + { + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// effettua traduzione in inglese del lemma + /// + /// + /// + public string traduciEn(string lemma) + { + return user_std.UtSn.TraduciEn(lemma); + } + } +} \ No newline at end of file diff --git a/MP-ADM/BaseUserControl.cs b/MP-ADM/BaseUserControl.cs new file mode 100644 index 00000000..5ffb8037 --- /dev/null +++ b/MP-ADM/BaseUserControl.cs @@ -0,0 +1,37 @@ +using MapoDb; +using SteamWare; +using System; +using System.Data; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace MP_ADM +{ + public class BaseUserControl : System.Web.UI.UserControl + { + /// + /// Oggetto datalayer specifico NON singleton x scalare + /// + internal DataLayer DataLayerObj = new DataLayer(); + + + /// + /// effettua traduzione del lemma + /// + /// + /// + public string traduci(string lemma) + { + return user_std.UtSn.Traduci(lemma); + } + /// + /// effettua traduzione in inglese del lemma + /// + /// + /// + public string traduciEn(string lemma) + { + return user_std.UtSn.TraduciEn(lemma); + } + } +} \ No newline at end of file diff --git a/MP-ADM/MP-ADM.csproj b/MP-ADM/MP-ADM.csproj index 6ecaf08c..dcbcb9ce 100644 --- a/MP-ADM/MP-ADM.csproj +++ b/MP-ADM/MP-ADM.csproj @@ -655,6 +655,12 @@ Barcode.aspx + + ASPXCodeBehind + + + ASPXCodeBehind + BCode.aspx ASPXCodeBehind