Beispiel #1
0
 private MainView()
 {
     InitializeComponent(); if (DesignMode || (Site != null && Site.DesignMode))
     {
         return;
     }
     CntrlLG = DBControllersFactory.Language();
     CntrlWD = DBControllersFactory.Word();
     CntrlEG = DBControllersFactory.EntitlementGroup();
     CntrlEN = DBControllersFactory.Entitlement();
     CntrlET = DBControllersFactory.Entity();
     CntrlPE = DBControllersFactory.ProfileEntitlement();
     CntrlUS = DBControllersFactory.User();
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CntrlUS = DBControllersFactory.User();
     CntrlPE = DBControllersFactory.ProfileEntitlement();
     MVCHIS.Common.MVCHISSession.Instance.Initialize();
     Login1.Visible = MVCHISSession.Instance.CurrentUser == null;
     //DictionaryUC1.Visible = false;
     Login1.GoClicked += (um) => {
         UserController uc = DBControllersFactory.User();
         um = uc.Autheniticate(um);
         if (um == null)
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "error", "alert('Login denied')", true);
         }
         else
         {
             WhenAuthenticated(um);
         }
     };
 }