Exemple #1
0
    private void displayOptions()
    {
        try
        {
            _obj_SMHR_FEEDBACK_QUESTIONS           = new SMHR_FEEDBACK_QUESTIONS();
            _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.ADMIN;
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
            DataTable dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);
            if (dt.Rows.Count != 0)
            {
                ReptFeedBack_Admin.DataSource = dt;
                ReptFeedBack_Admin.DataBind();
                PopulateOptions(dt);
                lbl_Admin.Visible = true;
            }

            _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.Course;
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
            dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);
            if (dt.Rows.Count != 0)
            {
                ReptFeedBack_Course.DataSource = dt;
                ReptFeedBack_Course.DataBind();
                PopulateOptions1(dt);
                lbl_Course.Visible = true;
            }
            _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.Counseller;
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
            _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
            dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);
            if (dt.Rows.Count != 0)
            {
                ReptFeedBack_Couseller.DataSource = dt;
                ReptFeedBack_Couseller.DataBind();
                PopulateOptions2(dt);
                lbl_Counseller.Visible = true;
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_TrainingResponse", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Exemple #2
0
    private void displayOptions()
    {
        _obj_SMHR_FEEDBACK_QUESTIONS           = new SMHR_FEEDBACK_QUESTIONS();
        _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.ADMIN;
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
        DataTable dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);

        if (dt.Rows.Count != 0)
        {
            ReptFeedBack_Admin.DataSource = dt;
            ReptFeedBack_Admin.DataBind();
            PopulateOptions(dt);
            lbl_Admin.Visible = true;
        }

        _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.Course;
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
        dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);
        if (dt.Rows.Count != 0)
        {
            ReptFeedBack_Course.DataSource = dt;
            ReptFeedBack_Course.DataBind();
            PopulateOptions1(dt);
            lbl_Course.Visible = true;
        }
        _obj_SMHR_FEEDBACK_QUESTIONS.OPERATION = operation.Counseller;
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_QUESTION = "";
        _obj_SMHR_FEEDBACK_QUESTIONS.FEEDBACKQUESTS_STATUS   = "Active";
        dt = BLL.get_FeedbackQuestions(_obj_SMHR_FEEDBACK_QUESTIONS);
        if (dt.Rows.Count != 0)
        {
            ReptFeedBack_Couseller.DataSource = dt;
            ReptFeedBack_Couseller.DataBind();
            PopulateOptions2(dt);
            lbl_Counseller.Visible = true;
        }
    }