public void InitView()
        {
            Int32  idUser = View.PreloggedUserId;
            Person person = CurrentManager.GetPerson(idUser);

            if (person == null)
            {
                View.PreloggedUserId     = 0;
                View.PreloggedProviderId = 0;
                View.GotoInternalAuthenticationPage();
            }
            else if (InternalService.ExpiredPassword(person))
            {
                View.LoggedUserId     = idUser;
                View.LoggedProviderId = View.PreloggedProviderId;
                lm.Comol.Core.Authentication.InternalLoginInfo loginInfo = InternalService.GetLoginInfo(person);
                if (loginInfo != null && loginInfo.PasswordExpiresOn.HasValue && loginInfo.PasswordExpiresOn.Value < DateTime.Now)
                {
                    View.DisplayPasswordExpiredOn(loginInfo.PasswordExpiresOn.Value);
                }
                else
                {
                    View.DisplayMustChangePassword(loginInfo.ResetType);
                }
            }
            else
            {
                View.LogonUser(person, InternalService.GetDefaultLogonCommunity(person), View.PreloggedProviderId, RootObject.InternalLogin(false), true, CurrentManager.GetUserDefaultIdOrganization(idUser));
            }
        }