コード例 #1
0
ファイル: SignIn.ascx.cs プロジェクト: reydavid47/GITHUB
 protected bool LoadUserEmployerSessionInfo(out String lastUrl)
 {
     //Overloaded method to return whether or not the user completed IQ, no need to store in session
     using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim()))
     {
         if (!gkei.PutInSession(MainLogin.UserName))
         {
             Literal failText = (Literal)MainLogin.FindControl("FailureText");
             failText.Text    = gkei.SqlException;
             failText.Visible = true;
             lastUrl          = "error";
             return(false);
         }
         if (gkei.Tables.Count < 4)
         {
             lastUrl = "error"; return(false);
         }
         if (gkei.Tables[3].Rows.Count < 1)
         {
             lastUrl = "error"; return(false);
         }
         if (gkei.Tables[3].Rows[0].Field <string>("action") == "completed")
         {
             lastUrl = ""; return(true);
         }
         lastUrl = gkei.Tables[3].Rows[0].Field <string>("url");
         return(false);
     }
 }
コード例 #2
0
        protected void LoadUserEmployerSessionInfo()
        {
            //Which employer database?
            GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(ThisSession.PatientEmail);

            if (!gkei.HasErrors)
            {
                gkei.PutInSession(ThisSession.PatientEmail);
            }
        }
コード例 #3
0
ファイル: SignIn.ascx.cs プロジェクト: reydavid47/GITHUB
 protected void LoadUserEmployerSessionInfo()
 {
     //Which employer database?
     GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim());
     if (!gkei.PutInSession(MainLogin.UserName))
     {
         Literal failText = (Literal)MainLogin.FindControl("FailureText");
         failText.Text = gkei.SqlException;
         failText.Visible = true;
     }
 }
コード例 #4
0
ファイル: SignIn.ascx.cs プロジェクト: reydavid47/GITHUB
        protected void LoadUserEmployerSessionInfo()
        {
            //Which employer database?
            GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim());

            if (!gkei.PutInSession(MainLogin.UserName))
            {
                Literal failText = (Literal)MainLogin.FindControl("FailureText");
                failText.Text    = gkei.SqlException;
                failText.Visible = true;
            }
        }
コード例 #5
0
ファイル: Review.aspx.cs プロジェクト: reydavid47/GITHUB
        protected void LoadUserSessionInfo()
        {
            String         sUN = (cuwReview.UserName).Trim();
            MembershipUser mu  = Membership.GetUser(sUN);
            String         puk = mu.ProviderUserKey.ToString();

            using (GetKeyUserInfo gkui = new GetKeyUserInfo(puk))
            {
                gkui.PutInSession();
            }
            using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(sUN))
            {
                gkei.PutInSession(cuwReview.UserName.Trim());
            }

            ThisSession.UserLogginID = puk;
            ThisSession.LoggedIn     = true;
        }
コード例 #6
0
ファイル: SignIn.ascx.cs プロジェクト: reydavid47/GITHUB
 protected bool LoadUserEmployerSessionInfo(out String lastUrl)
 {
     //Overloaded method to return whether or not the user completed IQ, no need to store in session
     using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim()))
     {
         if (!gkei.PutInSession(MainLogin.UserName))
         {
             Literal failText = (Literal)MainLogin.FindControl("FailureText");
             failText.Text = gkei.SqlException;
             failText.Visible = true;
             lastUrl = "error";
             return false;
         }
         if (gkei.Tables.Count < 4) { lastUrl = "error"; return false; }
         if (gkei.Tables[3].Rows.Count < 1) { lastUrl = "error"; return false; }
         if (gkei.Tables[3].Rows[0].Field<string>("action") == "completed") { lastUrl = ""; return true; }
         lastUrl = gkei.Tables[3].Rows[0].Field<string>("url");
         return false;
     }
 }
コード例 #7
0
ファイル: Review.aspx.cs プロジェクト: reydavid47/GITHUB
        protected void LoadUserSessionInfo()
        {
            String sUN = (cuwReview.UserName).Trim();
            MembershipUser mu = Membership.GetUser(sUN);
            String puk = mu.ProviderUserKey.ToString();

            using(GetKeyUserInfo gkui = new GetKeyUserInfo(puk))
            {
                gkui.PutInSession();
            }
            using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(sUN))
            {
                gkei.PutInSession(cuwReview.UserName.Trim());
            }

            ThisSession.UserLogginID = puk;
            ThisSession.LoggedIn = true;
        }
コード例 #8
0
ファイル: Default.aspx.cs プロジェクト: reydavid47/GITHUB
 protected void LoadUserEmployerSessionInfo()
 {
     //Which employer database?
     GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(ThisSession.PatientEmail);
     if (!gkei.HasErrors)
     {
         gkei.PutInSession(ThisSession.PatientEmail);
     }
 }