Ejemplo n.º 1
0
        protected void imgSurvey_clicked(object sender, System.EventArgs e)
        {
            QuestionAnswerRepository repos = new QuestionAnswerRepository();
            bool isReadOnly = false;
            int? screenNum  = repos.GetLastScreenInSurvey(UserHelper.GetLoggedInUser(Session).UserID);

            if (!screenNum.HasValue)
            {
                screenNum = 1;
            }

            if (screenNum == 4)
            {
                isReadOnly = true;
                screenNum  = 1;
            }

            Response.Redirect(
                string.Format("~/Physician/AssesSurvey.aspx?screenID={0}&{1}={2}",
                              screenNum.ToString(),
                              Constants.READONLY,
                              UserHelper.GetLoggedInUser(HttpContext.Current.Session).AssesmentSurvey.HasValue ? isReadOnly ? "1" : "0" : "0")
                );
        }
Ejemplo n.º 2
0
 public int?GetLastScreenInSurvey(int physicianID)
 {
     return(qaRepos.GetLastScreenInSurvey(physicianID));
 }